From eb06a59a8a365e4cfc33436073e6e3b070babcc9 Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Sat, 11 Apr 2026 16:14:21 -0700 Subject: [PATCH 1/4] Migrate from Bun APIs to universal Node.js APIs Replace all Bun-specific APIs with standard Node.js equivalents so the project runs on any Node.js 18+ runtime: - Bun.CryptoHasher -> node:crypto createHash - Bun.spawnSync -> node:child_process execSync - Bun.spawn -> node:child_process execFile - Bun.write / Bun.file -> node:fs writeFileSync / readFileSync - Bun.build -> esbuild - import.meta.dir -> fileURLToPath + dirname - @types/bun -> @types/node - bun script runner -> tsx Co-Authored-By: Claude Opus 4.6 (1M context) --- build/cli.mjs | 194 +++--- package-lock.json | 1226 ++++++++++++++++++++++++++++++++++ package.json | 14 +- scripts/build.ts | 49 +- scripts/extract-templates.ts | 38 +- src/cli.ts | 20 +- src/generator.ts | 27 +- 7 files changed, 1389 insertions(+), 179 deletions(-) create mode 100644 package-lock.json diff --git a/build/cli.mjs b/build/cli.mjs index 0384a75..3c91546 100755 --- a/build/cli.mjs +++ b/build/cli.mjs @@ -1,118 +1,118 @@ -#!/usr/bin/env bun -// @bun -var tz=Object.create;var{getPrototypeOf:ez,defineProperty:WZ,getOwnPropertyNames:$7}=Object;var Y7=Object.prototype.hasOwnProperty;var $$=($,Y,Z)=>{Z=$!=null?tz(ez($)):{};let J=Y||!$||!$.__esModule?WZ(Z,"default",{value:$,enumerable:!0}):Z;for(let K of $7($))if(!Y7.call(J,K))WZ(J,K,{get:()=>$[K],enumerable:!0});return J};var C=($,Y)=>()=>(Y||$((Y={exports:{}}).exports,Y),Y.exports);var _1=import.meta.require;var d=C((LW,HZ)=>{var{FORCE_COLOR:Z7,NODE_DISABLE_COLORS:J7,TERM:K7}=process.env,g={enabled:!J7&&K7!=="dumb"&&Z7!=="0",reset:u(0,0),bold:u(1,22),dim:u(2,22),italic:u(3,23),underline:u(4,24),inverse:u(7,27),hidden:u(8,28),strikethrough:u(9,29),black:u(30,39),red:u(31,39),green:u(32,39),yellow:u(33,39),blue:u(34,39),magenta:u(35,39),cyan:u(36,39),white:u(37,39),gray:u(90,39),grey:u(90,39),bgBlack:u(40,49),bgRed:u(41,49),bgGreen:u(42,49),bgYellow:u(43,49),bgBlue:u(44,49),bgMagenta:u(45,49),bgCyan:u(46,49),bgWhite:u(47,49)};function qZ($,Y){let Z=0,J,K="",z="";for(;Z<$.length;Z++)if(J=$[Z],K+=J.open,z+=J.close,Y.includes(J.close))Y=Y.replace(J.rgx,J.close+J.open);return K+Y+z}function z7($,Y){let Z={has:$,keys:Y};return Z.reset=g.reset.bind(Z),Z.bold=g.bold.bind(Z),Z.dim=g.dim.bind(Z),Z.italic=g.italic.bind(Z),Z.underline=g.underline.bind(Z),Z.inverse=g.inverse.bind(Z),Z.hidden=g.hidden.bind(Z),Z.strikethrough=g.strikethrough.bind(Z),Z.black=g.black.bind(Z),Z.red=g.red.bind(Z),Z.green=g.green.bind(Z),Z.yellow=g.yellow.bind(Z),Z.blue=g.blue.bind(Z),Z.magenta=g.magenta.bind(Z),Z.cyan=g.cyan.bind(Z),Z.white=g.white.bind(Z),Z.gray=g.gray.bind(Z),Z.grey=g.grey.bind(Z),Z.bgBlack=g.bgBlack.bind(Z),Z.bgRed=g.bgRed.bind(Z),Z.bgGreen=g.bgGreen.bind(Z),Z.bgYellow=g.bgYellow.bind(Z),Z.bgBlue=g.bgBlue.bind(Z),Z.bgMagenta=g.bgMagenta.bind(Z),Z.bgCyan=g.bgCyan.bind(Z),Z.bgWhite=g.bgWhite.bind(Z),Z}function u($,Y){let Z={open:`\x1B[${$}m`,close:`\x1B[${Y}m`,rgx:new RegExp(`\\x1b\\[${Y}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return this.has.includes($)||(this.has.push($),this.keys.push(Z)),J===void 0?this:g.enabled?qZ(this.keys,J+""):J+"";return J===void 0?z7([$],[Z]):g.enabled?qZ([Z],J+""):J+""}}HZ.exports=g});var FZ=C((xW,BZ)=>{BZ.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var Y$=C((NW,UZ)=>{UZ.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var l=C((yW,OZ)=>{var o$={to($,Y){if(!Y)return`\x1B[${$+1}G`;return`\x1B[${Y+1};${$+1}H`},move($,Y){let Z="";if($<0)Z+=`\x1B[${-$}D`;else if($>0)Z+=`\x1B[${$}C`;if(Y<0)Z+=`\x1B[${-Y}A`;else if(Y>0)Z+=`\x1B[${Y}B`;return Z},up:($=1)=>`\x1B[${$}A`,down:($=1)=>`\x1B[${$}B`,forward:($=1)=>`\x1B[${$}C`,backward:($=1)=>`\x1B[${$}D`,nextLine:($=1)=>"\x1B[E".repeat($),prevLine:($=1)=>"\x1B[F".repeat($),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Q7={up:($=1)=>"\x1B[S".repeat($),down:($=1)=>"\x1B[T".repeat($)},G7={screen:"\x1B[2J",up:($=1)=>"\x1B[1J".repeat($),down:($=1)=>"\x1B[J".repeat($),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines($){let Y="";for(let Z=0;Z<$;Z++)Y+=this.line+(Z<$-1?o$.up():"");if($)Y+=o$.left;return Y}};OZ.exports={cursor:o$,scroll:Q7,erase:G7,beep:"\x07"}});var CZ=C((bW,EZ)=>{function V7($,Y){var Z=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!Z){if(Array.isArray($)||(Z=W7($))||Y&&$&&typeof $.length==="number"){if(Z)$=Z;var J=0,K=function(){};return{s:K,n:function(){if(J>=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function W7($,Y){if(!$)return;if(typeof $==="string")return RZ($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return RZ($,Y)}function RZ($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z[...q7($)].length;EZ.exports=function($,Y){if(!Y)return PZ.line+H7.to(0);let Z=0,J=$.split(/\r?\n/);var K=V7(J),z;try{for(K.s();!(z=K.n()).done;){let Q=z.value;Z+=1+Math.floor(Math.max(B7(Q)-1,0)/Y)}}catch(Q){K.e(Q)}finally{K.f()}return PZ.lines(Z)}});var t$=C((gW,wZ)=>{var X0={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},F7={arrowUp:X0.arrowUp,arrowDown:X0.arrowDown,arrowLeft:X0.arrowLeft,arrowRight:X0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},U7=process.platform==="win32"?F7:X0;wZ.exports=U7});var kZ=C((fW,jZ)=>{var G0=d(),e1=t$(),e$=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),O7=($)=>e$[$]||e$.default,I0=Object.freeze({aborted:G0.red(e1.cross),done:G0.green(e1.tick),exited:G0.yellow(e1.cross),default:G0.cyan("?")}),R7=($,Y,Z)=>Y?I0.aborted:Z?I0.exited:$?I0.done:I0.default,P7=($)=>G0.gray($?e1.ellipsis:e1.pointerSmall),A7=($,Y)=>G0.gray($?Y?e1.pointerSmall:"+":e1.line);jZ.exports={styles:e$,render:O7,symbols:I0,symbol:R7,delimiter:P7,item:A7}});var IZ=C((hW,XZ)=>{var E7=Y$();XZ.exports=function($,Y){let Z=String(E7($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var DZ=C((vW,_Z)=>{_Z.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var rd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Qh(e))!td.call(t,s)&&s!==r&&an(t,s,{get:()=>e[s],enumerable:!(i=Zh(e,s))||i.enumerable});return t};var ar=(t,e,r)=>(r=t!=null?Jh(ed(t)):{},rd(e||!t||!t.__esModule?an(r,"default",{value:t,enumerable:!0}):r,t));var X=v((r0,cn)=>{"use strict";var{FORCE_COLOR:id,NODE_DISABLE_COLORS:sd,TERM:nd}=process.env,F={enabled:!sd&&nd!=="dumb"&&id!=="0",reset:U(0,0),bold:U(1,22),dim:U(2,22),italic:U(3,23),underline:U(4,24),inverse:U(7,27),hidden:U(8,28),strikethrough:U(9,29),black:U(30,39),red:U(31,39),green:U(32,39),yellow:U(33,39),blue:U(34,39),magenta:U(35,39),cyan:U(36,39),white:U(37,39),gray:U(90,39),grey:U(90,39),bgBlack:U(40,49),bgRed:U(41,49),bgGreen:U(42,49),bgYellow:U(43,49),bgBlue:U(44,49),bgMagenta:U(45,49),bgCyan:U(46,49),bgWhite:U(47,49)};function ln(t,e){let r=0,i,s="",n="";for(;r{"use strict";hn.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var lr=v((s0,fn)=>{"use strict";fn.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var V=v((n0,pn)=>{"use strict";var di={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let r="";return t<0?r+=`\x1B[${-t}D`:t>0&&(r+=`\x1B[${t}C`),e<0?r+=`\x1B[${-e}A`:e>0&&(r+=`\x1B[${e}B`),r},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},od={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},ad={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let r=0;r{"use strict";function ld(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=cd(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,u=!1,a;return{s:function(){r=r.call(t)},n:function(){var c=r.next();return n=c.done,c},e:function(c){u=!0,a=c},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(u)throw a}}}}function cd(t,e){if(t){if(typeof t=="string")return gn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(t,e)}}function gn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r[...hd(t)].length;Dn.exports=function(t,e){if(!e)return mn.line+dd.to(0);let r=0,i=t.split(/\r?\n/);var s=ld(i),n;try{for(s.s();!(n=s.n()).done;){let u=n.value;r+=1+Math.floor(Math.max(fd(u)-1,0)/e)}}catch(u){s.e(u)}finally{s.f()}return mn.lines(r)}});var fi=v((o0,An)=>{"use strict";var Ot={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},pd={arrowUp:Ot.arrowUp,arrowDown:Ot.arrowDown,arrowLeft:Ot.arrowLeft,arrowRight:Ot.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},gd=process.platform==="win32"?pd:Ot;An.exports=gd});var wn=v((a0,En)=>{"use strict";var ht=X(),tt=fi(),pi=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),md=t=>pi[t]||pi.default,It=Object.freeze({aborted:ht.red(tt.cross),done:ht.green(tt.tick),exited:ht.yellow(tt.cross),default:ht.cyan("?")}),bd=(t,e,r)=>e?It.aborted:r?It.exited:t?It.done:It.default,Dd=t=>ht.gray(t?tt.ellipsis:tt.pointerSmall),yd=(t,e)=>ht.gray(t?e?tt.pointerSmall:"+":tt.line);En.exports={styles:pi,render:md,symbols:It,symbol:bd,delimiter:Dd,item:yd}});var Cn=v((l0,vn)=>{"use strict";var Ad=lr();vn.exports=function(t,e){let r=String(Ad(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var Tn=v((c0,xn)=>{"use strict";xn.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,u)=>(u.length+r.length>=i||n[n.length-1].length+u.length+1{TZ.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var H1=C((mW,MZ)=>{MZ.exports={action:FZ(),clear:CZ(),style:kZ(),strip:Y$(),figures:t$(),lines:IZ(),wrap:DZ(),entriesToDisplay:SZ()}});var D1=C((cW,yZ)=>{var LZ=_1("readline"),C7=H1(),w7=C7.action,j7=_1("events"),xZ=l(),k7=xZ.beep,X7=xZ.cursor,I7=d();class NZ extends j7{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=LZ.createInterface({input:this.in,escapeCodeTimeout:50});if(LZ.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=w7(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(X7.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(k7)}render(){if(this.onRender(I7),this.firstRender)this.firstRender=!1}}yZ.exports=NZ});var uZ=C((pW,vZ)=>{function bZ($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function gZ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){bZ(z,J,K,Q,W,"next",G)}function W(G){bZ(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var Z$=d(),_7=D1(),fZ=l(),D7=fZ.erase,_0=fZ.cursor,J$=H1(),$Y=J$.style,YY=J$.clear,T7=J$.lines,S7=J$.figures;class hZ extends _7{constructor($={}){super($);this.transform=$Y.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=YY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=Z$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return gZ(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return gZ(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(_0.down(T7(this.outputError,this.out.columns)-1)+YY(this.outputError,this.out.columns));this.out.write(YY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[$Y.symbol(this.done,this.aborted),Z$.bold(this.msg),$Y.delimiter(this.done),this.red?Z$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":S7.pointerSmall} ${Z$.red().italic(Y)}`,"");this.out.write(D7.line+_0.to(0)+this.outputText+_0.save+this.outputError+_0.restore+_0.move(this.cursorOffset,0))}}vZ.exports=hZ});var lZ=C((dW,dZ)=>{var T1=d(),M7=D1(),D0=H1(),mZ=D0.style,cZ=D0.clear,K$=D0.figures,L7=D0.wrap,x7=D0.entriesToDisplay,N7=l(),y7=N7.cursor;class pZ extends M7{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=cZ("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(y7.hide);else this.out.write(cZ(this.outputText,this.out.columns));super.render();let $=x7(this.cursor,this.choices.length,this.optionsPerPage),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[mZ.symbol(this.done,this.aborted),T1.bold(this.msg),mZ.delimiter(!1),this.done?this.selection.title:this.selection.disabled?T1.yellow(this.warn):T1.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let J=Y;J0)z=K$.arrowUp;else if(J===Z-1&&Z=this.out.columns||W.description.split(/\r?\n/).length>1)Q=` -`+L7(W.description,{margin:3,width:this.out.columns})}this.outputText+=`${z} ${K}${T1.gray(Q)} -`}}this.out.write(this.outputText)}}dZ.exports=pZ});var tZ=C((lW,oZ)=>{var z$=d(),b7=D1(),rZ=H1(),sZ=rZ.style,g7=rZ.clear,aZ=l(),iZ=aZ.cursor,f7=aZ.erase;class nZ extends b7{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`)}});var Nn=v((h0,Sn)=>{"use strict";Sn.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var he=v((d0,On)=>{"use strict";On.exports={action:dn(),clear:yn(),style:wn(),strip:lr(),figures:fi(),lines:Cn(),wrap:Tn(),entriesToDisplay:Nn()}});var Ne=v((f0,Pn)=>{"use strict";var In=Se("readline"),Ed=he(),wd=Ed.action,vd=Se("events"),_n=V(),Cd=_n.beep,xd=_n.cursor,Td=X(),gi=class extends vd{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=In.createInterface({input:this.in,escapeCodeTimeout:50});In.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,u)=>{let a=wd(u,i);a===!1?this._&&this._(n,u):typeof this[a]=="function"?this[a](u):this.bell()};this.close=()=>{this.out.write(xd.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Cd)}render(){this.onRender(Td),this.firstRender&&(this.firstRender=!1)}};Pn.exports=gi});var Fn=v((p0,Mn)=>{"use strict";function Rn(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function Ln(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){Rn(n,i,s,u,a,"next",o)}function a(o){Rn(n,i,s,u,a,"throw",o)}u(void 0)})}}var cr=X(),Sd=Ne(),Bn=V(),Nd=Bn.erase,_t=Bn.cursor,hr=he(),mi=hr.style,bi=hr.clear,Od=hr.lines,Id=hr.figures,Di=class extends Sd{constructor(e={}){super(e),this.transform=mi.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=bi("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=cr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var e=this;return Ln(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Ln(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(` +`),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(_t.down(Od(this.outputError,this.out.columns)-1)+bi(this.outputError,this.out.columns)),this.out.write(bi(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[mi.symbol(this.done,this.aborted),cr.bold(this.msg),mi.delimiter(this.done),this.red?cr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` +`).reduce((e,r,i)=>e+` +${i?" ":Id.pointerSmall} ${cr.red().italic(r)}`,"")),this.out.write(Nd.line+_t.to(0)+this.outputText+_t.save+this.outputError+_t.restore+_t.move(this.cursorOffset,0)))}};Mn.exports=Di});var jn=v((g0,Un)=>{"use strict";var Oe=X(),_d=Ne(),Pt=he(),qn=Pt.style,$n=Pt.clear,dr=Pt.figures,Pd=Pt.wrap,Rd=Pt.entriesToDisplay,Ld=V(),Bd=Ld.cursor,yi=class extends _d{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=$n("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Bd.hide):this.out.write($n(this.outputText,this.out.columns)),super.render();let e=Rd(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[qn.symbol(this.done,this.aborted),Oe.bold(this.msg),qn.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Oe.yellow(this.warn):Oe.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let s=r;s0?u=dr.arrowUp:s===i-1&&i=this.out.columns||o.description.split(/\r?\n/).length>1)&&(a=` +`+Pd(o.description,{margin:3,width:this.out.columns})))),this.outputText+=`${u} ${n}${Oe.gray(a)} +`}}this.out.write(this.outputText)}};Un.exports=yi});var Hn=v((m0,Yn)=>{"use strict";var fr=X(),Md=Ne(),Vn=he(),kn=Vn.style,Fd=Vn.clear,Gn=V(),Xn=Gn.cursor,qd=Gn.erase,Ai=class extends Md{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(iZ.hide);else this.out.write(g7(this.outputText,this.out.columns));super.render(),this.outputText=[sZ.symbol(this.done,this.aborted),z$.bold(this.msg),sZ.delimiter(this.done),this.value?this.inactive:z$.cyan().underline(this.inactive),z$.gray("/"),this.value?z$.cyan().underline(this.active):this.active].join(" "),this.out.write(f7.line+iZ.to(0)+this.outputText)}}oZ.exports=nZ});var O1=C((sW,eZ)=>{class Q${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof Q$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof Q$)}toString(){return String(this.date)}}eZ.exports=Q$});var Z9=C((iW,Y9)=>{var h7=O1();class $9 extends h7{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}Y9.exports=$9});var z9=C((rW,K9)=>{var v7=O1(),u7=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class J9 extends v7{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+u7($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}K9.exports=J9});var V9=C((aW,G9)=>{var m7=O1();class Q9 extends m7{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}G9.exports=Q9});var H9=C((nW,q9)=>{var c7=O1();class W9 extends c7{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}q9.exports=W9});var U9=C((oW,F9)=>{var p7=O1();class B9 extends p7{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}F9.exports=B9});var P9=C((tW,R9)=>{var d7=O1();class O9 extends d7{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}R9.exports=O9});var C9=C((eW,E9)=>{var l7=O1();class A9 extends l7{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}E9.exports=A9});var k9=C(($q,j9)=>{var s7=O1();class w9 extends s7{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}j9.exports=w9});var I9=C((Yq,X9)=>{X9.exports={DatePart:O1(),Meridiem:Z9(),Day:z9(),Hours:V9(),Milliseconds:H9(),Minutes:U9(),Month:P9(),Seconds:C9(),Year:k9()}});var g9=C((Zq,b9)=>{function _9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function D9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){_9(z,J,K,Q,W,"next",G)}function W(G){_9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var ZY=d(),i7=D1(),JY=H1(),T9=JY.style,S9=JY.clear,r7=JY.figures,N9=l(),a7=N9.erase,M9=N9.cursor,S1=I9(),L9=S1.DatePart,n7=S1.Meridiem,o7=S1.Day,t7=S1.Hours,e7=S1.Milliseconds,$Q=S1.Minutes,YQ=S1.Month,ZQ=S1.Seconds,JQ=S1.Year,KQ=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,x9={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new o7($),3:($)=>new YQ($),4:($)=>new JQ($),5:($)=>new n7($),6:($)=>new t7($),7:($)=>new $Q($),8:($)=>new ZQ($),9:($)=>new e7($)},zQ={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class y9 extends i7{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(zQ,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=S9("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=KQ.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in x9?x9[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof L9)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return D9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return D9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof L9)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(M9.hide);else this.out.write(S9(this.outputText,this.out.columns));if(super.render(),this.outputText=[T9.symbol(this.done,this.aborted),ZY.bold(this.msg),T9.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?ZY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":r7.pointerSmall} ${ZY.red().italic(Y)}`,"");this.out.write(a7.line+M9.to(0)+this.outputText)}}b9.exports=y9});var d9=C((Jq,p9)=>{function f9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function h9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){f9(z,J,K,Q,W,"next",G)}function W(G){f9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var G$=d(),QQ=D1(),m9=l(),V$=m9.cursor,GQ=m9.erase,W$=H1(),KY=W$.style,VQ=W$.figures,v9=W$.clear,WQ=W$.lines,qQ=/[0-9]/,zY=($)=>$!==void 0,u9=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class c9 extends QQ{constructor($={}){super($);this.transform=KY.render($.style),this.msg=$.message,this.initial=zY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=zY($.min)?$.min:-1/0,this.max=zY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=G$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${u9($,this.round)}`),this._value=u9($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||qQ.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return h9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return h9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}let Y=$.value;$.value=Y!==""?Y:$.initial,$.done=!0,$.aborted=!1,$.error=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` -${Z?" ":VQ.pointerSmall} ${G$.red().italic(Y)}`,"");this.out.write(GQ.line+V$.to(0)+this.outputText+V$.save+this.outputError+V$.restore)}}p9.exports=c9});var QY=C((Kq,r9)=>{var R1=d(),HQ=l(),BQ=HQ.cursor,FQ=D1(),T0=H1(),l9=T0.clear,m1=T0.figures,s9=T0.style,UQ=T0.wrap,OQ=T0.entriesToDisplay;class i9 extends FQ{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=l9("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Xn.hide):this.out.write(Fd(this.outputText,this.out.columns)),super.render(),this.outputText=[kn.symbol(this.done,this.aborted),fr.bold(this.msg),kn.delimiter(this.done),this.value?this.inactive:fr.cyan().underline(this.inactive),fr.gray("/"),this.value?fr.cyan().underline(this.active):this.active].join(" "),this.out.write(qd.line+Xn.to(0)+this.outputText))}};Yn.exports=Ai});var me=v((b0,Wn)=>{"use strict";var Ei=class t{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof t)}toString(){return String(this.date)}};Wn.exports=Ei});var Kn=v((D0,zn)=>{"use strict";var $d=me(),wi=class extends $d{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};zn.exports=wi});var Zn=v((y0,Jn)=>{"use strict";var Ud=me(),jd=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),vi=class extends Ud{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+jd(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Jn.exports=vi});var eu=v((A0,Qn)=>{"use strict";var kd=me(),Ci=class extends kd{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Qn.exports=Ci});var ru=v((E0,tu)=>{"use strict";var Xd=me(),xi=class extends Xd{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};tu.exports=xi});var su=v((w0,iu)=>{"use strict";var Vd=me(),Ti=class extends Vd{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};iu.exports=Ti});var uu=v((v0,nu)=>{"use strict";var Gd=me(),Si=class extends Gd{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};nu.exports=Si});var au=v((C0,ou)=>{"use strict";var Yd=me(),Ni=class extends Yd{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};ou.exports=Ni});var cu=v((x0,lu)=>{"use strict";var Hd=me(),Oi=class extends Hd{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};lu.exports=Oi});var du=v((T0,hu)=>{"use strict";hu.exports={DatePart:me(),Meridiem:Kn(),Day:Zn(),Hours:eu(),Milliseconds:ru(),Minutes:su(),Month:uu(),Seconds:au(),Year:cu()}});var wu=v((S0,Eu)=>{"use strict";function fu(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function pu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){fu(n,i,s,u,a,"next",o)}function a(o){fu(n,i,s,u,a,"throw",o)}u(void 0)})}}var Ii=X(),Wd=Ne(),Pi=he(),gu=Pi.style,mu=Pi.clear,zd=Pi.figures,Au=V(),Kd=Au.erase,bu=Au.cursor,Ie=du(),Du=Ie.DatePart,Jd=Ie.Meridiem,Zd=Ie.Day,Qd=Ie.Hours,ef=Ie.Milliseconds,tf=Ie.Minutes,rf=Ie.Month,sf=Ie.Seconds,nf=Ie.Year,uf=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,yu={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new Zd(t),3:t=>new rf(t),4:t=>new nf(t),5:t=>new Jd(t),6:t=>new Qd(t),7:t=>new tf(t),8:t=>new sf(t),9:t=>new ef(t)},of={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},_i=class extends Wd{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(of,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=mu("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=uf.exec(e);){let s=r.shift(),n=r.findIndex(u=>u!=null);this.parts.push(n in yu?yu[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof Du)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var e=this;return pu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return pu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(` +`),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof Du)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(bu.hide):this.out.write(mu(this.outputText,this.out.columns)),super.render(),this.outputText=[gu.symbol(this.done,this.aborted),Ii.bold(this.msg),gu.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?Ii.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` +`).reduce((e,r,i)=>e+` +${i?" ":zd.pointerSmall} ${Ii.red().italic(r)}`,"")),this.out.write(Kd.line+bu.to(0)+this.outputText))}};Eu.exports=_i});var Ou=v((N0,Nu)=>{"use strict";function vu(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function Cu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){vu(n,i,s,u,a,"next",o)}function a(o){vu(n,i,s,u,a,"throw",o)}u(void 0)})}}var pr=X(),af=Ne(),Su=V(),gr=Su.cursor,lf=Su.erase,mr=he(),Ri=mr.style,cf=mr.figures,xu=mr.clear,hf=mr.lines,df=/[0-9]/,Li=t=>t!==void 0,Tu=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Bi=class extends af{constructor(e={}){super(e),this.transform=Ri.render(e.style),this.msg=e.message,this.initial=Li(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Li(e.min)?e.min:-1/0,this.max=Li(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=pr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Tu(e,this.round)}`),this._value=Tu(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||df.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var e=this;return Cu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Cu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(` +`),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuee+` +${i?" ":cf.pointerSmall} ${pr.red().italic(r)}`,"")),this.out.write(lf.line+gr.to(0)+this.outputText+gr.save+this.outputError+gr.restore))}};Nu.exports=Bi});var Fi=v((O0,Pu)=>{"use strict";var be=X(),ff=V(),pf=ff.cursor,gf=Ne(),Rt=he(),Iu=Rt.clear,ke=Rt.figures,_u=Rt.style,mf=Rt.wrap,bf=Rt.entriesToDisplay,Mi=class extends gf{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Iu("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.lengthe.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` Instructions: - ${m1.arrowUp}/${m1.arrowDown}: Highlight option - ${m1.arrowLeft}/${m1.arrowRight}/[space]: Toggle selection + ${ke.arrowUp}/${ke.arrowDown}: Highlight option + ${ke.arrowLeft}/${ke.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?R1.green(m1.radioOn):m1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?R1.gray().underline(Y.title):R1.strikethrough().gray(Y.title);else if(z=$===Z?R1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` -`+UQ(Y.description,{margin:K.length,width:this.out.columns})}return K+z+R1.gray(Q||"")}paginateOptions($){if($.length===0)return R1.red("No matches for this query.");let Y=OQ(this.cursor,$.length,this.optionsPerPage),Z=Y.startIndex,J=Y.endIndex,K,z=[];for(let Q=Z;Q0)K=m1.arrowUp;else if(Q===J-1&&J<$.length)K=m1.arrowDown;else K=" ";z.push(this.renderOption(this.cursor,$[Q],Q,K))}return` -`+z.join(` -`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[R1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(R1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(BQ.hide);super.render();let $=[s9.symbol(this.done,this.aborted),R1.bold(this.msg),s9.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=R1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=l9($,this.out.columns)}}r9.exports=i9});var Z4=C((zq,Y4)=>{function a9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function RQ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){a9(z,J,K,Q,W,"next",G)}function W(G){a9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var S0=d(),PQ=D1(),e9=l(),AQ=e9.erase,n9=e9.cursor,M0=H1(),GY=M0.style,o9=M0.clear,VY=M0.figures,EQ=M0.wrap,CQ=M0.entriesToDisplay,t9=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),wQ=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),jQ=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class $4 extends PQ{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:jQ($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=GY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=o9("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=t9(this.suggestions,$);else this.value=this.fallback.value;this.fire()}complete($){var Y=this;return RQ(function*(){let Z=Y.completing=Y.suggest(Y.input,Y.choices),J=yield Z;if(Y.completing!==Z)return;Y.suggestions=J.map((z,Q,W)=>({title:wQ(W,Q),value:t9(W,Q),description:z.description})),Y.completing=!1;let K=Math.max(J.length-1,0);Y.moveSelect(Math.min(K,Y.select)),$&&$()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` +`:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?be.green(ke.radioOn):ke.radioOff)+" "+s+" ",u,a;return r.disabled?u=e===i?be.gray().underline(r.title):be.strikethrough().gray(r.title):(u=e===i?be.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+u.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=` +`+mf(r.description,{margin:n.length,width:this.out.columns})))),n+u+be.gray(a||"")}paginateOptions(e){if(e.length===0)return be.red("No matches for this query.");let r=bf(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,n,u=[];for(let a=i;a0?n=ke.arrowUp:a===s-1&&sr.selected).map(r=>r.title).join(", ");let e=[be.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(be.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(pf.hide),super.render();let e=[_u.symbol(this.done,this.aborted),be.bold(this.msg),_u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=be.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=Iu(e,this.out.columns)}};Pu.exports=Mi});var $u=v((I0,qu)=>{"use strict";function Ru(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function Df(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){Ru(n,i,s,u,a,"next",o)}function a(o){Ru(n,i,s,u,a,"throw",o)}u(void 0)})}}var Lt=X(),yf=Ne(),Fu=V(),Af=Fu.erase,Lu=Fu.cursor,Bt=he(),qi=Bt.style,Bu=Bt.clear,$i=Bt.figures,Ef=Bt.wrap,wf=Bt.entriesToDisplay,Mu=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),vf=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),Cf=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Ui=class extends yf{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:Cf(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=qi.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Bu("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Mu(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var r=this;return Df(function*(){let i=r.completing=r.suggest(r.input,r.choices),s=yield i;if(r.completing!==i)return;r.suggestions=s.map((u,a,o)=>({title:vf(o,a),value:Mu(o,a),description:u.description})),r.completing=!1;let n=Math.max(s.length-1,0);r.moveSelect(Math.min(n,r.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor);this.input=`${Z}${$}${J}`,this.cursor=Z.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let $=this.input.slice(0,this.cursor-1),Y=this.input.slice(this.cursor);this.input=`${$}${Y}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?VY.arrowUp:J?VY.arrowDown:" ",Q=Y?S0.cyan().underline($.title):$.title;if(z=(Y?S0.cyan(VY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` -`+EQ($.description,{margin:3,width:this.out.columns})}return z+" "+Q+S0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n9.hide);else this.out.write(o9(this.outputText,this.out.columns));super.render();let $=CQ(this.select,this.choices.length,this.limit),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[GY.symbol(this.done,this.aborted,this.exited),S0.bold(this.msg),GY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let J=this.suggestions.slice(Y,Z).map((K,z)=>this.renderOption(K,this.select===z+Y,z===0&&Y>0,z+Y===Z-1&&Z=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,u=i?$i.arrowUp:s?$i.arrowDown:" ",a=r?Lt.cyan().underline(e.title):e.title;return u=(r?Lt.cyan($i.pointer)+" ":" ")+u,e.description&&(n=` - ${e.description}`,(u.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=` +`+Ef(e.description,{margin:3,width:this.out.columns}))),u+" "+a+Lt.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Lu.hide):this.out.write(Bu(this.outputText,this.out.columns)),super.render();let e=wf(this.select,this.choices.length,this.limit),r=e.startIndex,i=e.endIndex;if(this.outputText=[qi.symbol(this.done,this.aborted,this.exited),Lt.bold(this.msg),qi.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let s=this.suggestions.slice(r,i).map((n,u)=>this.renderOption(n,this.select===u+r,u===0&&r>0,u+r===i-1&&i{var M1=d(),kQ=l(),XQ=kQ.cursor,IQ=QY(),WY=H1(),J4=WY.clear,K4=WY.style,V0=WY.figures;class z4 extends IQ{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=J4("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`+(s||Lt.gray(this.fallback.title))}this.out.write(Af.line+Lu.to(0)+this.outputText)}};qu.exports=Ui});var Xu=v((_0,ku)=>{"use strict";var _e=X(),xf=V(),Tf=xf.cursor,Sf=Fi(),ki=he(),Uu=ki.clear,ju=ki.style,dt=ki.figures,ji=class extends Sf{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=Uu("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` Instructions: - ${V0.arrowUp}/${V0.arrowDown}: Highlight option - ${V0.arrowLeft}/${V0.arrowRight}/[space]: Toggle selection + ${dt.arrowUp}/${dt.arrowDown}: Highlight option + ${dt.arrowLeft}/${dt.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer -`}return""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:M1.gray("Enter something to filter")} -`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?M1.gray().underline(Y.title):M1.strikethrough().gray(Y.title);else J=$===Z?M1.cyan().underline(Y.title):Y.title;return(Y.selected?M1.green(V0.radioOn):V0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[M1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(M1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(XQ.hide);super.render();let $=[K4.symbol(this.done,this.aborted),M1.bold(this.msg),K4.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=M1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=J4($,this.out.columns)}}Q4.exports=z4});var O4=C((Gq,U4)=>{var V4=d(),_Q=D1(),H4=H1(),W4=H4.style,DQ=H4.clear,B4=l(),TQ=B4.erase,q4=B4.cursor;class F4 extends _Q{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`:""}renderCurrentInput(){return` +Filtered results for: ${this.inputValue?this.inputValue:_e.gray("Enter something to filter")} +`}renderOption(e,r,i){let s;return r.disabled?s=e===i?_e.gray().underline(r.title):_e.strikethrough().gray(r.title):s=e===i?_e.cyan().underline(r.title):r.title,(r.selected?_e.green(dt.radioOn):dt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[_e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(_e.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Tf.hide),super.render();let e=[ju.symbol(this.done,this.aborted),_e.bold(this.msg),ju.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=_e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=Uu(e,this.out.columns)}};ku.exports=ji});var Ku=v((P0,zu)=>{"use strict";var Vu=X(),Nf=Ne(),Hu=he(),Gu=Hu.style,Of=Hu.clear,Wu=V(),If=Wu.erase,Yu=Wu.cursor,Xi=class extends Nf{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(q4.hide);else this.out.write(DQ(this.outputText,this.out.columns));super.render(),this.outputText=[W4.symbol(this.done,this.aborted),V4.bold(this.msg),W4.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:V4.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(TQ.line+q4.to(0)+this.outputText)}}U4.exports=F4});var P4=C((Vq,R4)=>{R4.exports={TextPrompt:uZ(),SelectPrompt:lZ(),TogglePrompt:tZ(),DatePrompt:g9(),NumberPrompt:d9(),MultiselectPrompt:QY(),AutocompletePrompt:Z4(),AutocompleteMultiselectPrompt:G4(),ConfirmPrompt:O4()}});var E4=C((A4)=>{var $1=A4,SQ=P4(),q$=($)=>$;function P1($,Y,Z={}){return new Promise((J,K)=>{let z=new SQ[$](Y),Q=Z.onAbort||q$,W=Z.onSubmit||q$,G=Z.onExit||q$;z.on("state",Y.onState||q$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}$1.text=($)=>P1("TextPrompt",$);$1.password=($)=>{return $.style="password",$1.text($)};$1.invisible=($)=>{return $.style="invisible",$1.text($)};$1.number=($)=>P1("NumberPrompt",$);$1.date=($)=>P1("DatePrompt",$);$1.confirm=($)=>P1("ConfirmPrompt",$);$1.list=($)=>{let Y=$.separator||",";return P1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};$1.toggle=($)=>P1("TogglePrompt",$);$1.select=($)=>P1("SelectPrompt",$);$1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};$1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var MQ=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));$1.autocomplete=($)=>{return $.suggest=$.suggest||MQ,$.choices=[].concat($.choices||[]),P1("AutocompletePrompt",$)}});var D4=C((qq,_4)=>{function C4($,Y){var Z=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);if(Y)J=J.filter(function(K){return Object.getOwnPropertyDescriptor($,K).enumerable});Z.push.apply(Z,J)}return Z}function w4($){for(var Y=1;Y=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function NQ($,Y){if(!$)return;if(typeof $==="string")return j4($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return j4($,Y)}function j4($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z{};function c1(){return HY.apply(this,arguments)}function HY(){return HY=X4(function*($=[],{onSubmit:Y=I4,onCancel:Z=I4}={}){let J={},K=c1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=function(){var X=X4(function*(D,y,O=!1){if(!O&&D.validate&&D.validate(y)!==!0)return;return D.format?yield D.format(y,J):y});return function(y,O){return X.apply(this,arguments)}}();var P=xQ($),w;try{for(P.s();!(w=P.n()).done;){Q=w.value;var I=Q;if(G=I.name,q=I.type,typeof q==="function")q=yield q(z,w4({},J),Q),Q.type=q;if(!q)continue;for(let X in Q){if(yQ.includes(X))continue;let D=Q[X];Q[X]=typeof D==="function"?yield D(z,w4({},J),H):D}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");var T=Q;if(G=T.name,q=T.type,qY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=yield R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=c1._injected?bQ(c1._injected,Q.initial):yield qY[q](Q),J[G]=z=yield R(Q,z,!0),W=yield Y(Q,z,J)}catch(X){W=!(yield Z(Q,J))}if(W)return J}}catch(X){P.e(X)}finally{P.f()}return J}),HY.apply(this,arguments)}function bQ($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function gQ($){c1._injected=(c1._injected||[]).concat($)}function fQ($){c1._override=Object.assign({},$)}_4.exports=Object.assign(c1,{prompt:c1,prompts:qY,inject:gQ,override:fQ})});var S4=C((Hq,T4)=>{T4.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var H$=C((Bq,M4)=>{M4.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var N4=C((Fq,x4)=>{var hQ=H$(),{erase:L4,cursor:vQ}=l(),uQ=($)=>[...hQ($)].length;x4.exports=function($,Y){if(!Y)return L4.line+vQ.to(0);let Z=0,J=$.split(/\r?\n/);for(let K of J)Z+=1+Math.floor(Math.max(uQ(K)-1,0)/Y);return L4.lines(Z)}});var BY=C((Uq,y4)=>{var L0={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},mQ={arrowUp:L0.arrowUp,arrowDown:L0.arrowDown,arrowLeft:L0.arrowLeft,arrowRight:L0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},cQ=process.platform==="win32"?mQ:L0;y4.exports=cQ});var g4=C((Oq,b4)=>{var W0=d(),$0=BY(),FY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),pQ=($)=>FY[$]||FY.default,x0=Object.freeze({aborted:W0.red($0.cross),done:W0.green($0.tick),exited:W0.yellow($0.cross),default:W0.cyan("?")}),dQ=($,Y,Z)=>Y?x0.aborted:Z?x0.exited:$?x0.done:x0.default,lQ=($)=>W0.gray($?$0.ellipsis:$0.pointerSmall),sQ=($,Y)=>W0.gray($?Y?$0.pointerSmall:"+":$0.line);b4.exports={styles:FY,render:pQ,symbols:x0,symbol:dQ,delimiter:lQ,item:sQ}});var h4=C((Rq,f4)=>{var iQ=H$();f4.exports=function($,Y){let Z=String(iQ($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var u4=C((Pq,v4)=>{v4.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{"use strict";Ju.exports={TextPrompt:Fn(),SelectPrompt:jn(),TogglePrompt:Hn(),DatePrompt:wu(),NumberPrompt:Ou(),MultiselectPrompt:Fi(),AutocompletePrompt:$u(),AutocompleteMultiselectPrompt:Xu(),ConfirmPrompt:Ku()}});var eo=v(Qu=>{"use strict";var ee=Qu,_f=Zu(),br=t=>t;function De(t,e,r={}){return new Promise((i,s)=>{let n=new _f[t](e),u=r.onAbort||br,a=r.onSubmit||br,o=r.onExit||br;n.on("state",e.onState||br),n.on("submit",c=>i(a(c))),n.on("exit",c=>i(o(c))),n.on("abort",c=>s(u(c)))})}ee.text=t=>De("TextPrompt",t);ee.password=t=>(t.style="password",ee.text(t));ee.invisible=t=>(t.style="invisible",ee.text(t));ee.number=t=>De("NumberPrompt",t);ee.date=t=>De("DatePrompt",t);ee.confirm=t=>De("ConfirmPrompt",t);ee.list=t=>{let e=t.separator||",";return De("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};ee.toggle=t=>De("TogglePrompt",t);ee.select=t=>De("SelectPrompt",t);ee.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return De("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};ee.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return De("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var Pf=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));ee.autocomplete=t=>(t.suggest=t.suggest||Pf,t.choices=[].concat(t.choices||[]),De("AutocompletePrompt",t))});var ao=v((B0,oo)=>{"use strict";function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function ro(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,u=!1,a;return{s:function(){r=r.call(t)},n:function(){var c=r.next();return n=c.done,c},e:function(c){u=!0,a=c},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(u)throw a}}}}function Bf(t,e){if(t){if(typeof t=="string")return io(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return io(t,e)}}function io(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r{};function Xe(){return Gi.apply(this,arguments)}function Gi(){return Gi=no(function*(t=[],{onSubmit:e=uo,onCancel:r=uo}={}){let i={},s=Xe._override||{};t=[].concat(t);let n,u,a,o,c,g,p=(function(){var T=no(function*(x,B,f=!1){if(!(!f&&x.validate&&x.validate(B)!==!0))return x.format?yield x.format(B,i):B});return function(B,f){return T.apply(this,arguments)}})();var m=Lf(t),A;try{for(m.s();!(A=m.n()).done;){u=A.value;var C=u;if(o=C.name,c=C.type,typeof c=="function"&&(c=yield c(n,ro({},i),u),u.type=c),!!c){for(let T in u){if(Mf.includes(T))continue;let x=u[T];u[T]=typeof x=="function"?yield x(n,ro({},i),g):x}if(g=u,typeof u.message!="string")throw new Error("prompt message is required");var S=u;if(o=S.name,c=S.type,Vi[c]===void 0)throw new Error(`prompt type (${c}) is not defined`);if(s[u.name]!==void 0&&(n=yield p(u,s[u.name]),n!==void 0)){i[o]=n;continue}try{n=Xe._injected?Ff(Xe._injected,u.initial):yield Vi[c](u),i[o]=n=yield p(u,n,!0),a=yield e(u,n,i)}catch{a=!(yield r(u,i))}if(a)return i}}}catch(T){m.e(T)}finally{m.f()}return i}),Gi.apply(this,arguments)}function Ff(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function qf(t){Xe._injected=(Xe._injected||[]).concat(t)}function $f(t){Xe._override=Object.assign({},t)}oo.exports=Object.assign(Xe,{prompt:Xe,prompts:Vi,inject:qf,override:$f})});var co=v((M0,lo)=>{"use strict";lo.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Dr=v((F0,ho)=>{"use strict";ho.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var go=v((q0,po)=>{"use strict";var Uf=Dr(),{erase:fo,cursor:jf}=V(),kf=t=>[...Uf(t)].length;po.exports=function(t,e){if(!e)return fo.line+jf.to(0);let r=0,i=t.split(/\r?\n/);for(let s of i)r+=1+Math.floor(Math.max(kf(s)-1,0)/e);return fo.lines(r)}});var Yi=v(($0,mo)=>{"use strict";var Mt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Xf={arrowUp:Mt.arrowUp,arrowDown:Mt.arrowDown,arrowLeft:Mt.arrowLeft,arrowRight:Mt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Vf=process.platform==="win32"?Xf:Mt;mo.exports=Vf});var Do=v((U0,bo)=>{"use strict";var ft=X(),rt=Yi(),Hi=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Gf=t=>Hi[t]||Hi.default,Ft=Object.freeze({aborted:ft.red(rt.cross),done:ft.green(rt.tick),exited:ft.yellow(rt.cross),default:ft.cyan("?")}),Yf=(t,e,r)=>e?Ft.aborted:r?Ft.exited:t?Ft.done:Ft.default,Hf=t=>ft.gray(t?rt.ellipsis:rt.pointerSmall),Wf=(t,e)=>ft.gray(t?e?rt.pointerSmall:"+":rt.line);bo.exports={styles:Hi,render:Gf,symbols:Ft,symbol:Yf,delimiter:Hf,item:Wf}});var Ao=v((j0,yo)=>{"use strict";var zf=Dr();yo.exports=function(t,e){let r=String(zf(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var wo=v((k0,Eo)=>{"use strict";Eo.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,u)=>(u.length+r.length>=i||n[n.length-1].length+u.length+1{m4.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var B1=C((Eq,p4)=>{p4.exports={action:S4(),clear:N4(),style:g4(),strip:H$(),figures:BY(),lines:h4(),wrap:u4(),entriesToDisplay:c4()}});var L1=C((Cq,s4)=>{var d4=_1("readline"),{action:rQ}=B1(),aQ=_1("events"),{beep:nQ,cursor:oQ}=l(),tQ=d();class l4 extends aQ{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=d4.createInterface({input:this.in,escapeCodeTimeout:50});if(d4.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=rQ(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(oQ.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(nQ)}render(){if(this.onRender(tQ),this.firstRender)this.firstRender=!1}}s4.exports=l4});var a4=C((wq,r4)=>{var B$=d(),eQ=L1(),{erase:$5,cursor:N0}=l(),{style:UY,clear:OY,lines:Y5,figures:Z5}=B1();class i4 extends eQ{constructor($={}){super($);this.transform=UY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=OY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=B$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(N0.down(Y5(this.outputError,this.out.columns)-1)+OY(this.outputError,this.out.columns));this.out.write(OY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[UY.symbol(this.done,this.aborted),B$.bold(this.msg),UY.delimiter(this.done),this.red?B$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":Z5.pointerSmall} ${B$.red().italic(Y)}`,"");this.out.write($5.line+N0.to(0)+this.outputText+N0.save+this.outputError+N0.restore+N0.move(this.cursorOffset,0))}}r4.exports=i4});var $8=C((jq,e4)=>{var x1=d(),J5=L1(),{style:n4,clear:o4,figures:F$,wrap:K5,entriesToDisplay:z5}=B1(),{cursor:Q5}=l();class t4 extends J5{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o4("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(Q5.hide);else this.out.write(o4(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=z5(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[n4.symbol(this.done,this.aborted),x1.bold(this.msg),n4.delimiter(!1),this.done?this.selection.title:this.selection.disabled?x1.yellow(this.warn):x1.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let Z=$;Z0)K=F$.arrowUp;else if(Z===Y-1&&Y=this.out.columns||Q.description.split(/\r?\n/).length>1)z=` -`+K5(Q.description,{margin:3,width:this.out.columns})}this.outputText+=`${K} ${J}${x1.gray(z)} -`}}this.out.write(this.outputText)}}e4.exports=t4});var z8=C((kq,K8)=>{var U$=d(),G5=L1(),{style:Y8,clear:V5}=B1(),{cursor:Z8,erase:W5}=l();class J8 extends G5{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`)}});var Co=v((X0,vo)=>{"use strict";vo.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var de=v((V0,xo)=>{"use strict";xo.exports={action:co(),clear:go(),style:Do(),strip:Dr(),figures:Yi(),lines:Ao(),wrap:wo(),entriesToDisplay:Co()}});var Pe=v((G0,So)=>{"use strict";var To=Se("readline"),{action:Kf}=de(),Jf=Se("events"),{beep:Zf,cursor:Qf}=V(),ep=X(),Wi=class extends Jf{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=To.createInterface({input:this.in,escapeCodeTimeout:50});To.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,u)=>{let a=Kf(u,i);a===!1?this._&&this._(n,u):typeof this[a]=="function"?this[a](u):this.bell()};this.close=()=>{this.out.write(Qf.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Zf)}render(){this.onRender(ep),this.firstRender&&(this.firstRender=!1)}};So.exports=Wi});var Oo=v((Y0,No)=>{var yr=X(),tp=Pe(),{erase:rp,cursor:qt}=V(),{style:zi,clear:Ki,lines:ip,figures:sp}=de(),Ji=class extends tp{constructor(e={}){super(e),this.transform=zi.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=Ki("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=yr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(qt.down(ip(this.outputError,this.out.columns)-1)+Ki(this.outputError,this.out.columns)),this.out.write(Ki(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[zi.symbol(this.done,this.aborted),yr.bold(this.msg),zi.delimiter(this.done),this.red?yr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` +`).reduce((e,r,i)=>e+` +${i?" ":sp.pointerSmall} ${yr.red().italic(r)}`,"")),this.out.write(rp.line+qt.to(0)+this.outputText+qt.save+this.outputError+qt.restore+qt.move(this.cursorOffset,0)))}};No.exports=Ji});var Ro=v((H0,Po)=>{"use strict";var Re=X(),np=Pe(),{style:Io,clear:_o,figures:Ar,wrap:up,entriesToDisplay:op}=de(),{cursor:ap}=V(),Zi=class extends np{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=_o("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(ap.hide):this.out.write(_o(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=op(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Io.symbol(this.done,this.aborted),Re.bold(this.msg),Io.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Re.yellow(this.warn):Re.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let i=e;i0?n=Ar.arrowUp:i===r-1&&r=this.out.columns||a.description.split(/\r?\n/).length>1)&&(u=` +`+up(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${n} ${s}${Re.gray(u)} +`}}this.out.write(this.outputText)}};Po.exports=Zi});var Fo=v((W0,Mo)=>{var Er=X(),lp=Pe(),{style:Lo,clear:cp}=de(),{cursor:Bo,erase:hp}=V(),Qi=class extends lp{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Z8.hide);else this.out.write(V5(this.outputText,this.out.columns));super.render(),this.outputText=[Y8.symbol(this.done,this.aborted),U$.bold(this.msg),Y8.delimiter(this.done),this.value?this.inactive:U$.cyan().underline(this.inactive),U$.gray("/"),this.value?U$.cyan().underline(this.active):this.active].join(" "),this.out.write(W5.line+Z8.to(0)+this.outputText)}}K8.exports=J8});var A1=C((Xq,Q8)=>{class O${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof O$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof O$)}toString(){return String(this.date)}}Q8.exports=O$});var W8=C((Iq,V8)=>{var q5=A1();class G8 extends q5{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}V8.exports=G8});var B8=C((_q,H8)=>{var H5=A1(),B5=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class q8 extends H5{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+B5($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}H8.exports=q8});var O8=C((Dq,U8)=>{var F5=A1();class F8 extends F5{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}U8.exports=F8});var A8=C((Tq,P8)=>{var U5=A1();class R8 extends U5{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}P8.exports=R8});var w8=C((Sq,C8)=>{var O5=A1();class E8 extends O5{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}C8.exports=E8});var X8=C((Mq,k8)=>{var R5=A1();class j8 extends R5{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}k8.exports=j8});var D8=C((Lq,_8)=>{var P5=A1();class I8 extends P5{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}_8.exports=I8});var M8=C((xq,S8)=>{var A5=A1();class T8 extends A5{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}S8.exports=T8});var x8=C((Nq,L8)=>{L8.exports={DatePart:A1(),Meridiem:W8(),Day:B8(),Hours:O8(),Milliseconds:A8(),Minutes:w8(),Month:X8(),Seconds:D8(),Year:M8()}});var u8=C((yq,v8)=>{var RY=d(),E5=L1(),{style:N8,clear:y8,figures:C5}=B1(),{erase:w5,cursor:b8}=l(),{DatePart:g8,Meridiem:j5,Day:k5,Hours:X5,Milliseconds:I5,Minutes:_5,Month:D5,Seconds:T5,Year:S5}=x8(),M5=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,f8={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new k5($),3:($)=>new D5($),4:($)=>new S5($),5:($)=>new j5($),6:($)=>new X5($),7:($)=>new _5($),8:($)=>new T5($),9:($)=>new I5($)},L5={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class h8 extends E5{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(L5,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=y8("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=M5.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in f8?f8[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof g8)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof g8)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(b8.hide);else this.out.write(y8(this.outputText,this.out.columns));if(super.render(),this.outputText=[N8.symbol(this.done,this.aborted),RY.bold(this.msg),N8.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?RY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":C5.pointerSmall} ${RY.red().italic(Y)}`,"");this.out.write(w5.line+b8.to(0)+this.outputText)}}v8.exports=h8});var l8=C((bq,d8)=>{var R$=d(),x5=L1(),{cursor:P$,erase:N5}=l(),{style:PY,figures:y5,clear:m8,lines:b5}=B1(),g5=/[0-9]/,AY=($)=>$!==void 0,c8=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class p8 extends x5{constructor($={}){super($);this.transform=PY.render($.style),this.msg=$.message,this.initial=AY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=AY($.min)?$.min:-1/0,this.max=AY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=R$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${c8($,this.round)}`),this._value=c8($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||g5.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let $=this.value;this.value=$!==""?$:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` -${Z?" ":y5.pointerSmall} ${R$.red().italic(Y)}`,"");this.out.write(N5.line+P$.to(0)+this.outputText+P$.save+this.outputError+P$.restore)}}d8.exports=p8});var EY=C((gq,a8)=>{var E1=d(),{cursor:f5}=l(),h5=L1(),{clear:s8,figures:p1,style:i8,wrap:v5,entriesToDisplay:u5}=B1();class r8 extends h5{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=s8("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Bo.hide):this.out.write(cp(this.outputText,this.out.columns)),super.render(),this.outputText=[Lo.symbol(this.done,this.aborted),Er.bold(this.msg),Lo.delimiter(this.done),this.value?this.inactive:Er.cyan().underline(this.inactive),Er.gray("/"),this.value?Er.cyan().underline(this.active):this.active].join(" "),this.out.write(hp.line+Bo.to(0)+this.outputText))}};Mo.exports=Qi});var ye=v((z0,qo)=>{"use strict";var es=class t{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof t)}toString(){return String(this.date)}};qo.exports=es});var Uo=v((K0,$o)=>{"use strict";var dp=ye(),ts=class extends dp{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};$o.exports=ts});var ko=v((J0,jo)=>{"use strict";var fp=ye(),pp=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),rs=class extends fp{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pp(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};jo.exports=rs});var Vo=v((Z0,Xo)=>{"use strict";var gp=ye(),is=class extends gp{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Xo.exports=is});var Yo=v((Q0,Go)=>{"use strict";var mp=ye(),ss=class extends mp{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Go.exports=ss});var Wo=v((eb,Ho)=>{"use strict";var bp=ye(),ns=class extends bp{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Ho.exports=ns});var Ko=v((tb,zo)=>{"use strict";var Dp=ye(),us=class extends Dp{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};zo.exports=us});var Zo=v((rb,Jo)=>{"use strict";var yp=ye(),os=class extends yp{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};Jo.exports=os});var ea=v((ib,Qo)=>{"use strict";var Ap=ye(),as=class extends Ap{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};Qo.exports=as});var ra=v((sb,ta)=>{"use strict";ta.exports={DatePart:ye(),Meridiem:Uo(),Day:ko(),Hours:Vo(),Milliseconds:Yo(),Minutes:Wo(),Month:Ko(),Seconds:Zo(),Year:ea()}});var la=v((nb,aa)=>{"use strict";var ls=X(),Ep=Pe(),{style:ia,clear:sa,figures:wp}=de(),{erase:vp,cursor:na}=V(),{DatePart:ua,Meridiem:Cp,Day:xp,Hours:Tp,Milliseconds:Sp,Minutes:Np,Month:Op,Seconds:Ip,Year:_p}=ra(),Pp=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,oa={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new xp(t),3:t=>new Op(t),4:t=>new _p(t),5:t=>new Cp(t),6:t=>new Tp(t),7:t=>new Np(t),8:t=>new Ip(t),9:t=>new Sp(t)},Rp={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},cs=class extends Ep{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(Rp,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=sa("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=Pp.exec(e);){let s=r.shift(),n=r.findIndex(u=>u!=null);this.parts.push(n in oa?oa[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof ua)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof ua)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(na.hide):this.out.write(sa(this.outputText,this.out.columns)),super.render(),this.outputText=[ia.symbol(this.done,this.aborted),ls.bold(this.msg),ia.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?ls.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` +`).reduce((e,r,i)=>e+` +${i?" ":wp.pointerSmall} ${ls.red().italic(r)}`,"")),this.out.write(vp.line+na.to(0)+this.outputText))}};aa.exports=cs});var fa=v((ub,da)=>{var wr=X(),Lp=Pe(),{cursor:vr,erase:Bp}=V(),{style:hs,figures:Mp,clear:ca,lines:Fp}=de(),qp=/[0-9]/,ds=t=>t!==void 0,ha=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},fs=class extends Lp{constructor(e={}){super(e),this.transform=hs.render(e.style),this.msg=e.message,this.initial=ds(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=ds(e.min)?e.min:-1/0,this.max=ds(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=wr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${ha(e,this.round)}`),this._value=ha(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||qp.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuee+` +${i?" ":Mp.pointerSmall} ${wr.red().italic(r)}`,"")),this.out.write(Bp.line+vr.to(0)+this.outputText+vr.save+this.outputError+vr.restore))}};da.exports=fs});var gs=v((ob,ma)=>{"use strict";var Ae=X(),{cursor:$p}=V(),Up=Pe(),{clear:pa,figures:Ve,style:ga,wrap:jp,entriesToDisplay:kp}=de(),ps=class extends Up{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=pa("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.lengthe.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` Instructions: - ${p1.arrowUp}/${p1.arrowDown}: Highlight option - ${p1.arrowLeft}/${p1.arrowRight}/[space]: Toggle selection + ${Ve.arrowUp}/${Ve.arrowDown}: Highlight option + ${Ve.arrowLeft}/${Ve.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?E1.green(p1.radioOn):p1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?E1.gray().underline(Y.title):E1.strikethrough().gray(Y.title);else if(z=$===Z?E1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` -`+v5(Y.description,{margin:K.length,width:this.out.columns})}return K+z+E1.gray(Q||"")}paginateOptions($){if($.length===0)return E1.red("No matches for this query.");let{startIndex:Y,endIndex:Z}=u5(this.cursor,$.length,this.optionsPerPage),J,K=[];for(let z=Y;z0)J=p1.arrowUp;else if(z===Z-1&&Z<$.length)J=p1.arrowDown;else J=" ";K.push(this.renderOption(this.cursor,$[z],z,J))}return` -`+K.join(` -`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[E1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(E1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(f5.hide);super.render();let $=[i8.symbol(this.done,this.aborted),E1.bold(this.msg),i8.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=E1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=s8($,this.out.columns)}}a8.exports=r8});var YJ=C((fq,$J)=>{var y0=d(),m5=L1(),{erase:c5,cursor:n8}=l(),{style:CY,clear:o8,figures:wY,wrap:p5,entriesToDisplay:d5}=B1(),t8=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),l5=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),s5=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class e8 extends m5{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:s5($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=CY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=o8("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=t8(this.suggestions,$);else this.value=this.fallback.value;this.fire()}async complete($){let Y=this.completing=this.suggest(this.input,this.choices),Z=await Y;if(this.completing!==Y)return;this.suggestions=Z.map((K,z,Q)=>({title:l5(Q,z),value:t8(Q,z),description:K.description})),this.completing=!1;let J=Math.max(Z.length-1,0);this.moveSelect(Math.min(J,this.select)),$&&$()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` +`:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?Ae.green(Ve.radioOn):Ve.radioOff)+" "+s+" ",u,a;return r.disabled?u=e===i?Ae.gray().underline(r.title):Ae.strikethrough().gray(r.title):(u=e===i?Ae.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+u.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=` +`+jp(r.description,{margin:n.length,width:this.out.columns})))),n+u+Ae.gray(a||"")}paginateOptions(e){if(e.length===0)return Ae.red("No matches for this query.");let{startIndex:r,endIndex:i}=kp(this.cursor,e.length,this.optionsPerPage),s,n=[];for(let u=r;u0?s=Ve.arrowUp:u===i-1&&ir.selected).map(r=>r.title).join(", ");let e=[Ae.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(Ae.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write($p.hide),super.render();let e=[ga.symbol(this.done,this.aborted),Ae.bold(this.msg),ga.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Ae.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=pa(e,this.out.columns)}};ma.exports=ps});var Ea=v((ab,Aa)=>{"use strict";var $t=X(),Xp=Pe(),{erase:Vp,cursor:ba}=V(),{style:ms,clear:Da,figures:bs,wrap:Gp,entriesToDisplay:Yp}=de(),ya=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),Hp=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),Wp=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Ds=class extends Xp{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:Wp(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=ms.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Da("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=ya(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((n,u,a)=>({title:Hp(a,u),value:ya(a,u),description:n.description})),this.completing=!1;let s=Math.max(i.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor);this.input=`${Z}${$}${J}`,this.cursor=Z.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let $=this.input.slice(0,this.cursor-1),Y=this.input.slice(this.cursor);this.input=`${$}${Y}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?wY.arrowUp:J?wY.arrowDown:" ",Q=Y?y0.cyan().underline($.title):$.title;if(z=(Y?y0.cyan(wY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` -`+p5($.description,{margin:3,width:this.out.columns})}return z+" "+Q+y0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n8.hide);else this.out.write(o8(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=d5(this.select,this.choices.length,this.limit);if(this.outputText=[CY.symbol(this.done,this.aborted,this.exited),y0.bold(this.msg),CY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let Z=this.suggestions.slice($,Y).map((J,K)=>this.renderOption(J,this.select===K+$,K===0&&$>0,K+$===Y-1&&Y=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,u=i?bs.arrowUp:s?bs.arrowDown:" ",a=r?$t.cyan().underline(e.title):e.title;return u=(r?$t.cyan(bs.pointer)+" ":" ")+u,e.description&&(n=` - ${e.description}`,(u.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=` +`+Gp(e.description,{margin:3,width:this.out.columns}))),u+" "+a+$t.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(ba.hide):this.out.write(Da(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=Yp(this.select,this.choices.length,this.limit);if(this.outputText=[ms.symbol(this.done,this.aborted,this.exited),$t.bold(this.msg),ms.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(e,r).map((s,n)=>this.renderOption(s,this.select===n+e,n===0&&e>0,n+e===r-1&&r{var N1=d(),{cursor:i5}=l(),r5=EY(),{clear:ZJ,style:JJ,figures:q0}=B1();class KJ extends r5{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=ZJ("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`+(i||$t.gray(this.fallback.title))}this.out.write(Vp.line+ba.to(0)+this.outputText)}};Aa.exports=Ds});var xa=v((lb,Ca)=>{"use strict";var Le=X(),{cursor:zp}=V(),Kp=gs(),{clear:wa,style:va,figures:pt}=de(),ys=class extends Kp{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=wa("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` Instructions: - ${q0.arrowUp}/${q0.arrowDown}: Highlight option - ${q0.arrowLeft}/${q0.arrowRight}/[space]: Toggle selection + ${pt.arrowUp}/${pt.arrowDown}: Highlight option + ${pt.arrowLeft}/${pt.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer -`}return""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:N1.gray("Enter something to filter")} -`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?N1.gray().underline(Y.title):N1.strikethrough().gray(Y.title);else J=$===Z?N1.cyan().underline(Y.title):Y.title;return(Y.selected?N1.green(q0.radioOn):q0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[N1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(N1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i5.hide);super.render();let $=[JJ.symbol(this.done,this.aborted),N1.bold(this.msg),JJ.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=N1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=ZJ($,this.out.columns)}}zJ.exports=KJ});var BJ=C((vq,HJ)=>{var GJ=d(),a5=L1(),{style:VJ,clear:n5}=B1(),{erase:o5,cursor:WJ}=l();class qJ extends a5{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`:""}renderCurrentInput(){return` +Filtered results for: ${this.inputValue?this.inputValue:Le.gray("Enter something to filter")} +`}renderOption(e,r,i){let s;return r.disabled?s=e===i?Le.gray().underline(r.title):Le.strikethrough().gray(r.title):s=e===i?Le.cyan().underline(r.title):r.title,(r.selected?Le.green(pt.radioOn):pt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[Le.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(Le.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(zp.hide),super.render();let e=[va.symbol(this.done,this.aborted),Le.bold(this.msg),va.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Le.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=wa(e,this.out.columns)}};Ca.exports=ys});var Ia=v((cb,Oa)=>{var Ta=X(),Jp=Pe(),{style:Sa,clear:Zp}=de(),{erase:Qp,cursor:Na}=V(),As=class extends Jp{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(WJ.hide);else this.out.write(n5(this.outputText,this.out.columns));super.render(),this.outputText=[VJ.symbol(this.done,this.aborted),GJ.bold(this.msg),VJ.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:GJ.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(o5.line+WJ.to(0)+this.outputText)}}HJ.exports=qJ});var UJ=C((uq,FJ)=>{FJ.exports={TextPrompt:a4(),SelectPrompt:$8(),TogglePrompt:z8(),DatePrompt:u8(),NumberPrompt:l8(),MultiselectPrompt:EY(),AutocompletePrompt:YJ(),AutocompleteMultiselectPrompt:QJ(),ConfirmPrompt:BJ()}});var RJ=C((OJ)=>{var Y1=OJ,t5=UJ(),A$=($)=>$;function C1($,Y,Z={}){return new Promise((J,K)=>{let z=new t5[$](Y),Q=Z.onAbort||A$,W=Z.onSubmit||A$,G=Z.onExit||A$;z.on("state",Y.onState||A$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}Y1.text=($)=>C1("TextPrompt",$);Y1.password=($)=>{return $.style="password",Y1.text($)};Y1.invisible=($)=>{return $.style="invisible",Y1.text($)};Y1.number=($)=>C1("NumberPrompt",$);Y1.date=($)=>C1("DatePrompt",$);Y1.confirm=($)=>C1("ConfirmPrompt",$);Y1.list=($)=>{let Y=$.separator||",";return C1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};Y1.toggle=($)=>C1("TogglePrompt",$);Y1.select=($)=>C1("SelectPrompt",$);Y1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};Y1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var e5=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));Y1.autocomplete=($)=>{return $.suggest=$.suggest||e5,$.choices=[].concat($.choices||[]),C1("AutocompletePrompt",$)}});var EJ=C((cq,AJ)=>{var jY=RJ(),$G=["suggest","format","onState","validate","onRender","type"],PJ=()=>{};async function d1($=[],{onSubmit:Y=PJ,onCancel:Z=PJ}={}){let J={},K=d1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=async(P,w,I=!1)=>{if(!I&&P.validate&&P.validate(w)!==!0)return;return P.format?await P.format(w,J):w};for(Q of $){if({name:G,type:q}=Q,typeof q==="function")q=await q(z,{...J},Q),Q.type=q;if(!q)continue;for(let P in Q){if($G.includes(P))continue;let w=Q[P];Q[P]=typeof w==="function"?await w(z,{...J},H):w}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");if({name:G,type:q}=Q,jY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=await R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=d1._injected?YG(d1._injected,Q.initial):await jY[q](Q),J[G]=z=await R(Q,z,!0),W=await Y(Q,z,J)}catch(P){W=!await Z(Q,J)}if(W)return J}return J}function YG($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function ZG($){d1._injected=(d1._injected||[]).concat($)}function JG($){d1._override=Object.assign({},$)}AJ.exports=Object.assign(d1,{prompt:d1,prompts:jY,inject:ZG,override:JG})});var wJ=C((pq,CJ)=>{function KG($){$=(Array.isArray($)?$:$.split(".")).map(Number);let Y=0,Z=process.versions.node.split(".").map(Number);for(;Y<$.length;Y++){if(Z[Y]>$[Y])return!1;if($[Y]>Z[Y])return!0}return!1}CJ.exports=KG("8.6.0")?D4():EJ()});var _J=C((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.isPBXFileReference=XJ.isPBXBuildFile=XJ.createReferenceList=void 0;function GG($){let Z=$?.objects??{},J={};function K(G){for(let[q,H]of Object.entries(Z))if(H.buildConfigurationList===G){let R=H.name??H.path??H.productName;if(!R){if(R=Z[H.targets?.[0]]?.productName??Z[H.targets?.[0]]?.name,!R)R=Object.values(Z).find((w)=>w.isa==="PBXContainerItemProxy"&&w.containerPortal===q)?.remoteInfo}return`Build configuration list for ${H.isa} "${R}"`}return"Build configuration list for [unknown]"}function z(G){let q=Object.values(Z).find((H)=>H.files?.includes(G));return q?jJ(q):null}function Q(G,q){let H=z(G)??"[missing build phase]",R=q.fileRef??q.productRef;if(!R)return`[unknown] in ${H}`;return`${W(R,Z[R])} in ${H}`}function W(G,q){if(!q?.isa)return null;if(G in J)return J[G];if(kJ(q))J[G]=Q(G,q);else if(FG(q))J[G]=K(G);else if(HG(q))if(q.repositoryURL)J[G]=`${q.isa} "${VG(q.repositoryURL)}"`;else J[G]=q.isa;else if(BG(q))if(q.relativePath)J[G]=`${q.isa} "${q.relativePath}"`;else J[G]=q.isa;else if(WG(q))J[G]="Project object";else if(q.isa?.endsWith("BuildPhase"))J[G]=jJ(q)??"";else if(q.isa==="PBXGroup"&&q.name===void 0&&q.path===void 0)J[G]="";else J[G]=q.name??q.productName??q.path??q.isa??null;return J[G]??null}return Object.entries(Z).forEach(([G,q])=>{if(!W(G,q));}),J}XJ.createReferenceList=GG;function VG($){try{let Y=new URL($);if(Y.hostname==="github.com")return Y.pathname.split("/").pop()}catch{}return $}function WG($){return $?.isa==="PBXProject"}function kJ($){return $?.isa==="PBXBuildFile"}XJ.isPBXBuildFile=kJ;function qG($){return $?.isa==="PBXFileReference"}XJ.isPBXFileReference=qG;function HG($){return $?.isa==="XCRemoteSwiftPackageReference"}function BG($){return $?.isa==="XCLocalSwiftPackageReference"}function FG($){return $?.isa==="XCConfigurationList"}function jJ($){return $.name??UG($.isa)}function UG($){return $.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var MJ=C((TJ)=>{Object.defineProperty(TJ,"__esModule",{value:!0});TJ.Writer=void 0;var XY=_J(),PG={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':"\\\"","\\":"\\\\","\x00":"\\U0000","\x01":"\\U0001","\x02":"\\U0002","\x03":"\\U0003","\x04":"\\U0004","\x05":"\\U0005","\x06":"\\U0006","\x0E":"\\U000e","\x0F":"\\U000f","\x10":"\\U0010","\x11":"\\U0011","\x12":"\\U0012","\x13":"\\U0013","\x14":"\\U0014","\x15":"\\U0015","\x16":"\\U0016","\x17":"\\U0017","\x18":"\\U0018","\x19":"\\U0019","\x1A":"\\U001a","\x1B":"\\U001b","\x1C":"\\U001c","\x1D":"\\U001d","\x1E":"\\U001e","\x1F":"\\U001f"},AG=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function EG($){return String($).replace(AG,(Y)=>PG[Y]||Y)}var g0=` -`;try{g0=_1("os").EOL}catch{}function IY($){return typeof $==="object"&&$!==null&&!($ instanceof Buffer)}function z1($){if($=EG($),/^[\w_$/:.]+$/.test($))return $;return`"${$}"`}function _Y($){return`<${$.toString("hex").toUpperCase()}>`}function CG($){let Y={};return Object.entries($).forEach(([Z,J])=>{if(!Y[J.isa])Y[J.isa]=[];Y[J.isa].push([Z,J])}),Object.entries(Y).sort()}class DJ{pad($){let Y=this.options.tab??"\t";return $>0?Y+this.pad($-1):""}constructor($,Y={}){this.project=$,this.options=Y,this.indent=0,this.contents="",this.comments={},this.comments=(0,XY.createReferenceList)($),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println($){this.contents+=this.pad(this.indent),this.contents+=$,this.contents+=g0}write($){this.contents+=this.pad(this.indent),this.contents+=$}printAssignLn($,Y){return this.println($+" = "+Y+";")}flush($){let Y=this.indent;this.indent=0,this.write($),this.indent=Y}writeShebang(){let $=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${$}`)}formatId($,Y=this.comments[$]){if(Y)return`${$} /* ${Y} */`;return z1($)}writeProject(){if(this.println("{"),this.project)this.indent++,this.writeObject(this.project,!0),this.indent--;this.println("}")}keyHasFloatValue($){return $===$.toUpperCase()&&($.endsWith("SWIFT_VERSION")||$.endsWith("MARKETING_VERSION")||$.endsWith("_DEPLOYMENT_TARGET"))}writeObject($,Y){Object.entries($).sort(([Z],[J])=>{if(Z==="isa")return-1;if(J==="isa")return 1;return ZJ?1:0}).forEach(([Z,J])=>{if(this.options.skipNullishValues&&J==null)return;else if(J instanceof Buffer)this.printAssignLn(z1(Z),_Y(J));else if(Array.isArray(J))this.writeArray(Z,J);else if(IY(J)){if(!Y&&!Object.keys(J).length){this.println(z1(Z)+" = {};");return}if(this.println(z1(Z)+" = {"),this.indent++,Y&&Z==="objects")this.writePbxObjects(J);else this.writeObject(J,Y);this.indent--,this.println("};")}else if(typeof J==="number"){let K=this.keyHasFloatValue(Z)&&Number.isInteger(J)?`${J}.0`:J;this.printAssignLn(z1(Z),z1(K))}else this.printAssignLn(z1(Z),Z==="remoteGlobalIDString"||Z==="TestTargetID"?z1(J):this.formatId(J))})}writePbxObjects($){CG($).forEach(([Y,Z])=>{this.flush(g0),this.flush(`/* Begin ${Y} section */`+g0),Z.sort(([J],[K])=>J.localeCompare(K)).forEach(([J,K])=>this.writeObjectInclusive(J,K)),this.flush(`/* End ${Y} section */`+g0)})}writeArray($,Y){this.println(z1($)+" = ("),this.indent++,Y.forEach((Z)=>{if(Z instanceof Buffer)this.println(_Y(Z)+",");else if(Z==null)return;else if(IY(Z)){if(this.println("{"),Z)this.indent++,this.writeObject(Z),this.indent--;this.println("},")}else this.println(this.formatId(String(Z))+",")}),this.indent--,this.println(");")}writeObjectInclusive($,Y){if((0,XY.isPBXBuildFile)(Y)||(0,XY.isPBXFileReference)(Y))return this.writeObjectWithoutIndent($,Y);this.println(this.formatId($)+" = {"),this.indent++,this.writeObject(Y),this.indent--,this.println("};")}writeObjectWithoutIndent($,Y){let Z=[],J=(K,z)=>{Z.push(this.formatId(K)+" = {"),Object.entries(z).sort(([Q],[W])=>{if(Q==="isa")return-1;if(W==="isa")return 1;return QW?1:0}).forEach(([Q,W])=>{if(this.options.skipNullishValues&&W==null)return;else if(W instanceof Buffer)Z.push(z1(Q)+" = "+_Y(W)+"; ");else if(Array.isArray(W))Z.push(z1(Q)+" = ("),W.forEach((G)=>Z.push(z1(G)+", ")),Z.push("); ");else if(IY(W))J(Q,W);else Z.push(z1(Q)+" = "+this.formatId(W)+"; ")}),Z.push("}; ")};J($,Y),this.println(Z.join("").trim())}}TJ.Writer=DJ});var vJ=C((fJ)=>{Object.defineProperty(fJ,"__esModule",{value:!0});fJ.parse=fJ.Parser=void 0;var wG={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},jG=32,kG=9,TY=10,XG=13,LJ=123,IG=125,xJ=40,_G=41,DG=59,TG=44,SG=61,NJ=34,yJ=39,bJ=92,DY=47,gJ=42,MG=60,LG=62,xG={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},H0=new Uint8Array(256);H0[jG]=1;H0[kG]=1;H0[TY]=1;H0[XG]=1;var w1=new Uint8Array(256);for(let $=65;$<=90;$++)w1[$]=1;for(let $=97;$<=122;$++)w1[$]=1;for(let $=48;$<=57;$++)w1[$]=1;w1[95]=1;w1[36]=1;w1[47]=1;w1[58]=1;w1[46]=1;w1[45]=1;var f0=new Uint8Array(256);for(let $=48;$<=57;$++)f0[$]=1;for(let $=65;$<=70;$++)f0[$]=1;for(let $=97;$<=102;$++)f0[$]=1;var SY=new Uint8Array(256);for(let $=48;$<=55;$++)SY[$]=1;var C$=new Uint8Array(256);for(let $=48;$<=57;$++)C$[$]=1;class MY{constructor($){this.pos=0,this.text=$,this.len=$.length}parse(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===LJ)return this.parseObject();else if($===xJ)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){while(this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===IG)return this.pos++,$;let Z=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==SG)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),$[Z]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==DG)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let $=[];while(!0){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===_G)return this.pos++,$;if($.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===TG)this.pos++}}parseValue(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===LJ)return this.parseObject();if($===xJ)return this.parseArray();if($===MG)return this.parseDataLiteral();if($===NJ||$===yJ)return this.parseQuotedString();return this.parseStringLiteral()}parseIdentifierAsString(){let $=this.text.charCodeAt(this.pos);if($===NJ||$===yJ)return this.parseQuotedString();return this.parseStringLiteralRaw()}parseStringLiteralRaw(){let $=this.pos;while(this.pos1)return $;let W=parseInt($,10);if(Number.isSafeInteger(W))return W;return $}let K=!1,z=!0,Q=!1;for(let W=0;W=this.len)throw this.error("Unterminated string");let J=this.text.slice(Y,this.pos);return this.pos++,this.unescapeString(J)}unescapeString($){let Y=[],Z=0,J=$.length;while(Z=128?wG[q]||q:q;Y.push(String.fromCharCode(H)),Z=G;continue}Y.push($[Z],$[Z+1]),Z+=2}else Y.push($[Z]),Z++;return Y.join("")}isHexString($){if($.length!==4)return!1;for(let Y=0;Y<4;Y++)if(!f0[$.charCodeAt(Y)])return!1;return!0}parseDataLiteral(){this.pos++;let $=[];while(this.pos{Object.defineProperty(cJ,"__esModule",{value:!0});cJ.SubFolder=cJ.ProxyType=cJ.ISA=void 0;var bG;(function($){$.PBXBuildFile="PBXBuildFile",$.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",$.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",$.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",$.PBXHeadersBuildPhase="PBXHeadersBuildPhase",$.PBXResourcesBuildPhase="PBXResourcesBuildPhase",$.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",$.PBXSourcesBuildPhase="PBXSourcesBuildPhase",$.PBXRezBuildPhase="PBXRezBuildPhase",$.PBXContainerItemProxy="PBXContainerItemProxy",$.PBXFileReference="PBXFileReference",$.PBXGroup="PBXGroup",$.PBXVariantGroup="PBXVariantGroup",$.XCVersionGroup="XCVersionGroup",$.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",$.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",$.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",$.PBXNativeTarget="PBXNativeTarget",$.PBXAggregateTarget="PBXAggregateTarget",$.PBXLegacyTarget="PBXLegacyTarget",$.PBXProject="PBXProject",$.PBXTargetDependency="PBXTargetDependency",$.XCBuildConfiguration="XCBuildConfiguration",$.XCConfigurationList="XCConfigurationList",$.PBXBuildRule="PBXBuildRule",$.PBXReferenceProxy="PBXReferenceProxy",$.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",$.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",$.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(bG=cJ.ISA||(cJ.ISA={}));var gG;(function($){$[$.targetReference=1]="targetReference",$[$.reference=2]="reference"})(gG=cJ.ProxyType||(cJ.ProxyType={}));var fG;(function($){$[$.absolutePath=0]="absolutePath",$[$.productsDirectory=16]="productsDirectory",$[$.wrapper=1]="wrapper",$[$.executables=6]="executables",$[$.resources=7]="resources",$[$.javaResources=15]="javaResources",$[$.frameworks=10]="frameworks",$[$.sharedFrameworks=11]="sharedFrameworks",$[$.sharedSupport=12]="sharedSupport",$[$.plugins=13]="plugins"})(fG=cJ.SubFolder||(cJ.SubFolder={}))});var dJ=C((F1)=>{var hG=F1&&F1.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),vG=F1&&F1.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))hG(Y,$,Z)};Object.defineProperty(F1,"__esModule",{value:!0});F1.build=F1.parse=void 0;var uG=MJ(),mG=vJ();Object.defineProperty(F1,"parse",{enumerable:!0,get:function(){return mG.parse}});function cG($){return new uG.Writer($).getResults()}F1.build=cG;vG(pJ(),F1)});var h0=C((dG)=>{function pG($,Y,Z){if(Z===void 0)Z=Array.prototype;if($&&typeof Z.find==="function")return Z.find.call($,Y);for(var J=0;J<$.length;J++)if(Object.prototype.hasOwnProperty.call($,J)){var K=$[J];if(Y.call(void 0,K,J,$))return K}}function xY($,Y){if(Y===void 0)Y=Object;return Y&&typeof Y.freeze==="function"?Y.freeze($):$}var lJ=xY({HTML:"text/html",isHTML:function($){return $===lJ.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),sJ=xY({HTML:"http://www.w3.org/1999/xhtml",isHTML:function($){return $===sJ.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});dG.find=pG;dG.freeze=xY;dG.MIME_TYPE=lJ;dG.NAMESPACE=sJ});var pY=C((V2)=>{var $6=h0(),j1=$6.find,v0=$6.NAMESPACE;function aG($){return $!==""}function nG($){return $?$.split(/[\t\n\f\r ]+/).filter(aG):[]}function oG($,Y){if(!$.hasOwnProperty(Y))$[Y]=!0;return $}function iJ($){if(!$)return[];var Y=nG($);return Object.keys(Y.reduce(oG,{}))}function tG($){return function(Y){return $&&$.indexOf(Y)!==-1}}function m0($,Y){for(var Z in $)if(Object.prototype.hasOwnProperty.call($,Z))Y[Z]=$[Z]}function J1($,Y){var Z=$.prototype;if(!(Z instanceof Y)){let K=function(){};var J=K;K.prototype=Y.prototype,K=new K,m0(Z,K),$.prototype=Z=K}if(Z.constructor!=$){if(typeof $!="function")console.error("unknown Class:"+$);Z.constructor=$}}var K1={},U1=K1.ELEMENT_NODE=1,F0=K1.ATTRIBUTE_NODE=2,w$=K1.TEXT_NODE=3,Y6=K1.CDATA_SECTION_NODE=4,Z6=K1.ENTITY_REFERENCE_NODE=5,eG=K1.ENTITY_NODE=6,J6=K1.PROCESSING_INSTRUCTION_NODE=7,K6=K1.COMMENT_NODE=8,z6=K1.DOCUMENT_NODE=9,Q6=K1.DOCUMENT_TYPE_NODE=10,g1=K1.DOCUMENT_FRAGMENT_NODE=11,$2=K1.NOTATION_NODE=12,o={},r={},oq=o.INDEX_SIZE_ERR=(r[1]="Index size error",1),tq=o.DOMSTRING_SIZE_ERR=(r[2]="DOMString size error",2),Z1=o.HIERARCHY_REQUEST_ERR=(r[3]="Hierarchy request error",3),eq=o.WRONG_DOCUMENT_ERR=(r[4]="Wrong document",4),$H=o.INVALID_CHARACTER_ERR=(r[5]="Invalid character",5),YH=o.NO_DATA_ALLOWED_ERR=(r[6]="No data allowed",6),ZH=o.NO_MODIFICATION_ALLOWED_ERR=(r[7]="No modification allowed",7),G6=o.NOT_FOUND_ERR=(r[8]="Not found",8),JH=o.NOT_SUPPORTED_ERR=(r[9]="Not supported",9),rJ=o.INUSE_ATTRIBUTE_ERR=(r[10]="Attribute in use",10),KH=o.INVALID_STATE_ERR=(r[11]="Invalid state",11),zH=o.SYNTAX_ERR=(r[12]="Syntax error",12),QH=o.INVALID_MODIFICATION_ERR=(r[13]="Invalid modification",13),GH=o.NAMESPACE_ERR=(r[14]="Invalid namespace",14),VH=o.INVALID_ACCESS_ERR=(r[15]="Invalid access",15);function s($,Y){if(Y instanceof Error)var Z=Y;else if(Z=this,Error.call(this,r[$]),this.message=r[$],Error.captureStackTrace)Error.captureStackTrace(this,s);if(Z.code=$,Y)this.message=this.message+": "+Y;return Z}s.prototype=Error.prototype;m0(o,s);function b1(){}b1.prototype={length:0,item:function($){return $>=0&&$=0){var K=Y.length-1;while(J0},lookupPrefix:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){for(var J in Z)if(Object.prototype.hasOwnProperty.call(Z,J)&&Z[J]===$)return J}Y=Y.nodeType==F0?Y.ownerDocument:Y.parentNode}return null},lookupNamespaceURI:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){if($ in Z){if(Object.prototype.hasOwnProperty.call(Z,$))return Z[$]}}Y=Y.nodeType==F0?Y.ownerDocument:Y.parentNode}return null},isDefaultNamespace:function($){var Y=this.lookupPrefix($);return Y==null}};function q6($){return $=="<"&&"<"||$==">"&&">"||$=="&"&&"&"||$=='"'&&"""||"&#"+$.charCodeAt()+";"}m0(K1,f);m0(K1,f.prototype);function u0($,Y){if(Y($))return!0;if($=$.firstChild)do if(u0($,Y))return!0;while($=$.nextSibling)}function c0(){this.ownerDocument=this}function Y2($,Y,Z){$&&$._inc++;var J=Z.namespaceURI;if(J===v0.XMLNS)Y._nsMap[Z.prefix?Z.localName:""]=Z.value}function H6($,Y,Z,J){$&&$._inc++;var K=Z.namespaceURI;if(K===v0.XMLNS)delete Y._nsMap[Z.prefix?Z.localName:""]}function gY($,Y,Z){if($&&$._inc){$._inc++;var J=Y.childNodes;if(Z)J[J.length++]=Z;else{var K=Y.firstChild,z=0;while(K)J[z++]=K,K=K.nextSibling;J.length=z,delete J[J.length]}}}function B6($,Y){var{previousSibling:Z,nextSibling:J}=Y;if(Z)Z.nextSibling=J;else $.firstChild=J;if(J)J.previousSibling=Z;else $.lastChild=Z;return Y.parentNode=null,Y.previousSibling=null,Y.nextSibling=null,gY($.ownerDocument,$),Y}function Z2($){return $&&($.nodeType===f.DOCUMENT_NODE||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.ELEMENT_NODE)}function J2($){return $&&(k1($)||fY($)||f1($)||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.COMMENT_NODE||$.nodeType===f.PROCESSING_INSTRUCTION_NODE)}function f1($){return $&&$.nodeType===f.DOCUMENT_TYPE_NODE}function k1($){return $&&$.nodeType===f.ELEMENT_NODE}function fY($){return $&&$.nodeType===f.TEXT_NODE}function oJ($,Y){var Z=$.childNodes||[];if(j1(Z,k1)||f1(Y))return!1;var J=j1(Z,f1);return!(Y&&J&&Z.indexOf(J)>Z.indexOf(Y))}function tJ($,Y){var Z=$.childNodes||[];function J(z){return k1(z)&&z!==Y}if(j1(Z,J))return!1;var K=j1(Z,f1);return!(Y&&K&&Z.indexOf(K)>Z.indexOf(Y))}function K2($,Y,Z){if(!Z2($))throw new s(Z1,"Unexpected parent node type "+$.nodeType);if(Z&&Z.parentNode!==$)throw new s(G6,"child not in parent");if(!J2(Y)||f1(Y)&&$.nodeType!==f.DOCUMENT_NODE)throw new s(Z1,"Unexpected node type "+Y.nodeType+" for parent node type "+$.nodeType)}function z2($,Y,Z){var J=$.childNodes||[],K=Y.childNodes||[];if(Y.nodeType===f.DOCUMENT_FRAGMENT_NODE){var z=K.filter(k1);if(z.length>1||j1(K,fY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!oJ($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(k1(Y)){if(!oJ($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(f1(Y)){if(j1(J,f1))throw new s(Z1,"Only one doctype is allowed");var Q=j1(J,k1);if(Z&&J.indexOf(Q)1||j1(K,fY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!tJ($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(k1(Y)){if(!tJ($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(f1(Y)){let G=function(q){return f1(q)&&q!==Z};var W=G;if(j1(J,G))throw new s(Z1,"Only one doctype is allowed");var Q=j1(J,k1);if(Z&&J.indexOf(Q)0)u0(Z.documentElement,function(K){if(K!==Z&&K.nodeType===U1){var z=K.getAttribute("class");if(z){var Q=$===z;if(!Q){var W=iJ(z);Q=Y.every(tG(W))}if(Q)J.push(K)}}});return J})},createElement:function($){var Y=new Y0;Y.ownerDocument=this,Y.nodeName=$,Y.tagName=$,Y.localName=$,Y.childNodes=new b1;var Z=Y.attributes=new j$;return Z._ownerElement=Y,Y},createDocumentFragment:function(){var $=new _$;return $.ownerDocument=this,$.childNodes=new b1,$},createTextNode:function($){var Y=new hY;return Y.ownerDocument=this,Y.appendData($),Y},createComment:function($){var Y=new vY;return Y.ownerDocument=this,Y.appendData($),Y},createCDATASection:function($){var Y=new uY;return Y.ownerDocument=this,Y.appendData($),Y},createProcessingInstruction:function($,Y){var Z=new cY;return Z.ownerDocument=this,Z.tagName=Z.nodeName=Z.target=$,Z.nodeValue=Z.data=Y,Z},createAttribute:function($){var Y=new X$;return Y.ownerDocument=this,Y.name=$,Y.nodeName=$,Y.localName=$,Y.specified=!0,Y},createEntityReference:function($){var Y=new mY;return Y.ownerDocument=this,Y.nodeName=$,Y},createElementNS:function($,Y){var Z=new Y0,J=Y.split(":"),K=Z.attributes=new j$;if(Z.childNodes=new b1,Z.ownerDocument=this,Z.nodeName=Y,Z.tagName=Y,Z.namespaceURI=$,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return K._ownerElement=Z,Z},createAttributeNS:function($,Y){var Z=new X$,J=Y.split(":");if(Z.ownerDocument=this,Z.nodeName=Y,Z.name=Y,Z.namespaceURI=$,Z.specified=!0,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return Z}};J1(c0,f);function Y0(){this._nsMap={}}Y0.prototype={nodeType:U1,hasAttribute:function($){return this.getAttributeNode($)!=null},getAttribute:function($){var Y=this.getAttributeNode($);return Y&&Y.value||""},getAttributeNode:function($){return this.attributes.getNamedItem($)},setAttribute:function($,Y){var Z=this.ownerDocument.createAttribute($);Z.value=Z.nodeValue=""+Y,this.setAttributeNode(Z)},removeAttribute:function($){var Y=this.getAttributeNode($);Y&&this.removeAttributeNode(Y)},appendChild:function($){if($.nodeType===g1)return this.insertBefore($,null);else return Q2(this,$)},setAttributeNode:function($){return this.attributes.setNamedItem($)},setAttributeNodeNS:function($){return this.attributes.setNamedItemNS($)},removeAttributeNode:function($){return this.attributes.removeNamedItem($.nodeName)},removeAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);Z&&this.removeAttributeNode(Z)},hasAttributeNS:function($,Y){return this.getAttributeNodeNS($,Y)!=null},getAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);return Z&&Z.value||""},setAttributeNS:function($,Y,Z){var J=this.ownerDocument.createAttributeNS($,Y);J.value=J.nodeValue=""+Z,this.setAttributeNode(J)},getAttributeNodeNS:function($,Y){return this.attributes.getNamedItemNS($,Y)},getElementsByTagName:function($){return new U0(this,function(Y){var Z=[];return u0(Y,function(J){if(J!==Y&&J.nodeType==U1&&($==="*"||J.tagName==$))Z.push(J)}),Z})},getElementsByTagNameNS:function($,Y){return new U0(this,function(Z){var J=[];return u0(Z,function(K){if(K!==Z&&K.nodeType===U1&&($==="*"||K.namespaceURI===$)&&(Y==="*"||K.localName==Y))J.push(K)}),J})}};c0.prototype.getElementsByTagName=Y0.prototype.getElementsByTagName;c0.prototype.getElementsByTagNameNS=Y0.prototype.getElementsByTagNameNS;J1(Y0,f);function X$(){}X$.prototype.nodeType=F0;J1(X$,f);function p0(){}p0.prototype={data:"",substringData:function($,Y){return this.data.substring($,$+Y)},appendData:function($){$=this.data+$,this.nodeValue=this.data=$,this.length=$.length},insertData:function($,Y){this.replaceData($,0,Y)},appendChild:function($){throw Error(r[Z1])},deleteData:function($,Y){this.replaceData($,Y,"")},replaceData:function($,Y,Z){var J=this.data.substring(0,$),K=this.data.substring($+Y);Z=J+Z+K,this.nodeValue=this.data=Z,this.length=Z.length}};J1(p0,f);function hY(){}hY.prototype={nodeName:"#text",nodeType:w$,splitText:function($){var Y=this.data,Z=Y.substring($);Y=Y.substring(0,$),this.data=this.nodeValue=Y,this.length=Y.length;var J=this.ownerDocument.createTextNode(Z);if(this.parentNode)this.parentNode.insertBefore(J,this.nextSibling);return J}};J1(hY,p0);function vY(){}vY.prototype={nodeName:"#comment",nodeType:K6};J1(vY,p0);function uY(){}uY.prototype={nodeName:"#cdata-section",nodeType:Y6};J1(uY,p0);function I$(){}I$.prototype.nodeType=Q6;J1(I$,f);function U6(){}U6.prototype.nodeType=$2;J1(U6,f);function O6(){}O6.prototype.nodeType=eG;J1(O6,f);function mY(){}mY.prototype.nodeType=Z6;J1(mY,f);function _$(){}_$.prototype.nodeName="#document-fragment";_$.prototype.nodeType=g1;J1(_$,f);function cY(){}cY.prototype.nodeType=J6;J1(cY,f);function R6(){}R6.prototype.serializeToString=function($,Y,Z){return P6.call($,Y,Z)};f.prototype.toString=P6;function P6($,Y){var Z=[],J=this.nodeType==9&&this.documentElement||this,K=J.prefix,z=J.namespaceURI;if(z&&K==null){var K=J.lookupPrefix(z);if(K==null)var Q=[{namespace:z,prefix:null}]}return B0(this,Z,$,Y,Q),Z.join("")}function eJ($,Y,Z){var J=$.prefix||"",K=$.namespaceURI;if(!K)return!1;if(J==="xml"&&K===v0.XML||K===v0.XMLNS)return!1;var z=Z.length;while(z--){var Q=Z[z];if(Q.prefix===J)return Q.namespace!==K}return!0}function NY($,Y,Z){$.push(" ",Y,'="',Z.replace(/[<&"]/g,q6),'"')}function B0($,Y,Z,J,K){if(!K)K=[];if(J)if($=J($),$){if(typeof $=="string"){Y.push($);return}}else return;switch($.nodeType){case U1:var z=$.attributes,Q=z.length,D=$.firstChild,W=$.tagName;Z=v0.isHTML($.namespaceURI)||Z;var G=W;if(!Z&&!$.prefix&&$.namespaceURI){var q;for(var H=0;H=0;R--){var P=K[R];if(P.prefix===""&&P.namespace===$.namespaceURI){q=P.namespace;break}}if(q!==$.namespaceURI)for(var R=K.length-1;R>=0;R--){var P=K[R];if(P.namespace===$.namespaceURI){if(P.prefix)G=P.prefix+":"+W;break}}}Y.push("<",G);for(var w=0;w"),Z&&/^script$/i.test(W))while(D){if(D.data)Y.push(D.data);else B0(D,Y,Z,J,K.slice());D=D.nextSibling}else while(D)B0(D,Y,Z,J,K.slice()),D=D.nextSibling;Y.push("")}else Y.push("/>");return;case z6:case g1:var D=$.firstChild;while(D)B0(D,Y,Z,J,K.slice()),D=D.nextSibling;return;case F0:return NY(Y,$.name,$.value);case w$:return Y.push($.data.replace(/[<&]/g,q6).replace(/]]>/g,"]]>"));case Y6:return Y.push("");case K6:return Y.push("");case Q6:var{publicId:y,systemId:O}=$;if(Y.push("")}else if(O&&O!=".")Y.push(" SYSTEM ",O,">");else{var B=$.internalSubset;if(B)Y.push(" [",B,"]");Y.push(">")}return;case J6:return Y.push("");case Z6:return Y.push("&",$.nodeName,";");default:Y.push("??",$.nodeName)}}function A6($,Y,Z){var J;switch(Y.nodeType){case U1:J=Y.cloneNode(!1),J.ownerDocument=$;case g1:break;case F0:Z=!0;break}if(!J)J=Y.cloneNode(!1);if(J.ownerDocument=$,J.parentNode=null,Z){var K=Y.firstChild;while(K)J.appendChild(A6($,K,Z)),K=K.nextSibling}return J}function yY($,Y,Z){var J=new Y.constructor;for(var K in Y)if(Object.prototype.hasOwnProperty.call(Y,K)){var z=Y[K];if(typeof z!="object"){if(z!=J[K])J[K]=z}}if(Y.childNodes)J.childNodes=new b1;switch(J.ownerDocument=$,J.nodeType){case U1:var Q=Y.attributes,W=J.attributes=new j$,G=Q.length;W._ownerElement=J;for(var q=0;q{var C6=h0().freeze;R2.XML_ENTITIES=C6({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});R2.HTML_ENTITIES=C6({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\uD835\uDCB7",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\uD835\uDD20",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\uD835\uDD54",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\uD835\uDCBB",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\uD835\uDCA2",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\uD835\uDD25",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\uD835\uDD59",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\uD835\uDCBD",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\uD835\uDD26",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\uD835\uDCBE",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"\u0237",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\uD835\uDCC1",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"\u2213",Mscr:"\u2133",mscr:"\uD835\uDCC2",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\uD835\uDD5F",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\uD835\uDCAA",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\uD835\uDD61",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"\u2A0C",Qopf:"\u211A",qopf:"\uD835\uDD62",qprime:"\u2057",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\uD835\uDD2F",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\uD835\uDD63",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\uD835\uDCC7",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:"\t",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\uD835\uDD37",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"\u200D",zwnj:"\u200C"});R2.entityMap=R2.HTML_ENTITIES});var M6=C((_2)=>{var i0=h0().NAMESPACE,dY=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,k6=new RegExp("[\\-\\.0-9"+dY.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),X6=new RegExp("^"+dY.source+k6.source+"*(?::"+dY.source+k6.source+"*)?$"),d0=0,l1=1,O0=2,l0=3,R0=4,P0=5,s0=6,D$=7;function A0($,Y){if(this.message=$,this.locator=Y,Error.captureStackTrace)Error.captureStackTrace(this,A0)}A0.prototype=Error();A0.prototype.name=A0.name;function D6(){}D6.prototype={parse:function($,Y,Z){var J=this.domBuilder;J.startDocument(),T6(Y,Y={}),E2($,Y,Z,J,this.errorHandler),J.endDocument()}};function E2($,Y,Z,J,K){function z(_){if(_>65535){_-=65536;var L=55296+(_>>10),p=56320+(_&1023);return String.fromCharCode(L,p)}else return String.fromCharCode(_)}function Q(_){var L=_.slice(1,-1);if(L in Z)return Z[L];else if(L.charAt(0)==="#")return z(parseInt(L.substr(1).replace("x","0x")));else return K.error("entity not found:"+_),_}function W(_){if(_>T){var L=$.substring(T,_).replace(/&#?\w+;/g,Q);P&&G(T),J.characters(L,0,_-T),T=_}}function G(_,L){while(_>=H&&(L=R.exec($)))q=L.index,H=q+L[0].length,P.lineNumber++;P.columnNumber=_-q+1}var q=0,H=0,R=/.*(?:\r\n?|\n)|.*$/g,P=J.locator,w=[{currentNSMap:Y}],I={},T=0;while(!0){try{var X=$.indexOf("<",T);if(X<0){if(!$.substr(T).match(/^\s*$/)){var D=J.doc,y=D.createTextNode($.substr(T));D.appendChild(y),J.currentElement=y}return}if(X>T)W(X);switch($.charAt(X+1)){case"/":var j=$.indexOf(">",X+3),O=$.substring(X+2,j).replace(/[ \t\n\r]+$/g,""),B=w.pop();if(j<0)O=$.substring(X+2).replace(/[\s<].*/,""),K.error("end tag name: "+O+" is not complete:"+B.tagName),j=X+1+O.length;else if(O.match(/\sT)T=j;else W(Math.max(X,T)+1)}}function I6($,Y){return Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber,Y}function C2($,Y,Z,J,K,z){function Q(w,I,T){if(Z.attributeNames.hasOwnProperty(w))z.fatalError("Attribute "+w+" redefined");Z.addValue(w,I,T)}var W,G,q=++Y,H=d0;while(!0){var R=$.charAt(q);switch(R){case"=":if(H===l1)W=$.slice(Y,q),H=l0;else if(H===O0)H=l0;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(H===l0||H===l1){if(H===l1)z.warning('attribute value must after "="'),W=$.slice(Y,q);if(Y=q+1,q=$.indexOf(R,Y),q>0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y-1),H=P0;else throw Error("attribute value no end '"+R+"' match")}else if(H==R0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y),z.warning('attribute "'+W+'" missed start quot('+R+")!!"),Y=q+1,H=P0;else throw Error('attribute value must after "="');break;case"/":switch(H){case d0:Z.setTagName($.slice(Y,q));case P0:case s0:case D$:H=D$,Z.closed=!0;case R0:case l1:break;case O0:Z.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(z.error("unexpected end of input"),H==d0)Z.setTagName($.slice(Y,q));return q;case">":switch(H){case d0:Z.setTagName($.slice(Y,q));case P0:case s0:case D$:break;case R0:case l1:if(G=$.slice(Y,q),G.slice(-1)==="/")Z.closed=!0,G=G.slice(0,-1);case O0:if(H===O0)G=W;if(H==R0)z.warning('attribute "'+G+'" missed quot(")!'),Q(W,G.replace(/&#?\w+;/g,K),Y);else{if(!i0.isHTML(J[""])||!G.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');Q(G,G,Y)}break;case l0:throw Error("attribute value missed!!")}return q;case"\x80":R=" ";default:if(R<=" ")switch(H){case d0:Z.setTagName($.slice(Y,q)),H=s0;break;case l1:W=$.slice(Y,q),H=O0;break;case R0:var G=$.slice(Y,q).replace(/&#?\w+;/g,K);z.warning('attribute "'+G+'" missed quot(")!!'),Q(W,G,Y);case P0:H=s0;break}else switch(H){case O0:var P=Z.tagName;if(!i0.isHTML(J[""])||!W.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+W+'" missed value!! "'+W+'" instead2!!');Q(W,W,Y),Y=q,H=l1;break;case P0:z.warning('attribute space is required"'+W+'"!!');case s0:H=l1,Y=q;break;case l0:H=R0,Y=q;break;case D$:throw Error("elements closed character '/' and '>' must be connected to")}}q++}}function _6($,Y,Z){var J=$.tagName,K=null,R=$.length;while(R--){var z=$[R],Q=z.qName,W=z.value,P=Q.indexOf(":");if(P>0)var G=z.prefix=Q.slice(0,P),q=Q.slice(P+1),H=G==="xmlns"&&q;else q=Q,G=null,H=Q==="xmlns"&&"";if(z.localName=q,H!==!1){if(K==null)K={},T6(Z,Z={});Z[H]=K[H]=W,z.uri=i0.XMLNS,Y.startPrefixMapping(H,W)}}var R=$.length;while(R--){z=$[R];var G=z.prefix;if(G){if(G==="xml")z.uri=i0.XML;if(G!=="xmlns")z.uri=Z[G||""]}}var P=J.indexOf(":");if(P>0)G=$.prefix=J.slice(0,P),q=$.localName=J.slice(P+1);else G=null,q=$.localName=J;var w=$.uri=Z[G||""];if(Y.startElement(w,q,J,$),$.closed){if(Y.endElement(w,q,J),K){for(G in K)if(Object.prototype.hasOwnProperty.call(K,G))Y.endPrefixMapping(G)}}else return $.currentNSMap=Z,$.localNSMap=K,!0}function w2($,Y,Z,J,K){if(/^(?:script|textarea)$/i.test(Z)){var z=$.indexOf("",Y),Q=$.substring(Y+1,z);if(/[&<]/.test(Q)){if(/^script$/i.test(Z))return K.characters(Q,0,Q.length),z;return Q=Q.replace(/&#?\w+;/g,J),K.characters(Q,0,Q.length),z}}return Y+1}function j2($,Y,Z,J){var K=J[Z];if(K==null){if(K=$.lastIndexOf(""),K",Y+4);if(z>Y)return Z.comment($,Y+4,z-Y-4),z+3;else return J.error("Unclosed comment"),-1}else return-1;default:if($.substr(Y+3,6)=="CDATA["){var z=$.indexOf("]]>",Y+9);return Z.startCDATA(),Z.characters($,Y+9,z-Y-9),Z.endCDATA(),z+3}var Q=I2($,Y),W=Q.length;if(W>1&&/!doctype/i.test(Q[0][0])){var G=Q[1][0],q=!1,H=!1;if(W>3){if(/^public$/i.test(Q[2][0]))q=Q[3][0],H=W>4&&Q[4][0];else if(/^system$/i.test(Q[2][0]))H=Q[3][0]}var R=Q[W-1];return Z.startDTD(G,q,H),Z.endDTD(),R.index+R[0].length}}return-1}function X2($,Y,Z){var J=$.indexOf("?>",Y);if(J){var K=$.substring(Y,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(K){var z=K[0].length;return Z.processingInstruction(K[1],K[2]),J+2}else return-1}return-1}function S6(){this.attributeNames={}}S6.prototype={setTagName:function($){if(!X6.test($))throw Error("invalid tagName:"+$);this.tagName=$},addValue:function($,Y,Z){if(!X6.test($))throw Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:Y,offset:Z}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function I2($,Y){var Z,J=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;K.lastIndex=Y,K.exec($);while(Z=K.exec($))if(J.push(Z),Z[1])return J}_2.XMLReader=D6;_2.ParseError=A0});var g6=C((y2)=>{var S2=h0(),sY=pY(),L6=j6(),y6=M6(),M2=sY.DOMImplementation,x6=S2.NAMESPACE,L2=y6.ParseError,x2=y6.XMLReader;function b6($){this.options=$||{locator:{}}}b6.prototype.parseFromString=function($,Y){var Z=this.options,J=new x2,K=Z.domBuilder||new r0,z=Z.errorHandler,Q=Z.locator,W=Z.xmlns||{},G=/\/x?html?$/.test(Y),q=G?L6.HTML_ENTITIES:L6.XML_ENTITIES;if(Q)K.setDocumentLocator(Q);if(J.errorHandler=N2(z,K,Q),J.domBuilder=Z.domBuilder||K,G)W[""]=x6.HTML;if(W.xml=W.xml||x6.XML,$&&typeof $==="string")J.parse($,W,q);else J.errorHandler.error("invalid doc source");return K.doc};function N2($,Y,Z){if(!$){if(Y instanceof r0)return Y;$=Y}var J={},K=$ instanceof Function;Z=Z||{};function z(Q){var W=$[Q];if(!W&&K)W=$.length==2?function(G){$(Q,G)}:$;J[Q]=W&&function(G){W("[xmldom "+Q+"]\t"+G+lY(Z))}||function(){}}return z("warning"),z("error"),z("fatalError"),J}function r0(){this.cdata=!1}function E0($,Y){Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber}r0.prototype={startDocument:function(){if(this.doc=new M2().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function($,Y,Z,J){var K=this.doc,z=K.createElementNS($,Z||Y),Q=J.length;T$(this,z),this.currentElement=z,this.locator&&E0(this.locator,z);for(var W=0;W=Y+Z||Y)return new java.lang.String($,Y,Z)+"";return $}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function($){r0.prototype[$]=function(){return null}});function T$($,Y){if(!$.currentElement)$.doc.appendChild(Y);else $.currentElement.appendChild(Y)}y2.__DOMHandler=r0;y2.DOMParser=b6;y2.DOMImplementation=sY.DOMImplementation;y2.XMLSerializer=sY.XMLSerializer});var S$=C((v2)=>{var f6=pY();v2.DOMImplementation=f6.DOMImplementation;v2.XMLSerializer=f6.XMLSerializer;v2.DOMParser=g6().DOMParser});var c6=C((u6)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.parse=void 0;var p2=S$();function d2($){let J=new p2.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Workspace")throw Error("Invalid xcworkspacedata file: root element must be ");return l2(J)}u6.parse=d2;function l2($){let Y={};Y.version=M$($,"version");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(h6);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(v6);return Y}function h6($){return{location:M$($,"location")||""}}function v6($){let Y={};Y.location=M$($,"location"),Y.name=M$($,"name");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(h6);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(v6);return Y}function M$($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function L$($,Y){let Z=[],J=$.childNodes;for(let K=0;K{Object.defineProperty(s6,"__esModule",{value:!0});s6.build=void 0;function s2($){let Y=[];Y.push('');let Z=[];if($.version!==void 0)Z.push(`version = "${$.version}"`);if(Z.length>0){Y.push("");if($.fileRefs)for(let J of $.fileRefs)Y.push(...p6(J,1));if($.groups)for(let J of $.groups)Y.push(...d6(J,1));return Y.push(""),Y.join(` +`),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Na.hide):this.out.write(Zp(this.outputText,this.out.columns)),super.render(),this.outputText=[Sa.symbol(this.done,this.aborted),Ta.bold(this.msg),Sa.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Ta.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(Qp.line+Na.to(0)+this.outputText))}};Oa.exports=As});var Pa=v((hb,_a)=>{"use strict";_a.exports={TextPrompt:Oo(),SelectPrompt:Ro(),TogglePrompt:Fo(),DatePrompt:la(),NumberPrompt:fa(),MultiselectPrompt:gs(),AutocompletePrompt:Ea(),AutocompleteMultiselectPrompt:xa(),ConfirmPrompt:Ia()}});var La=v(Ra=>{"use strict";var te=Ra,eg=Pa(),Cr=t=>t;function Ee(t,e,r={}){return new Promise((i,s)=>{let n=new eg[t](e),u=r.onAbort||Cr,a=r.onSubmit||Cr,o=r.onExit||Cr;n.on("state",e.onState||Cr),n.on("submit",c=>i(a(c))),n.on("exit",c=>i(o(c))),n.on("abort",c=>s(u(c)))})}te.text=t=>Ee("TextPrompt",t);te.password=t=>(t.style="password",te.text(t));te.invisible=t=>(t.style="invisible",te.text(t));te.number=t=>Ee("NumberPrompt",t);te.date=t=>Ee("DatePrompt",t);te.confirm=t=>Ee("ConfirmPrompt",t);te.list=t=>{let e=t.separator||",";return Ee("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};te.toggle=t=>Ee("TogglePrompt",t);te.select=t=>Ee("SelectPrompt",t);te.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return Ee("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};te.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return Ee("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var tg=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));te.autocomplete=t=>(t.suggest=t.suggest||tg,t.choices=[].concat(t.choices||[]),Ee("AutocompletePrompt",t))});var Fa=v((fb,Ma)=>{"use strict";var Es=La(),rg=["suggest","format","onState","validate","onRender","type"],Ba=()=>{};async function Ge(t=[],{onSubmit:e=Ba,onCancel:r=Ba}={}){let i={},s=Ge._override||{};t=[].concat(t);let n,u,a,o,c,g,p=async(m,A,C=!1)=>{if(!(!C&&m.validate&&m.validate(A)!==!0))return m.format?await m.format(A,i):A};for(u of t)if({name:o,type:c}=u,typeof c=="function"&&(c=await c(n,{...i},u),u.type=c),!!c){for(let m in u){if(rg.includes(m))continue;let A=u[m];u[m]=typeof A=="function"?await A(n,{...i},g):A}if(g=u,typeof u.message!="string")throw new Error("prompt message is required");if({name:o,type:c}=u,Es[c]===void 0)throw new Error(`prompt type (${c}) is not defined`);if(s[u.name]!==void 0&&(n=await p(u,s[u.name]),n!==void 0)){i[o]=n;continue}try{n=Ge._injected?ig(Ge._injected,u.initial):await Es[c](u),i[o]=n=await p(u,n,!0),a=await e(u,n,i)}catch{a=!await r(u,i)}if(a)return i}return i}function ig(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function sg(t){Ge._injected=(Ge._injected||[]).concat(t)}function ng(t){Ge._override=Object.assign({},t)}Ma.exports=Object.assign(Ge,{prompt:Ge,prompts:Es,inject:sg,override:ng})});var $a=v((pb,qa)=>{function ug(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;et[e])return!1;if(t[e]>r[e])return!0}return!1}qa.exports=ug("8.6.0")?ao():Fa()});var ka=v(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isPBXFileReference=Ye.isPBXBuildFile=Ye.createReferenceList=void 0;function lg(t){let r=t?.objects??{},i={};function s(o){for(let[c,g]of Object.entries(r))if(g.buildConfigurationList===o){let p=g.name??g.path??g.productName;return p||(p=r[g.targets?.[0]]?.productName??r[g.targets?.[0]]?.name,p||(p=Object.values(r).find(A=>A.isa==="PBXContainerItemProxy"&&A.containerPortal===c)?.remoteInfo)),`Build configuration list for ${g.isa} "${p}"`}return"Build configuration list for [unknown]"}function n(o){let c=Object.values(r).find(g=>g.files?.includes(o));return c?Ua(c):null}function u(o,c){let g=n(o)??"[missing build phase]",p=c.fileRef??c.productRef;return p?`${a(p,r[p])} in ${g}`:`[unknown] in ${g}`}function a(o,c){return c?.isa?o in i?i[o]:(ja(c)?i[o]=u(o,c):gg(c)?i[o]=s(o):fg(c)?c.repositoryURL?i[o]=`${c.isa} "${cg(c.repositoryURL)}"`:i[o]=c.isa:pg(c)?c.relativePath?i[o]=`${c.isa} "${c.relativePath}"`:i[o]=c.isa:hg(c)?i[o]="Project object":c.isa?.endsWith("BuildPhase")?i[o]=Ua(c)??"":c.isa==="PBXGroup"&&c.name===void 0&&c.path===void 0?i[o]="":i[o]=c.name??c.productName??c.path??c.isa??null,i[o]??null):null}return Object.entries(r).forEach(([o,c])=>{a(o,c)}),i}Ye.createReferenceList=lg;function cg(t){try{let e=new URL(t);if(e.hostname==="github.com")return e.pathname.split("/").pop()}catch{}return t}function hg(t){return t?.isa==="PBXProject"}function ja(t){return t?.isa==="PBXBuildFile"}Ye.isPBXBuildFile=ja;function dg(t){return t?.isa==="PBXFileReference"}Ye.isPBXFileReference=dg;function fg(t){return t?.isa==="XCRemoteSwiftPackageReference"}function pg(t){return t?.isa==="XCLocalSwiftPackageReference"}function gg(t){return t?.isa==="XCConfigurationList"}function Ua(t){return t.name??mg(t.isa)}function mg(t){return t.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var Xa=v(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Writer=void 0;var ws=ka(),bg={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r"," ":"\\t","\v":"\\v","\n":"\\n",'"':'\\"',"\\":"\\\\","\0":"\\U0000","":"\\U0001","":"\\U0002","":"\\U0003","":"\\U0004","":"\\U0005","":"\\U0006","":"\\U000e","":"\\U000f","":"\\U0010","":"\\U0011","":"\\U0012","":"\\U0013","":"\\U0014","":"\\U0015","":"\\U0016","":"\\U0017","":"\\U0018","":"\\U0019","":"\\U001a","\x1B":"\\U001b","":"\\U001c","":"\\U001d","":"\\U001e","":"\\U001f"},Dg=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function yg(t){return String(t).replace(Dg,e=>bg[e]||e)}var jt=` +`;try{jt=Se("os").EOL}catch{}function vs(t){return typeof t=="object"&&t!==null&&!(t instanceof Buffer)}function ne(t){return t=yg(t),/^[\w_$/:.]+$/.test(t)?t:`"${t}"`}function Cs(t){return`<${t.toString("hex").toUpperCase()}>`}function Ag(t){let e={};return Object.entries(t).forEach(([r,i])=>{e[i.isa]||(e[i.isa]=[]),e[i.isa].push([r,i])}),Object.entries(e).sort()}var xs=class{pad(e){let r=this.options.tab??" ";return e>0?r+this.pad(e-1):""}constructor(e,r={}){this.project=e,this.options=r,this.indent=0,this.contents="",this.comments={},this.comments=(0,ws.createReferenceList)(e),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println(e){this.contents+=this.pad(this.indent),this.contents+=e,this.contents+=jt}write(e){this.contents+=this.pad(this.indent),this.contents+=e}printAssignLn(e,r){return this.println(e+" = "+r+";")}flush(e){let r=this.indent;this.indent=0,this.write(e),this.indent=r}writeShebang(){let e=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${e}`)}formatId(e,r=this.comments[e]){return r?`${e} /* ${r} */`:ne(e)}writeProject(){this.println("{"),this.project&&(this.indent++,this.writeObject(this.project,!0),this.indent--),this.println("}")}keyHasFloatValue(e){return e===e.toUpperCase()&&(e.endsWith("SWIFT_VERSION")||e.endsWith("MARKETING_VERSION")||e.endsWith("_DEPLOYMENT_TARGET"))}writeObject(e,r){Object.entries(e).sort(([i],[s])=>i==="isa"?-1:s==="isa"?1:is?1:0).forEach(([i,s])=>{if(!(this.options.skipNullishValues&&s==null))if(s instanceof Buffer)this.printAssignLn(ne(i),Cs(s));else if(Array.isArray(s))this.writeArray(i,s);else if(vs(s)){if(!r&&!Object.keys(s).length){this.println(ne(i)+" = {};");return}this.println(ne(i)+" = {"),this.indent++,r&&i==="objects"?this.writePbxObjects(s):this.writeObject(s,r),this.indent--,this.println("};")}else if(typeof s=="number"){let n=this.keyHasFloatValue(i)&&Number.isInteger(s)?`${s}.0`:s;this.printAssignLn(ne(i),ne(n))}else this.printAssignLn(ne(i),i==="remoteGlobalIDString"||i==="TestTargetID"?ne(s):this.formatId(s))})}writePbxObjects(e){Ag(e).forEach(([r,i])=>{this.flush(jt),this.flush(`/* Begin ${r} section */`+jt),i.sort(([s],[n])=>s.localeCompare(n)).forEach(([s,n])=>this.writeObjectInclusive(s,n)),this.flush(`/* End ${r} section */`+jt)})}writeArray(e,r){this.println(ne(e)+" = ("),this.indent++,r.forEach(i=>{if(i instanceof Buffer)this.println(Cs(i)+",");else{if(i==null)return;vs(i)?(this.println("{"),i&&(this.indent++,this.writeObject(i),this.indent--),this.println("},")):this.println(this.formatId(String(i))+",")}}),this.indent--,this.println(");")}writeObjectInclusive(e,r){if((0,ws.isPBXBuildFile)(r)||(0,ws.isPBXFileReference)(r))return this.writeObjectWithoutIndent(e,r);this.println(this.formatId(e)+" = {"),this.indent++,this.writeObject(r),this.indent--,this.println("};")}writeObjectWithoutIndent(e,r){let i=[],s=(n,u)=>{i.push(this.formatId(n)+" = {"),Object.entries(u).sort(([a],[o])=>a==="isa"?-1:o==="isa"?1:ao?1:0).forEach(([a,o])=>{this.options.skipNullishValues&&o==null||(o instanceof Buffer?i.push(ne(a)+" = "+Cs(o)+"; "):Array.isArray(o)?(i.push(ne(a)+" = ("),o.forEach(c=>i.push(ne(c)+", ")),i.push("); ")):vs(o)?s(a,o):i.push(ne(a)+" = "+this.formatId(o)+"; "))}),i.push("}; ")};s(e,r),this.println(i.join("").trim())}};Sr.Writer=xs});var Ka=v(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.parse=mt.Parser=void 0;var Eg={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},wg=32,vg=9,Ss=10,Cg=13,Va=123,xg=125,Ga=40,Tg=41,Sg=59,Ng=44,Og=61,Ya=34,Ha=39,Wa=92,Ts=47,za=42,Ig=60,_g=62,Pg={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},gt=new Uint8Array(256);gt[wg]=1;gt[vg]=1;gt[Ss]=1;gt[Cg]=1;var we=new Uint8Array(256);for(let t=65;t<=90;t++)we[t]=1;for(let t=97;t<=122;t++)we[t]=1;for(let t=48;t<=57;t++)we[t]=1;we[95]=1;we[36]=1;we[47]=1;we[58]=1;we[46]=1;we[45]=1;var kt=new Uint8Array(256);for(let t=48;t<=57;t++)kt[t]=1;for(let t=65;t<=70;t++)kt[t]=1;for(let t=97;t<=102;t++)kt[t]=1;var Ns=new Uint8Array(256);for(let t=48;t<=55;t++)Ns[t]=1;var Nr=new Uint8Array(256);for(let t=48;t<=57;t++)Nr[t]=1;var Or=class{constructor(e){this.pos=0,this.text=e,this.len=e.length}parse(){this.skipWhitespaceAndComments();let e=this.text.charCodeAt(this.pos);if(e===Va)return this.parseObject();if(e===Ga)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){for(;this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===xg)return this.pos++,e;let i=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==Og)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),e[i]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==Sg)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let e=[];for(;;){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===Tg)return this.pos++,e;e.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===Ng&&this.pos++}}parseValue(){this.skipWhitespaceAndComments();let e=this.text.charCodeAt(this.pos);return e===Va?this.parseObject():e===Ga?this.parseArray():e===Ig?this.parseDataLiteral():e===Ya||e===Ha?this.parseQuotedString():this.parseStringLiteral()}parseIdentifierAsString(){let e=this.text.charCodeAt(this.pos);return e===Ya||e===Ha?this.parseQuotedString():this.parseStringLiteralRaw()}parseStringLiteralRaw(){let e=this.pos;for(;this.pos1)return e;let o=parseInt(e,10);return Number.isSafeInteger(o)?o:e}let n=!1,u=!0,a=!1;for(let o=0;o=this.len)throw this.error("Unterminated string");let s=this.text.slice(r,this.pos);return this.pos++,this.unescapeString(s)}unescapeString(e){let r=[],i=0,s=e.length;for(;i=128&&Eg[g]||g;r.push(String.fromCharCode(p)),i=c;continue}r.push(e[i],e[i+1]),i+=2}else r.push(e[i]),i++;return r.join("")}isHexString(e){if(e.length!==4)return!1;for(let r=0;r<4;r++)if(!kt[e.charCodeAt(r)])return!1;return!0}parseDataLiteral(){this.pos++;let e=[];for(;this.pos{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.SubFolder=fe.ProxyType=fe.ISA=void 0;var Lg;(function(t){t.PBXBuildFile="PBXBuildFile",t.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",t.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",t.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",t.PBXHeadersBuildPhase="PBXHeadersBuildPhase",t.PBXResourcesBuildPhase="PBXResourcesBuildPhase",t.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",t.PBXSourcesBuildPhase="PBXSourcesBuildPhase",t.PBXRezBuildPhase="PBXRezBuildPhase",t.PBXContainerItemProxy="PBXContainerItemProxy",t.PBXFileReference="PBXFileReference",t.PBXGroup="PBXGroup",t.PBXVariantGroup="PBXVariantGroup",t.XCVersionGroup="XCVersionGroup",t.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",t.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",t.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",t.PBXNativeTarget="PBXNativeTarget",t.PBXAggregateTarget="PBXAggregateTarget",t.PBXLegacyTarget="PBXLegacyTarget",t.PBXProject="PBXProject",t.PBXTargetDependency="PBXTargetDependency",t.XCBuildConfiguration="XCBuildConfiguration",t.XCConfigurationList="XCConfigurationList",t.PBXBuildRule="PBXBuildRule",t.PBXReferenceProxy="PBXReferenceProxy",t.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",t.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",t.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(Lg=fe.ISA||(fe.ISA={}));var Bg;(function(t){t[t.targetReference=1]="targetReference",t[t.reference=2]="reference"})(Bg=fe.ProxyType||(fe.ProxyType={}));var Mg;(function(t){t[t.absolutePath=0]="absolutePath",t[t.productsDirectory=16]="productsDirectory",t[t.wrapper=1]="wrapper",t[t.executables=6]="executables",t[t.resources=7]="resources",t[t.javaResources=15]="javaResources",t[t.frameworks=10]="frameworks",t[t.sharedFrameworks=11]="sharedFrameworks",t[t.sharedSupport=12]="sharedSupport",t[t.plugins=13]="plugins"})(Mg=fe.SubFolder||(fe.SubFolder={}))});var Za=v(pe=>{"use strict";var Fg=pe&&pe.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),qg=pe&&pe.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Fg(e,t,r)};Object.defineProperty(pe,"__esModule",{value:!0});pe.build=pe.parse=void 0;var $g=Xa(),Ug=Ka();Object.defineProperty(pe,"parse",{enumerable:!0,get:function(){return Ug.parse}});function jg(t){return new $g.Writer(t).getResults()}pe.build=jg;qg(Ja(),pe)});var Vt=v(Xt=>{"use strict";function kg(t,e,r){if(r===void 0&&(r=Array.prototype),t&&typeof r.find=="function")return r.find.call(t,e);for(var i=0;i{var al=Vt(),ve=al.find,Gt=al.NAMESPACE;function Xg(t){return t!==""}function Vg(t){return t?t.split(/[\t\n\f\r ]+/).filter(Xg):[]}function Gg(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function tl(t){if(!t)return[];var e=Vg(t);return Object.keys(e.reduce(Gg,{}))}function Yg(t){return function(e){return t&&t.indexOf(e)!==-1}}function Ht(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function ie(t,e){var r=t.prototype;if(!(r instanceof e)){let s=function(){};var i=s;s.prototype=e.prototype,s=new s,Ht(r,s),t.prototype=r=s}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var se={},ge=se.ELEMENT_NODE=1,Dt=se.ATTRIBUTE_NODE=2,Ir=se.TEXT_NODE=3,ll=se.CDATA_SECTION_NODE=4,cl=se.ENTITY_REFERENCE_NODE=5,Hg=se.ENTITY_NODE=6,hl=se.PROCESSING_INSTRUCTION_NODE=7,dl=se.COMMENT_NODE=8,fl=se.DOCUMENT_NODE=9,pl=se.DOCUMENT_TYPE_NODE=10,Fe=se.DOCUMENT_FRAGMENT_NODE=11,Wg=se.NOTATION_NODE=12,J={},W={},wb=J.INDEX_SIZE_ERR=(W[1]="Index size error",1),vb=J.DOMSTRING_SIZE_ERR=(W[2]="DOMString size error",2),re=J.HIERARCHY_REQUEST_ERR=(W[3]="Hierarchy request error",3),Cb=J.WRONG_DOCUMENT_ERR=(W[4]="Wrong document",4),xb=J.INVALID_CHARACTER_ERR=(W[5]="Invalid character",5),Tb=J.NO_DATA_ALLOWED_ERR=(W[6]="No data allowed",6),Sb=J.NO_MODIFICATION_ALLOWED_ERR=(W[7]="No modification allowed",7),gl=J.NOT_FOUND_ERR=(W[8]="Not found",8),Nb=J.NOT_SUPPORTED_ERR=(W[9]="Not supported",9),rl=J.INUSE_ATTRIBUTE_ERR=(W[10]="Attribute in use",10),Ob=J.INVALID_STATE_ERR=(W[11]="Invalid state",11),Ib=J.SYNTAX_ERR=(W[12]="Syntax error",12),_b=J.INVALID_MODIFICATION_ERR=(W[13]="Invalid modification",13),Pb=J.NAMESPACE_ERR=(W[14]="Invalid namespace",14),Rb=J.INVALID_ACCESS_ERR=(W[15]="Invalid access",15);function Y(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,W[t]),this.message=W[t],Error.captureStackTrace&&Error.captureStackTrace(this,Y);return r.code=t,e&&(this.message=this.message+": "+e),r}Y.prototype=Error.prototype;Ht(J,Y);function Me(){}Me.prototype={length:0,item:function(t){return t>=0&&t=0){for(var s=e.length-1;i0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&r[i]===t)return i}e=e.nodeType==Dt?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==Dt?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Dl(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}Ht(se,q);Ht(se,q.prototype);function Yt(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Yt(t,e))return!0;while(t=t.nextSibling)}function Wt(){this.ownerDocument=this}function zg(t,e,r){t&&t._inc++;var i=r.namespaceURI;i===Gt.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value)}function yl(t,e,r,i){t&&t._inc++;var s=r.namespaceURI;s===Gt.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function Rs(t,e,r){if(t&&t._inc){t._inc++;var i=e.childNodes;if(r)i[i.length++]=r;else{for(var s=e.firstChild,n=0;s;)i[n++]=s,s=s.nextSibling;i.length=n,delete i[i.length]}}}function Al(t,e){var r=e.previousSibling,i=e.nextSibling;return r?r.nextSibling=i:t.firstChild=i,i?i.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Rs(t.ownerDocument,t),e}function Kg(t){return t&&(t.nodeType===q.DOCUMENT_NODE||t.nodeType===q.DOCUMENT_FRAGMENT_NODE||t.nodeType===q.ELEMENT_NODE)}function Jg(t){return t&&(Ce(t)||Ls(t)||qe(t)||t.nodeType===q.DOCUMENT_FRAGMENT_NODE||t.nodeType===q.COMMENT_NODE||t.nodeType===q.PROCESSING_INSTRUCTION_NODE)}function qe(t){return t&&t.nodeType===q.DOCUMENT_TYPE_NODE}function Ce(t){return t&&t.nodeType===q.ELEMENT_NODE}function Ls(t){return t&&t.nodeType===q.TEXT_NODE}function nl(t,e){var r=t.childNodes||[];if(ve(r,Ce)||qe(e))return!1;var i=ve(r,qe);return!(e&&i&&r.indexOf(i)>r.indexOf(e))}function ul(t,e){var r=t.childNodes||[];function i(n){return Ce(n)&&n!==e}if(ve(r,i))return!1;var s=ve(r,qe);return!(e&&s&&r.indexOf(s)>r.indexOf(e))}function Zg(t,e,r){if(!Kg(t))throw new Y(re,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new Y(gl,"child not in parent");if(!Jg(e)||qe(e)&&t.nodeType!==q.DOCUMENT_NODE)throw new Y(re,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function Qg(t,e,r){var i=t.childNodes||[],s=e.childNodes||[];if(e.nodeType===q.DOCUMENT_FRAGMENT_NODE){var n=s.filter(Ce);if(n.length>1||ve(s,Ls))throw new Y(re,"More than one element or text in fragment");if(n.length===1&&!nl(t,r))throw new Y(re,"Element in fragment can not be inserted before doctype")}if(Ce(e)&&!nl(t,r))throw new Y(re,"Only one element can be added and only after doctype");if(qe(e)){if(ve(i,qe))throw new Y(re,"Only one doctype is allowed");var u=ve(i,Ce);if(r&&i.indexOf(u)1||ve(s,Ls))throw new Y(re,"More than one element or text in fragment");if(n.length===1&&!ul(t,r))throw new Y(re,"Element in fragment can not be inserted before doctype")}if(Ce(e)&&!ul(t,r))throw new Y(re,"Only one element can be added and only after doctype");if(qe(e)){let o=function(c){return qe(c)&&c!==r};var a=o;if(ve(i,o))throw new Y(re,"Only one doctype is allowed");var u=ve(i,Ce);if(r&&i.indexOf(u)0&&Yt(r.documentElement,function(s){if(s!==r&&s.nodeType===ge){var n=s.getAttribute("class");if(n){var u=t===n;if(!u){var a=tl(n);u=e.every(Yg(a))}u&&i.push(s)}}}),i})},createElement:function(t){var e=new it;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new Me;var r=e.attributes=new _r;return r._ownerElement=e,e},createDocumentFragment:function(){var t=new Br;return t.ownerDocument=this,t.childNodes=new Me,t},createTextNode:function(t){var e=new Bs;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Ms;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Fs;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new $s;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new Rr;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new qs;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new it,i=e.split(":"),s=r.attributes=new _r;return r.childNodes=new Me,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=e,s._ownerElement=r,r},createAttributeNS:function(t,e){var r=new Rr,i=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=e,r}};ie(Wt,q);function it(){this._nsMap={}}it.prototype={nodeType:ge,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Fe?this.insertBefore(t,null):em(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+r,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new yt(this,function(e){var r=[];return Yt(e,function(i){i!==e&&i.nodeType==ge&&(t==="*"||i.tagName==t)&&r.push(i)}),r})},getElementsByTagNameNS:function(t,e){return new yt(this,function(r){var i=[];return Yt(r,function(s){s!==r&&s.nodeType===ge&&(t==="*"||s.namespaceURI===t)&&(e==="*"||s.localName==e)&&i.push(s)}),i})}};Wt.prototype.getElementsByTagName=it.prototype.getElementsByTagName;Wt.prototype.getElementsByTagNameNS=it.prototype.getElementsByTagNameNS;ie(it,q);function Rr(){}Rr.prototype.nodeType=Dt;ie(Rr,q);function zt(){}zt.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(W[re])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){var i=this.data.substring(0,t),s=this.data.substring(t+e);r=i+r+s,this.nodeValue=this.data=r,this.length=r.length}};ie(zt,q);function Bs(){}Bs.prototype={nodeName:"#text",nodeType:Ir,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};ie(Bs,zt);function Ms(){}Ms.prototype={nodeName:"#comment",nodeType:dl};ie(Ms,zt);function Fs(){}Fs.prototype={nodeName:"#cdata-section",nodeType:ll};ie(Fs,zt);function Lr(){}Lr.prototype.nodeType=pl;ie(Lr,q);function wl(){}wl.prototype.nodeType=Wg;ie(wl,q);function vl(){}vl.prototype.nodeType=Hg;ie(vl,q);function qs(){}qs.prototype.nodeType=cl;ie(qs,q);function Br(){}Br.prototype.nodeName="#document-fragment";Br.prototype.nodeType=Fe;ie(Br,q);function $s(){}$s.prototype.nodeType=hl;ie($s,q);function Cl(){}Cl.prototype.serializeToString=function(t,e,r){return xl.call(t,e,r)};q.prototype.toString=xl;function xl(t,e){var r=[],i=this.nodeType==9&&this.documentElement||this,s=i.prefix,n=i.namespaceURI;if(n&&s==null){var s=i.lookupPrefix(n);if(s==null)var u=[{namespace:n,prefix:null}]}return bt(this,r,t,e,u),r.join("")}function ol(t,e,r){var i=t.prefix||"",s=t.namespaceURI;if(!s||i==="xml"&&s===Gt.XML||s===Gt.XMLNS)return!1;for(var n=r.length;n--;){var u=r[n];if(u.prefix===i)return u.namespace!==s}return!0}function Is(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,Dl),'"')}function bt(t,e,r,i,s){if(s||(s=[]),i)if(t=i(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case ge:var n=t.attributes,u=n.length,x=t.firstChild,a=t.tagName;r=Gt.isHTML(t.namespaceURI)||r;var o=a;if(!r&&!t.prefix&&t.namespaceURI){for(var c,g=0;g=0;p--){var m=s[p];if(m.prefix===""&&m.namespace===t.namespaceURI){c=m.namespace;break}}if(c!==t.namespaceURI)for(var p=s.length-1;p>=0;p--){var m=s[p];if(m.namespace===t.namespaceURI){m.prefix&&(o=m.prefix+":"+a);break}}}e.push("<",o);for(var A=0;A"),r&&/^script$/i.test(a))for(;x;)x.data?e.push(x.data):bt(x,e,r,i,s.slice()),x=x.nextSibling;else for(;x;)bt(x,e,r,i,s.slice()),x=x.nextSibling;e.push("")}else e.push("/>");return;case fl:case Fe:for(var x=t.firstChild;x;)bt(x,e,r,i,s.slice()),x=x.nextSibling;return;case Dt:return Is(e,t.name,t.value);case Ir:return e.push(t.data.replace(/[<&]/g,Dl).replace(/]]>/g,"]]>"));case ll:return e.push("");case dl:return e.push("");case pl:var B=t.publicId,f=t.systemId;if(e.push("");else if(f&&f!=".")e.push(" SYSTEM ",f,">");else{var d=t.internalSubset;d&&e.push(" [",d,"]"),e.push(">")}return;case hl:return e.push("");case cl:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Tl(t,e,r){var i;switch(e.nodeType){case ge:i=e.cloneNode(!1),i.ownerDocument=t;case Fe:break;case Dt:r=!0;break}if(i||(i=e.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,r)for(var s=e.firstChild;s;)i.appendChild(Tl(t,s,r)),s=s.nextSibling;return i}function _s(t,e,r){var i=new e.constructor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var n=e[s];typeof n!="object"&&n!=i[s]&&(i[s]=n)}switch(e.childNodes&&(i.childNodes=new Me),i.ownerDocument=t,i.nodeType){case ge:var u=e.attributes,a=i.attributes=new _r,o=u.length;a._ownerElement=i;for(var c=0;c{"use strict";var Nl=Vt().freeze;Kt.XML_ENTITIES=Nl({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});Kt.HTML_ENTITIES=Nl({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});Kt.entityMap=Kt.HTML_ENTITIES});var Fl=v(ks=>{var er=Vt().NAMESPACE,js=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Il=new RegExp("[\\-\\.0-9"+js.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),_l=new RegExp("^"+js.source+Il.source+"*(?::"+js.source+Il.source+"*)?$"),Jt=0,We=1,At=2,Zt=3,Et=4,wt=5,Qt=6,Mr=7;function vt(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,vt)}vt.prototype=new Error;vt.prototype.name=vt.name;function Ll(){}Ll.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),Bl(e,e={}),rm(t,e,r,i,this.errorHandler),i.endDocument()}};function rm(t,e,r,i,s){function n(I){if(I>65535){I-=65536;var N=55296+(I>>10),k=56320+(I&1023);return String.fromCharCode(N,k)}else return String.fromCharCode(I)}function u(I){var N=I.slice(1,-1);return N in r?r[N]:N.charAt(0)==="#"?n(parseInt(N.substr(1).replace("x","0x"))):(s.error("entity not found:"+I),I)}function a(I){if(I>S){var N=t.substring(S,I).replace(/&#?\w+;/g,u);m&&o(S),i.characters(N,0,I-S),S=I}}function o(I,N){for(;I>=g&&(N=p.exec(t));)c=N.index,g=c+N[0].length,m.lineNumber++;m.columnNumber=I-c+1}for(var c=0,g=0,p=/.*(?:\r\n?|\n)|.*$/g,m=i.locator,A=[{currentNSMap:e}],C={},S=0;;){try{var T=t.indexOf("<",S);if(T<0){if(!t.substr(S).match(/^\s*$/)){var x=i.doc,B=x.createTextNode(t.substr(S));x.appendChild(B),i.currentElement=B}return}switch(T>S&&a(T),t.charAt(T+1)){case"/":var w=t.indexOf(">",T+3),f=t.substring(T+2,w).replace(/[ \t\n\r]+$/g,""),d=A.pop();w<0?(f=t.substring(T+2).replace(/[\s<].*/,""),s.error("end tag name: "+f+" is not complete:"+d.tagName),w=T+1+f.length):f.match(/\sS?S=w:a(Math.max(T,S)+1)}}function Pl(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function im(t,e,r,i,s,n){function u(A,C,S){r.attributeNames.hasOwnProperty(A)&&n.fatalError("Attribute "+A+" redefined"),r.addValue(A,C,S)}for(var a,o,c=++e,g=Jt;;){var p=t.charAt(c);switch(p){case"=":if(g===We)a=t.slice(e,c),g=Zt;else if(g===At)g=Zt;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(g===Zt||g===We)if(g===We&&(n.warning('attribute value must after "="'),a=t.slice(e,c)),e=c+1,c=t.indexOf(p,e),c>0)o=t.slice(e,c).replace(/&#?\w+;/g,s),u(a,o,e-1),g=wt;else throw new Error("attribute value no end '"+p+"' match");else if(g==Et)o=t.slice(e,c).replace(/&#?\w+;/g,s),u(a,o,e),n.warning('attribute "'+a+'" missed start quot('+p+")!!"),e=c+1,g=wt;else throw new Error('attribute value must after "="');break;case"/":switch(g){case Jt:r.setTagName(t.slice(e,c));case wt:case Qt:case Mr:g=Mr,r.closed=!0;case Et:case We:break;case At:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return n.error("unexpected end of input"),g==Jt&&r.setTagName(t.slice(e,c)),c;case">":switch(g){case Jt:r.setTagName(t.slice(e,c));case wt:case Qt:case Mr:break;case Et:case We:o=t.slice(e,c),o.slice(-1)==="/"&&(r.closed=!0,o=o.slice(0,-1));case At:g===At&&(o=a),g==Et?(n.warning('attribute "'+o+'" missed quot(")!'),u(a,o.replace(/&#?\w+;/g,s),e)):((!er.isHTML(i[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),u(o,o,e));break;case Zt:throw new Error("attribute value missed!!")}return c;case"\x80":p=" ";default:if(p<=" ")switch(g){case Jt:r.setTagName(t.slice(e,c)),g=Qt;break;case We:a=t.slice(e,c),g=At;break;case Et:var o=t.slice(e,c).replace(/&#?\w+;/g,s);n.warning('attribute "'+o+'" missed quot(")!!'),u(a,o,e);case wt:g=Qt;break}else switch(g){case At:var m=r.tagName;(!er.isHTML(i[""])||!a.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),u(a,a,e),e=c,g=We;break;case wt:n.warning('attribute space is required"'+a+'"!!');case Qt:g=We,e=c;break;case Zt:g=Et,e=c;break;case Mr:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function Rl(t,e,r){for(var i=t.tagName,s=null,p=t.length;p--;){var n=t[p],u=n.qName,a=n.value,m=u.indexOf(":");if(m>0)var o=n.prefix=u.slice(0,m),c=u.slice(m+1),g=o==="xmlns"&&c;else c=u,o=null,g=u==="xmlns"&&"";n.localName=c,g!==!1&&(s==null&&(s={},Bl(r,r={})),r[g]=s[g]=a,n.uri=er.XMLNS,e.startPrefixMapping(g,a))}for(var p=t.length;p--;){n=t[p];var o=n.prefix;o&&(o==="xml"&&(n.uri=er.XML),o!=="xmlns"&&(n.uri=r[o||""]))}var m=i.indexOf(":");m>0?(o=t.prefix=i.slice(0,m),c=t.localName=i.slice(m+1)):(o=null,c=t.localName=i);var A=t.uri=r[o||""];if(e.startElement(A,c,i,t),t.closed){if(e.endElement(A,c,i),s)for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&e.endPrefixMapping(o)}else return t.currentNSMap=r,t.localNSMap=s,!0}function sm(t,e,r,i,s){if(/^(?:script|textarea)$/i.test(r)){var n=t.indexOf("",e),u=t.substring(e+1,n);if(/[&<]/.test(u))return/^script$/i.test(r)?(s.characters(u,0,u.length),n):(u=u.replace(/&#?\w+;/g,i),s.characters(u,0,u.length),n)}return e+1}function nm(t,e,r,i){var s=i[r];return s==null&&(s=t.lastIndexOf(""),s",e+4);return n>e?(r.comment(t,e+4,n-e-4),n+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var n=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,n-e-9),r.endCDATA(),n+3}var u=am(t,e),a=u.length;if(a>1&&/!doctype/i.test(u[0][0])){var o=u[1][0],c=!1,g=!1;a>3&&(/^public$/i.test(u[2][0])?(c=u[3][0],g=a>4&&u[4][0]):/^system$/i.test(u[2][0])&&(g=u[3][0]));var p=u[a-1];return r.startDTD(o,c,g),r.endDTD(),p.index+p[0].length}}return-1}function om(t,e,r){var i=t.indexOf("?>",e);if(i){var s=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(s){var n=s[0].length;return r.processingInstruction(s[1],s[2]),i+2}else return-1}return-1}function Ml(){this.attributeNames={}}Ml.prototype={setTagName:function(t){if(!_l.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!_l.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function am(t,e){var r,i=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(s.lastIndex=e,s.exec(t);r=s.exec(t);)if(i.push(r),r[1])return i}ks.XMLReader=Ll;ks.ParseError=vt});var Xl=v(rr=>{var lm=Vt(),Vs=Us(),ql=Ol(),jl=Fl(),cm=Vs.DOMImplementation,$l=lm.NAMESPACE,hm=jl.ParseError,dm=jl.XMLReader;function kl(t){this.options=t||{locator:{}}}kl.prototype.parseFromString=function(t,e){var r=this.options,i=new dm,s=r.domBuilder||new tr,n=r.errorHandler,u=r.locator,a=r.xmlns||{},o=/\/x?html?$/.test(e),c=o?ql.HTML_ENTITIES:ql.XML_ENTITIES;return u&&s.setDocumentLocator(u),i.errorHandler=fm(n,s,u),i.domBuilder=r.domBuilder||s,o&&(a[""]=$l.HTML),a.xml=a.xml||$l.XML,t&&typeof t=="string"?i.parse(t,a,c):i.errorHandler.error("invalid doc source"),s.doc};function fm(t,e,r){if(!t){if(e instanceof tr)return e;t=e}var i={},s=t instanceof Function;r=r||{};function n(u){var a=t[u];!a&&s&&(a=t.length==2?function(o){t(u,o)}:t),i[u]=a&&function(o){a("[xmldom "+u+"] "+o+Xs(r))}||function(){}}return n("warning"),n("error"),n("fatalError"),i}function tr(){this.cdata=!1}function Ct(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}tr.prototype={startDocument:function(){this.doc=new cm().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,i){var s=this.doc,n=s.createElementNS(t,r||e),u=i.length;Fr(this,n),this.currentElement=n,this.locator&&Ct(this.locator,n);for(var a=0;a=e+r||e?new java.lang.String(t,e,r)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){tr.prototype[t]=function(){return null}});function Fr(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}rr.__DOMHandler=tr;rr.DOMParser=kl;rr.DOMImplementation=Vs.DOMImplementation;rr.XMLSerializer=Vs.XMLSerializer});var $r=v(qr=>{var Vl=Us();qr.DOMImplementation=Vl.DOMImplementation;qr.XMLSerializer=Vl.XMLSerializer;qr.DOMParser=Xl().DOMParser});var Hl=v(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.parse=void 0;var pm=$r();function gm(t){let i=new pm.DOMParser().parseFromString(t,"text/xml").documentElement;if(!i||i.tagName!=="Workspace")throw new Error("Invalid xcworkspacedata file: root element must be ");return mm(i)}kr.parse=gm;function mm(t){let e={};e.version=Ur(t,"version");let r=jr(t,"FileRef");r.length>0&&(e.fileRefs=r.map(Gl));let i=jr(t,"Group");return i.length>0&&(e.groups=i.map(Yl)),e}function Gl(t){return{location:Ur(t,"location")||""}}function Yl(t){let e={};e.location=Ur(t,"location"),e.name=Ur(t,"name");let r=jr(t,"FileRef");r.length>0&&(e.fileRefs=r.map(Gl));let i=jr(t,"Group");return i.length>0&&(e.groups=i.map(Yl)),e}function Ur(t,e){if(t.hasAttribute(e))return t.getAttribute(e)??void 0}function jr(t,e){let r=[],i=t.childNodes;for(let s=0;s{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.build=void 0;function bm(t){let e=[];e.push('');let r=[];if(t.version!==void 0&&r.push(`version = "${t.version}"`),r.length>0){e.push("");if(t.fileRefs)for(let i of t.fileRefs)e.push(...Wl(i,1));if(t.groups)for(let i of t.groups)e.push(...zl(i,1));return e.push(""),e.join(` `)+` -`}s6.build=s2;function p6($,Y){let Z=l6(Y);return[`${Z} -${Z}`]}function d6($,Y){let Z=[],J=l6(Y),K=[];if($.location!==void 0)K.push(`location = "${iY($.location)}"`);if($.name!==void 0)K.push(`name = "${iY($.name)}"`);Z.push(`${J}`),Z}function l6($){return" ".repeat($)}function iY($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var n6=C(($V)=>{$V.byteLength=r2;$V.toByteArray=n2;$V.fromByteArray=e2;var X1=[],G1=[],i2=typeof Uint8Array<"u"?Uint8Array:Array,rY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s1=0,aY=rY.length;s10)throw Error("Invalid string. Length must be a multiple of 4");var Z=$.indexOf("=");if(Z===-1)Z=Y;var J=Z===Y?0:4-Z%4;return[Z,J]}function r2($){var Y=a6($),Z=Y[0],J=Y[1];return(Z+J)*3/4-J}function a2($,Y,Z){return(Y+Z)*3/4-Z}function n2($){var Y,Z=a6($),J=Z[0],K=Z[1],z=new i2(a2($,J,K)),Q=0,W=K>0?J-4:J,G;for(G=0;G>16&255,z[Q++]=Y>>8&255,z[Q++]=Y&255;if(K===2)Y=G1[$.charCodeAt(G)]<<2|G1[$.charCodeAt(G+1)]>>4,z[Q++]=Y&255;if(K===1)Y=G1[$.charCodeAt(G)]<<10|G1[$.charCodeAt(G+1)]<<4|G1[$.charCodeAt(G+2)]>>2,z[Q++]=Y>>8&255,z[Q++]=Y&255;return z}function o2($){return X1[$>>18&63]+X1[$>>12&63]+X1[$>>6&63]+X1[$&63]}function t2($,Y,Z){var J,K=[];for(var z=Y;zW?W:Q+z));if(J===1)Y=$[Z-1],K.push(X1[Y>>2]+X1[Y<<4&63]+"==");else if(J===2)Y=($[Z-2]<<8)+$[Z-1],K.push(X1[Y>>10]+X1[Y>>4&63]+X1[Y<<2&63]+"=");return K.join("")}});var I1=C((o6,i1)=>{(function(){var $,Y,Z,J,K,z,Q,W={}.hasOwnProperty;$=function(G,...q){var H,R,P,w;if(K(Object.assign))Object.assign.apply(null,arguments);else for(H=0,P=q.length;H{(function(){var $;e6.exports=$=class{hasFeature(Z,J){return!0}createDocumentType(Z,J,K){throw Error("This DOM method is not implemented.")}createDocument(Z,J,K){throw Error("This DOM method is not implemented.")}createHTMLDocument(Z){throw Error("This DOM method is not implemented.")}getFeature(Z,J){throw Error("This DOM method is not implemented.")}}}).call(t6)});var ZK=C(($K,YK)=>{(function(){var $;YK.exports=$=class{constructor(){}handleError(Z){throw Error(Z)}}}).call($K)});var zK=C((JK,KK)=>{(function(){var $;KK.exports=$=function(){class Y{constructor(Z){this.arr=Z||[]}item(Z){return this.arr[Z]||null}contains(Z){return this.arr.indexOf(Z)!==-1}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.arr.length}}),Y}.call(this)}).call(JK)});var VK=C((QK,GK)=>{(function(){var $,Y,Z;Y=ZK(),Z=zK(),GK.exports=$=function(){class J{constructor(){var K;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Y,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=K=Object.create(this.defaultParams)}getParameter(K){if(this.params.hasOwnProperty(K))return this.params[K];else return null}canSetParameter(K,z){return!0}setParameter(K,z){if(z!=null)return this.params[K]=z;else return delete this.params[K]}}return Object.defineProperty(J.prototype,"parameterNames",{get:function(){return new Z(Object.keys(this.defaultParams))}}),J}.call(this)}).call(QK)});var i=C((WK,qK)=>{(function(){qK.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(WK)});var oY=C((HK,BK)=>{(function(){var $,Y,Z;$=i(),Z=Q1(),BK.exports=Y=function(){class J{constructor(K,z,Q){if(this.parent=K,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(z==null)throw Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(Q),this.type=$.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(K){return this.options.writer.attribute(this,this.options.writer.filterOptions(K))}debugInfo(K){if(K=K||this.name,K==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+K+"}, parent: <"+this.parent.name+">"}isEqualNode(K){if(K.namespaceURI!==this.namespaceURI)return!1;if(K.prefix!==this.prefix)return!1;if(K.localName!==this.localName)return!1;if(K.value!==this.value)return!1;return!0}}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(J.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(J.prototype,"textContent",{get:function(){return this.value},set:function(K){return this.value=K||""}}),Object.defineProperty(J.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(J.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(J.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(J.prototype,"specified",{get:function(){return!0}}),J}.call(this)}).call(HK)});var x$=C((FK,UK)=>{(function(){var $;UK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}getNamedItem(Z){return this.nodes[Z]}setNamedItem(Z){var J=this.nodes[Z.nodeName];return this.nodes[Z.nodeName]=Z,J||null}removeNamedItem(Z){var J=this.nodes[Z];return delete this.nodes[Z],J||null}item(Z){return this.nodes[Object.keys(this.nodes)[Z]]||null}getNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}setNamedItemNS(Z){throw Error("This DOM method is not implemented.")}removeNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(Y.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Y}.call(this)}).call(FK)});var N$=C((OK,RK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G={}.hasOwnProperty;({isObject:W,isFunction:Q,getValue:z}=I1()),K=Q1(),$=i(),Y=oY(),J=x$(),RK.exports=Z=function(){class q extends K{constructor(H,R,P){var w,I,T,X;super(H);if(R==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(R),this.type=$.Element,this.attribs={},this.schemaTypeInfo=null,P!=null)this.attribute(P);if(H.type===$.Document){if(this.isRoot=!0,this.documentObject=H,H.rootObject=this,H.children){X=H.children;for(I=0,T=X.length;I=w;R=0<=w?++P:--P)if(!this.attribs[R].isEqualNode(H.attribs[R]))return!1;return!0}}return Object.defineProperty(q.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(q.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(q.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes)this.attributeMap=new J(this.attribs);return this.attributeMap}}),q}.call(this)}).call(OK)});var a0=C((PK,AK)=>{(function(){var $,Y;Y=Q1(),AK.exports=$=function(){class Z extends Y{constructor(J){super(J);this.value=""}clone(){return Object.create(this)}substringData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(J){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(J,K,z){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(J){if(!super.isEqualNode(J))return!1;if(J.data!==this.data)return!1;return!0}}return Object.defineProperty(Z.prototype,"data",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Object.defineProperty(Z.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Z}.call(this)}).call(PK)});var y$=C((EK,CK)=>{(function(){var $,Y,Z;$=i(),Z=a0(),CK.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=$.CData,this.value=this.stringify.cdata(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.cdata(this,this.options.writer.filterOptions(K))}}}).call(EK)});var b$=C((wK,jK)=>{(function(){var $,Y,Z;$=i(),Y=a0(),jK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=$.Comment,this.value=this.stringify.comment(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.comment(this,this.options.writer.filterOptions(K))}}}).call(wK)});var g$=C((kK,XK)=>{(function(){var $,Y,Z,J;({isObject:J}=I1()),Z=Q1(),$=i(),XK.exports=Y=class extends Z{constructor(z,Q,W,G){super(z);if(J(Q))({version:Q,encoding:W,standalone:G}=Q);if(!Q)Q="1.0";if(this.type=$.Declaration,this.version=this.stringify.xmlVersion(Q),W!=null)this.encoding=this.stringify.xmlEncoding(W);if(G!=null)this.standalone=this.stringify.xmlStandalone(G)}toString(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))}}}).call(kK)});var f$=C((IK,_K)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),_K.exports=Y=class extends Z{constructor(K,z,Q,W,G,q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(Q==null)throw Error("Missing DTD attribute name. "+this.debugInfo(z));if(!W)throw Error("Missing DTD attribute type. "+this.debugInfo(z));if(!G)throw Error("Missing DTD attribute default. "+this.debugInfo(z));if(G.indexOf("#")!==0)G="#"+G;if(!G.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(q&&!G.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));if(this.elementName=this.stringify.name(z),this.type=$.AttributeDeclaration,this.attributeName=this.stringify.name(Q),this.attributeType=this.stringify.dtdAttType(W),q)this.defaultValue=this.stringify.dtdAttDefault(q);this.defaultValueType=G}toString(K){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(K))}}}).call(IK)});var h$=C((DK,TK)=>{(function(){var $,Y,Z,J;({isObject:J}=I1()),Z=Q1(),$=i(),TK.exports=Y=function(){class K extends Z{constructor(z,Q,W,G){super(z);if(W==null)throw Error("Missing DTD entity name. "+this.debugInfo(W));if(G==null)throw Error("Missing DTD entity value. "+this.debugInfo(W));if(this.pe=!!Q,this.name=this.stringify.name(W),this.type=$.EntityDeclaration,!J(G))this.value=this.stringify.dtdEntityValue(G),this.internal=!0;else{if(!G.pubID&&!G.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(W));if(G.pubID&&!G.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(W));if(this.internal=!1,G.pubID!=null)this.pubID=this.stringify.dtdPubID(G.pubID);if(G.sysID!=null)this.sysID=this.stringify.dtdSysID(G.sysID);if(G.nData!=null)this.nData=this.stringify.dtdNData(G.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(W))}}toString(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))}}return Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(K.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlVersion",{get:function(){return null}}),K}.call(this)}).call(DK)});var v$=C((SK,MK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),MK.exports=Y=class extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!Q)Q="(#PCDATA)";if(Array.isArray(Q))Q="("+Q.join(",")+")";this.name=this.stringify.name(z),this.type=$.ElementDeclaration,this.value=this.stringify.dtdElementValue(Q)}toString(K){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(K))}}}).call(SK)});var u$=C((LK,xK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),xK.exports=Y=function(){class J extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD notation name. "+this.debugInfo(z));if(!Q.pubID&&!Q.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));if(this.name=this.stringify.name(z),this.type=$.NotationDeclaration,Q.pubID!=null)this.pubID=this.stringify.dtdPubID(Q.pubID);if(Q.sysID!=null)this.sysID=this.stringify.dtdSysID(Q.sysID)}toString(K){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(K))}}return Object.defineProperty(J.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(J.prototype,"systemId",{get:function(){return this.sysID}}),J}.call(this)}).call(LK)});var m$=C((NK,yK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({isObject:G}=I1()),W=Q1(),$=i(),Y=f$(),J=h$(),Z=v$(),K=u$(),Q=x$(),yK.exports=z=function(){class q extends W{constructor(H,R,P){var w,I,T,X;super(H);if(this.type=$.DocType,H.children){X=H.children;for(I=0,T=X.length;I{(function(){var $,Y,Z;$=i(),Y=Q1(),gK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing raw text. "+this.debugInfo());this.type=$.Raw,this.value=this.stringify.raw(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.raw(this,this.options.writer.filterOptions(K))}}}).call(bK)});var p$=C((fK,hK)=>{(function(){var $,Y,Z;$=i(),Y=a0(),hK.exports=Z=function(){class J extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=$.Text,this.value=this.stringify.text(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.text(this,this.options.writer.filterOptions(K))}splitText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(J.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(J.prototype,"wholeText",{get:function(){var K,z,Q;Q="",z=this.previousSibling;while(z)Q=z.data+Q,z=z.previousSibling;Q+=this.data,K=this.nextSibling;while(K)Q=Q+K.data,K=K.nextSibling;return Q}}),J}.call(this)}).call(fK)});var d$=C((vK,uK)=>{(function(){var $,Y,Z;$=i(),Y=a0(),uK.exports=Z=class extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.type=$.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,Q)this.value=this.stringify.insValue(Q)}clone(){return Object.create(this)}toString(K){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(K))}isEqualNode(K){if(!super.isEqualNode(K))return!1;if(K.target!==this.target)return!1;return!0}}}).call(vK)});var tY=C((mK,cK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),cK.exports=Y=class extends Z{constructor(K){super(K);this.type=$.Dummy}clone(){return Object.create(this)}toString(K){return""}}}).call(mK)});var lK=C((pK,dK)=>{(function(){var $;dK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}item(Z){return this.nodes[Z]||null}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.nodes.length||0}}),Y}.call(this)}).call(pK)});var rK=C((sK,iK)=>{(function(){iK.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(sK)});var Q1=C((aK,nK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,w,I,T,X,D,y={}.hasOwnProperty,O=[].splice;({isObject:D,isFunction:X,isEmpty:T,getValue:I}=I1()),W=null,Z=null,J=null,K=null,z=null,P=null,w=null,R=null,Q=null,Y=null,H=null,G=null,$=null,nK.exports=q=function(){class B{constructor(V){if(this.parent=V,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.value=null,this.children=[],this.baseURI=null,!W)W=N$(),Z=y$(),J=b$(),K=g$(),z=m$(),P=c$(),w=p$(),R=d$(),Q=tY(),Y=i(),H=lK(),G=x$(),$=rK()}setParent(V){var U,E,k,F,A;if(this.parent=V,V)this.options=V.options,this.stringify=V.stringify;F=this.children,A=[];for(E=0,k=F.length;E";else if(!((E=this.parent)!=null?E.name:void 0))return"node: <"+V+">";else return"node: <"+V+">, parent: <"+this.parent.name+">"}ele(V,U,E){return this.element(V,U,E)}nod(V,U,E){return this.node(V,U,E)}txt(V){return this.text(V)}dat(V){return this.cdata(V)}com(V){return this.comment(V)}ins(V,U){return this.instruction(V,U)}doc(){return this.document()}dec(V,U,E){return this.declaration(V,U,E)}e(V,U,E){return this.element(V,U,E)}n(V,U,E){return this.node(V,U,E)}t(V){return this.text(V)}d(V){return this.cdata(V)}c(V){return this.comment(V)}r(V){return this.raw(V)}i(V,U){return this.instruction(V,U)}u(){return this.up()}importXMLBuilder(V){return this.importDocument(V)}attribute(V,U){throw Error("attribute() applies to element nodes only.")}att(V,U){return this.attribute(V,U)}a(V,U){return this.attribute(V,U)}removeAttribute(V){throw Error("attribute() applies to element nodes only.")}replaceChild(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(V,U){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(V){var U,E;if(U=this,U===V)return 0;else if(this.document()!==V.document()){if(E=$.Disconnected|$.ImplementationSpecific,Math.random()<0.5)E|=$.Preceding;else E|=$.Following;return E}else if(U.isAncestor(V))return $.Contains|$.Preceding;else if(U.isDescendant(V))return $.Contains|$.Following;else if(U.isPreceding(V))return $.Preceding;else return $.Following}isSameNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(V){var U,E,k;if(V.nodeType!==this.nodeType)return!1;if(V.children.length!==this.children.length)return!1;for(U=E=0,k=this.children.length-1;0<=k?E<=k:E>=k;U=0<=k?++E:--E)if(!this.children[U].isEqualNode(V.children[U]))return!1;return!0}getFeature(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(V,U,E){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(V){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(V){if(!V)return!1;return V===this||this.isDescendant(V)}isDescendant(V){var U,E,k,F,A;A=this.children;for(k=0,F=A.length;kE}treePosition(V){var U,E;if(E=0,U=!1,this.foreachTreeNode(this.document(),function(k){if(E++,!U&&k===V)return U=!0}),U)return E;else return-1}foreachTreeNode(V,U){var E,k,F,A,j;V||(V=this.document()),A=V.children;for(k=0,F=A.length;k{(function(){var $,Y={}.hasOwnProperty;tK.exports=$=function(){class Z{constructor(J){var K,z,Q;if(this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),J||(J={}),this.options=J,!this.options.version)this.options.version="1.0";z=J.stringify||{};for(K in z){if(!Y.call(z,K))continue;Q=z[K],this[K]=Q}}name(J){if(this.options.noValidation)return J;return this.assertLegalName(""+J||"")}text(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.textEscape(""+J||""))}cdata(J){if(this.options.noValidation)return J;return J=""+J||"",J=J.replace("]]>","]]]]>"),this.assertLegalChar(J)}comment(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/--/))throw Error("Comment text cannot contain double-hypen: "+J);return this.assertLegalChar(J)}raw(J){if(this.options.noValidation)return J;return""+J||""}attValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.attEscape(J=""+J||""))}insTarget(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}insValue(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/\?>/))throw Error("Invalid processing instruction value: "+J);return this.assertLegalChar(J)}xmlVersion(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/1\.[0-9]+/))throw Error("Invalid version number: "+J);return J}xmlEncoding(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+J);return this.assertLegalChar(J)}xmlStandalone(J){if(this.options.noValidation)return J;if(J)return"yes";else return"no"}dtdPubID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdSysID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdElementValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttType(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttDefault(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdEntityValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdNData(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}assertLegalChar(J){var K,z;if(this.options.noValidation)return J;if(K="",this.options.version==="1.0"){if(K=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}else if(this.options.version==="1.1"){if(K=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}return J}assertLegalName(J){var K;if(this.options.noValidation)return J;if(this.assertLegalChar(J),K=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!J.match(K))throw Error("Invalid character in name");return J}textEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(//g,">").replace(/\r/g," ")}attEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(/{(function(){$z.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(eK)});var $Z=C((Yz,Zz)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,w,I,T,X,D={}.hasOwnProperty;({assign:X}=I1()),$=i(),G=g$(),q=m$(),Z=y$(),J=b$(),R=N$(),w=c$(),I=p$(),P=d$(),H=tY(),K=f$(),z=v$(),Q=h$(),W=u$(),Y=n0(),Zz.exports=T=class{constructor(O){var B,V,U;O||(O={}),this.options=O,V=O.writer||{};for(B in V){if(!D.call(V,B))continue;U=V[B],this["_"+B]=this[B],this[B]=U}}filterOptions(O){var B,V,U,E,k,F,A,j,S;if(O||(O={}),O=X({},this.options,O),B={writer:this},B.pretty=O.pretty||!1,B.allowEmpty=O.allowEmpty||!1,B.indent=(V=O.indent)!=null?V:" ",B.newline=(U=O.newline)!=null?U:` -`,B.offset=(E=O.offset)!=null?E:0,B.width=(k=O.width)!=null?k:0,B.dontPrettyTextNodes=(F=(A=O.dontPrettyTextNodes)!=null?A:O.dontprettytextnodes)!=null?F:0,B.spaceBeforeSlash=(j=(S=O.spaceBeforeSlash)!=null?S:O.spacebeforeslash)!=null?j:"",B.spaceBeforeSlash===!0)B.spaceBeforeSlash=" ";return B.suppressPrettyCount=0,B.user={},B.state=Y.None,B}indent(O,B,V){var U;if(!B.pretty||B.suppressPrettyCount)return"";else if(B.pretty){if(U=(V||0)+B.offset+1,U>0)return Array(U).join(B.indent)}return""}endline(O,B,V){if(!B.pretty||B.suppressPrettyCount)return"";else return B.newline}attribute(O,B,V){var U;if(this.openAttribute(O,B,V),B.pretty&&B.width>0)U=O.name+'="'+O.value+'"';else U=" "+O.name+'="'+O.value+'"';return this.closeAttribute(O,B,V),U}cdata(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}comment(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}declaration(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}docType(O,B,V){var U,E,k,F,A;if(V||(V=0),this.openNode(O,B,V),B.state=Y.OpenTag,F=this.indent(O,B,V),F+="0){F+=" [",F+=this.endline(O,B,V),B.state=Y.InsideTag,A=O.children;for(E=0,k=A.length;E",F+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),F}element(O,B,V){var U,E,k,F,A,j,S,M,h,c,_,L,p,u1,t0,e0,r$,a$,Q0;if(V||(V=0),L=!1,this.openNode(O,B,V),B.state=Y.OpenTag,p=this.indent(O,B,V)+"<"+O.name,B.pretty&&B.width>0){M=p.length,t0=O.attribs;for(_ in t0){if(!D.call(t0,_))continue;if(U=t0[_],u1=this.attribute(U,B,V),E=u1.length,M+E>B.width)Q0=this.indent(O,B,V+1)+u1,p+=this.endline(O,B,V)+Q0,M=Q0.length;else Q0=" "+u1,p+=Q0,M+=Q0.length}}else{e0=O.attribs;for(_ in e0){if(!D.call(e0,_))continue;U=e0[_],p+=this.attribute(U,B,V)}}if(F=O.children.length,A=F===0?null:O.children[0],F===0||O.children.every(function(n$){return(n$.type===$.Text||n$.type===$.Raw)&&n$.value===""}))if(B.allowEmpty)p+=">",B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else B.state=Y.CloseTag,p+=B.spaceBeforeSlash+"/>"+this.endline(O,B,V);else if(B.pretty&&F===1&&(A.type===$.Text||A.type===$.Raw)&&A.value!=null)p+=">",B.state=Y.InsideTag,B.suppressPrettyCount++,L=!0,p+=this.writeChildNode(A,B,V+1),B.suppressPrettyCount--,L=!1,B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else{if(B.dontPrettyTextNodes){r$=O.children;for(j=0,h=r$.length;j"+this.endline(O,B,V),B.state=Y.InsideTag,a$=O.children;for(S=0,c=a$.length;S",L)B.suppressPrettyCount--;p+=this.endline(O,B,V),B.state=Y.None}return this.closeNode(O,B,V),p}writeChildNode(O,B,V){switch(O.type){case $.CData:return this.cdata(O,B,V);case $.Comment:return this.comment(O,B,V);case $.Element:return this.element(O,B,V);case $.Raw:return this.raw(O,B,V);case $.Text:return this.text(O,B,V);case $.ProcessingInstruction:return this.processingInstruction(O,B,V);case $.Dummy:return"";case $.Declaration:return this.declaration(O,B,V);case $.DocType:return this.docType(O,B,V);case $.AttributeDeclaration:return this.dtdAttList(O,B,V);case $.ElementDeclaration:return this.dtdElement(O,B,V);case $.EntityDeclaration:return this.dtdEntity(O,B,V);case $.NotationDeclaration:return this.dtdNotation(O,B,V);default:throw Error("Unknown XML node type: "+O.constructor.name)}}processingInstruction(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}raw(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}text(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdAttList(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdElement(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdEntity(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdNotation(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}openNode(O,B,V){}closeNode(O,B,V){}openAttribute(O,B,V){}closeAttribute(O,B,V){}}}).call(Yz)});var l$=C((Jz,Kz)=>{(function(){var $,Y;Y=$Z(),Kz.exports=$=class extends Y{constructor(J){super(J)}document(J,K){var z,Q,W,G,q;K=this.filterOptions(K),G="",q=J.children;for(Q=0,W=q.length;Q{(function(){var $,Y,Z,J,K,z,Q,W;({isPlainObject:W}=I1()),Z=nY(),Y=VK(),K=Q1(),$=i(),Q=eY(),z=l$(),Qz.exports=J=function(){class G extends K{constructor(q){super(null);if(this.name="#document",this.type=$.Document,this.documentURI=null,this.domConfig=new Y,q||(q={}),!q.writer)q.writer=new z;this.options=q,this.stringify=new Q(q)}end(q){var H={};if(!q)q=this.options.writer;else if(W(q))H=q,q=this.options.writer;return q.document(this,q.filterOptions(H))}toString(q){return this.options.writer.document(this,this.options.writer.filterOptions(q))}createElement(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(q){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(q){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(G.prototype,"implementation",{value:new Z}),Object.defineProperty(G.prototype,"doctype",{get:function(){var q,H,R,P;P=this.children;for(H=0,R=P.length;H{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,w,I,T,X,D,y,O,B,V,U,E={}.hasOwnProperty;({isObject:V,isFunction:B,isPlainObject:U,getValue:O}=I1()),$=i(),R=YZ(),w=N$(),J=y$(),K=b$(),T=c$(),y=p$(),I=d$(),q=g$(),H=m$(),z=f$(),W=h$(),Q=v$(),G=u$(),Z=oY(),D=eY(),X=l$(),Y=n0(),Vz.exports=P=class{constructor(F,A,j){var S;if(this.name="?xml",this.type=$.Document,F||(F={}),S={},!F.writer)F.writer=new X;else if(U(F.writer))S=F.writer,F.writer=new X;this.options=F,this.writer=F.writer,this.writerOptions=this.writer.filterOptions(S),this.stringify=new D(F),this.onDataCallback=A||function(){},this.onEndCallback=j||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(F){var A,j,S,M,h,c,_,L;switch(F.type){case $.CData:this.cdata(F.value);break;case $.Comment:this.comment(F.value);break;case $.Element:S={},_=F.attribs;for(j in _){if(!E.call(_,j))continue;A=_[j],S[j]=A.value}this.node(F.name,S);break;case $.Dummy:this.dummy();break;case $.Raw:this.raw(F.value);break;case $.Text:this.text(F.value);break;case $.ProcessingInstruction:this.instruction(F.target,F.value);break;default:throw Error("This XML node type is not supported in a JS object: "+F.constructor.name)}L=F.children;for(h=0,c=L.length;h=0)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(F){var A,j,S,M;if(!F.isOpen){if(!this.root&&this.currentLevel===0&&F.type===$.Element)this.root=F;if(j="",F.type===$.Element){this.writerOptions.state=Y.OpenTag,j=this.writer.indent(F,this.writerOptions,this.currentLevel)+"<"+F.name,M=F.attribs;for(S in M){if(!E.call(M,S))continue;A=M[S],j+=this.writer.attribute(A,this.writerOptions,this.currentLevel)}j+=(F.children?">":"/>")+this.writer.endline(F,this.writerOptions,this.currentLevel),this.writerOptions.state=Y.InsideTag}else{if(this.writerOptions.state=Y.OpenTag,j=this.writer.indent(F,this.writerOptions,this.currentLevel)+"";j+=this.writer.endline(F,this.writerOptions,this.currentLevel)}return this.onData(j,this.currentLevel),F.isOpen=!0}}closeNode(F){var A;if(!F.isClosed){if(A="",this.writerOptions.state=Y.CloseTag,F.type===$.Element)A=this.writer.indent(F,this.writerOptions,this.currentLevel)+""+this.writer.endline(F,this.writerOptions,this.currentLevel);else A=this.writer.indent(F,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(F,this.writerOptions,this.currentLevel);return this.writerOptions.state=Y.None,this.onData(A,this.currentLevel),F.isClosed=!0}}onData(F,A){return this.documentStarted=!0,this.onDataCallback(F,A+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(F){if(F==null)return"";else return"node: <"+F+">"}ele(){return this.element(...arguments)}nod(F,A,j){return this.node(F,A,j)}txt(F){return this.text(F)}dat(F){return this.cdata(F)}com(F){return this.comment(F)}ins(F,A){return this.instruction(F,A)}dec(F,A,j){return this.declaration(F,A,j)}dtd(F,A,j){return this.doctype(F,A,j)}e(F,A,j){return this.element(F,A,j)}n(F,A,j){return this.node(F,A,j)}t(F){return this.text(F)}d(F){return this.cdata(F)}c(F){return this.comment(F)}r(F){return this.raw(F)}i(F,A){return this.instruction(F,A)}att(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}a(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}ent(F,A){return this.entity(F,A)}pent(F,A){return this.pEntity(F,A)}not(F,A){return this.notation(F,A)}}}).call(Gz)});var Bz=C((qz,Hz)=>{(function(){var $,Y,Z,J,K={}.hasOwnProperty;$=i(),J=$Z(),Y=n0(),Hz.exports=Z=class extends J{constructor(Q,W){super(W);this.stream=Q}endline(Q,W,G){if(Q.isLastRootNode&&W.state===Y.CloseTag)return"";else return super.endline(Q,W,G)}document(Q,W){var G,q,H,R,P,w,I,T,X;I=Q.children;for(q=H=0,P=I.length;H0){this.stream.write(" ["),this.stream.write(this.endline(Q,W,G)),W.state=Y.InsideTag,P=Q.children;for(H=0,R=P.length;H"),this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}element(Q,W,G){var q,H,R,P,w,I,T,X,D,y,O,B,V,U,E,k;if(G||(G=0),this.openNode(Q,W,G),W.state=Y.OpenTag,O=this.indent(Q,W,G)+"<"+Q.name,W.pretty&&W.width>0){T=O.length,V=Q.attribs;for(D in V){if(!K.call(V,D))continue;if(q=V[D],B=this.attribute(q,W,G),H=B.length,T+H>W.width)k=this.indent(Q,W,G+1)+B,O+=this.endline(Q,W,G)+k,T=k.length;else k=" "+B,O+=k,T+=k.length}}else{U=Q.attribs;for(D in U){if(!K.call(U,D))continue;q=U[D],O+=this.attribute(q,W,G)}}if(this.stream.write(O),P=Q.children.length,w=P===0?null:Q.children[0],P===0||Q.children.every(function(F){return(F.type===$.Text||F.type===$.Raw)&&F.value===""}))if(W.allowEmpty)this.stream.write(">"),W.state=Y.CloseTag,this.stream.write("");else W.state=Y.CloseTag,this.stream.write(W.spaceBeforeSlash+"/>");else if(W.pretty&&P===1&&(w.type===$.Text||w.type===$.Raw)&&w.value!=null)this.stream.write(">"),W.state=Y.InsideTag,W.suppressPrettyCount++,y=!0,this.writeChildNode(w,W,G+1),W.suppressPrettyCount--,y=!1,W.state=Y.CloseTag,this.stream.write("");else{this.stream.write(">"+this.endline(Q,W,G)),W.state=Y.InsideTag,E=Q.children;for(I=0,X=E.length;I")}return this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}processingInstruction(Q,W,G){return this.stream.write(super.processingInstruction(Q,W,G))}raw(Q,W,G){return this.stream.write(super.raw(Q,W,G))}text(Q,W,G){return this.stream.write(super.text(Q,W,G))}dtdAttList(Q,W,G){return this.stream.write(super.dtdAttList(Q,W,G))}dtdElement(Q,W,G){return this.stream.write(super.dtdElement(Q,W,G))}dtdEntity(Q,W,G){return this.stream.write(super.dtdEntity(Q,W,G))}dtdNotation(Q,W,G){return this.stream.write(super.dtdNotation(Q,W,G))}}}).call(qz)});var Uz=C((Fz,r1)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({assign:W,isFunction:G}=I1()),Z=nY(),J=YZ(),K=Wz(),Q=l$(),z=Bz(),$=i(),Y=n0(),Fz.create=function(q,H,R,P){var w,I;if(q==null)throw Error("Root element needs a name.");if(P=W({},H,R,P),w=new J(P),I=w.element(q),!P.headless){if(w.declaration(P),P.pubID!=null||P.sysID!=null)w.dtd(P)}return I},Fz.begin=function(q,H,R){if(G(q))[H,R]=[q,H],q={};if(H)return new K(q,H,R);else return new J(q)},Fz.stringWriter=function(q){return new Q(q)},Fz.streamWriter=function(q,H){return new z(q,H)},Fz.implementation=new Z,Fz.nodeType=$,Fz.writerState=Y}).call(Fz)});var Az=C((C0)=>{var Pz=C0&&C0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(C0,"__esModule",{value:!0});C0.build=void 0;var Oz=Pz(n6()),KV=Pz(Uz());function zV($){function Y(Z){return Z<10?"0"+Z:Z}return $.getUTCFullYear()+"-"+Y($.getUTCMonth()+1)+"-"+Y($.getUTCDate())+"T"+Y($.getUTCHours())+":"+Y($.getUTCMinutes())+":"+Y($.getUTCSeconds())+"Z"}var QV=Object.prototype.toString;function Rz($){let Y=QV.call($).match(/\[object (.*)\]/);return Y?Y[1]:Y}function GV($,Y){let Z={version:"1.0",encoding:"UTF-8"},J={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},K=KV.default.create("plist");if(K.dec(Z.version,Z.encoding,Z.standalone),K.dtd(J.pubid,J.sysid),K.att("version","1.0"),ZZ($,K),!Y)Y={};return Y.pretty=Y.pretty!==!1,K.end(Y)}C0.build=GV;function ZZ($,Y){let Z,J,K,z=Rz($);if(z=="Undefined");else if(Array.isArray($)){Y=Y.ele("array");for(J=0;J<$.length;J++)ZZ($[J],Y)}else if(Buffer.isBuffer($))Y.ele("data").raw($.toString("base64"));else if(z=="Object"){Y=Y.ele("dict");for(K in $)if($.hasOwnProperty(K)&&$[K]!==void 0)Y.ele("key").txt(K),ZZ($[K],Y)}else if(z=="Number")Z=$%1===0?"integer":"real",Y.ele(Z).txt($.toString());else if(z=="Date")Y.ele("date").txt(zV(new Date($)));else if(z=="Boolean")Y.ele($?"true":"false");else if(z=="String")Y.ele("string").txt($);else if(z=="ArrayBuffer")Y.ele("data").raw(Oz.default.fromByteArray($));else if($&&$.buffer&&Rz($.buffer)=="ArrayBuffer")Y.ele("data").raw(Oz.default.fromByteArray(new Uint8Array($.buffer)))}});var Cz=C((k0)=>{var VV=k0&&k0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(k0,"__esModule",{value:!0});k0.parse=void 0;var WV=S$(),w0=VV(_1("assert")),s$=3,Ez=4,qV=8;function JZ($){return $.nodeType===s$||$.nodeType===qV||$.nodeType===Ez}function h1($){return!$.childNodes||$.childNodes.length===0}function HV($){let Y=new WV.DOMParser({errorHandler(){}}).parseFromString($);w0.default(Y.documentElement.nodeName==="plist","malformed document. First element should be ");let Z=j0(Y.documentElement);if(Z.length==1)Z=Z[0];return Z}k0.parse=HV;function j0($){let Y,Z,J,K,z,Q;if(!$)return null;if($.nodeName==="plist"){if(K=[],h1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!JZ($.childNodes[Y]))K.push(j0($.childNodes[Y]));return K}else if($.nodeName==="dict"){if(Z={},J=null,Q=0,h1($))return Z;for(Y=0;Y<$.childNodes.length;Y++){if(JZ($.childNodes[Y]))continue;if(Q%2===0)w0.default($.childNodes[Y].nodeName==="key","Missing key while parsing ."),J=j0($.childNodes[Y]);else w0.default($.childNodes[Y].nodeName!=="key",'Unexpected key "'+j0($.childNodes[Y])+'" while parsing .'),Z[J]=j0($.childNodes[Y]);Q+=1}if(Q%2===1)throw Error('Missing value for "'+J+'" while parsing ');return Z}else if($.nodeName==="array"){if(K=[],h1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!JZ($.childNodes[Y])){if(z=j0($.childNodes[Y]),z!=null)K.push(z)}return K}else if($.nodeName==="#text");else if($.nodeName==="key"){if(h1($))return"";return $.childNodes[0].nodeValue}else if($.nodeName==="string"){if(z="",h1($))return z;for(Y=0;Y<$.childNodes.length;Y++){let W=$.childNodes[Y].nodeType;if(W===s$||W===Ez)z+=$.childNodes[Y].nodeValue}return z}else if($.nodeName==="integer")return w0.default(!h1($),'Cannot parse "" as integer.'),parseInt($.childNodes[0].nodeValue,10);else if($.nodeName==="real"){w0.default(!h1($),'Cannot parse "" as real.'),z="";for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue;return parseFloat(z)}else if($.nodeName==="data"){if(z="",h1($))return Buffer.from(z,"base64");for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue.replace(/\s+/g,"");return Buffer.from(z,"base64")}else if($.nodeName==="date")return w0.default(!h1($),'Cannot parse "" as Date.'),new Date($.childNodes[0].nodeValue);else if($.nodeName==="true")return!0;else if($.nodeName==="false")return!1}});var KZ=C((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0});var BV=Az(),FV=Cz();wz.default={parse:FV.parse,build:BV.build}});var kz=C((a1)=>{var OV=a1&&a1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(a1,"__esModule",{value:!0});a1.buildChecks=a1.parseChecks=void 0;var jz=OV(KZ());function RV($){let Y=jz.default.parse($),Z={};for(let[J,K]of Object.entries(Y))if(typeof K==="boolean")Z[J]=K;return Z}a1.parseChecks=RV;function PV($){let Y={};for(let[Z,J]of Object.entries($))if(typeof J==="boolean")Y[Z]=J;return jz.default.build(Y)}a1.buildChecks=PV});var Iz=C((Xz)=>{Object.defineProperty(Xz,"__esModule",{value:!0})});var Dz=C((t)=>{var AV=t&&t.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),EV=t&&t.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))AV(Y,$,Z)};Object.defineProperty(t,"__esModule",{value:!0});t.buildChecks=t.parseChecks=t.build=t.parse=void 0;var CV=c6();Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return CV.parse}});var wV=r6();Object.defineProperty(t,"build",{enumerable:!0,get:function(){return wV.build}});var _z=kz();Object.defineProperty(t,"parseChecks",{enumerable:!0,get:function(){return _z.parseChecks}});Object.defineProperty(t,"buildChecks",{enumerable:!0,get:function(){return _z.buildChecks}});EV(Iz(),t)});var Lz=C((Sz)=>{Object.defineProperty(Sz,"__esModule",{value:!0});Sz.parse=void 0;var jV=S$();function kV($){let J=new jV.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Scheme")throw Error("Invalid xcscheme file: root element must be ");return XV(J)}Sz.parse=kV;function XV($){let Y={};Y.version=N($,"version"),Y.lastUpgradeVersion=N($,"LastUpgradeVersion");let Z=b($,"BuildAction");if(Z)Y.buildAction=IV(Z);let J=b($,"TestAction");if(J)Y.testAction=SV(J);let K=b($,"LaunchAction");if(K)Y.launchAction=xV(K);let z=b($,"ProfileAction");if(z)Y.profileAction=gV(z);let Q=b($,"AnalyzeAction");if(Q)Y.analyzeAction=fV(Q);let W=b($,"ArchiveAction");if(W)Y.archiveAction=hV(W);return Y}function IV($){let Y={};Y.parallelizeBuildables=v($,"parallelizeBuildables"),Y.buildImplicitDependencies=v($,"buildImplicitDependencies"),Y.runPostActionsOnFailure=v($,"runPostActionsOnFailure"),Y.buildArchitectures=N($,"buildArchitectures");let Z=b($,"BuildActionEntries");if(Z)Y.entries=n1(Z,"BuildActionEntry").map(_V);return Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function _V($){let Y={};Y.buildForRunning=v($,"buildForRunning"),Y.buildForTesting=v($,"buildForTesting"),Y.buildForProfiling=v($,"buildForProfiling"),Y.buildForArchiving=v($,"buildForArchiving"),Y.buildForAnalyzing=v($,"buildForAnalyzing");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function Z0($){return{buildableIdentifier:N($,"BuildableIdentifier")||"primary",blueprintIdentifier:N($,"BlueprintIdentifier")||"",buildableName:N($,"BuildableName")||"",blueprintName:N($,"BlueprintName")||"",referencedContainer:N($,"ReferencedContainer")||""}}function V1($,Y){let Z=b($,Y);if(!Z)return;let J=n1(Z,"ExecutionAction");if(J.length===0)return;return J.map(DV)}function DV($){let Y={};Y.actionType=N($,"ActionType");let Z=b($,"ActionContent");if(Z)Y.actionContent=TV(Z);return Y}function TV($){let Y={};Y.title=N($,"title"),Y.scriptText=N($,"scriptText"),Y.shellToInvoke=N($,"shellToInvoke");let Z=b($,"EnvironmentBuildable");if(Z){let J=b(Z,"BuildableReference");if(J)Y.environmentBuildable=Z0(J)}return Y}function SV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.shouldAutocreateTestPlan=v($,"shouldAutocreateTestPlan"),Y.preferredScreenCaptureFormat=N($,"preferredScreenCaptureFormat"),Y.codeCoverageEnabled=v($,"codeCoverageEnabled"),Y.onlyGenerateCoverageForSpecifiedTargets=v($,"onlyGenerateCoverageForSpecifiedTargets");let Z=b($,"Testables");if(Z)Y.testables=n1(Z,"TestableReference").map(MV);let J=b($,"TestPlans");if(J)Y.testPlans=n1(J,"TestPlanReference").map(LV);let K=b($,"MacroExpansion");if(K){let z=b(K,"BuildableReference");if(z)Y.macroExpansion=Z0(z)}return Y.commandLineArguments=zZ($),Y.environmentVariables=QZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function MV($){let Y={};Y.skipped=v($,"skipped"),Y.parallelizable=v($,"parallelizable"),Y.useTestSelectionWhitelist=v($,"useTestSelectionWhitelist");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);let J=b($,"SkippedTests");if(J)Y.skippedTests=n1(J,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));let K=b($,"SelectedTests");if(K)Y.selectedTests=n1(K,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));return Y}function LV($){return{reference:N($,"reference")||"",default:v($,"default")}}function xV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.launchStyle=N($,"launchStyle"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.customWorkingDirectory=N($,"customWorkingDirectory"),Y.ignoresPersistentStateOnLaunch=v($,"ignoresPersistentStateOnLaunch"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.debugServiceExtension=N($,"debugServiceExtension"),Y.allowLocationSimulation=v($,"allowLocationSimulation"),Y.customLaunchCommand=N($,"customLaunchCommand"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Tz(Z);let J=b($,"RemoteRunnable");if(J)Y.remoteRunnable=NV(J);let K=b($,"MacroExpansion");if(K){let W=b(K,"BuildableReference");if(W)Y.macroExpansion=Z0(W)}let z=b($,"LocationScenarioReference");if(z)Y.locationScenarioReference=yV(z);let Q=b($,"StoreKitConfigurationFileReference");if(Q)Y.storeKitConfigurationFileReference=bV(Q);return Y.commandLineArguments=zZ($),Y.environmentVariables=QZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function Tz($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function NV($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode"),Y.bundleIdentifier=N($,"BundleIdentifier"),Y.remotePath=N($,"RemotePath");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function yV($){return{identifier:N($,"identifier"),referenceType:N($,"referenceType")}}function bV($){return{identifier:N($,"identifier")}}function gV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.savedToolIdentifier=N($,"savedToolIdentifier"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Tz(Z);return Y.commandLineArguments=zZ($),Y.environmentVariables=QZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function fV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function hV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.customArchiveName=N($,"customArchiveName"),Y.revealArchiveInOrganizer=v($,"revealArchiveInOrganizer"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function zZ($){let Y=b($,"CommandLineArguments");if(!Y)return;let Z=n1(Y,"CommandLineArgument");if(Z.length===0)return;return Z.map((J)=>({argument:N(J,"argument")||"",isEnabled:v(J,"isEnabled")}))}function QZ($){let Y=b($,"EnvironmentVariables");if(!Y)return;let Z=n1(Y,"EnvironmentVariable");if(Z.length===0)return;return Z.map((J)=>({key:N(J,"key")||"",value:N(J,"value")||"",isEnabled:v(J,"isEnabled")}))}function N($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function v($,Y){let Z=$.getAttribute(Y);if(Z==="YES"||Z==="Yes")return!0;if(Z==="NO"||Z==="No")return!1;return}function b($,Y){let Z=$.childNodes;for(let J=0;J{Object.defineProperty(Nz,"__esModule",{value:!0});Nz.build=void 0;function vV($){let Y=[];Y.push(''),Y.push("` ${J}`)),Y[Y.length-1]+=">",$.buildAction)Y.push(...mV($.buildAction,1));if($.testAction)Y.push(...lV($.testAction,1));if($.launchAction)Y.push(...rV($.launchAction,1));if($.profileAction)Y.push(...tV($.profileAction,1));if($.analyzeAction)Y.push(...eV($.analyzeAction,1));if($.archiveAction)Y.push(...$W($.archiveAction,1));return Y.push(""),Y.join(` +`}Xr.build=bm;function Wl(t,e){let r=Kl(e);return[`${r} +${r}`]}function zl(t,e){let r=[],i=Kl(e),s=[];t.location!==void 0&&s.push(`location = "${Gs(t.location)}"`),t.name!==void 0&&s.push(`name = "${Gs(t.name)}"`),r.push(`${i}`),r}function Kl(t){return" ".repeat(t)}function Gs(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var ec=v(Vr=>{"use strict";Vr.byteLength=ym;Vr.toByteArray=Em;Vr.fromByteArray=Cm;var xe=[],oe=[],Dm=typeof Uint8Array<"u"?Uint8Array:Array,Ys="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(st=0,Zl=Ys.length;st0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function ym(t){var e=Ql(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Am(t,e,r){return(e+r)*3/4-r}function Em(t){var e,r=Ql(t),i=r[0],s=r[1],n=new Dm(Am(t,i,s)),u=0,a=s>0?i-4:i,o;for(o=0;o>16&255,n[u++]=e>>8&255,n[u++]=e&255;return s===2&&(e=oe[t.charCodeAt(o)]<<2|oe[t.charCodeAt(o+1)]>>4,n[u++]=e&255),s===1&&(e=oe[t.charCodeAt(o)]<<10|oe[t.charCodeAt(o+1)]<<4|oe[t.charCodeAt(o+2)]>>2,n[u++]=e>>8&255,n[u++]=e&255),n}function wm(t){return xe[t>>18&63]+xe[t>>12&63]+xe[t>>6&63]+xe[t&63]}function vm(t,e,r){for(var i,s=[],n=e;na?a:u+n));return i===1?(e=t[r-1],s.push(xe[e>>2]+xe[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],s.push(xe[e>>10]+xe[e>>4&63]+xe[e<<2&63]+"=")),s.join("")}});var Te=v((tc,ze)=>{(function(){var t,e,r,i,s,n,u,a={}.hasOwnProperty;t=function(o,...c){var g,p,m,A;if(s(Object.assign))Object.assign.apply(null,arguments);else for(g=0,m=c.length;g{(function(){var t;ic.exports=t=class{hasFeature(r,i){return!0}createDocumentType(r,i,s){throw new Error("This DOM method is not implemented.")}createDocument(r,i,s){throw new Error("This DOM method is not implemented.")}createHTMLDocument(r){throw new Error("This DOM method is not implemented.")}getFeature(r,i){throw new Error("This DOM method is not implemented.")}}}).call(rc)});var uc=v((sc,nc)=>{(function(){var t;nc.exports=t=class{constructor(){}handleError(r){throw new Error(r)}}}).call(sc)});var lc=v((oc,ac)=>{(function(){var t;ac.exports=t=(function(){class e{constructor(i){this.arr=i||[]}item(i){return this.arr[i]||null}contains(i){return this.arr.indexOf(i)!==-1}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e}).call(this)}).call(oc)});var dc=v((cc,hc)=>{(function(){var t,e,r;e=uc(),r=lc(),hc.exports=t=(function(){class i{constructor(){var n;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=n=Object.create(this.defaultParams)}getParameter(n){return this.params.hasOwnProperty(n)?this.params[n]:null}canSetParameter(n,u){return!0}setParameter(n,u){return u!=null?this.params[n]=u:delete this.params[n]}}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),i}).call(this)}).call(cc)});var H=v((fc,pc)=>{(function(){pc.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(fc)});var Ws=v((gc,mc)=>{(function(){var t,e,r;t=H(),r=ue(),mc.exports=e=(function(){class i{constructor(n,u,a){if(this.parent=n,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),u==null)throw new Error("Missing attribute name. "+this.debugInfo(u));this.name=this.stringify.name(u),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(n){return this.options.writer.attribute(this,this.options.writer.filterOptions(n))}debugInfo(n){return n=n||this.name,n==null?"parent: <"+this.parent.name+">":"attribute: {"+n+"}, parent: <"+this.parent.name+">"}isEqualNode(n){return!(n.namespaceURI!==this.namespaceURI||n.prefix!==this.prefix||n.localName!==this.localName||n.value!==this.value)}}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i}).call(this)}).call(gc)});var Gr=v((bc,Dc)=>{(function(){var t;Dc.exports=t=(function(){class e{constructor(i){this.nodes=i}clone(){return this.nodes=null}getNamedItem(i){return this.nodes[i]}setNamedItem(i){var s;return s=this.nodes[i.nodeName],this.nodes[i.nodeName]=i,s||null}removeNamedItem(i){var s;return s=this.nodes[i],delete this.nodes[i],s||null}item(i){return this.nodes[Object.keys(this.nodes)[i]]||null}getNamedItemNS(i,s){throw new Error("This DOM method is not implemented.")}setNamedItemNS(i){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(i,s){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e}).call(this)}).call(bc)});var Yr=v((yc,Ac)=>{(function(){var t,e,r,i,s,n,u,a,o={}.hasOwnProperty;({isObject:a,isFunction:u,getValue:n}=Te()),s=ue(),t=H(),e=Ws(),i=Gr(),Ac.exports=r=(function(){class c extends s{constructor(p,m,A){var C,S,T,x;if(super(p),m==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(m),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,A!=null&&this.attribute(A),p.type===t.Document&&(this.isRoot=!0,this.documentObject=p,p.rootObject=this,p.children)){for(x=p.children,S=0,T=x.length;S=C;m=0<=C?++A:--A)if(!this.attribs[m].isEqualNode(p.attribs[m]))return!1;return!0}}return Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new i(this.attribs)),this.attributeMap}}),c}).call(this)}).call(yc)});var ir=v((Ec,wc)=>{(function(){var t,e;e=ue(),wc.exports=t=(function(){class r extends e{constructor(s){super(s),this.value=""}clone(){return Object.create(this)}substringData(s,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(s,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(s,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(s,n,u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(s){return!(!super.isEqualNode(s)||s.data!==this.data)}}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),r}).call(this)}).call(Ec)});var Hr=v((vc,Cc)=>{(function(){var t,e,r;t=H(),r=ir(),Cc.exports=e=class extends r{constructor(s,n){if(super(s),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(n)}clone(){return Object.create(this)}toString(s){return this.options.writer.cdata(this,this.options.writer.filterOptions(s))}}}).call(vc)});var Wr=v((xc,Tc)=>{(function(){var t,e,r;t=H(),e=ir(),Tc.exports=r=class extends e{constructor(s,n){if(super(s),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(n)}clone(){return Object.create(this)}toString(s){return this.options.writer.comment(this,this.options.writer.filterOptions(s))}}}).call(xc)});var zr=v((Sc,Nc)=>{(function(){var t,e,r,i;({isObject:i}=Te()),r=ue(),t=H(),Nc.exports=e=class extends r{constructor(n,u,a,o){super(n),i(u)&&({version:u,encoding:a,standalone:o}=u),u||(u="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(u),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}toString(n){return this.options.writer.declaration(this,this.options.writer.filterOptions(n))}}}).call(Sc)});var Kr=v((Oc,Ic)=>{(function(){var t,e,r;r=ue(),t=H(),Ic.exports=e=class extends r{constructor(s,n,u,a,o,c){if(super(s),n==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(o.indexOf("#")!==0&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(c&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(a),c&&(this.defaultValue=this.stringify.dtdAttDefault(c)),this.defaultValueType=o}toString(s){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(s))}}}).call(Oc)});var Jr=v((_c,Pc)=>{(function(){var t,e,r,i;({isObject:i}=Te()),r=ue(),t=H(),Pc.exports=e=(function(){class s extends r{constructor(u,a,o,c){if(super(u),o==null)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!a,this.name=this.stringify.name(o),this.type=t.EntityDeclaration,!i(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}}toString(u){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(u))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(s.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return null}}),s}).call(this)}).call(_c)});var Zr=v((Rc,Lc)=>{(function(){var t,e,r;r=ue(),t=H(),Lc.exports=e=class extends r{constructor(s,n,u){if(super(s),n==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(n),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}toString(s){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(s))}}}).call(Rc)});var Qr=v((Bc,Mc)=>{(function(){var t,e,r;r=ue(),t=H(),Mc.exports=e=(function(){class i extends r{constructor(n,u,a){if(super(n),u==null)throw new Error("Missing DTD notation name. "+this.debugInfo(u));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(u));this.name=this.stringify.name(u),this.type=t.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}toString(n){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(n))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i}).call(this)}).call(Bc)});var ei=v((Fc,qc)=>{(function(){var t,e,r,i,s,n,u,a,o;({isObject:o}=Te()),a=ue(),t=H(),e=Kr(),i=Jr(),r=Zr(),s=Qr(),u=Gr(),qc.exports=n=(function(){class c extends a{constructor(p,m,A){var C,S,T,x;if(super(p),this.type=t.DocType,p.children){for(x=p.children,S=0,T=x.length;S{(function(){var t,e,r;t=H(),e=ue(),Uc.exports=r=class extends e{constructor(s,n){if(super(s),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(n)}clone(){return Object.create(this)}toString(s){return this.options.writer.raw(this,this.options.writer.filterOptions(s))}}}).call($c)});var ri=v((jc,kc)=>{(function(){var t,e,r;t=H(),e=ir(),kc.exports=r=(function(){class i extends e{constructor(n,u){if(super(n),u==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(u)}clone(){return Object.create(this)}toString(n){return this.options.writer.text(this,this.options.writer.filterOptions(n))}splitText(n){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(n){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var s,n,u;for(u="",n=this.previousSibling;n;)u=n.data+u,n=n.previousSibling;for(u+=this.data,s=this.nextSibling;s;)u=u+s.data,s=s.nextSibling;return u}}),i}).call(this)}).call(jc)});var ii=v((Xc,Vc)=>{(function(){var t,e,r;t=H(),e=ir(),Vc.exports=r=class extends e{constructor(s,n,u){if(super(s),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}clone(){return Object.create(this)}toString(s){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(s))}isEqualNode(s){return!(!super.isEqualNode(s)||s.target!==this.target)}}}).call(Xc)});var zs=v((Gc,Yc)=>{(function(){var t,e,r;r=ue(),t=H(),Yc.exports=e=class extends r{constructor(s){super(s),this.type=t.Dummy}clone(){return Object.create(this)}toString(s){return""}}}).call(Gc)});var zc=v((Hc,Wc)=>{(function(){var t;Wc.exports=t=(function(){class e{constructor(i){this.nodes=i}clone(){return this.nodes=null}item(i){return this.nodes[i]||null}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e}).call(this)}).call(Hc)});var Zc=v((Kc,Jc)=>{(function(){Jc.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Kc)});var ue=v((Qc,eh)=>{(function(){var t,e,r,i,s,n,u,a,o,c,g,p,m,A,C,S,T,x,B={}.hasOwnProperty,f=[].splice;({isObject:x,isFunction:T,isEmpty:S,getValue:C}=Te()),a=null,r=null,i=null,s=null,n=null,m=null,A=null,p=null,u=null,e=null,g=null,o=null,t=null,eh.exports=c=(function(){class d{constructor(l){this.parent=l,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,a||(a=Yr(),r=Hr(),i=Wr(),s=zr(),n=ei(),m=ti(),A=ri(),p=ii(),u=zs(),e=H(),g=zc(),o=Gr(),t=Zc())}setParent(l){var b,E,h,D,w;for(this.parent=l,l&&(this.options=l.options,this.stringify=l.stringify),D=this.children,w=[],E=0,h=D.length;E":(E=this.parent)!=null&&E.name?"node: <"+l+">, parent: <"+this.parent.name+">":"node: <"+l+">"}ele(l,b,E){return this.element(l,b,E)}nod(l,b,E){return this.node(l,b,E)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,b){return this.instruction(l,b)}doc(){return this.document()}dec(l,b,E){return this.declaration(l,b,E)}e(l,b,E){return this.element(l,b,E)}n(l,b,E){return this.node(l,b,E)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,b){return this.instruction(l,b)}u(){return this.up()}importXMLBuilder(l){return this.importDocument(l)}attribute(l,b){throw new Error("attribute() applies to element nodes only.")}att(l,b){return this.attribute(l,b)}a(l,b){return this.attribute(l,b)}removeAttribute(l){throw new Error("attribute() applies to element nodes only.")}replaceChild(l,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(l,b){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(l){var b,E;return b=this,b===l?0:this.document()!==l.document()?(E=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?E|=t.Preceding:E|=t.Following,E):b.isAncestor(l)?t.Contains|t.Preceding:b.isDescendant(l)?t.Contains|t.Following:b.isPreceding(l)?t.Preceding:t.Following}isSameNode(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(l){var b,E,h;if(l.nodeType!==this.nodeType||l.children.length!==this.children.length)return!1;for(b=E=0,h=this.children.length-1;0<=h?E<=h:E>=h;b=0<=h?++E:--E)if(!this.children[b].isEqualNode(l.children[b]))return!1;return!0}getFeature(l,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(l,b,E){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(l){return l?l===this||this.isDescendant(l):!1}isDescendant(l){var b,E,h,D,w;for(w=this.children,h=0,D=w.length;hE}treePosition(l){var b,E;return E=0,b=!1,this.foreachTreeNode(this.document(),function(h){if(E++,!b&&h===l)return b=!0}),b?E:-1}foreachTreeNode(l,b){var E,h,D,w,O;for(l||(l=this.document()),w=l.children,h=0,D=w.length;h{(function(){var t,e={}.hasOwnProperty;rh.exports=t=(function(){class r{constructor(s){var n,u,a;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),s||(s={}),this.options=s,this.options.version||(this.options.version="1.0"),u=s.stringify||{};for(n in u)e.call(u,n)&&(a=u[n],this[n]=a)}name(s){return this.options.noValidation?s:this.assertLegalName(""+s||"")}text(s){return this.options.noValidation?s:this.assertLegalChar(this.textEscape(""+s||""))}cdata(s){return this.options.noValidation?s:(s=""+s||"",s=s.replace("]]>","]]]]>"),this.assertLegalChar(s))}comment(s){if(this.options.noValidation)return s;if(s=""+s||"",s.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+s);return this.assertLegalChar(s)}raw(s){return this.options.noValidation?s:""+s||""}attValue(s){return this.options.noValidation?s:this.assertLegalChar(this.attEscape(s=""+s||""))}insTarget(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}insValue(s){if(this.options.noValidation)return s;if(s=""+s||"",s.match(/\?>/))throw new Error("Invalid processing instruction value: "+s);return this.assertLegalChar(s)}xmlVersion(s){if(this.options.noValidation)return s;if(s=""+s||"",!s.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+s);return s}xmlEncoding(s){if(this.options.noValidation)return s;if(s=""+s||"",!s.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+s);return this.assertLegalChar(s)}xmlStandalone(s){return this.options.noValidation?s:s?"yes":"no"}dtdPubID(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdSysID(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdElementValue(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdAttType(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdAttDefault(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdEntityValue(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdNData(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}assertLegalChar(s){var n,u;if(this.options.noValidation)return s;if(n="",this.options.version==="1.0"){if(n=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=s.match(n))throw new Error(`Invalid character in string: ${s} at index ${u.index}`)}else if(this.options.version==="1.1"&&(n=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=s.match(n)))throw new Error(`Invalid character in string: ${s} at index ${u.index}`);return s}assertLegalName(s){var n;if(this.options.noValidation)return s;if(this.assertLegalChar(s),n=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!s.match(n))throw new Error("Invalid character in name");return s}textEscape(s){var n;return this.options.noValidation?s:(n=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(n,"&").replace(//g,">").replace(/\r/g," "))}attEscape(s){var n;return this.options.noValidation?s:(n=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(n,"&").replace(/{(function(){sh.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(ih)});var Js=v((nh,uh)=>{(function(){var t,e,r,i,s,n,u,a,o,c,g,p,m,A,C,S,T,x={}.hasOwnProperty;({assign:T}=Te()),t=H(),o=zr(),c=ei(),r=Hr(),i=Wr(),p=Yr(),A=ti(),C=ri(),m=ii(),g=zs(),s=Kr(),n=Zr(),u=Jr(),a=Qr(),e=sr(),uh.exports=S=class{constructor(f){var d,y,l;f||(f={}),this.options=f,y=f.writer||{};for(d in y)x.call(y,d)&&(l=y[d],this["_"+d]=this[d],this[d]=l)}filterOptions(f){var d,y,l,b,E,h,D,w,O;return f||(f={}),f=T({},this.options,f),d={writer:this},d.pretty=f.pretty||!1,d.allowEmpty=f.allowEmpty||!1,d.indent=(y=f.indent)!=null?y:" ",d.newline=(l=f.newline)!=null?l:` +`,d.offset=(b=f.offset)!=null?b:0,d.width=(E=f.width)!=null?E:0,d.dontPrettyTextNodes=(h=(D=f.dontPrettyTextNodes)!=null?D:f.dontprettytextnodes)!=null?h:0,d.spaceBeforeSlash=(w=(O=f.spaceBeforeSlash)!=null?O:f.spacebeforeslash)!=null?w:"",d.spaceBeforeSlash===!0&&(d.spaceBeforeSlash=" "),d.suppressPrettyCount=0,d.user={},d.state=e.None,d}indent(f,d,y){var l;return!d.pretty||d.suppressPrettyCount?"":d.pretty&&(l=(y||0)+d.offset+1,l>0)?new Array(l).join(d.indent):""}endline(f,d,y){return!d.pretty||d.suppressPrettyCount?"":d.newline}attribute(f,d,y){var l;return this.openAttribute(f,d,y),d.pretty&&d.width>0?l=f.name+'="'+f.value+'"':l=" "+f.name+'="'+f.value+'"',this.closeAttribute(f,d,y),l}cdata(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}comment(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}declaration(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+"",l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}docType(f,d,y){var l,b,E,h,D;if(y||(y=0),this.openNode(f,d,y),d.state=e.OpenTag,h=this.indent(f,d,y),h+="0){for(h+=" [",h+=this.endline(f,d,y),d.state=e.InsideTag,D=f.children,b=0,E=D.length;b",h+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),h}element(f,d,y){var l,b,E,h,D,w,O,P,R,G,I,N,k,je,ur,or,li,ci,ct;if(y||(y=0),N=!1,this.openNode(f,d,y),d.state=e.OpenTag,k=this.indent(f,d,y)+"<"+f.name,d.pretty&&d.width>0){P=k.length,ur=f.attribs;for(I in ur)x.call(ur,I)&&(l=ur[I],je=this.attribute(l,d,y),b=je.length,P+b>d.width?(ct=this.indent(f,d,y+1)+je,k+=this.endline(f,d,y)+ct,P=ct.length):(ct=" "+je,k+=ct,P+=ct.length))}else{or=f.attribs;for(I in or)x.call(or,I)&&(l=or[I],k+=this.attribute(l,d,y))}if(h=f.children.length,D=h===0?null:f.children[0],h===0||f.children.every(function(hi){return(hi.type===t.Text||hi.type===t.Raw)&&hi.value===""}))d.allowEmpty?(k+=">",d.state=e.CloseTag,k+=""+this.endline(f,d,y)):(d.state=e.CloseTag,k+=d.spaceBeforeSlash+"/>"+this.endline(f,d,y));else if(d.pretty&&h===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)k+=">",d.state=e.InsideTag,d.suppressPrettyCount++,N=!0,k+=this.writeChildNode(D,d,y+1),d.suppressPrettyCount--,N=!1,d.state=e.CloseTag,k+=""+this.endline(f,d,y);else{if(d.dontPrettyTextNodes){for(li=f.children,w=0,R=li.length;w"+this.endline(f,d,y),d.state=e.InsideTag,ci=f.children,O=0,G=ci.length;O",N&&d.suppressPrettyCount--,k+=this.endline(f,d,y),d.state=e.None}return this.closeNode(f,d,y),k}writeChildNode(f,d,y){switch(f.type){case t.CData:return this.cdata(f,d,y);case t.Comment:return this.comment(f,d,y);case t.Element:return this.element(f,d,y);case t.Raw:return this.raw(f,d,y);case t.Text:return this.text(f,d,y);case t.ProcessingInstruction:return this.processingInstruction(f,d,y);case t.Dummy:return"";case t.Declaration:return this.declaration(f,d,y);case t.DocType:return this.docType(f,d,y);case t.AttributeDeclaration:return this.dtdAttList(f,d,y);case t.ElementDeclaration:return this.dtdElement(f,d,y);case t.EntityDeclaration:return this.dtdEntity(f,d,y);case t.NotationDeclaration:return this.dtdNotation(f,d,y);default:throw new Error("Unknown XML node type: "+f.constructor.name)}}processingInstruction(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+"",l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}raw(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y),d.state=e.InsideTag,l+=f.value,d.state=e.CloseTag,l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}text(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y),d.state=e.InsideTag,l+=f.value,d.state=e.CloseTag,l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdAttList(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdElement(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdEntity(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdNotation(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}openNode(f,d,y){}closeNode(f,d,y){}openAttribute(f,d,y){}closeAttribute(f,d,y){}}}).call(nh)});var si=v((oh,ah)=>{(function(){var t,e;e=Js(),ah.exports=t=class extends e{constructor(i){super(i)}document(i,s){var n,u,a,o,c;for(s=this.filterOptions(s),o="",c=i.children,u=0,a=c.length;u{(function(){var t,e,r,i,s,n,u,a;({isPlainObject:a}=Te()),r=Hs(),e=dc(),s=ue(),t=H(),u=Ks(),n=si(),ch.exports=i=(function(){class o extends s{constructor(g){super(null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new e,g||(g={}),g.writer||(g.writer=new n),this.options=g,this.stringify=new u(g)}end(g){var p;return p={},g?a(g)&&(p=g,g=this.options.writer):g=this.options.writer,g.document(this,g.filterOptions(p))}toString(g){return this.options.writer.document(this,this.options.writer.filterOptions(g))}createElement(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(g,p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(g,p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(g,p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(o.prototype,"implementation",{value:new r}),Object.defineProperty(o.prototype,"doctype",{get:function(){var c,g,p,m;for(m=this.children,g=0,p=m.length;g{(function(){var t,e,r,i,s,n,u,a,o,c,g,p,m,A,C,S,T,x,B,f,d,y,l,b={}.hasOwnProperty;({isObject:y,isFunction:d,isPlainObject:l,getValue:f}=Te()),t=H(),p=Zs(),A=Yr(),i=Hr(),s=Wr(),S=ti(),B=ri(),C=ii(),c=zr(),g=ei(),n=Kr(),a=Jr(),u=Zr(),o=Qr(),r=Ws(),x=Ks(),T=si(),e=sr(),dh.exports=m=class{constructor(h,D,w){var O;this.name="?xml",this.type=t.Document,h||(h={}),O={},h.writer?l(h.writer)&&(O=h.writer,h.writer=new T):h.writer=new T,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(O),this.stringify=new x(h),this.onDataCallback=D||function(){},this.onEndCallback=w||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(h){var D,w,O,P,R,G,I,N;switch(h.type){case t.CData:this.cdata(h.value);break;case t.Comment:this.comment(h.value);break;case t.Element:O={},I=h.attribs;for(w in I)b.call(I,w)&&(D=I[w],O[w]=D.value);this.node(h.name,O);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(h.value);break;case t.Text:this.text(h.value);break;case t.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(N=h.children,R=0,G=N.length;R=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(h){var D,w,O,P;if(!h.isOpen){if(!this.root&&this.currentLevel===0&&h.type===t.Element&&(this.root=h),w="",h.type===t.Element){this.writerOptions.state=e.OpenTag,w=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,P=h.attribs;for(O in P)b.call(P,O)&&(D=P[O],w+=this.writer.attribute(D,this.writerOptions,this.currentLevel));w+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=e.InsideTag}else this.writerOptions.state=e.OpenTag,w=this.writer.indent(h,this.writerOptions,this.currentLevel)+""),w+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(w,this.currentLevel),h.isOpen=!0}}closeNode(h){var D;if(!h.isClosed)return D="",this.writerOptions.state=e.CloseTag,h.type===t.Element?D=this.writer.indent(h,this.writerOptions,this.currentLevel)+""+this.writer.endline(h,this.writerOptions,this.currentLevel):D=this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=e.None,this.onData(D,this.currentLevel),h.isClosed=!0}onData(h,D){return this.documentStarted=!0,this.onDataCallback(h,D+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(h){return h==null?"":"node: <"+h+">"}ele(){return this.element(...arguments)}nod(h,D,w){return this.node(h,D,w)}txt(h){return this.text(h)}dat(h){return this.cdata(h)}com(h){return this.comment(h)}ins(h,D){return this.instruction(h,D)}dec(h,D,w){return this.declaration(h,D,w)}dtd(h,D,w){return this.doctype(h,D,w)}e(h,D,w){return this.element(h,D,w)}n(h,D,w){return this.node(h,D,w)}t(h){return this.text(h)}d(h){return this.cdata(h)}c(h){return this.comment(h)}r(h){return this.raw(h)}i(h,D){return this.instruction(h,D)}att(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(h,D){return this.entity(h,D)}pent(h,D){return this.pEntity(h,D)}not(h,D){return this.notation(h,D)}}}).call(hh)});var mh=v((ph,gh)=>{(function(){var t,e,r,i,s={}.hasOwnProperty;t=H(),i=Js(),e=sr(),gh.exports=r=class extends i{constructor(u,a){super(a),this.stream=u}endline(u,a,o){return u.isLastRootNode&&a.state===e.CloseTag?"":super.endline(u,a,o)}document(u,a){var o,c,g,p,m,A,C,S,T;for(C=u.children,c=g=0,m=C.length;g0){for(this.stream.write(" ["),this.stream.write(this.endline(u,a,o)),a.state=e.InsideTag,m=u.children,g=0,p=m.length;g"),this.stream.write(this.endline(u,a,o)),a.state=e.None,this.closeNode(u,a,o)}element(u,a,o){var c,g,p,m,A,C,S,T,x,B,f,d,y,l,b,E;if(o||(o=0),this.openNode(u,a,o),a.state=e.OpenTag,f=this.indent(u,a,o)+"<"+u.name,a.pretty&&a.width>0){S=f.length,y=u.attribs;for(x in y)s.call(y,x)&&(c=y[x],d=this.attribute(c,a,o),g=d.length,S+g>a.width?(E=this.indent(u,a,o+1)+d,f+=this.endline(u,a,o)+E,S=E.length):(E=" "+d,f+=E,S+=E.length))}else{l=u.attribs;for(x in l)s.call(l,x)&&(c=l[x],f+=this.attribute(c,a,o))}if(this.stream.write(f),m=u.children.length,A=m===0?null:u.children[0],m===0||u.children.every(function(h){return(h.type===t.Text||h.type===t.Raw)&&h.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=e.CloseTag,this.stream.write("")):(a.state=e.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&m===1&&(A.type===t.Text||A.type===t.Raw)&&A.value!=null)this.stream.write(">"),a.state=e.InsideTag,a.suppressPrettyCount++,B=!0,this.writeChildNode(A,a,o+1),a.suppressPrettyCount--,B=!1,a.state=e.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(u,a,o)),a.state=e.InsideTag,b=u.children,C=0,T=b.length;C")}return this.stream.write(this.endline(u,a,o)),a.state=e.None,this.closeNode(u,a,o)}processingInstruction(u,a,o){return this.stream.write(super.processingInstruction(u,a,o))}raw(u,a,o){return this.stream.write(super.raw(u,a,o))}text(u,a,o){return this.stream.write(super.text(u,a,o))}dtdAttList(u,a,o){return this.stream.write(super.dtdAttList(u,a,o))}dtdElement(u,a,o){return this.stream.write(super.dtdElement(u,a,o))}dtdEntity(u,a,o){return this.stream.write(super.dtdEntity(u,a,o))}dtdNotation(u,a,o){return this.stream.write(super.dtdNotation(u,a,o))}}}).call(ph)});var Dh=v((bh,Ke)=>{(function(){var t,e,r,i,s,n,u,a,o;({assign:a,isFunction:o}=Te()),r=Hs(),i=Zs(),s=fh(),u=si(),n=mh(),t=H(),e=sr(),Ke.exports.create=function(c,g,p,m){var A,C;if(c==null)throw new Error("Root element needs a name.");return m=a({},g,p,m),A=new i(m),C=A.element(c),m.headless||(A.declaration(m),(m.pubID!=null||m.sysID!=null)&&A.dtd(m)),C},Ke.exports.begin=function(c,g,p){return o(c)&&([g,p]=[c,g],c={}),g?new s(c,g,p):new i(c)},Ke.exports.stringWriter=function(c){return new u(c)},Ke.exports.streamWriter=function(c,g){return new n(c,g)},Ke.exports.implementation=new r,Ke.exports.nodeType=t,Ke.exports.writerState=e}).call(bh)});var wh=v(xt=>{"use strict";var Eh=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xt,"__esModule",{value:!0});xt.build=void 0;var yh=Eh(ec()),xm=Eh(Dh());function Tm(t){function e(r){return r<10?"0"+r:r}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"Z"}var Sm=Object.prototype.toString;function Ah(t){let e=Sm.call(t).match(/\[object (.*)\]/);return e&&e[1]}function Nm(t,e){let r={version:"1.0",encoding:"UTF-8"},i={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},s=xm.default.create("plist");return s.dec(r.version,r.encoding,r.standalone),s.dtd(i.pubid,i.sysid),s.att("version","1.0"),Qs(t,s),e||(e={}),e.pretty=e.pretty!==!1,s.end(e)}xt.build=Nm;function Qs(t,e){let r,i,s,n=Ah(t);if(n!="Undefined")if(Array.isArray(t))for(e=e.ele("array"),i=0;i{"use strict";var Om=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.parse=void 0;var Im=$r(),Tt=Om(Se("assert")),ni=3,vh=4,_m=8;function en(t){return t.nodeType===ni||t.nodeType===_m||t.nodeType===vh}function $e(t){return!t.childNodes||t.childNodes.length===0}function Pm(t){let e=new Im.DOMParser({errorHandler(){}}).parseFromString(t);Tt.default(e.documentElement.nodeName==="plist","malformed document. First element should be ");let r=St(e.documentElement);return r.length==1&&(r=r[0]),r}Nt.parse=Pm;function St(t){let e,r,i,s,n,u;if(!t)return null;if(t.nodeName==="plist"){if(s=[],$e(t))return s;for(e=0;e."),i=St(t.childNodes[e])):(Tt.default(t.childNodes[e].nodeName!=="key",'Unexpected key "'+St(t.childNodes[e])+'" while parsing .'),r[i]=St(t.childNodes[e])),u+=1);if(u%2===1)throw new Error('Missing value for "'+i+'" while parsing ');return r}else if(t.nodeName==="array"){if(s=[],$e(t))return s;for(e=0;e{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});var Rm=wh(),Lm=Ch();tn.default={parse:Lm.parse,build:Rm.build}});var Th=v(Je=>{"use strict";var Bm=Je&&Je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Je,"__esModule",{value:!0});Je.buildChecks=Je.parseChecks=void 0;var xh=Bm(rn());function Mm(t){let e=xh.default.parse(t),r={};for(let[i,s]of Object.entries(e))typeof s=="boolean"&&(r[i]=s);return r}Je.parseChecks=Mm;function Fm(t){let e={};for(let[r,i]of Object.entries(t))typeof i=="boolean"&&(e[r]=i);return xh.default.build(e)}Je.buildChecks=Fm});var Nh=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0})});var Ih=v(Z=>{"use strict";var qm=Z&&Z.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$m=Z&&Z.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qm(e,t,r)};Object.defineProperty(Z,"__esModule",{value:!0});Z.buildChecks=Z.parseChecks=Z.build=Z.parse=void 0;var Um=Hl();Object.defineProperty(Z,"parse",{enumerable:!0,get:function(){return Um.parse}});var jm=Jl();Object.defineProperty(Z,"build",{enumerable:!0,get:function(){return jm.build}});var Oh=Th();Object.defineProperty(Z,"parseChecks",{enumerable:!0,get:function(){return Oh.parseChecks}});Object.defineProperty(Z,"buildChecks",{enumerable:!0,get:function(){return Oh.buildChecks}});$m(Nh(),Z)});var Ph=v(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.parse=void 0;var km=$r();function Xm(t){let i=new km.DOMParser().parseFromString(t,"text/xml").documentElement;if(!i||i.tagName!=="Scheme")throw new Error("Invalid xcscheme file: root element must be ");return Vm(i)}ui.parse=Xm;function Vm(t){let e={};e.version=L(t,"version"),e.lastUpgradeVersion=L(t,"LastUpgradeVersion");let r=M(t,"BuildAction");r&&(e.buildAction=Gm(r));let i=M(t,"TestAction");i&&(e.testAction=zm(i));let s=M(t,"LaunchAction");s&&(e.launchAction=Zm(s));let n=M(t,"ProfileAction");n&&(e.profileAction=r2(n));let u=M(t,"AnalyzeAction");u&&(e.analyzeAction=i2(u));let a=M(t,"ArchiveAction");return a&&(e.archiveAction=s2(a)),e}function Gm(t){let e={};e.parallelizeBuildables=$(t,"parallelizeBuildables"),e.buildImplicitDependencies=$(t,"buildImplicitDependencies"),e.runPostActionsOnFailure=$(t,"runPostActionsOnFailure"),e.buildArchitectures=L(t,"buildArchitectures");let r=M(t,"BuildActionEntries");return r&&(e.entries=Ze(r,"BuildActionEntry").map(Ym)),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function Ym(t){let e={};e.buildForRunning=$(t,"buildForRunning"),e.buildForTesting=$(t,"buildForTesting"),e.buildForProfiling=$(t,"buildForProfiling"),e.buildForArchiving=$(t,"buildForArchiving"),e.buildForAnalyzing=$(t,"buildForAnalyzing");let r=M(t,"BuildableReference");return r&&(e.buildableReference=nt(r)),e}function nt(t){return{buildableIdentifier:L(t,"BuildableIdentifier")||"primary",blueprintIdentifier:L(t,"BlueprintIdentifier")||"",buildableName:L(t,"BuildableName")||"",blueprintName:L(t,"BlueprintName")||"",referencedContainer:L(t,"ReferencedContainer")||""}}function ae(t,e){let r=M(t,e);if(!r)return;let i=Ze(r,"ExecutionAction");if(i.length!==0)return i.map(Hm)}function Hm(t){let e={};e.actionType=L(t,"ActionType");let r=M(t,"ActionContent");return r&&(e.actionContent=Wm(r)),e}function Wm(t){let e={};e.title=L(t,"title"),e.scriptText=L(t,"scriptText"),e.shellToInvoke=L(t,"shellToInvoke");let r=M(t,"EnvironmentBuildable");if(r){let i=M(r,"BuildableReference");i&&(e.environmentBuildable=nt(i))}return e}function zm(t){let e={};e.buildConfiguration=L(t,"buildConfiguration"),e.selectedDebuggerIdentifier=L(t,"selectedDebuggerIdentifier"),e.selectedLauncherIdentifier=L(t,"selectedLauncherIdentifier"),e.shouldUseLaunchSchemeArgsEnv=$(t,"shouldUseLaunchSchemeArgsEnv"),e.shouldAutocreateTestPlan=$(t,"shouldAutocreateTestPlan"),e.preferredScreenCaptureFormat=L(t,"preferredScreenCaptureFormat"),e.codeCoverageEnabled=$(t,"codeCoverageEnabled"),e.onlyGenerateCoverageForSpecifiedTargets=$(t,"onlyGenerateCoverageForSpecifiedTargets");let r=M(t,"Testables");r&&(e.testables=Ze(r,"TestableReference").map(Km));let i=M(t,"TestPlans");i&&(e.testPlans=Ze(i,"TestPlanReference").map(Jm));let s=M(t,"MacroExpansion");if(s){let n=M(s,"BuildableReference");n&&(e.macroExpansion=nt(n))}return e.commandLineArguments=sn(t),e.environmentVariables=nn(t),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function Km(t){let e={};e.skipped=$(t,"skipped"),e.parallelizable=$(t,"parallelizable"),e.useTestSelectionWhitelist=$(t,"useTestSelectionWhitelist");let r=M(t,"BuildableReference");r&&(e.buildableReference=nt(r));let i=M(t,"SkippedTests");i&&(e.skippedTests=Ze(i,"Test").map(n=>({identifier:L(n,"Identifier")||""})));let s=M(t,"SelectedTests");return s&&(e.selectedTests=Ze(s,"Test").map(n=>({identifier:L(n,"Identifier")||""}))),e}function Jm(t){return{reference:L(t,"reference")||"",default:$(t,"default")}}function Zm(t){let e={};e.buildConfiguration=L(t,"buildConfiguration"),e.selectedDebuggerIdentifier=L(t,"selectedDebuggerIdentifier"),e.selectedLauncherIdentifier=L(t,"selectedLauncherIdentifier"),e.launchStyle=L(t,"launchStyle"),e.useCustomWorkingDirectory=$(t,"useCustomWorkingDirectory"),e.customWorkingDirectory=L(t,"customWorkingDirectory"),e.ignoresPersistentStateOnLaunch=$(t,"ignoresPersistentStateOnLaunch"),e.debugDocumentVersioning=$(t,"debugDocumentVersioning"),e.debugServiceExtension=L(t,"debugServiceExtension"),e.allowLocationSimulation=$(t,"allowLocationSimulation"),e.customLaunchCommand=L(t,"customLaunchCommand"),e.appClipInvocationURLString=L(t,"appClipInvocationURLString"),e.askForAppToLaunch=$(t,"askForAppToLaunch"),e.launchAutomaticallySubstyle=L(t,"launchAutomaticallySubstyle");let r=M(t,"BuildableProductRunnable");r&&(e.buildableProductRunnable=_h(r));let i=M(t,"RemoteRunnable");i&&(e.remoteRunnable=Qm(i));let s=M(t,"MacroExpansion");if(s){let a=M(s,"BuildableReference");a&&(e.macroExpansion=nt(a))}let n=M(t,"LocationScenarioReference");n&&(e.locationScenarioReference=e2(n));let u=M(t,"StoreKitConfigurationFileReference");return u&&(e.storeKitConfigurationFileReference=t2(u)),e.commandLineArguments=sn(t),e.environmentVariables=nn(t),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function _h(t){let e={};e.runnableDebuggingMode=L(t,"runnableDebuggingMode");let r=M(t,"BuildableReference");return r&&(e.buildableReference=nt(r)),e}function Qm(t){let e={};e.runnableDebuggingMode=L(t,"runnableDebuggingMode"),e.bundleIdentifier=L(t,"BundleIdentifier"),e.remotePath=L(t,"RemotePath");let r=M(t,"BuildableReference");return r&&(e.buildableReference=nt(r)),e}function e2(t){return{identifier:L(t,"identifier"),referenceType:L(t,"referenceType")}}function t2(t){return{identifier:L(t,"identifier")}}function r2(t){let e={};e.buildConfiguration=L(t,"buildConfiguration"),e.shouldUseLaunchSchemeArgsEnv=$(t,"shouldUseLaunchSchemeArgsEnv"),e.savedToolIdentifier=L(t,"savedToolIdentifier"),e.useCustomWorkingDirectory=$(t,"useCustomWorkingDirectory"),e.debugDocumentVersioning=$(t,"debugDocumentVersioning"),e.askForAppToLaunch=$(t,"askForAppToLaunch"),e.launchAutomaticallySubstyle=L(t,"launchAutomaticallySubstyle"),e.appClipInvocationURLString=L(t,"appClipInvocationURLString");let r=M(t,"BuildableProductRunnable");return r&&(e.buildableProductRunnable=_h(r)),e.commandLineArguments=sn(t),e.environmentVariables=nn(t),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function i2(t){let e={};return e.buildConfiguration=L(t,"buildConfiguration"),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function s2(t){let e={};return e.buildConfiguration=L(t,"buildConfiguration"),e.customArchiveName=L(t,"customArchiveName"),e.revealArchiveInOrganizer=$(t,"revealArchiveInOrganizer"),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function sn(t){let e=M(t,"CommandLineArguments");if(!e)return;let r=Ze(e,"CommandLineArgument");if(r.length!==0)return r.map(i=>({argument:L(i,"argument")||"",isEnabled:$(i,"isEnabled")}))}function nn(t){let e=M(t,"EnvironmentVariables");if(!e)return;let r=Ze(e,"EnvironmentVariable");if(r.length!==0)return r.map(i=>({key:L(i,"key")||"",value:L(i,"value")||"",isEnabled:$(i,"isEnabled")}))}function L(t,e){if(t.hasAttribute(e))return t.getAttribute(e)??void 0}function $(t,e){let r=t.getAttribute(e);if(r==="YES"||r==="Yes")return!0;if(r==="NO"||r==="No")return!1}function M(t,e){let r=t.childNodes;for(let i=0;i{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.build=void 0;function n2(t){let e=[];e.push(''),e.push("` ${i}`)),e[e.length-1]+=">",t.buildAction&&e.push(...o2(t.buildAction,1)),t.testAction&&e.push(...h2(t.testAction,1)),t.launchAction&&e.push(...p2(t.launchAction,1)),t.profileAction&&e.push(...D2(t.profileAction,1)),t.analyzeAction&&e.push(...y2(t.analyzeAction,1)),t.archiveAction&&e.push(...A2(t.archiveAction,1)),e.push(""),e.join(` `)+` -`}Nz.build=vV;function uV($){let Y=[];if($.lastUpgradeVersion!==void 0)Y.push(`LastUpgradeVersion = "${$.lastUpgradeVersion}"`);if($.version!==void 0)Y.push(`version = "${$.version}"`);return Y}function mV($,Y){let Z=[],J=x(Y),K=[];if($.parallelizeBuildables!==void 0)K.push(`parallelizeBuildables = "${m($.parallelizeBuildables)}"`);if($.buildImplicitDependencies!==void 0)K.push(`buildImplicitDependencies = "${m($.buildImplicitDependencies)}"`);if($.runPostActionsOnFailure!==void 0)K.push(`runPostActionsOnFailure = "${m($.runPostActionsOnFailure)}"`);if($.buildArchitectures!==void 0)K.push(`buildArchitectures = "${$.buildArchitectures}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.entries&&$.entries.length>0){Z.push(`${x(Y+1)}`);for(let z of $.entries)Z.push(...cV(z,Y+2));Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function cV($,Y){let Z=[],J=x(Y),K=[];if($.buildForTesting!==void 0)K.push(`buildForTesting = "${m($.buildForTesting)}"`);if($.buildForRunning!==void 0)K.push(`buildForRunning = "${m($.buildForRunning)}"`);if($.buildForProfiling!==void 0)K.push(`buildForProfiling = "${m($.buildForProfiling)}"`);if($.buildForArchiving!==void 0)K.push(`buildForArchiving = "${m($.buildForArchiving)}"`);if($.buildForAnalyzing!==void 0)K.push(`buildForAnalyzing = "${m($.buildForAnalyzing)}"`);Z.push(`${J}`),Z}function J0($,Y){let Z=[],J=x(Y);return Z.push(`${J}`),Z.push(`${J}`),Z}function q1($,Y,Z){let J=[],K=x(Z);J.push(`${K}<${$}>`);for(let z of Y)J.push(...pV(z,Z+1));return J.push(`${K}`),J}function pV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.actionContent)Z.push(...dV($.actionContent,Y+1));return Z.push(`${J}`),Z}function dV($,Y){let Z=[],J=x(Y),K=[];if($.title!==void 0)K.push(`title = "${W1($.title)}"`);if($.scriptText!==void 0)K.push(`scriptText = "${W1($.scriptText)}"`);if($.shellToInvoke!==void 0)K.push(`shellToInvoke = "${$.shellToInvoke}"`);Z.push(`${J}`),Z.push(...J0($.environmentBuildable,Y+2)),Z.push(`${x(Y+1)}`),Z.push(`${J}`);else Z[Z.length-1]+=">",Z.push(`${J}`);return Z}function lV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.shouldAutocreateTestPlan!==void 0)K.push(`shouldAutocreateTestPlan = "${m($.shouldAutocreateTestPlan)}"`);if($.preferredScreenCaptureFormat!==void 0)K.push(`preferredScreenCaptureFormat = "${$.preferredScreenCaptureFormat}"`);if($.codeCoverageEnabled!==void 0)K.push(`codeCoverageEnabled = "${m($.codeCoverageEnabled)}"`);if($.onlyGenerateCoverageForSpecifiedTargets!==void 0)K.push(`onlyGenerateCoverageForSpecifiedTargets = "${m($.onlyGenerateCoverageForSpecifiedTargets)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.testPlans&&$.testPlans.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testPlans)Z.push(...iV(z,Y+2));Z.push(`${x(Y+1)}`)}if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.testables&&$.testables.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testables)Z.push(...sV(z,Y+2));Z.push(`${x(Y+1)}`)}else if($.testables!==void 0)Z.push(`${x(Y+1)}`),Z.push(`${x(Y+1)}`);if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...GZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...VZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function sV($,Y){let Z=[],J=x(Y),K=[];if($.skipped!==void 0)K.push(`skipped = "${m($.skipped)}"`);if($.parallelizable!==void 0)K.push(`parallelizable = "${m($.parallelizable)}"`);if($.useTestSelectionWhitelist!==void 0)K.push(`useTestSelectionWhitelist = "${m($.useTestSelectionWhitelist)}"`);Z.push(`${J}0){Z.push(`${x(Y+1)}`);for(let z of $.skippedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}if($.selectedTests&&$.selectedTests.length>0){Z.push(`${x(Y+1)}`);for(let z of $.selectedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function iV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`),Z.push(`${J}`),Z}function rV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.launchStyle!==void 0)K.push(`launchStyle = "${$.launchStyle}"`);if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"Yes":"No"}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.customWorkingDirectory!==void 0)K.push(`customWorkingDirectory = "${$.customWorkingDirectory}"`);if($.ignoresPersistentStateOnLaunch!==void 0)K.push(`ignoresPersistentStateOnLaunch = "${m($.ignoresPersistentStateOnLaunch)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.debugServiceExtension!==void 0)K.push(`debugServiceExtension = "${$.debugServiceExtension}"`);if($.allowLocationSimulation!==void 0)K.push(`allowLocationSimulation = "${m($.allowLocationSimulation)}"`);if($.customLaunchCommand!==void 0)K.push(`customLaunchCommand = "${W1($.customLaunchCommand)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...xz($.buildableProductRunnable,Y+1));if($.remoteRunnable)Z.push(...aV($.remoteRunnable,Y+1));if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.locationScenarioReference)Z.push(...nV($.locationScenarioReference,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...GZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...VZ($.environmentVariables,Y+1));if($.storeKitConfigurationFileReference)Z.push(...oV($.storeKitConfigurationFileReference,Y+1));return Z.push(`${J}`),Z}function xz($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.buildableReference)Z.push(...J0($.buildableReference,Y+1));return Z.push(`${J}`),Z}function aV($,Y){let Z=[],J=x(Y),K=[];if($.runnableDebuggingMode!==void 0)K.push(`runnableDebuggingMode = "${$.runnableDebuggingMode}"`);if($.bundleIdentifier!==void 0)K.push(`BundleIdentifier = "${$.bundleIdentifier}"`);if($.remotePath!==void 0)K.push(`RemotePath = "${$.remotePath}"`);Z.push(`${J}`),Z}function nV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function oV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function tV($,Y){let Z=[],J=x(Y),K=[];if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"YES":"NO"}"`);if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.savedToolIdentifier!==void 0)K.push(`savedToolIdentifier = "${$.savedToolIdentifier}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...xz($.buildableProductRunnable,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...GZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...VZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function eV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.preActions&&$.preActions.length>0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function $W($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.customArchiveName!==void 0)K.push(`customArchiveName = "${W1($.customArchiveName)}"`);if($.revealArchiveInOrganizer!==void 0)K.push(`revealArchiveInOrganizer = "${m($.revealArchiveInOrganizer)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function GZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function VZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function x($){return" ".repeat($)}function m($){return $?"YES":"NO"}function W1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var fz=C((o1)=>{var YW=o1&&o1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o1,"__esModule",{value:!0});o1.buildManagement=o1.parseManagement=void 0;var gz=YW(KZ());function ZW($){let Y=gz.default.parse($),Z={};if(Y.SchemeUserState){Z.SchemeUserState={};let J=Y.SchemeUserState;for(let[K,z]of Object.entries(J))Z.SchemeUserState[K]=JW(z)}if(Y.SuppressBuildableAutocreation){Z.SuppressBuildableAutocreation={};let J=Y.SuppressBuildableAutocreation;for(let[K,z]of Object.entries(J))Z.SuppressBuildableAutocreation[K]=KW(z)}return Z}o1.parseManagement=ZW;function JW($){let Y={};if(typeof $.isShown==="boolean")Y.isShown=$.isShown;if(typeof $.orderHint==="number")Y.orderHint=$.orderHint;return Y}function KW($){let Y={};if(typeof $.primary==="boolean")Y.primary=$.primary;return Y}function zW($){let Y={};if($.SchemeUserState)Y.SchemeUserState=$.SchemeUserState;if($.SuppressBuildableAutocreation)Y.SuppressBuildableAutocreation=$.SuppressBuildableAutocreation;return gz.default.build(Y)}o1.buildManagement=zW});var vz=C((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0})});var mz=C((e)=>{var QW=e&&e.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),GW=e&&e.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))QW(Y,$,Z)};Object.defineProperty(e,"__esModule",{value:!0});e.buildManagement=e.parseManagement=e.build=e.parse=void 0;var VW=Lz();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return VW.parse}});var WW=bz();Object.defineProperty(e,"build",{enumerable:!0,get:function(){return WW.build}});var uz=fz();Object.defineProperty(e,"parseManagement",{enumerable:!0,get:function(){return uz.parseManagement}});Object.defineProperty(e,"buildManagement",{enumerable:!0,get:function(){return uz.buildManagement}});GW(vz(),e)});var v1=$$(wJ(),1);import{existsSync as az}from"fs";import{join as z0,resolve as XW}from"path";import{parseArgs as IW}from"util";class kY{rawTemplates;constructor($){this.rawTemplates=new Map(Object.entries($))}getAncestorChain($){let Y=new Set,Z=[],J=(K)=>{if(Y.has(K))return;Y.add(K);let z=this.rawTemplates.get(K);if(!z)return;for(let Q of z.info.Ancestors||[])J(Q);Z.push(K)};return J($),Z}resolve($,Y){let Z=this.getAncestorChain($),J=this.rawTemplates.get($);if(!J)throw Error(`Template not found: ${$}`);let K=[],z={},Q={},W={},G={},q={},H={},R="com.apple.product-type.application",P=["Sources","Frameworks","Resources"],w={},I=[];for(let X of Z){let D=this.rawTemplates.get(X);if(!D)continue;let y=D.info;if(y.Project){if(Object.assign(z,y.Project.SharedSettings||{}),y.Project.Configurations)Object.assign(Q,y.Project.Configurations.Debug||{}),Object.assign(W,y.Project.Configurations.Release||{})}if(y.Targets)for(let O of y.Targets){if(O.ProductType)R=O.ProductType;if(O.BuildPhases)P=O.BuildPhases.map((B)=>B.Class||B);if(Object.assign(G,O.SharedSettings||{}),O.Configurations)Object.assign(q,O.Configurations.Debug||{}),Object.assign(H,O.Configurations.Release||{})}if(y.Definitions)Object.assign(w,y.Definitions);if(y.Nodes)I.push(...y.Nodes);if(y.Options)for(let O of y.Options)this.mergeOption(K,O,Y,w,I,G,q,H,z,Q,W)}for(let X of K)if(X._override)Y[X.identifier]=X._override;let T=this.resolveFiles(I,w,Z,$);return{id:$,name:J.name,description:J.info.Description||"",platform:J.platform,category:J.category,options:K.filter((X)=>!X.notPersisted||X.identifier==="productName"),productType:R,buildPhases:P,projectSharedSettings:z,projectDebugSettings:Q,projectReleaseSettings:W,targetSharedSettings:G,targetDebugSettings:q,targetReleaseSettings:H,files:T,templateFilesDir:""}}mergeOption($,Y,Z,J,K,z,Q,W,G,q,H){let R=Y.Identifier;if(!R)return;if(Y.Override){let w=$.find((I)=>I.identifier===R);if(w)w._override=Y.Override;else{let I=this.parseOption(Y);I._override=Y.Override,$.push(I)}Z[R]=Y.Override}let P=$.find((w)=>w.identifier===R);if(!P&&Y.Type)$.push(this.parseOption(Y));else if(!P&&Y.Values)$.push(this.parseOption({...Y,Type:"popup"}));if(Y.Units){let w=Z[R];if(w&&Y.Units[w]){let I=Y.Units[w],T=Array.isArray(I)?I:[I];for(let X of T){if(X.RequiredOptions){let D=!0;for(let[y,O]of Object.entries(X.RequiredOptions))if(Z[y]!==O){D=!1;break}if(!D)continue}if(X.Definitions)Object.assign(J,X.Definitions);if(X.Nodes)K.push(...X.Nodes);if(X.Targets){for(let D of X.Targets)if(Object.assign(z,D.SharedSettings||{}),D.Configurations)Object.assign(Q,D.Configurations.Debug||{}),Object.assign(W,D.Configurations.Release||{})}if(X.Project){if(Object.assign(G,X.Project.SharedSettings||{}),X.Project.Configurations)Object.assign(q,X.Project.Configurations.Debug||{}),Object.assign(H,X.Project.Configurations.Release||{})}}}}}parseOption($){return{identifier:$.Identifier,name:$.Name?.replace(/:$/,""),description:$.Description,type:($.Type||"popup").toLowerCase(),default:$.Default,values:$.Values||$.ValueTitles,required:$.Required,notPersisted:$.NotPersisted}}resolveFiles($,Y,Z,J){let K=new Map;for(let z of $){if(z.includes(":")&&!z.includes("___")){if(z.split(":")[0].includes("."))continue}let Q=Y[z],W=z,G=50;if(Q&&typeof Q==="object")W=Q.Path||z,G=Q.SortOrder??50;let q=J;for(let H of[...Z].reverse()){let R=this.rawTemplates.get(H);if(R?.sourceFiles?.includes(W)){q=H;break}if(R?.sourceFiles?.some((P)=>P===W||W.startsWith(P+"/"))){q=H;break}}K.set(z,{name:z,sourcePath:W,sortOrder:G,sourceTemplateId:q})}return[...K.values()].sort((z,Q)=>z.sortOrder-Q.sortOrder)}}function E$($,Y){return $.replace(/___FILEHEADER___/g,zG(Y)).replace(/___PACKAGENAME:identifier___/g,b0(Y.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,y1(Y.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,b0(Y.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,y1(Y.productName)).replace(/___PACKAGENAMEASXML___/g,QG(Y.productName)).replace(/___PACKAGENAME___/g,Y.productName).replace(/___PROJECTNAME___/g,Y.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,y1(Y.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,Y.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,y1(Y.productName)).replace(/___VARIABLE_productName___/g,Y.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___DATE___/g,Y.date).replace(/___YEAR___/g,Y.year).replace(/___FULLUSERNAME___/g,Y.fullUserName).replace(/___COPYRIGHT___/g,Y.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${y1(Y.bundleIdentifierPrefix)}.${y1(Y.productName)}`)}function zG($){return` +`}oi.build=n2;function u2(t){let e=[];return t.lastUpgradeVersion!==void 0&&e.push(`LastUpgradeVersion = "${t.lastUpgradeVersion}"`),t.version!==void 0&&e.push(`version = "${t.version}"`),e}function o2(t,e){let r=[],i=_(e),s=[];t.parallelizeBuildables!==void 0&&s.push(`parallelizeBuildables = "${j(t.parallelizeBuildables)}"`),t.buildImplicitDependencies!==void 0&&s.push(`buildImplicitDependencies = "${j(t.buildImplicitDependencies)}"`),t.runPostActionsOnFailure!==void 0&&s.push(`runPostActionsOnFailure = "${j(t.runPostActionsOnFailure)}"`),t.buildArchitectures!==void 0&&s.push(`buildArchitectures = "${t.buildArchitectures}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.entries&&t.entries.length>0){r.push(`${_(e+1)}`);for(let n of t.entries)r.push(...a2(n,e+2));r.push(`${_(e+1)}`)}return r.push(`${i}`),r}function a2(t,e){let r=[],i=_(e),s=[];t.buildForTesting!==void 0&&s.push(`buildForTesting = "${j(t.buildForTesting)}"`),t.buildForRunning!==void 0&&s.push(`buildForRunning = "${j(t.buildForRunning)}"`),t.buildForProfiling!==void 0&&s.push(`buildForProfiling = "${j(t.buildForProfiling)}"`),t.buildForArchiving!==void 0&&s.push(`buildForArchiving = "${j(t.buildForArchiving)}"`),t.buildForAnalyzing!==void 0&&s.push(`buildForAnalyzing = "${j(t.buildForAnalyzing)}"`),r.push(`${i}`),r}function ut(t,e){let r=[],i=_(e);return r.push(`${i}`),r.push(`${i}`),r}function ce(t,e,r){let i=[],s=_(r);i.push(`${s}<${t}>`);for(let n of e)i.push(...l2(n,r+1));return i.push(`${s}`),i}function l2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",t.actionContent&&r.push(...c2(t.actionContent,e+1)),r.push(`${i}`),r}function c2(t,e){let r=[],i=_(e),s=[];t.title!==void 0&&s.push(`title = "${le(t.title)}"`),t.scriptText!==void 0&&s.push(`scriptText = "${le(t.scriptText)}"`),t.shellToInvoke!==void 0&&s.push(`shellToInvoke = "${t.shellToInvoke}"`),r.push(`${i}`),r.push(...ut(t.environmentBuildable,e+2)),r.push(`${_(e+1)}`),r.push(`${i}`)):(r[r.length-1]+=">",r.push(`${i}`)),r}function h2(t,e){let r=[],i=_(e),s=[];t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.selectedDebuggerIdentifier!==void 0&&s.push(`selectedDebuggerIdentifier = "${t.selectedDebuggerIdentifier}"`),t.selectedLauncherIdentifier!==void 0&&s.push(`selectedLauncherIdentifier = "${t.selectedLauncherIdentifier}"`),t.shouldUseLaunchSchemeArgsEnv!==void 0&&s.push(`shouldUseLaunchSchemeArgsEnv = "${j(t.shouldUseLaunchSchemeArgsEnv)}"`),t.shouldAutocreateTestPlan!==void 0&&s.push(`shouldAutocreateTestPlan = "${j(t.shouldAutocreateTestPlan)}"`),t.preferredScreenCaptureFormat!==void 0&&s.push(`preferredScreenCaptureFormat = "${t.preferredScreenCaptureFormat}"`),t.codeCoverageEnabled!==void 0&&s.push(`codeCoverageEnabled = "${j(t.codeCoverageEnabled)}"`),t.onlyGenerateCoverageForSpecifiedTargets!==void 0&&s.push(`onlyGenerateCoverageForSpecifiedTargets = "${j(t.onlyGenerateCoverageForSpecifiedTargets)}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.testPlans&&t.testPlans.length>0){r.push(`${_(e+1)}`);for(let n of t.testPlans)r.push(...f2(n,e+2));r.push(`${_(e+1)}`)}if(t.macroExpansion&&(r.push(`${_(e+1)}`),r.push(...ut(t.macroExpansion,e+2)),r.push(`${_(e+1)}`)),t.testables&&t.testables.length>0){r.push(`${_(e+1)}`);for(let n of t.testables)r.push(...d2(n,e+2));r.push(`${_(e+1)}`)}else t.testables!==void 0&&(r.push(`${_(e+1)}`),r.push(`${_(e+1)}`));return t.commandLineArguments&&t.commandLineArguments.length>0&&r.push(...un(t.commandLineArguments,e+1)),t.environmentVariables&&t.environmentVariables.length>0&&r.push(...on(t.environmentVariables,e+1)),r.push(`${i}`),r}function d2(t,e){let r=[],i=_(e),s=[];t.skipped!==void 0&&s.push(`skipped = "${j(t.skipped)}"`),t.parallelizable!==void 0&&s.push(`parallelizable = "${j(t.parallelizable)}"`),t.useTestSelectionWhitelist!==void 0&&s.push(`useTestSelectionWhitelist = "${j(t.useTestSelectionWhitelist)}"`),r.push(`${i}0){r.push(`${_(e+1)}`);for(let n of t.skippedTests)r.push(`${_(e+2)}`),r.push(`${_(e+2)}`);r.push(`${_(e+1)}`)}if(t.selectedTests&&t.selectedTests.length>0){r.push(`${_(e+1)}`);for(let n of t.selectedTests)r.push(`${_(e+2)}`),r.push(`${_(e+2)}`);r.push(`${_(e+1)}`)}return r.push(`${i}`),r}function f2(t,e){let r=[],i=_(e);return r.push(`${i}`),r.push(`${i}`),r}function p2(t,e){let r=[],i=_(e),s=[];t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.appClipInvocationURLString!==void 0&&s.push(`appClipInvocationURLString = "${le(t.appClipInvocationURLString)}"`),t.selectedDebuggerIdentifier!==void 0&&s.push(`selectedDebuggerIdentifier = "${t.selectedDebuggerIdentifier}"`),t.selectedLauncherIdentifier!==void 0&&s.push(`selectedLauncherIdentifier = "${t.selectedLauncherIdentifier}"`),t.launchStyle!==void 0&&s.push(`launchStyle = "${t.launchStyle}"`),t.askForAppToLaunch!==void 0&&s.push(`askForAppToLaunch = "${t.askForAppToLaunch?"Yes":"No"}"`),t.useCustomWorkingDirectory!==void 0&&s.push(`useCustomWorkingDirectory = "${j(t.useCustomWorkingDirectory)}"`),t.customWorkingDirectory!==void 0&&s.push(`customWorkingDirectory = "${t.customWorkingDirectory}"`),t.ignoresPersistentStateOnLaunch!==void 0&&s.push(`ignoresPersistentStateOnLaunch = "${j(t.ignoresPersistentStateOnLaunch)}"`),t.debugDocumentVersioning!==void 0&&s.push(`debugDocumentVersioning = "${j(t.debugDocumentVersioning)}"`),t.debugServiceExtension!==void 0&&s.push(`debugServiceExtension = "${t.debugServiceExtension}"`),t.allowLocationSimulation!==void 0&&s.push(`allowLocationSimulation = "${j(t.allowLocationSimulation)}"`),t.customLaunchCommand!==void 0&&s.push(`customLaunchCommand = "${le(t.customLaunchCommand)}"`),t.launchAutomaticallySubstyle!==void 0&&s.push(`launchAutomaticallySubstyle = "${t.launchAutomaticallySubstyle}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.buildableProductRunnable&&r.push(...Rh(t.buildableProductRunnable,e+1)),t.remoteRunnable&&r.push(...g2(t.remoteRunnable,e+1)),t.macroExpansion&&(r.push(`${_(e+1)}`),r.push(...ut(t.macroExpansion,e+2)),r.push(`${_(e+1)}`)),t.locationScenarioReference&&r.push(...m2(t.locationScenarioReference,e+1)),t.commandLineArguments&&t.commandLineArguments.length>0&&r.push(...un(t.commandLineArguments,e+1)),t.environmentVariables&&t.environmentVariables.length>0&&r.push(...on(t.environmentVariables,e+1)),t.storeKitConfigurationFileReference&&r.push(...b2(t.storeKitConfigurationFileReference,e+1)),r.push(`${i}`),r}function Rh(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",t.buildableReference&&r.push(...ut(t.buildableReference,e+1)),r.push(`${i}`),r}function g2(t,e){let r=[],i=_(e),s=[];t.runnableDebuggingMode!==void 0&&s.push(`runnableDebuggingMode = "${t.runnableDebuggingMode}"`),t.bundleIdentifier!==void 0&&s.push(`BundleIdentifier = "${t.bundleIdentifier}"`),t.remotePath!==void 0&&s.push(`RemotePath = "${t.remotePath}"`),r.push(`${i}`),r}function m2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",r.push(`${i}`),r}function b2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",r.push(`${i}`),r}function D2(t,e){let r=[],i=_(e),s=[];t.askForAppToLaunch!==void 0&&s.push(`askForAppToLaunch = "${t.askForAppToLaunch?"YES":"NO"}"`),t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.appClipInvocationURLString!==void 0&&s.push(`appClipInvocationURLString = "${le(t.appClipInvocationURLString)}"`),t.shouldUseLaunchSchemeArgsEnv!==void 0&&s.push(`shouldUseLaunchSchemeArgsEnv = "${j(t.shouldUseLaunchSchemeArgsEnv)}"`),t.savedToolIdentifier!==void 0&&s.push(`savedToolIdentifier = "${t.savedToolIdentifier}"`),t.useCustomWorkingDirectory!==void 0&&s.push(`useCustomWorkingDirectory = "${j(t.useCustomWorkingDirectory)}"`),t.debugDocumentVersioning!==void 0&&s.push(`debugDocumentVersioning = "${j(t.debugDocumentVersioning)}"`),t.launchAutomaticallySubstyle!==void 0&&s.push(`launchAutomaticallySubstyle = "${t.launchAutomaticallySubstyle}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.buildableProductRunnable&&r.push(...Rh(t.buildableProductRunnable,e+1)),t.commandLineArguments&&t.commandLineArguments.length>0&&r.push(...un(t.commandLineArguments,e+1)),t.environmentVariables&&t.environmentVariables.length>0&&r.push(...on(t.environmentVariables,e+1)),r.push(`${i}`),r}function y2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",t.preActions&&t.preActions.length>0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),r.push(`${i}`),r}function A2(t,e){let r=[],i=_(e),s=[];t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.customArchiveName!==void 0&&s.push(`customArchiveName = "${le(t.customArchiveName)}"`),t.revealArchiveInOrganizer!==void 0&&s.push(`revealArchiveInOrganizer = "${j(t.revealArchiveInOrganizer)}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),r.push(`${i}`),r}function un(t,e){let r=[],i=_(e);r.push(`${i}`);for(let s of t)r.push(`${_(e+1)}`):r[r.length-1]+=">",r.push(`${_(e+1)}`);return r.push(`${i}`),r}function on(t,e){let r=[],i=_(e);r.push(`${i}`);for(let s of t)r.push(`${_(e+1)}`):r[r.length-1]+=">",r.push(`${_(e+1)}`);return r.push(`${i}`),r}function _(t){return" ".repeat(t)}function j(t){return t?"YES":"NO"}function le(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var Mh=v(Qe=>{"use strict";var E2=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.buildManagement=Qe.parseManagement=void 0;var Bh=E2(rn());function w2(t){let e=Bh.default.parse(t),r={};if(e.SchemeUserState){r.SchemeUserState={};let i=e.SchemeUserState;for(let[s,n]of Object.entries(i))r.SchemeUserState[s]=v2(n)}if(e.SuppressBuildableAutocreation){r.SuppressBuildableAutocreation={};let i=e.SuppressBuildableAutocreation;for(let[s,n]of Object.entries(i))r.SuppressBuildableAutocreation[s]=C2(n)}return r}Qe.parseManagement=w2;function v2(t){let e={};return typeof t.isShown=="boolean"&&(e.isShown=t.isShown),typeof t.orderHint=="number"&&(e.orderHint=t.orderHint),e}function C2(t){let e={};return typeof t.primary=="boolean"&&(e.primary=t.primary),e}function x2(t){let e={};return t.SchemeUserState&&(e.SchemeUserState=t.SchemeUserState),t.SuppressBuildableAutocreation&&(e.SuppressBuildableAutocreation=t.SuppressBuildableAutocreation),Bh.default.build(e)}Qe.buildManagement=x2});var qh=v(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0})});var Uh=v(Q=>{"use strict";var T2=Q&&Q.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),S2=Q&&Q.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&T2(e,t,r)};Object.defineProperty(Q,"__esModule",{value:!0});Q.buildManagement=Q.parseManagement=Q.build=Q.parse=void 0;var N2=Ph();Object.defineProperty(Q,"parse",{enumerable:!0,get:function(){return N2.parse}});var O2=Lh();Object.defineProperty(Q,"build",{enumerable:!0,get:function(){return O2.build}});var $h=Mh();Object.defineProperty(Q,"parseManagement",{enumerable:!0,get:function(){return $h.parseManagement}});Object.defineProperty(Q,"buildManagement",{enumerable:!0,get:function(){return $h.buildManagement}});S2(qh(),Q)});var Ue=ar($a(),1);import{existsSync as Wh}from"node:fs";import{join as lt,resolve as H2,dirname as W2}from"node:path";import{fileURLToPath as z2}from"node:url";import{parseArgs as K2}from"node:util";var xr=class{rawTemplates;constructor(e){this.rawTemplates=new Map(Object.entries(e))}getAncestorChain(e){let r=new Set,i=[],s=n=>{if(r.has(n))return;r.add(n);let u=this.rawTemplates.get(n);if(u){for(let a of u.info.Ancestors||[])s(a);i.push(n)}};return s(e),i}resolve(e,r){let i=this.getAncestorChain(e),s=this.rawTemplates.get(e);if(!s)throw new Error(`Template not found: ${e}`);let n=[],u={},a={},o={},c={},g={},p={},m="com.apple.product-type.application",A=["Sources","Frameworks","Resources"],C={},S=[];for(let x of i){let B=this.rawTemplates.get(x);if(!B)continue;let f=B.info;if(f.Project&&(Object.assign(u,f.Project.SharedSettings||{}),f.Project.Configurations&&(Object.assign(a,f.Project.Configurations.Debug||{}),Object.assign(o,f.Project.Configurations.Release||{}))),f.Targets)for(let d of f.Targets)d.ProductType&&(m=d.ProductType),d.BuildPhases&&(A=d.BuildPhases.map(y=>y.Class||y)),Object.assign(c,d.SharedSettings||{}),d.Configurations&&(Object.assign(g,d.Configurations.Debug||{}),Object.assign(p,d.Configurations.Release||{}));if(f.Definitions&&Object.assign(C,f.Definitions),f.Nodes&&S.push(...f.Nodes),f.Options)for(let d of f.Options)this.mergeOption(n,d,r,C,S,c,g,p,u,a,o)}for(let x of n)x._override&&(r[x.identifier]=x._override);let T=this.resolveFiles(S,C,i,e);return{id:e,name:s.name,description:s.info.Description||"",platform:s.platform,category:s.category,options:n.filter(x=>!x.notPersisted||x.identifier==="productName"),productType:m,buildPhases:A,projectSharedSettings:u,projectDebugSettings:a,projectReleaseSettings:o,targetSharedSettings:c,targetDebugSettings:g,targetReleaseSettings:p,files:T,templateFilesDir:""}}mergeOption(e,r,i,s,n,u,a,o,c,g,p){let m=r.Identifier;if(!m)return;if(r.Override){let C=e.find(S=>S.identifier===m);if(C)C._override=r.Override;else{let S=this.parseOption(r);S._override=r.Override,e.push(S)}i[m]=r.Override}let A=e.find(C=>C.identifier===m);if(!A&&r.Type?e.push(this.parseOption(r)):!A&&r.Values&&e.push(this.parseOption({...r,Type:"popup"})),r.Units){let C=i[m];if(C&&r.Units[C]){let S=r.Units[C],T=Array.isArray(S)?S:[S];for(let x of T){if(x.RequiredOptions){let B=!0;for(let[f,d]of Object.entries(x.RequiredOptions))if(i[f]!==d){B=!1;break}if(!B)continue}if(x.Definitions&&Object.assign(s,x.Definitions),x.Nodes&&n.push(...x.Nodes),x.Targets)for(let B of x.Targets)Object.assign(u,B.SharedSettings||{}),B.Configurations&&(Object.assign(a,B.Configurations.Debug||{}),Object.assign(o,B.Configurations.Release||{}));x.Project&&(Object.assign(c,x.Project.SharedSettings||{}),x.Project.Configurations&&(Object.assign(g,x.Project.Configurations.Debug||{}),Object.assign(p,x.Project.Configurations.Release||{})))}}}}parseOption(e){return{identifier:e.Identifier,name:e.Name?.replace(/:$/,""),description:e.Description,type:(e.Type||"popup").toLowerCase(),default:e.Default,values:e.Values||e.ValueTitles,required:e.Required,notPersisted:e.NotPersisted}}resolveFiles(e,r,i,s){let n=new Map;for(let u of e){if(u.includes(":")&&!u.includes("___")&&u.split(":")[0].includes("."))continue;let a=r[u],o=u,c=50;a&&typeof a=="object"&&(o=a.Path||u,c=a.SortOrder??50);let g=s;for(let p of[...i].reverse()){let m=this.rawTemplates.get(p);if(m?.sourceFiles?.includes(o)){g=p;break}if(m?.sourceFiles?.some(A=>A===o||o.startsWith(A+"/"))){g=p;break}}n.set(u,{name:u,sourcePath:o,sortOrder:c,sourceTemplateId:g})}return[...n.values()].sort((u,a)=>u.sortOrder-a.sortOrder)}};function Tr(t,e){return t.replace(/___FILEHEADER___/g,og(e)).replace(/___PACKAGENAME:identifier___/g,Ut(e.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,Be(e.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,Ut(e.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,Be(e.productName)).replace(/___PACKAGENAMEASXML___/g,ag(e.productName)).replace(/___PACKAGENAME___/g,e.productName).replace(/___PROJECTNAME___/g,e.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,Be(e.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,e.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,Be(e.productName)).replace(/___VARIABLE_productName___/g,e.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,e.organizationName??"").replace(/___ORGANIZATIONNAME___/g,e.organizationName??"").replace(/___DATE___/g,e.date).replace(/___YEAR___/g,e.year).replace(/___FULLUSERNAME___/g,e.fullUserName).replace(/___COPYRIGHT___/g,e.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${Be(e.bundleIdentifierPrefix)}.${Be(e.productName)}`)}function og(t){return` // ___FILENAME___ -// ${$.productName} +// ${t.productName} // -// Created by ${$.fullUserName} on ${$.date}. -// ${$.copyright} -//`}function b0($){let Y=$.replace(/[^a-zA-Z0-9_]/g,"_");if(/^[0-9]/.test(Y))Y="_"+Y;return Y}function y1($){return $.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function QG($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var pz=$$(dJ(),1),dz=$$(Dz(),1),lz=$$(mz(),1);import{existsSync as qW,mkdirSync as K0,statSync as HW,cpSync as BW}from"fs";import{join as a,extname as o0,basename as cz}from"path";var FW={swift:"sourcecode.swift",m:"sourcecode.c.objc",mm:"sourcecode.cpp.objcpp",c:"sourcecode.c.c",cpp:"sourcecode.cpp.cpp",h:"sourcecode.c.h",hpp:"sourcecode.cpp.h",metal:"sourcecode.metal",storyboard:"file.storyboard",xib:"file.xib",plist:"text.plist.xml",entitlements:"text.plist.entitlements",xcassets:"folder.assetcatalog",xcdatamodeld:"wrapper.xcdatamodeld",xcdatamodel:"wrapper.xcdatamodel",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",json:"text.json",js:"sourcecode.javascript",png:"image.png",jpg:"image.jpeg",gif:"image.gif",pdf:"image.pdf",ttf:"file",otf:"file"};function UW($){let Y=o0($).slice(1).toLowerCase();return FW[Y]}function OW($){let Y=o0($).slice(1).toLowerCase();return["swift","m","mm","c","cpp","metal"].includes(Y)}function RW($){let Y=o0($).slice(1).toLowerCase();return["xcassets","storyboard","xib","xcdatamodeld","strings","stringsdict","json","png","jpg","gif","pdf","ttf","otf","sks","scnassets","usdz"].includes(Y)}function PW($){return new Bun.CryptoHasher("md5").update($).digest("hex").slice(0,24).toUpperCase()}var sz=0;function n($){return PW(`${$}_${sz++}_${Date.now()}`)}function AW(){try{let $=Bun.spawnSync(["id","-F"]);return new TextDecoder().decode($.stdout).trim()||"Unknown"}catch{return"Unknown"}}async function iz($){sz=0;let{name:Y,outputDir:Z,organizationIdentifier:J,organizationName:K,config:z,templateFilesBase:Q}=$,W=a(Z,Y),G=a(W,`${Y}.xcodeproj`),q=a(W,Y),H=a(G,"project.xcworkspace");K0(G,{recursive:!0}),K0(q,{recursive:!0}),K0(H,{recursive:!0});let R=new Date,P={productName:Y,bundleIdentifierPrefix:J,organizationName:K||"",fullUserName:AW(),date:`${R.getMonth()+1}/${R.getDate()}/${R.getFullYear()%100}`,year:String(R.getFullYear()),copyright:K?`Copyright \xA9 ${R.getFullYear()} ${K}. All rights reserved.`:""},w=await EW(z,P,q,Q),{pbxproj:I,targetUUID:T}=wW(Y,z,P,w);await Bun.write(a(G,"project.pbxproj"),I);let X=dz.build({version:"1.0",children:[{type:"FileRef",location:"self:"}]});await Bun.write(a(H,"contents.xcworkspacedata"),X);let D=a(G,"xcshareddata","xcschemes");K0(D,{recursive:!0});let y=kW(Y,z,T);return await Bun.write(a(D,`${Y}.xcscheme`),y),W}async function EW($,Y,Z,J){let K=[];for(let G of $.files){let q=E$(G.name,Y),H=G.sourceTemplateId.replace(/\./g,"_"),R=a(J,H),P=a(R,G.sourcePath),w=a(Z,q);if(qW(P))if(HW(P).isDirectory()){let T=E$(G.sourcePath,Y),X=a(Z,q);BW(P,X,{recursive:!0}),K.push({relativePath:q,filename:q,isDirectory:!0})}else{let T=await Bun.file(P).text(),X=E$(T,Y);X=X.replace(/___FILENAME___/g,q),X=X.replace(/___FILEBASENAME___/g,cz(q,o0(q))),X=X.replace(/___FILEBASENAMEASIDENTIFIER___/g,b0(cz(q,o0(q)))),await Bun.write(w,X),K.push({relativePath:q,filename:q,isDirectory:!1})}}let z=a(Z,"Assets.xcassets");K0(z,{recursive:!0}),await Bun.write(a(z,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let Q=a(z,"AppIcon.appiconset");K0(Q,{recursive:!0}),await Bun.write(a(Q,"Contents.json"),JSON.stringify(CW($.platform),null,2));let W=a(z,"AccentColor.colorset");if(K0(W,{recursive:!0}),await Bun.write(a(W,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),!K.some((G)=>G.filename==="Assets.xcassets"))K.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0});return K}function CW($){let Y={author:"xcode",version:1};switch($){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:Y};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:Y};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:Y};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:Y};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y}}}function wW($,Y,Z,J){let K=b0($),z=`${y1(Z.bundleIdentifierPrefix)}.${y1($)}`,Q=n("rootProject"),W=n("mainGroup"),G=n("sourcesGroup"),q=n("productsGroup"),H=n("productRef"),R=n("target"),P=n("projectConfigList"),w=n("targetConfigList"),I=n("projectDebugConfig"),T=n("projectReleaseConfig"),X=n("targetDebugConfig"),D=n("targetReleaseConfig"),y=n("sourcesBuildPhase"),O=n("frameworksBuildPhase"),B=n("resourcesBuildPhase"),V=jW(Y.platform),U={},E={},k=[],F=[];for(let L of J){let p=n(`ref_${L.filename}`),u1=n(`build_${L.filename}`);if(U[L.filename]=p,E[L.filename]=u1,L.isDirectory||RW(L.filename))F.push(L.filename);else if(OW(L.filename))k.push(L.filename)}let A={...Y.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},j={...Y.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},S={...Y.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},M={...V.targetSettings,...Y.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:z,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:$,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor"};Object.assign(M,V.deploymentTarget);let h={...Y.targetDebugSettings},c={...Y.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},_={};_[I]={isa:"XCBuildConfiguration",buildSettings:{...A,...j},name:"Debug"},_[T]={isa:"XCBuildConfiguration",buildSettings:{...A,...S},name:"Release"},_[P]={isa:"XCConfigurationList",buildConfigurations:[I,T],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"},_[X]={isa:"XCBuildConfiguration",buildSettings:{...M,...h},name:"Debug"},_[D]={isa:"XCBuildConfiguration",buildSettings:{...M,...c},name:"Release"},_[w]={isa:"XCConfigurationList",buildConfigurations:[X,D],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"};for(let L of J){let p=U[L.filename],u1=UW(L.filename);if(_[p]={isa:"PBXFileReference",lastKnownFileType:u1,path:L.filename,sourceTree:""},L.filename.endsWith(".swift"))_[p].lastKnownFileType="sourcecode.swift"}_[H]={isa:"PBXFileReference",explicitFileType:"wrapper.application",includeInIndex:0,path:`${$}.app`,sourceTree:"BUILT_PRODUCTS_DIR"};for(let L of k)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};for(let L of F)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};return _[y]={isa:"PBXSourcesBuildPhase",buildActionMask:2147483647,files:k.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[O]={isa:"PBXFrameworksBuildPhase",buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},_[B]={isa:"PBXResourcesBuildPhase",buildActionMask:2147483647,files:F.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[G]={isa:"PBXGroup",children:J.map((L)=>U[L.filename]),path:$,sourceTree:""},_[q]={isa:"PBXGroup",children:[H],name:"Products",sourceTree:""},_[W]={isa:"PBXGroup",children:[G,q],sourceTree:""},_[R]={isa:"PBXNativeTarget",buildConfigurationList:w,buildPhases:[y,O,B],buildRules:[],dependencies:[],name:$,productName:$,productReference:H,productType:Y.productType},_[Q]={isa:"PBXProject",attributes:{BuildIndependentTargetsInParallel:1,LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[R]:{CreatedOnToolsVersion:"16.2"}}},buildConfigurationList:P,compatibilityVersion:"Xcode 14.0",developmentRegion:"en",hasScannedForEncodings:0,knownRegions:["en","Base"],mainGroup:W,productRefGroup:q,projectDirPath:"",projectRoot:"",targets:[R]},{pbxproj:pz.build({archiveVersion:1,objectVersion:56,classes:{},objects:_,rootObject:Q}),targetUUID:R}}function jW($){switch($){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function kW($,Y,Z){let J={buildableIdentifier:"primary",blueprintIdentifier:Z,buildableName:`${$}.app`,blueprintName:$,referencedContainer:`container:${$}.xcodeproj`};return lz.build({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:J}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var i$;function nz(){let $=[z0(import.meta.dir,"..","templates"),z0(process.argv[0]??".","..","templates"),z0(process.cwd(),"templates")];for(let Y of $)if(az(z0(Y,"manifest.json")))return Y;throw Error("Template manifest not found. Run `bun scripts/extract-templates.ts` first.")}function oz(){if(i$)return i$;let $=nz();return i$=JSON.parse(_1("fs").readFileSync(z0($,"manifest.json"),"utf-8")),i$}function _W(){return z0(nz(),"files")}function DW(){console.log(` +// Created by ${t.fullUserName} on ${t.date}. +// ${t.copyright} +//`}function Ut(t){let e=t.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(e)&&(e="_"+e),e}function Be(t){return t.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function ag(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var kh=ar(Za(),1),Xh=ar(Ih(),1),Vh=ar(Uh(),1);import{existsSync as I2,mkdirSync as ot,statSync as _2,cpSync as P2,readFileSync as R2,writeFileSync as at}from"node:fs";import{join as z,extname as nr,basename as jh}from"node:path";import{createHash as L2}from"node:crypto";import{execSync as B2}from"node:child_process";var M2={swift:"sourcecode.swift",m:"sourcecode.c.objc",mm:"sourcecode.cpp.objcpp",c:"sourcecode.c.c",cpp:"sourcecode.cpp.cpp",h:"sourcecode.c.h",hpp:"sourcecode.cpp.h",metal:"sourcecode.metal",storyboard:"file.storyboard",xib:"file.xib",plist:"text.plist.xml",entitlements:"text.plist.entitlements",xcassets:"folder.assetcatalog",xcdatamodeld:"wrapper.xcdatamodeld",xcdatamodel:"wrapper.xcdatamodel",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",json:"text.json",js:"sourcecode.javascript",png:"image.png",jpg:"image.jpeg",gif:"image.gif",pdf:"image.pdf",ttf:"file",otf:"file"};function F2(t){let e=nr(t).slice(1).toLowerCase();return M2[e]}function q2(t){let e=nr(t).slice(1).toLowerCase();return["swift","m","mm","c","cpp","metal"].includes(e)}function $2(t){let e=nr(t).slice(1).toLowerCase();return["xcassets","storyboard","xib","xcdatamodeld","strings","stringsdict","json","png","jpg","gif","pdf","ttf","otf","sks","scnassets","usdz"].includes(e)}function U2(t){return L2("md5").update(t).digest("hex").slice(0,24).toUpperCase()}var Gh=0;function K(t){return U2(`${t}_${Gh++}_${Date.now()}`)}function j2(){try{return B2("id -F",{encoding:"utf-8"}).trim()||"Unknown"}catch{return"Unknown"}}async function Yh(t){Gh=0;let{name:e,outputDir:r,organizationIdentifier:i,organizationName:s,config:n,templateFilesBase:u}=t,a=z(r,e),o=z(a,`${e}.xcodeproj`),c=z(a,e),g=z(o,"project.xcworkspace");ot(o,{recursive:!0}),ot(c,{recursive:!0}),ot(g,{recursive:!0});let p=new Date,m={productName:e,bundleIdentifierPrefix:i,organizationName:s||"",fullUserName:j2(),date:`${p.getMonth()+1}/${p.getDate()}/${p.getFullYear()%100}`,year:String(p.getFullYear()),copyright:s?`Copyright \xA9 ${p.getFullYear()} ${s}. All rights reserved.`:""},A=await k2(n,m,c,u),{pbxproj:C,targetUUID:S}=V2(e,n,m,A);at(z(o,"project.pbxproj"),C);let T=(0,Xh.build)({version:"1.0",children:[{type:"FileRef",location:"self:"}]});at(z(g,"contents.xcworkspacedata"),T);let x=z(o,"xcshareddata","xcschemes");ot(x,{recursive:!0});let B=Y2(e,n,S);return at(z(x,`${e}.xcscheme`),B),a}async function k2(t,e,r,i){let s=[];for(let o of t.files){let c=Tr(o.name,e),g=o.sourceTemplateId.replace(/\./g,"_"),p=z(i,g),m=z(p,o.sourcePath),A=z(r,c);if(I2(m))if(_2(m).isDirectory()){let S=Tr(o.sourcePath,e),T=z(r,c);P2(m,T,{recursive:!0}),s.push({relativePath:c,filename:c,isDirectory:!0})}else{let S=R2(m,"utf-8"),T=Tr(S,e);T=T.replace(/___FILENAME___/g,c),T=T.replace(/___FILEBASENAME___/g,jh(c,nr(c))),T=T.replace(/___FILEBASENAMEASIDENTIFIER___/g,Ut(jh(c,nr(c)))),at(A,T),s.push({relativePath:c,filename:c,isDirectory:!1})}}let n=z(r,"Assets.xcassets");ot(n,{recursive:!0}),at(z(n,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let u=z(n,"AppIcon.appiconset");ot(u,{recursive:!0}),at(z(u,"Contents.json"),JSON.stringify(X2(t.platform),null,2));let a=z(n,"AccentColor.colorset");return ot(a,{recursive:!0}),at(z(a,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),s.some(o=>o.filename==="Assets.xcassets")||s.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0}),s}function X2(t){let e={author:"xcode",version:1};switch(t){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:e};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:e};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:e};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:e};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:e};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:e}}}function V2(t,e,r,i){let s=Ut(t),n=`${Be(r.bundleIdentifierPrefix)}.${Be(t)}`,u=K("rootProject"),a=K("mainGroup"),o=K("sourcesGroup"),c=K("productsGroup"),g=K("productRef"),p=K("target"),m=K("projectConfigList"),A=K("targetConfigList"),C=K("projectDebugConfig"),S=K("projectReleaseConfig"),T=K("targetDebugConfig"),x=K("targetReleaseConfig"),B=K("sourcesBuildPhase"),f=K("frameworksBuildPhase"),d=K("resourcesBuildPhase"),y=G2(e.platform),l={},b={},E=[],h=[];for(let N of i){let k=K(`ref_${N.filename}`),je=K(`build_${N.filename}`);l[N.filename]=k,b[N.filename]=je,N.isDirectory||$2(N.filename)?h.push(N.filename):q2(N.filename)&&E.push(N.filename)}let D={...e.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},w={...e.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},O={...e.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},P={...y.targetSettings,...e.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:n,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:t,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor"};Object.assign(P,y.deploymentTarget);let R={...e.targetDebugSettings},G={...e.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},I={};I[C]={isa:"XCBuildConfiguration",buildSettings:{...D,...w},name:"Debug"},I[S]={isa:"XCBuildConfiguration",buildSettings:{...D,...O},name:"Release"},I[m]={isa:"XCConfigurationList",buildConfigurations:[C,S],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"},I[T]={isa:"XCBuildConfiguration",buildSettings:{...P,...R},name:"Debug"},I[x]={isa:"XCBuildConfiguration",buildSettings:{...P,...G},name:"Release"},I[A]={isa:"XCConfigurationList",buildConfigurations:[T,x],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"};for(let N of i){let k=l[N.filename],je=F2(N.filename);I[k]={isa:"PBXFileReference",lastKnownFileType:je,path:N.filename,sourceTree:""},N.filename.endsWith(".swift")&&(I[k].lastKnownFileType="sourcecode.swift")}I[g]={isa:"PBXFileReference",explicitFileType:"wrapper.application",includeInIndex:0,path:`${t}.app`,sourceTree:"BUILT_PRODUCTS_DIR"};for(let N of E)I[b[N]]={isa:"PBXBuildFile",fileRef:l[N]};for(let N of h)I[b[N]]={isa:"PBXBuildFile",fileRef:l[N]};return I[B]={isa:"PBXSourcesBuildPhase",buildActionMask:2147483647,files:E.map(N=>b[N]),runOnlyForDeploymentPostprocessing:0},I[f]={isa:"PBXFrameworksBuildPhase",buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},I[d]={isa:"PBXResourcesBuildPhase",buildActionMask:2147483647,files:h.map(N=>b[N]),runOnlyForDeploymentPostprocessing:0},I[o]={isa:"PBXGroup",children:i.map(N=>l[N.filename]),path:t,sourceTree:""},I[c]={isa:"PBXGroup",children:[g],name:"Products",sourceTree:""},I[a]={isa:"PBXGroup",children:[o,c],sourceTree:""},I[p]={isa:"PBXNativeTarget",buildConfigurationList:A,buildPhases:[B,f,d],buildRules:[],dependencies:[],name:t,productName:t,productReference:g,productType:e.productType},I[u]={isa:"PBXProject",attributes:{BuildIndependentTargetsInParallel:1,LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[p]:{CreatedOnToolsVersion:"16.2"}}},buildConfigurationList:m,compatibilityVersion:"Xcode 14.0",developmentRegion:"en",hasScannedForEncodings:0,knownRegions:["en","Base"],mainGroup:a,productRefGroup:c,projectDirPath:"",projectRoot:"",targets:[p]},{pbxproj:(0,kh.build)({archiveVersion:1,objectVersion:56,classes:{},objects:I,rootObject:u}),targetUUID:p}}function G2(t){switch(t){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function Y2(t,e,r){let i={buildableIdentifier:"primary",blueprintIdentifier:r,buildableName:`${t}.app`,blueprintName:t,referencedContainer:`container:${t}.xcodeproj`};return(0,Vh.build)({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:i}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:i}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:i}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var ai;function zh(){let t=[lt(W2(z2(import.meta.url)),"..","templates"),lt(process.argv[0]??".","..","templates"),lt(process.cwd(),"templates")];for(let e of t)if(Wh(lt(e,"manifest.json")))return e;throw new Error("Template manifest not found. Run `npx tsx scripts/extract-templates.ts` first.")}function Kh(){if(ai)return ai;let t=zh();return ai=JSON.parse(Se("fs").readFileSync(lt(t,"manifest.json"),"utf-8")),ai}function J2(){return lt(zh(),"files")}function Z2(){console.log(` \x1B[1mcreate-xcode\x1B[0m - Create Xcode projects from the command line \x1B[1mUSAGE\x1B[0m @@ -142,9 +142,9 @@ ${Z}`]}function d6($,Y){let Z=[],J=l6(Y),K=[];if($.location!==void 0)K create-xcode MyApp -p ios --storage swiftdata --testing swift-testing create-xcode --list --platform ios create-xcode MyApp -y --org com.example -`.trim())}function TW($){let Y=oz(),Z=Y.templates.filter((z)=>!$||z.platform===$);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${Y.xcodeVersion}) -`);let J="",K="";for(let z of Z){if(z.platform!==J)J=z.platform,console.log(`\x1B[1m\x1B[36m${J}\x1B[0m`),K="";if(z.category!==K)K=z.category,console.log(` \x1B[33m${K}\x1B[0m`);console.log(` ${z.name}\x1B[2m - ${z.description}\x1B[0m`),console.log(` \x1B[2mid: ${z.id}\x1B[0m`)}}function rz($,Y,Z){let J=$.filter((Q)=>Q.platform===Y);if(!Z||Z==="app")return J.find((Q)=>Q.category==="Application"&&(Q.name==="App"||Q.name.includes("SwiftUI App")||Q.name===`${Y} App`))||J.find((Q)=>Q.category==="Application");let K=J.find((Q)=>Q.id===Z);if(K)return K;let z=Z.toLowerCase();return J.find((Q)=>Q.name.toLowerCase()===z)||J.find((Q)=>Q.name.toLowerCase().includes(z))}function t1(){process.exit(0)}async function SW(){let{values:$,positionals:Y}=IW({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});if($.help)DW(),process.exit(0);if($.list)TW($.platform),process.exit(0);let Z=$.yes||Y.length>0&&!process.stdin.isTTY,J=oz(),K=new kY(J.rawTemplates),z=$.platform||"ios";if(!$.platform&&!Z)z=(await v1.default({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map((U)=>({title:U,value:U})),initial:0},{onCancel:t1})).platform;let Q=rz(J.templates,z,$.template);if(!Q&&!Z){let B=J.templates.filter((U)=>U.platform===z&&U.category==="Application");if(B.length===0)console.error(`No application templates found for platform: ${z}`),process.exit(1);Q=(await v1.default({type:"select",name:"idx",message:"Template",choices:B.map((U)=>({title:U.name,description:U.description,value:U})),initial:0},{onCancel:t1})).idx}if(!Q){if(Q=rz(J.templates,z,"app"),!Q)console.error(`Template not found for platform "${z}". Use --list to see available templates.`),process.exit(1)}let W=(()=>{let B=process.cwd(),V=_1("path").basename(B);try{if(_1("fs").readdirSync(B).filter((E)=>!E.startsWith(".")).length===0&&V&&V!=="/"&&V!==".")return V}catch{}return"MyApp"})(),G=Y[0]??"";if(!G&&!Z)G=(await v1.default({type:"text",name:"name",message:"Project name",initial:W},{onCancel:t1})).name??"";if(!G)G=W;let q=$.org??"";if(!q&&!Z)q=(await v1.default({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:t1})).org??"";if(!q)q="com.example";let H=$["org-name"];if(!H&&!Z)H=(await v1.default({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:t1})).orgName;let R=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],P="None";if($.storage)P={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[$.storage.toLowerCase()]||$.storage;else if(!Z)P=(await v1.default({type:"select",name:"storage",message:"Storage",choices:R,initial:0},{onCancel:t1})).storage;let w=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],I="None";if($.testing)I={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[$.testing.toLowerCase()]||$.testing;else if(!Z)I=(await v1.default({type:"select",name:"testing",message:"Testing",choices:w,initial:0},{onCancel:t1})).testing;let T=XW($.output||"."),X={productName:G,bundleIdentifierPrefix:q,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:P,testingSystem:I};if($.verbose)console.log(` -Template:`,Q.name),console.log("ID:",Q.id),console.log("Selections:",X);let D=K.resolve(Q.id,X);if($.verbose)console.log("Files to generate:",D.files.map((B)=>B.name)),console.log("Product type:",D.productType);let y=z0(T,G);if(az(y))if(!Z){if(!(await v1.default({type:"confirm",name:"overwrite",message:`Directory "${G}" already exists. Overwrite?`,initial:!1},{onCancel:t1})).overwrite)console.log("Aborted."),process.exit(0)}else console.error(`Error: Directory "${G}" already exists.`),process.exit(1);console.log(` -Creating ${Q.name} project "${G}" for ${z}...`);let O=await iz({name:G,outputDir:T,organizationIdentifier:q,organizationName:H,config:D,templateFilesBase:_W()});console.log(` -\x1B[32mProject created at ${O}\x1B[0m`),console.log(` -To open in Xcode:`),console.log(` open ${O}/${G}.xcodeproj`)}SW().catch(($)=>{if(console.error(`\x1B[31mError: ${$.message}\x1B[0m`),process.env.DEBUG)console.error($.stack);process.exit(1)}); +`.trim())}function Q2(t){let e=Kh(),r=e.templates.filter(n=>!t||n.platform===t);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${e.xcodeVersion}) +`);let i="",s="";for(let n of r)n.platform!==i&&(i=n.platform,console.log(`\x1B[1m\x1B[36m${i}\x1B[0m`),s=""),n.category!==s&&(s=n.category,console.log(` \x1B[33m${s}\x1B[0m`)),console.log(` ${n.name}\x1B[2m - ${n.description}\x1B[0m`),console.log(` \x1B[2mid: ${n.id}\x1B[0m`)}function Hh(t,e,r){let i=t.filter(u=>u.platform===e);if(!r||r==="app")return i.find(u=>u.category==="Application"&&(u.name==="App"||u.name.includes("SwiftUI App")||u.name===`${e} App`))||i.find(u=>u.category==="Application");let s=i.find(u=>u.id===r);if(s)return s;let n=r.toLowerCase();return i.find(u=>u.name.toLowerCase()===n)||i.find(u=>u.name.toLowerCase().includes(n))}function et(){process.exit(0)}async function e0(){let{values:t,positionals:e}=K2({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});t.help&&(Z2(),process.exit(0)),t.list&&(Q2(t.platform),process.exit(0));let r=t.yes||e.length>0&&!process.stdin.isTTY,i=Kh(),s=new xr(i.rawTemplates),n=t.platform||"ios";!t.platform&&!r&&(n=(await(0,Ue.default)({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map(l=>({title:l,value:l})),initial:0},{onCancel:et})).platform);let u=Hh(i.templates,n,t.template);if(!u&&!r){let d=i.templates.filter(l=>l.platform===n&&l.category==="Application");d.length===0&&(console.error(`No application templates found for platform: ${n}`),process.exit(1)),u=(await(0,Ue.default)({type:"select",name:"idx",message:"Template",choices:d.map(l=>({title:l.name,description:l.description,value:l})),initial:0},{onCancel:et})).idx}u||(u=Hh(i.templates,n,"app"),u||(console.error(`Template not found for platform "${n}". Use --list to see available templates.`),process.exit(1)));let a=(()=>{let d=process.cwd(),y=Se("path").basename(d);try{if(Se("fs").readdirSync(d).filter(b=>!b.startsWith(".")).length===0&&y&&y!=="/"&&y!==".")return y}catch{}return"MyApp"})(),o=e[0]??"";!o&&!r&&(o=(await(0,Ue.default)({type:"text",name:"name",message:"Project name",initial:a},{onCancel:et})).name??""),o||(o=a);let c=t.org??"";!c&&!r&&(c=(await(0,Ue.default)({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:et})).org??""),c||(c="com.example");let g=t["org-name"];!g&&!r&&(g=(await(0,Ue.default)({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:et})).orgName);let p=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],m="None";t.storage?m={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[t.storage.toLowerCase()]||t.storage:r||(m=(await(0,Ue.default)({type:"select",name:"storage",message:"Storage",choices:p,initial:0},{onCancel:et})).storage);let A=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],C="None";t.testing?C={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[t.testing.toLowerCase()]||t.testing:r||(C=(await(0,Ue.default)({type:"select",name:"testing",message:"Testing",choices:A,initial:0},{onCancel:et})).testing);let S=H2(t.output||"."),T={productName:o,bundleIdentifierPrefix:c,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:m,testingSystem:C};t.verbose&&(console.log(` +Template:`,u.name),console.log("ID:",u.id),console.log("Selections:",T));let x=s.resolve(u.id,T);t.verbose&&(console.log("Files to generate:",x.files.map(d=>d.name)),console.log("Product type:",x.productType));let B=lt(S,o);Wh(B)&&(r?(console.error(`Error: Directory "${o}" already exists.`),process.exit(1)):(await(0,Ue.default)({type:"confirm",name:"overwrite",message:`Directory "${o}" already exists. Overwrite?`,initial:!1},{onCancel:et})).overwrite||(console.log("Aborted."),process.exit(0))),console.log(` +Creating ${u.name} project "${o}" for ${n}...`);let f=await Yh({name:o,outputDir:S,organizationIdentifier:c,organizationName:g,config:x,templateFilesBase:J2()});console.log(` +\x1B[32mProject created at ${f}\x1B[0m`),console.log(` +To open in Xcode:`),console.log(` open ${f}/${o}.xcodeproj`)}e0().catch(t=>{console.error(`\x1B[31mError: ${t.message}\x1B[0m`),process.env.DEBUG&&console.error(t.stack),process.exit(1)}); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..bd56ce8 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1226 @@ +{ + "name": "create-xcode", + "version": "0.1.2", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "create-xcode", + "version": "0.1.2", + "bin": { + "create-xcode": "build/cli.mjs" + }, + "devDependencies": { + "@bacons/xcode": "^1.0.0-alpha.33", + "@types/node": "^22", + "@types/prompts": "^2.4.9", + "esbuild": "^0.25", + "prompts": "^2.4.2", + "tsx": "^4" + }, + "peerDependencies": { + "typescript": "^5" + } + }, + "node_modules/@bacons/xcode": { + "version": "1.0.0-alpha.33", + "resolved": "https://registry.npmjs.org/@bacons/xcode/-/xcode-1.0.0-alpha.33.tgz", + "integrity": "sha512-+vwXK3mLnW8NOYSHNpCa7sAYR7qWmIHM3xBbBkLailN81F1CdSVsJBH1TAnTMHb+rDEh5ehsZ8AQRNVxvhWR/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@expo/plist": "^0.0.18", + "debug": "^4.3.4", + "uuid": "^8.3.2" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", + "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", + "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", + "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", + "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", + "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", + "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", + "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", + "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", + "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", + "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", + "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", + "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", + "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", + "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", + "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", + "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", + "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", + "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", + "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", + "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", + "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", + "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", + "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", + "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", + "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", + "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@expo/plist": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@expo/plist/-/plist-0.0.18.tgz", + "integrity": "sha512-+48gRqUiz65R21CZ/IXa7RNBXgAI/uPSdvJqoN9x1hfL44DNbUoWHgHiEXTx7XelcATpDwNTz6sHLfy0iNqf+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@xmldom/xmldom": "~0.7.0", + "base64-js": "^1.2.3", + "xmlbuilder": "^14.0.0" + } + }, + "node_modules/@types/node": { + "version": "22.19.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz", + "integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/prompts": { + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/@types/prompts/-/prompts-2.4.9.tgz", + "integrity": "sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "kleur": "^3.0.3" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.7.13", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.13.tgz", + "integrity": "sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g==", + "deprecated": "this version has critical issues, please update to the latest version", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/esbuild": { + "version": "0.25.12", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", + "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.12", + "@esbuild/android-arm": "0.25.12", + "@esbuild/android-arm64": "0.25.12", + "@esbuild/android-x64": "0.25.12", + "@esbuild/darwin-arm64": "0.25.12", + "@esbuild/darwin-x64": "0.25.12", + "@esbuild/freebsd-arm64": "0.25.12", + "@esbuild/freebsd-x64": "0.25.12", + "@esbuild/linux-arm": "0.25.12", + "@esbuild/linux-arm64": "0.25.12", + "@esbuild/linux-ia32": "0.25.12", + "@esbuild/linux-loong64": "0.25.12", + "@esbuild/linux-mips64el": "0.25.12", + "@esbuild/linux-ppc64": "0.25.12", + "@esbuild/linux-riscv64": "0.25.12", + "@esbuild/linux-s390x": "0.25.12", + "@esbuild/linux-x64": "0.25.12", + "@esbuild/netbsd-arm64": "0.25.12", + "@esbuild/netbsd-x64": "0.25.12", + "@esbuild/openbsd-arm64": "0.25.12", + "@esbuild/openbsd-x64": "0.25.12", + "@esbuild/openharmony-arm64": "0.25.12", + "@esbuild/sunos-x64": "0.25.12", + "@esbuild/win32-arm64": "0.25.12", + "@esbuild/win32-ia32": "0.25.12", + "@esbuild/win32-x64": "0.25.12" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "4.13.7", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.7.tgz", + "integrity": "sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/tsx": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", + "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.27.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/tsx/node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/tsx/node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true, + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/xmlbuilder": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-14.0.0.tgz", + "integrity": "sha512-ts+B2rSe4fIckR6iquDjsKbQFK2NlUk6iG5nf14mDEyldgoc2nEKZ3jZWMPTxGQwVgToSjt6VGIho1H8/fNFTg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0" + } + } + } +} diff --git a/package.json b/package.json index 560c671..90ba25f 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "create-xcode": "./build/cli.mjs" }, "scripts": { - "start": "bun src/cli.ts", - "extract": "bun scripts/extract-templates.ts", - "build": "bun scripts/build.ts", - "test": "bun test" + "start": "tsx src/cli.ts", + "extract": "tsx scripts/extract-templates.ts", + "build": "tsx scripts/build.ts", + "test": "node --test" }, "files": [ "build/cli.mjs", @@ -18,9 +18,11 @@ ], "devDependencies": { "@bacons/xcode": "^1.0.0-alpha.33", - "@types/bun": "latest", + "@types/node": "^22", "@types/prompts": "^2.4.9", - "prompts": "^2.4.2" + "esbuild": "^0.25", + "prompts": "^2.4.2", + "tsx": "^4" }, "peerDependencies": { "typescript": "^5" diff --git a/scripts/build.ts b/scripts/build.ts index ec0bd91..4dc0826 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,17 +1,20 @@ -#!/usr/bin/env bun +#!/usr/bin/env tsx /** * Build script - bundles create-xcode into a single zero-dependency JS file. * - * Run: bun scripts/build.ts + * Run: npx tsx scripts/build.ts * * Outputs: * build/cli.mjs - Single bundled+minified JS file (the published bin entry) */ -import { rmSync, mkdirSync } from "fs"; -import { join } from "path"; +import { rmSync, mkdirSync, readFileSync, writeFileSync, chmodSync, statSync } from "node:fs"; +import { join, dirname } from "node:path"; +import { fileURLToPath } from "node:url"; +import { build } from "esbuild"; -const rootDir = join(import.meta.dir, ".."); +const __dirname = dirname(fileURLToPath(import.meta.url)); +const rootDir = join(__dirname, ".."); const buildDir = join(rootDir, "build"); async function main() { @@ -23,36 +26,24 @@ async function main() { // Bundle CLI + all dependencies into a single file console.log("Bundling..."); - const result = await Bun.build({ - entrypoints: [join(rootDir, "src", "cli.ts")], - outdir: buildDir, - target: "bun", + await build({ + entryPoints: [join(rootDir, "src", "cli.ts")], + outfile: join(buildDir, "cli.mjs"), + bundle: true, minify: true, - naming: "cli.mjs", - // Inline everything - no external deps at runtime - external: [], + platform: "node", + format: "esm", + target: "node18", + banner: { + js: '#!/usr/bin/env node', + }, }); - if (!result.success) { - console.error("Bundle failed:"); - for (const log of result.logs) { - console.error(log); - } - process.exit(1); - } - - // Ensure shebang is present (bun bundler may or may not preserve it) - const outPath = join(buildDir, "cli.mjs"); - const bundled = await Bun.file(outPath).text(); - if (!bundled.startsWith("#!")) { - await Bun.write(outPath, `#!/usr/bin/env bun\n${bundled}`); - } - // Make executable - const { chmodSync } = require("fs"); + const outPath = join(buildDir, "cli.mjs"); chmodSync(outPath, 0o755); - const size = (await Bun.file(outPath).size) / 1024; + const size = statSync(outPath).size / 1024; console.log(`\n build/cli.mjs ${size.toFixed(0)} KB`); console.log("\nDone!"); } diff --git a/scripts/extract-templates.ts b/scripts/extract-templates.ts index d161b78..5f54a17 100644 --- a/scripts/extract-templates.ts +++ b/scripts/extract-templates.ts @@ -1,15 +1,20 @@ -#!/usr/bin/env bun +#!/usr/bin/env tsx /** * Extracts Xcode project templates and outputs structured JSON + source files. * - * Run: bun scripts/extract-templates.ts + * Run: npx tsx scripts/extract-templates.ts * * This reads all project templates from the currently installed Xcode, * resolves inheritance chains, and outputs everything to templates/. */ -import { existsSync, mkdirSync, cpSync, readdirSync, statSync } from "fs"; -import { join, basename, dirname, relative } from "path"; +import { existsSync, mkdirSync, cpSync, readdirSync, statSync, writeFileSync } from "node:fs"; +import { join, basename, dirname, relative } from "node:path"; +import { fileURLToPath } from "node:url"; +import { execFile } from "node:child_process"; +import { promisify } from "node:util"; + +const execFileAsync = promisify(execFile); const XCODE_APP = "/Applications/Xcode.app/Contents/Developer"; @@ -37,25 +42,13 @@ interface RawTemplate { } async function parsePlist(path: string): Promise { - const proc = Bun.spawn(["plutil", "-convert", "json", "-o", "-", path], { - stdout: "pipe", - stderr: "pipe", - }); - const text = await new Response(proc.stdout).text(); - const exitCode = await proc.exited; - if (exitCode !== 0) { - throw new Error(`Failed to parse plist: ${path}`); - } - return JSON.parse(text); + const { stdout } = await execFileAsync("plutil", ["-convert", "json", "-o", "-", path]); + return JSON.parse(stdout); } async function getXcodeVersion(): Promise<{ version: string; build: string }> { - const proc = Bun.spawn(["xcodebuild", "-version"], { - stdout: "pipe", - stderr: "pipe", - }); - const text = await new Response(proc.stdout).text(); - const lines = text.trim().split("\n"); + const { stdout } = await execFileAsync("xcodebuild", ["-version"]); + const lines = stdout.trim().split("\n"); const version = lines[0]?.replace("Xcode ", "") ?? "unknown"; const build = lines[1]?.replace("Build version ", "") ?? "unknown"; return { version, build }; @@ -203,7 +196,8 @@ async function main() { console.log(`Found ${leafTemplates.length} user-facing project templates\n`); // Prepare output directory - const outDir = join(import.meta.dir, "..", "templates"); + const __dirname = dirname(fileURLToPath(import.meta.url)); + const outDir = join(__dirname, "..", "templates"); const filesDir = join(outDir, "files"); mkdirSync(outDir, { recursive: true }); mkdirSync(filesDir, { recursive: true }); @@ -291,7 +285,7 @@ async function main() { // Write manifest const manifestPath = join(outDir, "manifest.json"); - await Bun.write(manifestPath, JSON.stringify(manifest, null, 2)); + writeFileSync(manifestPath, JSON.stringify(manifest, null, 2)); console.log(`\nWritten to ${outDir}/`); console.log(` manifest.json: ${manifest.templates.length} templates`); diff --git a/src/cli.ts b/src/cli.ts index 9b506a7..cbaebe5 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env bun +#!/usr/bin/env node /** * create-xcode CLI * @@ -6,15 +6,15 @@ * Supports both interactive and non-interactive (agent-friendly) modes. * * Usage: - * bunx create-xcode # Interactive mode - * bunx create-xcode MyApp # Create iOS app named "MyApp" - * bunx create-xcode MyApp --platform macos # Create macOS app - * bunx create-xcode --list # List available templates + * npx create-xcode # Interactive mode + * npx create-xcode MyApp # Create iOS app named "MyApp" + * npx create-xcode MyApp --platform macos # Create macOS app + * npx create-xcode --list # List available templates */ -import { existsSync } from "fs"; -import { join, resolve } from "path"; -// @ts-ignore - parseArgs exists in Node 18.3+ / Bun +import { existsSync } from "node:fs"; +import { join, resolve, dirname } from "node:path"; +import { fileURLToPath } from "node:url"; import { parseArgs } from "node:util"; import prompts from "prompts"; import { TemplateResolver } from "./resolver"; @@ -26,7 +26,7 @@ let manifest: any; function findTemplatesDir(): string { const candidates = [ - join(import.meta.dir, "..", "templates"), + join(dirname(fileURLToPath(import.meta.url)), "..", "templates"), join(process.argv[0] ?? ".", "..", "templates"), join(process.cwd(), "templates"), ]; @@ -38,7 +38,7 @@ function findTemplatesDir(): string { } throw new Error( - "Template manifest not found. Run `bun scripts/extract-templates.ts` first." + "Template manifest not found. Run `npx tsx scripts/extract-templates.ts` first." ); } diff --git a/src/generator.ts b/src/generator.ts index 8e09c76..dda8118 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -5,8 +5,9 @@ * .xcodeproj with source files, build settings, and workspace. */ -import { existsSync, mkdirSync, statSync, cpSync } from "fs"; -import { join, extname, basename } from "path"; +import { existsSync, mkdirSync, statSync, cpSync, readFileSync, writeFileSync } from "node:fs"; +import { join, extname, basename } from "node:path"; +import { execSync } from "node:child_process"; import { build as buildPbxproj } from "@bacons/xcode/json"; import { build as buildWorkspace } from "@bacons/xcode/workspace"; import { build as buildScheme } from "@bacons/xcode/scheme"; @@ -61,11 +62,7 @@ function isResourceFileType(fileType: string | undefined): boolean { function getUserName(): string { try { - const proc = Bun.spawnSync(["id", "-F"]); - return ( - new TextDecoder().decode(proc.stdout as unknown as ArrayBuffer).trim() || - "Unknown" - ); + return execSync("id -F", { encoding: "utf-8" }).trim() || "Unknown"; } catch { return "Unknown"; } @@ -120,14 +117,14 @@ export async function generateProject(opts: GenerateOptions): Promise { vars, writtenFiles, ); - await Bun.write(join(xcodeprojDir, "project.pbxproj"), pbxproj); + writeFileSync(join(xcodeprojDir, "project.pbxproj"), pbxproj); // Generate workspace const workspaceData = buildWorkspace({ version: "1.0", children: [{ type: "FileRef", location: `self:` }], } as any); - await Bun.write( + writeFileSync( join(xcworkspaceDir, "contents.xcworkspacedata"), workspaceData, ); @@ -137,7 +134,7 @@ export async function generateProject(opts: GenerateOptions): Promise { mkdirSync(schemeDir, { recursive: true }); const schemeXml = buildSchemeXml(name, config, targetUUID); - await Bun.write(join(schemeDir, `${name}.xcscheme`), schemeXml); + writeFileSync(join(schemeDir, `${name}.xcscheme`), schemeXml); return projectDir; } @@ -183,7 +180,7 @@ async function copyTemplateFiles( }); } else { // Read, substitute variables, and write - const content = await Bun.file(sourcePath).text(); + const content = readFileSync(sourcePath, "utf-8"); let processed = substituteVariables(content, vars); // Also substitute ___FILENAME___ with the actual filename @@ -197,7 +194,7 @@ async function copyTemplateFiles( toIdentifier(basename(destName, extname(destName))), ); - await Bun.write(destPath, processed); + writeFileSync(destPath, processed); writtenFiles.push({ relativePath: destName, filename: destName, @@ -210,7 +207,7 @@ async function copyTemplateFiles( // Ensure Assets.xcassets exists with AppIcon and AccentColor const assetsPath = join(sourcesDir, "Assets.xcassets"); mkdirSync(assetsPath, { recursive: true }); - await Bun.write( + writeFileSync( join(assetsPath, "Contents.json"), JSON.stringify({ info: { author: "xcode", version: 1 } }, null, 2), ); @@ -218,7 +215,7 @@ async function copyTemplateFiles( // AppIcon - always generate (templates don't include it, Xcode generates dynamically) const appIconDir = join(assetsPath, "AppIcon.appiconset"); mkdirSync(appIconDir, { recursive: true }); - await Bun.write( + writeFileSync( join(appIconDir, "Contents.json"), JSON.stringify(buildAppIconContents(config.platform), null, 2), ); @@ -226,7 +223,7 @@ async function copyTemplateFiles( // AccentColor const accentDir = join(assetsPath, "AccentColor.colorset"); mkdirSync(accentDir, { recursive: true }); - await Bun.write( + writeFileSync( join(accentDir, "Contents.json"), JSON.stringify( { From 7fa702a35ceb1b1bb57c176a47e541140db93d7d Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Sat, 11 Apr 2026 16:31:38 -0700 Subject: [PATCH 2/4] Keep Bun for tooling, only migrate src/ to Node APIs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert scripts back to Bun APIs (build, extract-templates) — these are dev-only and don't ship. Only src/ (cli.ts, generator.ts) uses Node.js APIs so the bundled output runs on any Node 18+ runtime. - Build target changed from "bun" to "node" - Built shebang changed from #!/usr/bin/env bun to #!/usr/bin/env node - Scripts and test runner remain on Bun Co-Authored-By: Claude Opus 4.6 (1M context) --- build/cli.mjs | 192 +++--- bun.lock | 13 +- package-lock.json | 1226 ---------------------------------- package.json | 13 +- scripts/build.ts | 48 +- scripts/extract-templates.ts | 38 +- src/cli.ts | 2 +- 7 files changed, 164 insertions(+), 1368 deletions(-) delete mode 100644 package-lock.json diff --git a/build/cli.mjs b/build/cli.mjs index 3c91546..3dd500f 100755 --- a/build/cli.mjs +++ b/build/cli.mjs @@ -1,118 +1,118 @@ #!/usr/bin/env node -#!/usr/bin/env node -var Jh=Object.create;var an=Object.defineProperty;var Zh=Object.getOwnPropertyDescriptor;var Qh=Object.getOwnPropertyNames;var ed=Object.getPrototypeOf,td=Object.prototype.hasOwnProperty;var Se=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var v=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var rd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Qh(e))!td.call(t,s)&&s!==r&&an(t,s,{get:()=>e[s],enumerable:!(i=Zh(e,s))||i.enumerable});return t};var ar=(t,e,r)=>(r=t!=null?Jh(ed(t)):{},rd(e||!t||!t.__esModule?an(r,"default",{value:t,enumerable:!0}):r,t));var X=v((r0,cn)=>{"use strict";var{FORCE_COLOR:id,NODE_DISABLE_COLORS:sd,TERM:nd}=process.env,F={enabled:!sd&&nd!=="dumb"&&id!=="0",reset:U(0,0),bold:U(1,22),dim:U(2,22),italic:U(3,23),underline:U(4,24),inverse:U(7,27),hidden:U(8,28),strikethrough:U(9,29),black:U(30,39),red:U(31,39),green:U(32,39),yellow:U(33,39),blue:U(34,39),magenta:U(35,39),cyan:U(36,39),white:U(37,39),gray:U(90,39),grey:U(90,39),bgBlack:U(40,49),bgRed:U(41,49),bgGreen:U(42,49),bgYellow:U(43,49),bgBlue:U(44,49),bgMagenta:U(45,49),bgCyan:U(46,49),bgWhite:U(47,49)};function ln(t,e){let r=0,i,s="",n="";for(;r{"use strict";hn.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var lr=v((s0,fn)=>{"use strict";fn.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var V=v((n0,pn)=>{"use strict";var di={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let r="";return t<0?r+=`\x1B[${-t}D`:t>0&&(r+=`\x1B[${t}C`),e<0?r+=`\x1B[${-e}A`:e>0&&(r+=`\x1B[${e}B`),r},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},od={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},ad={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let r=0;r{"use strict";function ld(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=cd(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,u=!1,a;return{s:function(){r=r.call(t)},n:function(){var c=r.next();return n=c.done,c},e:function(c){u=!0,a=c},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(u)throw a}}}}function cd(t,e){if(t){if(typeof t=="string")return gn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gn(t,e)}}function gn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r[...hd(t)].length;Dn.exports=function(t,e){if(!e)return mn.line+dd.to(0);let r=0,i=t.split(/\r?\n/);var s=ld(i),n;try{for(s.s();!(n=s.n()).done;){let u=n.value;r+=1+Math.floor(Math.max(fd(u)-1,0)/e)}}catch(u){s.e(u)}finally{s.f()}return mn.lines(r)}});var fi=v((o0,An)=>{"use strict";var Ot={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},pd={arrowUp:Ot.arrowUp,arrowDown:Ot.arrowDown,arrowLeft:Ot.arrowLeft,arrowRight:Ot.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},gd=process.platform==="win32"?pd:Ot;An.exports=gd});var wn=v((a0,En)=>{"use strict";var ht=X(),tt=fi(),pi=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),md=t=>pi[t]||pi.default,It=Object.freeze({aborted:ht.red(tt.cross),done:ht.green(tt.tick),exited:ht.yellow(tt.cross),default:ht.cyan("?")}),bd=(t,e,r)=>e?It.aborted:r?It.exited:t?It.done:It.default,Dd=t=>ht.gray(t?tt.ellipsis:tt.pointerSmall),yd=(t,e)=>ht.gray(t?e?tt.pointerSmall:"+":tt.line);En.exports={styles:pi,render:md,symbols:It,symbol:bd,delimiter:Dd,item:yd}});var Cn=v((l0,vn)=>{"use strict";var Ad=lr();vn.exports=function(t,e){let r=String(Ad(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var Tn=v((c0,xn)=>{"use strict";xn.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,u)=>(u.length+r.length>=i||n[n.length-1].length+u.length+1{Z=$!=null?ez($7($)):{};let J=Y||!$||!$.__esModule?qZ(Z,"default",{value:$,enumerable:!0}):Z;for(let K of Y7($))if(!Z7.call(J,K))qZ(J,K,{get:()=>$[K],enumerable:!0});return J};var C=($,Y)=>()=>(Y||$((Y={exports:{}}).exports,Y),Y.exports);var _1=J7(import.meta.url);var d=C((vW,BZ)=>{var{FORCE_COLOR:K7,NODE_DISABLE_COLORS:z7,TERM:Q7}=process.env,g={enabled:!z7&&Q7!=="dumb"&&K7!=="0",reset:u(0,0),bold:u(1,22),dim:u(2,22),italic:u(3,23),underline:u(4,24),inverse:u(7,27),hidden:u(8,28),strikethrough:u(9,29),black:u(30,39),red:u(31,39),green:u(32,39),yellow:u(33,39),blue:u(34,39),magenta:u(35,39),cyan:u(36,39),white:u(37,39),gray:u(90,39),grey:u(90,39),bgBlack:u(40,49),bgRed:u(41,49),bgGreen:u(42,49),bgYellow:u(43,49),bgBlue:u(44,49),bgMagenta:u(45,49),bgCyan:u(46,49),bgWhite:u(47,49)};function HZ($,Y){let Z=0,J,K="",z="";for(;Z<$.length;Z++)if(J=$[Z],K+=J.open,z+=J.close,Y.includes(J.close))Y=Y.replace(J.rgx,J.close+J.open);return K+Y+z}function G7($,Y){let Z={has:$,keys:Y};return Z.reset=g.reset.bind(Z),Z.bold=g.bold.bind(Z),Z.dim=g.dim.bind(Z),Z.italic=g.italic.bind(Z),Z.underline=g.underline.bind(Z),Z.inverse=g.inverse.bind(Z),Z.hidden=g.hidden.bind(Z),Z.strikethrough=g.strikethrough.bind(Z),Z.black=g.black.bind(Z),Z.red=g.red.bind(Z),Z.green=g.green.bind(Z),Z.yellow=g.yellow.bind(Z),Z.blue=g.blue.bind(Z),Z.magenta=g.magenta.bind(Z),Z.cyan=g.cyan.bind(Z),Z.white=g.white.bind(Z),Z.gray=g.gray.bind(Z),Z.grey=g.grey.bind(Z),Z.bgBlack=g.bgBlack.bind(Z),Z.bgRed=g.bgRed.bind(Z),Z.bgGreen=g.bgGreen.bind(Z),Z.bgYellow=g.bgYellow.bind(Z),Z.bgBlue=g.bgBlue.bind(Z),Z.bgMagenta=g.bgMagenta.bind(Z),Z.bgCyan=g.bgCyan.bind(Z),Z.bgWhite=g.bgWhite.bind(Z),Z}function u($,Y){let Z={open:`\x1B[${$}m`,close:`\x1B[${Y}m`,rgx:new RegExp(`\\x1b\\[${Y}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return this.has.includes($)||(this.has.push($),this.keys.push(Z)),J===void 0?this:g.enabled?HZ(this.keys,J+""):J+"";return J===void 0?G7([$],[Z]):g.enabled?HZ([Z],J+""):J+""}}BZ.exports=g});var UZ=C((uW,FZ)=>{FZ.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var Z$=C((mW,OZ)=>{OZ.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var l=C((cW,RZ)=>{var t$={to($,Y){if(!Y)return`\x1B[${$+1}G`;return`\x1B[${Y+1};${$+1}H`},move($,Y){let Z="";if($<0)Z+=`\x1B[${-$}D`;else if($>0)Z+=`\x1B[${$}C`;if(Y<0)Z+=`\x1B[${-Y}A`;else if(Y>0)Z+=`\x1B[${Y}B`;return Z},up:($=1)=>`\x1B[${$}A`,down:($=1)=>`\x1B[${$}B`,forward:($=1)=>`\x1B[${$}C`,backward:($=1)=>`\x1B[${$}D`,nextLine:($=1)=>"\x1B[E".repeat($),prevLine:($=1)=>"\x1B[F".repeat($),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},V7={up:($=1)=>"\x1B[S".repeat($),down:($=1)=>"\x1B[T".repeat($)},W7={screen:"\x1B[2J",up:($=1)=>"\x1B[1J".repeat($),down:($=1)=>"\x1B[J".repeat($),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines($){let Y="";for(let Z=0;Z<$;Z++)Y+=this.line+(Z<$-1?t$.up():"");if($)Y+=t$.left;return Y}};RZ.exports={cursor:t$,scroll:V7,erase:W7,beep:"\x07"}});var jZ=C((pW,CZ)=>{function q7($,Y){var Z=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!Z){if(Array.isArray($)||(Z=H7($))||Y&&$&&typeof $.length==="number"){if(Z)$=Z;var J=0,K=function(){};return{s:K,n:function(){if(J>=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function H7($,Y){if(!$)return;if(typeof $==="string")return PZ($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return PZ($,Y)}function PZ($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z[...B7($)].length;CZ.exports=function($,Y){if(!Y)return AZ.line+F7.to(0);let Z=0,J=$.split(/\r?\n/);var K=q7(J),z;try{for(K.s();!(z=K.n()).done;){let Q=z.value;Z+=1+Math.floor(Math.max(U7(Q)-1,0)/Y)}}catch(Q){K.e(Q)}finally{K.f()}return AZ.lines(Z)}});var e$=C((dW,kZ)=>{var w0={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},O7={arrowUp:w0.arrowUp,arrowDown:w0.arrowDown,arrowLeft:w0.arrowLeft,arrowRight:w0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},R7=process.platform==="win32"?O7:w0;kZ.exports=R7});var IZ=C((lW,XZ)=>{var V0=d(),e1=e$(),$Y=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),P7=($)=>$Y[$]||$Y.default,_0=Object.freeze({aborted:V0.red(e1.cross),done:V0.green(e1.tick),exited:V0.yellow(e1.cross),default:V0.cyan("?")}),A7=($,Y,Z)=>Y?_0.aborted:Z?_0.exited:$?_0.done:_0.default,E7=($)=>V0.gray($?e1.ellipsis:e1.pointerSmall),C7=($,Y)=>V0.gray($?Y?e1.pointerSmall:"+":e1.line);XZ.exports={styles:$Y,render:P7,symbols:_0,symbol:A7,delimiter:E7,item:C7}});var _Z=C((sW,wZ)=>{var j7=Z$();wZ.exports=function($,Y){let Z=String(j7($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var TZ=C((iW,DZ)=>{DZ.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{"use strict";Sn.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var he=v((d0,On)=>{"use strict";On.exports={action:dn(),clear:yn(),style:wn(),strip:lr(),figures:fi(),lines:Cn(),wrap:Tn(),entriesToDisplay:Nn()}});var Ne=v((f0,Pn)=>{"use strict";var In=Se("readline"),Ed=he(),wd=Ed.action,vd=Se("events"),_n=V(),Cd=_n.beep,xd=_n.cursor,Td=X(),gi=class extends vd{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=In.createInterface({input:this.in,escapeCodeTimeout:50});In.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,u)=>{let a=wd(u,i);a===!1?this._&&this._(n,u):typeof this[a]=="function"?this[a](u):this.bell()};this.close=()=>{this.out.write(xd.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Cd)}render(){this.onRender(Td),this.firstRender&&(this.firstRender=!1)}};Pn.exports=gi});var Fn=v((p0,Mn)=>{"use strict";function Rn(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function Ln(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){Rn(n,i,s,u,a,"next",o)}function a(o){Rn(n,i,s,u,a,"throw",o)}u(void 0)})}}var cr=X(),Sd=Ne(),Bn=V(),Nd=Bn.erase,_t=Bn.cursor,hr=he(),mi=hr.style,bi=hr.clear,Od=hr.lines,Id=hr.figures,Di=class extends Sd{constructor(e={}){super(e),this.transform=mi.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=bi("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=cr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var e=this;return Ln(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Ln(function*(){if(e.value=e.value||e.initial,e.cursorOffset=0,e.cursor=e.rendered.length,yield e.validate(),e.error){e.red=!0,e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(` -`),e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(_t.down(Od(this.outputError,this.out.columns)-1)+bi(this.outputError,this.out.columns)),this.out.write(bi(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[mi.symbol(this.done,this.aborted),cr.bold(this.msg),mi.delimiter(this.done),this.red?cr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` -`).reduce((e,r,i)=>e+` -${i?" ":Id.pointerSmall} ${cr.red().italic(r)}`,"")),this.out.write(Nd.line+_t.to(0)+this.outputText+_t.save+this.outputError+_t.restore+_t.move(this.cursorOffset,0)))}};Mn.exports=Di});var jn=v((g0,Un)=>{"use strict";var Oe=X(),_d=Ne(),Pt=he(),qn=Pt.style,$n=Pt.clear,dr=Pt.figures,Pd=Pt.wrap,Rd=Pt.entriesToDisplay,Ld=V(),Bd=Ld.cursor,yi=class extends _d{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=$n("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(Bd.hide):this.out.write($n(this.outputText,this.out.columns)),super.render();let e=Rd(this.cursor,this.choices.length,this.optionsPerPage),r=e.startIndex,i=e.endIndex;if(this.outputText=[qn.symbol(this.done,this.aborted),Oe.bold(this.msg),qn.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Oe.yellow(this.warn):Oe.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let s=r;s0?u=dr.arrowUp:s===i-1&&i=this.out.columns||o.description.split(/\r?\n/).length>1)&&(a=` -`+Pd(o.description,{margin:3,width:this.out.columns})))),this.outputText+=`${u} ${n}${Oe.gray(a)} -`}}this.out.write(this.outputText)}};Un.exports=yi});var Hn=v((m0,Yn)=>{"use strict";var fr=X(),Md=Ne(),Vn=he(),kn=Vn.style,Fd=Vn.clear,Gn=V(),Xn=Gn.cursor,qd=Gn.erase,Ai=class extends Md{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`)}});var MZ=C((rW,SZ)=>{SZ.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var H1=C((nW,LZ)=>{LZ.exports={action:UZ(),clear:jZ(),style:IZ(),strip:Z$(),figures:e$(),lines:_Z(),wrap:TZ(),entriesToDisplay:MZ()}});var D1=C((aW,bZ)=>{var xZ=_1("readline"),k7=H1(),X7=k7.action,I7=_1("events"),NZ=l(),w7=NZ.beep,_7=NZ.cursor,D7=d();class yZ extends I7{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=xZ.createInterface({input:this.in,escapeCodeTimeout:50});if(xZ.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=X7(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(_7.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(w7)}render(){if(this.onRender(D7),this.firstRender)this.firstRender=!1}}bZ.exports=yZ});var mZ=C((oW,uZ)=>{function gZ($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function fZ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){gZ(z,J,K,Q,W,"next",G)}function W(G){gZ(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var J$=d(),T7=D1(),hZ=l(),S7=hZ.erase,D0=hZ.cursor,K$=H1(),YY=K$.style,ZY=K$.clear,M7=K$.lines,L7=K$.figures;class vZ extends T7{constructor($={}){super($);this.transform=YY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=ZY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=J$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return fZ(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return fZ(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(D0.down(M7(this.outputError,this.out.columns)-1)+ZY(this.outputError,this.out.columns));this.out.write(ZY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[YY.symbol(this.done,this.aborted),J$.bold(this.msg),YY.delimiter(this.done),this.red?J$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` +`).reduce(($,Y,Z)=>$+` +${Z?" ":L7.pointerSmall} ${J$.red().italic(Y)}`,"");this.out.write(S7.line+D0.to(0)+this.outputText+D0.save+this.outputError+D0.restore+D0.move(this.cursorOffset,0))}}uZ.exports=vZ});var sZ=C((tW,lZ)=>{var T1=d(),x7=D1(),T0=H1(),cZ=T0.style,pZ=T0.clear,z$=T0.figures,N7=T0.wrap,y7=T0.entriesToDisplay,b7=l(),g7=b7.cursor;class dZ extends x7{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=pZ("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(g7.hide);else this.out.write(pZ(this.outputText,this.out.columns));super.render();let $=y7(this.cursor,this.choices.length,this.optionsPerPage),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[cZ.symbol(this.done,this.aborted),T1.bold(this.msg),cZ.delimiter(!1),this.done?this.selection.title:this.selection.disabled?T1.yellow(this.warn):T1.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let J=Y;J0)z=z$.arrowUp;else if(J===Z-1&&Z=this.out.columns||W.description.split(/\r?\n/).length>1)Q=` +`+N7(W.description,{margin:3,width:this.out.columns})}this.outputText+=`${z} ${K}${T1.gray(Q)} +`}}this.out.write(this.outputText)}}lZ.exports=dZ});var eZ=C((eW,tZ)=>{var Q$=d(),f7=D1(),nZ=H1(),iZ=nZ.style,h7=nZ.clear,aZ=l(),rZ=aZ.cursor,v7=aZ.erase;class oZ extends f7{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Xn.hide):this.out.write(Fd(this.outputText,this.out.columns)),super.render(),this.outputText=[kn.symbol(this.done,this.aborted),fr.bold(this.msg),kn.delimiter(this.done),this.value?this.inactive:fr.cyan().underline(this.inactive),fr.gray("/"),this.value?fr.cyan().underline(this.active):this.active].join(" "),this.out.write(qd.line+Xn.to(0)+this.outputText))}};Yn.exports=Ai});var me=v((b0,Wn)=>{"use strict";var Ei=class t{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof t)}toString(){return String(this.date)}};Wn.exports=Ei});var Kn=v((D0,zn)=>{"use strict";var $d=me(),wi=class extends $d{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};zn.exports=wi});var Zn=v((y0,Jn)=>{"use strict";var Ud=me(),jd=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),vi=class extends Ud{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+jd(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};Jn.exports=vi});var eu=v((A0,Qn)=>{"use strict";var kd=me(),Ci=class extends kd{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Qn.exports=Ci});var ru=v((E0,tu)=>{"use strict";var Xd=me(),xi=class extends Xd{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};tu.exports=xi});var su=v((w0,iu)=>{"use strict";var Vd=me(),Ti=class extends Vd{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};iu.exports=Ti});var uu=v((v0,nu)=>{"use strict";var Gd=me(),Si=class extends Gd{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};nu.exports=Si});var au=v((C0,ou)=>{"use strict";var Yd=me(),Ni=class extends Yd{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};ou.exports=Ni});var cu=v((x0,lu)=>{"use strict";var Hd=me(),Oi=class extends Hd{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};lu.exports=Oi});var du=v((T0,hu)=>{"use strict";hu.exports={DatePart:me(),Meridiem:Kn(),Day:Zn(),Hours:eu(),Milliseconds:ru(),Minutes:su(),Month:uu(),Seconds:au(),Year:cu()}});var wu=v((S0,Eu)=>{"use strict";function fu(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function pu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){fu(n,i,s,u,a,"next",o)}function a(o){fu(n,i,s,u,a,"throw",o)}u(void 0)})}}var Ii=X(),Wd=Ne(),Pi=he(),gu=Pi.style,mu=Pi.clear,zd=Pi.figures,Au=V(),Kd=Au.erase,bu=Au.cursor,Ie=du(),Du=Ie.DatePart,Jd=Ie.Meridiem,Zd=Ie.Day,Qd=Ie.Hours,ef=Ie.Milliseconds,tf=Ie.Minutes,rf=Ie.Month,sf=Ie.Seconds,nf=Ie.Year,uf=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,yu={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new Zd(t),3:t=>new rf(t),4:t=>new nf(t),5:t=>new Jd(t),6:t=>new Qd(t),7:t=>new tf(t),8:t=>new sf(t),9:t=>new ef(t)},of={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},_i=class extends Wd{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(of,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=mu("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=uf.exec(e);){let s=r.shift(),n=r.findIndex(u=>u!=null);this.parts.push(n in yu?yu[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof Du)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var e=this;return pu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return pu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}e.done=!0,e.aborted=!1,e.fire(),e.render(),e.out.write(` -`),e.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof Du)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(bu.hide):this.out.write(mu(this.outputText,this.out.columns)),super.render(),this.outputText=[gu.symbol(this.done,this.aborted),Ii.bold(this.msg),gu.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?Ii.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` -`).reduce((e,r,i)=>e+` -${i?" ":zd.pointerSmall} ${Ii.red().italic(r)}`,"")),this.out.write(Kd.line+bu.to(0)+this.outputText))}};Eu.exports=_i});var Ou=v((N0,Nu)=>{"use strict";function vu(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function Cu(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){vu(n,i,s,u,a,"next",o)}function a(o){vu(n,i,s,u,a,"throw",o)}u(void 0)})}}var pr=X(),af=Ne(),Su=V(),gr=Su.cursor,lf=Su.erase,mr=he(),Ri=mr.style,cf=mr.figures,xu=mr.clear,hf=mr.lines,df=/[0-9]/,Li=t=>t!==void 0,Tu=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Bi=class extends af{constructor(e={}){super(e),this.transform=Ri.render(e.style),this.msg=e.message,this.initial=Li(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=Li(e.min)?e.min:-1/0,this.max=Li(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=pr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${Tu(e,this.round)}`),this._value=Tu(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||df.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var e=this;return Cu(function*(){let r=yield e.validator(e.value);typeof r=="string"&&(e.errorMsg=r,r=!1),e.error=!r})()}submit(){var e=this;return Cu(function*(){if(yield e.validate(),e.error){e.color="red",e.fire(),e.render();return}let r=e.value;e.value=r!==""?r:e.initial,e.done=!0,e.aborted=!1,e.error=!1,e.fire(),e.render(),e.out.write(` -`),e.close()})()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuee+` -${i?" ":cf.pointerSmall} ${pr.red().italic(r)}`,"")),this.out.write(lf.line+gr.to(0)+this.outputText+gr.save+this.outputError+gr.restore))}};Nu.exports=Bi});var Fi=v((O0,Pu)=>{"use strict";var be=X(),ff=V(),pf=ff.cursor,gf=Ne(),Rt=he(),Iu=Rt.clear,ke=Rt.figures,_u=Rt.style,mf=Rt.wrap,bf=Rt.entriesToDisplay,Mi=class extends gf{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=Iu("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.lengthe.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(rZ.hide);else this.out.write(h7(this.outputText,this.out.columns));super.render(),this.outputText=[iZ.symbol(this.done,this.aborted),Q$.bold(this.msg),iZ.delimiter(this.done),this.value?this.inactive:Q$.cyan().underline(this.inactive),Q$.gray("/"),this.value?Q$.cyan().underline(this.active):this.active].join(" "),this.out.write(v7.line+rZ.to(0)+this.outputText)}}tZ.exports=oZ});var O1=C(($q,$9)=>{class G${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof G$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof G$)}toString(){return String(this.date)}}$9.exports=G$});var J9=C((Yq,Z9)=>{var u7=O1();class Y9 extends u7{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}Z9.exports=Y9});var Q9=C((Zq,z9)=>{var m7=O1(),c7=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class K9 extends m7{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+c7($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}z9.exports=K9});var W9=C((Jq,V9)=>{var p7=O1();class G9 extends p7{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}V9.exports=G9});var B9=C((Kq,H9)=>{var d7=O1();class q9 extends d7{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}H9.exports=q9});var O9=C((zq,U9)=>{var l7=O1();class F9 extends l7{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}U9.exports=F9});var A9=C((Qq,P9)=>{var s7=O1();class R9 extends s7{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}P9.exports=R9});var j9=C((Gq,C9)=>{var i7=O1();class E9 extends i7{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}C9.exports=E9});var I9=C((Vq,X9)=>{var r7=O1();class k9 extends r7{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}X9.exports=k9});var _9=C((Wq,w9)=>{w9.exports={DatePart:O1(),Meridiem:J9(),Day:Q9(),Hours:W9(),Milliseconds:B9(),Minutes:O9(),Month:A9(),Seconds:j9(),Year:I9()}});var f9=C((qq,g9)=>{function D9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function T9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){D9(z,J,K,Q,W,"next",G)}function W(G){D9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var JY=d(),n7=D1(),KY=H1(),S9=KY.style,M9=KY.clear,a7=KY.figures,y9=l(),o7=y9.erase,L9=y9.cursor,S1=_9(),x9=S1.DatePart,t7=S1.Meridiem,e7=S1.Day,$Q=S1.Hours,YQ=S1.Milliseconds,ZQ=S1.Minutes,JQ=S1.Month,KQ=S1.Seconds,zQ=S1.Year,QQ=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,N9={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new e7($),3:($)=>new JQ($),4:($)=>new zQ($),5:($)=>new t7($),6:($)=>new $Q($),7:($)=>new ZQ($),8:($)=>new KQ($),9:($)=>new YQ($)},GQ={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class b9 extends n7{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(GQ,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=M9("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=QQ.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in N9?N9[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof x9)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return T9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return T9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof x9)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(L9.hide);else this.out.write(M9(this.outputText,this.out.columns));if(super.render(),this.outputText=[S9.symbol(this.done,this.aborted),JY.bold(this.msg),S9.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?JY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` +`).reduce(($,Y,Z)=>$+` +${Z?" ":a7.pointerSmall} ${JY.red().italic(Y)}`,"");this.out.write(o7.line+L9.to(0)+this.outputText)}}g9.exports=b9});var l9=C((Hq,d9)=>{function h9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function v9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){h9(z,J,K,Q,W,"next",G)}function W(G){h9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var V$=d(),VQ=D1(),c9=l(),W$=c9.cursor,WQ=c9.erase,q$=H1(),zY=q$.style,qQ=q$.figures,u9=q$.clear,HQ=q$.lines,BQ=/[0-9]/,QY=($)=>$!==void 0,m9=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class p9 extends VQ{constructor($={}){super($);this.transform=zY.render($.style),this.msg=$.message,this.initial=QY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=QY($.min)?$.min:-1/0,this.max=QY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=V$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${m9($,this.round)}`),this._value=m9($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||BQ.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return v9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return v9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}let Y=$.value;$.value=Y!==""?Y:$.initial,$.done=!0,$.aborted=!1,$.error=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` +${Z?" ":qQ.pointerSmall} ${V$.red().italic(Y)}`,"");this.out.write(WQ.line+W$.to(0)+this.outputText+W$.save+this.outputError+W$.restore)}}d9.exports=p9});var GY=C((Bq,n9)=>{var R1=d(),FQ=l(),UQ=FQ.cursor,OQ=D1(),S0=H1(),s9=S0.clear,m1=S0.figures,i9=S0.style,RQ=S0.wrap,PQ=S0.entriesToDisplay;class r9 extends OQ{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=s9("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${ke.arrowUp}/${ke.arrowDown}: Highlight option - ${ke.arrowLeft}/${ke.arrowRight}/[space]: Toggle selection + ${m1.arrowUp}/${m1.arrowDown}: Highlight option + ${m1.arrowLeft}/${m1.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?be.green(ke.radioOn):ke.radioOff)+" "+s+" ",u,a;return r.disabled?u=e===i?be.gray().underline(r.title):be.strikethrough().gray(r.title):(u=e===i?be.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+u.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=` -`+mf(r.description,{margin:n.length,width:this.out.columns})))),n+u+be.gray(a||"")}paginateOptions(e){if(e.length===0)return be.red("No matches for this query.");let r=bf(this.cursor,e.length,this.optionsPerPage),i=r.startIndex,s=r.endIndex,n,u=[];for(let a=i;a0?n=ke.arrowUp:a===s-1&&sr.selected).map(r=>r.title).join(", ");let e=[be.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(be.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(pf.hide),super.render();let e=[_u.symbol(this.done,this.aborted),be.bold(this.msg),_u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=be.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=Iu(e,this.out.columns)}};Pu.exports=Mi});var $u=v((I0,qu)=>{"use strict";function Ru(t,e,r,i,s,n,u){try{var a=t[n](u),o=a.value}catch(c){r(c);return}a.done?e(o):Promise.resolve(o).then(i,s)}function Df(t){return function(){var e=this,r=arguments;return new Promise(function(i,s){var n=t.apply(e,r);function u(o){Ru(n,i,s,u,a,"next",o)}function a(o){Ru(n,i,s,u,a,"throw",o)}u(void 0)})}}var Lt=X(),yf=Ne(),Fu=V(),Af=Fu.erase,Lu=Fu.cursor,Bt=he(),qi=Bt.style,Bu=Bt.clear,$i=Bt.figures,Ef=Bt.wrap,wf=Bt.entriesToDisplay,Mu=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),vf=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),Cf=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Ui=class extends yf{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:Cf(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=qi.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Bu("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=Mu(this.suggestions,e):this.value=this.fallback.value,this.fire()}complete(e){var r=this;return Df(function*(){let i=r.completing=r.suggest(r.input,r.choices),s=yield i;if(r.completing!==i)return;r.suggestions=s.map((u,a,o)=>({title:vf(o,a),value:Mu(o,a),description:u.description})),r.completing=!1;let n=Math.max(s.length-1,0);r.moveSelect(Math.min(n,r.select)),e&&e()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` +`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?R1.green(m1.radioOn):m1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?R1.gray().underline(Y.title):R1.strikethrough().gray(Y.title);else if(z=$===Z?R1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` +`+RQ(Y.description,{margin:K.length,width:this.out.columns})}return K+z+R1.gray(Q||"")}paginateOptions($){if($.length===0)return R1.red("No matches for this query.");let Y=PQ(this.cursor,$.length,this.optionsPerPage),Z=Y.startIndex,J=Y.endIndex,K,z=[];for(let Q=Z;Q0)K=m1.arrowUp;else if(Q===J-1&&J<$.length)K=m1.arrowDown;else K=" ";z.push(this.renderOption(this.cursor,$[Q],Q,K))}return` +`+z.join(` +`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[R1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(R1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(UQ.hide);super.render();let $=[i9.symbol(this.done,this.aborted),R1.bold(this.msg),i9.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=R1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=s9($,this.out.columns)}}n9.exports=r9});var J8=C((Fq,Z8)=>{function a9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function AQ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){a9(z,J,K,Q,W,"next",G)}function W(G){a9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var M0=d(),EQ=D1(),$8=l(),CQ=$8.erase,o9=$8.cursor,L0=H1(),VY=L0.style,t9=L0.clear,WY=L0.figures,jQ=L0.wrap,kQ=L0.entriesToDisplay,e9=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),XQ=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),IQ=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class Y8 extends EQ{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:IQ($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=VY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=t9("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=e9(this.suggestions,$);else this.value=this.fallback.value;this.fire()}complete($){var Y=this;return AQ(function*(){let Z=Y.completing=Y.suggest(Y.input,Y.choices),J=yield Z;if(Y.completing!==Z)return;Y.suggestions=J.map((z,Q,W)=>({title:XQ(W,Q),value:e9(W,Q),description:z.description})),Y.completing=!1;let K=Math.max(J.length-1,0);Y.moveSelect(Math.min(K,Y.select)),$&&$()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,u=i?$i.arrowUp:s?$i.arrowDown:" ",a=r?Lt.cyan().underline(e.title):e.title;return u=(r?Lt.cyan($i.pointer)+" ":" ")+u,e.description&&(n=` - ${e.description}`,(u.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=` -`+Ef(e.description,{margin:3,width:this.out.columns}))),u+" "+a+Lt.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(Lu.hide):this.out.write(Bu(this.outputText,this.out.columns)),super.render();let e=wf(this.select,this.choices.length,this.limit),r=e.startIndex,i=e.endIndex;if(this.outputText=[qi.symbol(this.done,this.aborted,this.exited),Lt.bold(this.msg),qi.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let s=this.suggestions.slice(r,i).map((n,u)=>this.renderOption(n,this.select===u+r,u===0&&r>0,u+r===i-1&&i=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?WY.arrowUp:J?WY.arrowDown:" ",Q=Y?M0.cyan().underline($.title):$.title;if(z=(Y?M0.cyan(WY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` +`+jQ($.description,{margin:3,width:this.out.columns})}return z+" "+Q+M0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(o9.hide);else this.out.write(t9(this.outputText,this.out.columns));super.render();let $=kQ(this.select,this.choices.length,this.limit),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[VY.symbol(this.done,this.aborted,this.exited),M0.bold(this.msg),VY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let J=this.suggestions.slice(Y,Z).map((K,z)=>this.renderOption(K,this.select===z+Y,z===0&&Y>0,z+Y===Z-1&&Z{"use strict";var _e=X(),xf=V(),Tf=xf.cursor,Sf=Fi(),ki=he(),Uu=ki.clear,ju=ki.style,dt=ki.figures,ji=class extends Sf{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=Uu("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` +`+(J||M0.gray(this.fallback.title))}this.out.write(CQ.line+o9.to(0)+this.outputText)}}Z8.exports=Y8});var V8=C((Uq,G8)=>{var M1=d(),wQ=l(),_Q=wQ.cursor,DQ=GY(),qY=H1(),K8=qY.clear,z8=qY.style,W0=qY.figures;class Q8 extends DQ{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=K8("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${dt.arrowUp}/${dt.arrowDown}: Highlight option - ${dt.arrowLeft}/${dt.arrowRight}/[space]: Toggle selection + ${W0.arrowUp}/${W0.arrowDown}: Highlight option + ${W0.arrowLeft}/${W0.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer -`:""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:_e.gray("Enter something to filter")} -`}renderOption(e,r,i){let s;return r.disabled?s=e===i?_e.gray().underline(r.title):_e.strikethrough().gray(r.title):s=e===i?_e.cyan().underline(r.title):r.title,(r.selected?_e.green(dt.radioOn):dt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[_e.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(_e.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(Tf.hide),super.render();let e=[ju.symbol(this.done,this.aborted),_e.bold(this.msg),ju.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=_e.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=Uu(e,this.out.columns)}};ku.exports=ji});var Ku=v((P0,zu)=>{"use strict";var Vu=X(),Nf=Ne(),Hu=he(),Gu=Hu.style,Of=Hu.clear,Wu=V(),If=Wu.erase,Yu=Wu.cursor,Xi=class extends Nf{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`}return""}renderCurrentInput(){return` +Filtered results for: ${this.inputValue?this.inputValue:M1.gray("Enter something to filter")} +`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?M1.gray().underline(Y.title):M1.strikethrough().gray(Y.title);else J=$===Z?M1.cyan().underline(Y.title):Y.title;return(Y.selected?M1.green(W0.radioOn):W0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[M1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(M1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(_Q.hide);super.render();let $=[z8.symbol(this.done,this.aborted),M1.bold(this.msg),z8.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=M1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=K8($,this.out.columns)}}G8.exports=Q8});var R8=C((Oq,O8)=>{var W8=d(),TQ=D1(),B8=H1(),q8=B8.style,SQ=B8.clear,F8=l(),MQ=F8.erase,H8=F8.cursor;class U8 extends TQ{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Yu.hide):this.out.write(Of(this.outputText,this.out.columns)),super.render(),this.outputText=[Gu.symbol(this.done,this.aborted),Vu.bold(this.msg),Gu.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Vu.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(If.line+Yu.to(0)+this.outputText))}};zu.exports=Xi});var Zu=v((R0,Ju)=>{"use strict";Ju.exports={TextPrompt:Fn(),SelectPrompt:jn(),TogglePrompt:Hn(),DatePrompt:wu(),NumberPrompt:Ou(),MultiselectPrompt:Fi(),AutocompletePrompt:$u(),AutocompleteMultiselectPrompt:Xu(),ConfirmPrompt:Ku()}});var eo=v(Qu=>{"use strict";var ee=Qu,_f=Zu(),br=t=>t;function De(t,e,r={}){return new Promise((i,s)=>{let n=new _f[t](e),u=r.onAbort||br,a=r.onSubmit||br,o=r.onExit||br;n.on("state",e.onState||br),n.on("submit",c=>i(a(c))),n.on("exit",c=>i(o(c))),n.on("abort",c=>s(u(c)))})}ee.text=t=>De("TextPrompt",t);ee.password=t=>(t.style="password",ee.text(t));ee.invisible=t=>(t.style="invisible",ee.text(t));ee.number=t=>De("NumberPrompt",t);ee.date=t=>De("DatePrompt",t);ee.confirm=t=>De("ConfirmPrompt",t);ee.list=t=>{let e=t.separator||",";return De("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};ee.toggle=t=>De("TogglePrompt",t);ee.select=t=>De("SelectPrompt",t);ee.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return De("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};ee.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return De("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var Pf=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));ee.autocomplete=t=>(t.suggest=t.suggest||Pf,t.choices=[].concat(t.choices||[]),De("AutocompletePrompt",t))});var ao=v((B0,oo)=>{"use strict";function to(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function ro(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n=!0,u=!1,a;return{s:function(){r=r.call(t)},n:function(){var c=r.next();return n=c.done,c},e:function(c){u=!0,a=c},f:function(){try{!n&&r.return!=null&&r.return()}finally{if(u)throw a}}}}function Bf(t,e){if(t){if(typeof t=="string")return io(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return io(t,e)}}function io(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r{};function Xe(){return Gi.apply(this,arguments)}function Gi(){return Gi=no(function*(t=[],{onSubmit:e=uo,onCancel:r=uo}={}){let i={},s=Xe._override||{};t=[].concat(t);let n,u,a,o,c,g,p=(function(){var T=no(function*(x,B,f=!1){if(!(!f&&x.validate&&x.validate(B)!==!0))return x.format?yield x.format(B,i):B});return function(B,f){return T.apply(this,arguments)}})();var m=Lf(t),A;try{for(m.s();!(A=m.n()).done;){u=A.value;var C=u;if(o=C.name,c=C.type,typeof c=="function"&&(c=yield c(n,ro({},i),u),u.type=c),!!c){for(let T in u){if(Mf.includes(T))continue;let x=u[T];u[T]=typeof x=="function"?yield x(n,ro({},i),g):x}if(g=u,typeof u.message!="string")throw new Error("prompt message is required");var S=u;if(o=S.name,c=S.type,Vi[c]===void 0)throw new Error(`prompt type (${c}) is not defined`);if(s[u.name]!==void 0&&(n=yield p(u,s[u.name]),n!==void 0)){i[o]=n;continue}try{n=Xe._injected?Ff(Xe._injected,u.initial):yield Vi[c](u),i[o]=n=yield p(u,n,!0),a=yield e(u,n,i)}catch{a=!(yield r(u,i))}if(a)return i}}}catch(T){m.e(T)}finally{m.f()}return i}),Gi.apply(this,arguments)}function Ff(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function qf(t){Xe._injected=(Xe._injected||[]).concat(t)}function $f(t){Xe._override=Object.assign({},t)}oo.exports=Object.assign(Xe,{prompt:Xe,prompts:Vi,inject:qf,override:$f})});var co=v((M0,lo)=>{"use strict";lo.exports=(t,e)=>{if(!(t.meta&&t.name!=="escape")){if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c"||t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(e){if(t.name==="j")return"down";if(t.name==="k")return"up"}return t.name==="return"||t.name==="enter"?"submit":t.name==="backspace"?"delete":t.name==="delete"?"deleteForward":t.name==="abort"?"abort":t.name==="escape"?"exit":t.name==="tab"?"next":t.name==="pagedown"?"nextPage":t.name==="pageup"?"prevPage":t.name==="home"?"home":t.name==="end"?"end":t.name==="up"?"up":t.name==="down"?"down":t.name==="right"?"right":t.name==="left"?"left":!1}}});var Dr=v((F0,ho)=>{"use strict";ho.exports=t=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),r=new RegExp(e,"g");return typeof t=="string"?t.replace(r,""):t}});var go=v((q0,po)=>{"use strict";var Uf=Dr(),{erase:fo,cursor:jf}=V(),kf=t=>[...Uf(t)].length;po.exports=function(t,e){if(!e)return fo.line+jf.to(0);let r=0,i=t.split(/\r?\n/);for(let s of i)r+=1+Math.floor(Math.max(kf(s)-1,0)/e);return fo.lines(r)}});var Yi=v(($0,mo)=>{"use strict";var Mt={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},Xf={arrowUp:Mt.arrowUp,arrowDown:Mt.arrowDown,arrowLeft:Mt.arrowLeft,arrowRight:Mt.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},Vf=process.platform==="win32"?Xf:Mt;mo.exports=Vf});var Do=v((U0,bo)=>{"use strict";var ft=X(),rt=Yi(),Hi=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1F603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),Gf=t=>Hi[t]||Hi.default,Ft=Object.freeze({aborted:ft.red(rt.cross),done:ft.green(rt.tick),exited:ft.yellow(rt.cross),default:ft.cyan("?")}),Yf=(t,e,r)=>e?Ft.aborted:r?Ft.exited:t?Ft.done:Ft.default,Hf=t=>ft.gray(t?rt.ellipsis:rt.pointerSmall),Wf=(t,e)=>ft.gray(t?e?rt.pointerSmall:"+":rt.line);bo.exports={styles:Hi,render:Gf,symbols:Ft,symbol:Yf,delimiter:Hf,item:Wf}});var Ao=v((j0,yo)=>{"use strict";var zf=Dr();yo.exports=function(t,e){let r=String(zf(t)||"").split(/\r?\n/);return e?r.map(i=>Math.ceil(i.length/e)).reduce((i,s)=>i+s):r.length}});var wo=v((k0,Eo)=>{"use strict";Eo.exports=(t,e={})=>{let r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map(s=>s.split(/\s+/g).reduce((n,u)=>(u.length+r.length>=i||n[n.length-1].length+u.length+1{P8.exports={TextPrompt:mZ(),SelectPrompt:sZ(),TogglePrompt:eZ(),DatePrompt:f9(),NumberPrompt:l9(),MultiselectPrompt:GY(),AutocompletePrompt:J8(),AutocompleteMultiselectPrompt:V8(),ConfirmPrompt:R8()}});var C8=C((E8)=>{var $1=E8,LQ=A8(),H$=($)=>$;function P1($,Y,Z={}){return new Promise((J,K)=>{let z=new LQ[$](Y),Q=Z.onAbort||H$,W=Z.onSubmit||H$,G=Z.onExit||H$;z.on("state",Y.onState||H$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}$1.text=($)=>P1("TextPrompt",$);$1.password=($)=>{return $.style="password",$1.text($)};$1.invisible=($)=>{return $.style="invisible",$1.text($)};$1.number=($)=>P1("NumberPrompt",$);$1.date=($)=>P1("DatePrompt",$);$1.confirm=($)=>P1("ConfirmPrompt",$);$1.list=($)=>{let Y=$.separator||",";return P1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};$1.toggle=($)=>P1("TogglePrompt",$);$1.select=($)=>P1("SelectPrompt",$);$1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};$1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var xQ=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));$1.autocomplete=($)=>{return $.suggest=$.suggest||xQ,$.choices=[].concat($.choices||[]),P1("AutocompletePrompt",$)}});var T8=C((Aq,D8)=>{function j8($,Y){var Z=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);if(Y)J=J.filter(function(K){return Object.getOwnPropertyDescriptor($,K).enumerable});Z.push.apply(Z,J)}return Z}function k8($){for(var Y=1;Y=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function bQ($,Y){if(!$)return;if(typeof $==="string")return X8($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return X8($,Y)}function X8($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z{};function c1(){return BY.apply(this,arguments)}function BY(){return BY=w8(function*($=[],{onSubmit:Y=_8,onCancel:Z=_8}={}){let J={},K=c1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=function(){var I=w8(function*(D,y,O=!1){if(!O&&D.validate&&D.validate(y)!==!0)return;return D.format?yield D.format(y,J):y});return function(y,O){return I.apply(this,arguments)}}();var P=yQ($),j;try{for(P.s();!(j=P.n()).done;){Q=j.value;var w=Q;if(G=w.name,q=w.type,typeof q==="function")q=yield q(z,k8({},J),Q),Q.type=q;if(!q)continue;for(let I in Q){if(gQ.includes(I))continue;let D=Q[I];Q[I]=typeof D==="function"?yield D(z,k8({},J),H):D}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");var T=Q;if(G=T.name,q=T.type,HY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=yield R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=c1._injected?fQ(c1._injected,Q.initial):yield HY[q](Q),J[G]=z=yield R(Q,z,!0),W=yield Y(Q,z,J)}catch(I){W=!(yield Z(Q,J))}if(W)return J}}catch(I){P.e(I)}finally{P.f()}return J}),BY.apply(this,arguments)}function fQ($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function hQ($){c1._injected=(c1._injected||[]).concat($)}function vQ($){c1._override=Object.assign({},$)}D8.exports=Object.assign(c1,{prompt:c1,prompts:HY,inject:hQ,override:vQ})});var M8=C((Eq,S8)=>{S8.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var B$=C((Cq,L8)=>{L8.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var y8=C((jq,N8)=>{var uQ=B$(),{erase:x8,cursor:mQ}=l(),cQ=($)=>[...uQ($)].length;N8.exports=function($,Y){if(!Y)return x8.line+mQ.to(0);let Z=0,J=$.split(/\r?\n/);for(let K of J)Z+=1+Math.floor(Math.max(cQ(K)-1,0)/Y);return x8.lines(Z)}});var FY=C((kq,b8)=>{var x0={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},pQ={arrowUp:x0.arrowUp,arrowDown:x0.arrowDown,arrowLeft:x0.arrowLeft,arrowRight:x0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},dQ=process.platform==="win32"?pQ:x0;b8.exports=dQ});var f8=C((Xq,g8)=>{var q0=d(),$0=FY(),UY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),lQ=($)=>UY[$]||UY.default,N0=Object.freeze({aborted:q0.red($0.cross),done:q0.green($0.tick),exited:q0.yellow($0.cross),default:q0.cyan("?")}),sQ=($,Y,Z)=>Y?N0.aborted:Z?N0.exited:$?N0.done:N0.default,iQ=($)=>q0.gray($?$0.ellipsis:$0.pointerSmall),rQ=($,Y)=>q0.gray($?Y?$0.pointerSmall:"+":$0.line);g8.exports={styles:UY,render:lQ,symbols:N0,symbol:sQ,delimiter:iQ,item:rQ}});var v8=C((Iq,h8)=>{var nQ=B$();h8.exports=function($,Y){let Z=String(nQ($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var m8=C((wq,u8)=>{u8.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{"use strict";vo.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));i<0&&(i=0);let s=Math.min(i+r,e);return{startIndex:i,endIndex:s}}});var de=v((V0,xo)=>{"use strict";xo.exports={action:co(),clear:go(),style:Do(),strip:Dr(),figures:Yi(),lines:Ao(),wrap:wo(),entriesToDisplay:Co()}});var Pe=v((G0,So)=>{"use strict";var To=Se("readline"),{action:Kf}=de(),Jf=Se("events"),{beep:Zf,cursor:Qf}=V(),ep=X(),Wi=class extends Jf{constructor(e={}){super(),this.firstRender=!0,this.in=e.stdin||process.stdin,this.out=e.stdout||process.stdout,this.onRender=(e.onRender||(()=>{})).bind(this);let r=To.createInterface({input:this.in,escapeCodeTimeout:50});To.emitKeypressEvents(this.in,r),this.in.isTTY&&this.in.setRawMode(!0);let i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,s=(n,u)=>{let a=Kf(u,i);a===!1?this._&&this._(n,u):typeof this[a]=="function"?this[a](u):this.bell()};this.close=()=>{this.out.write(Qf.show),this.in.removeListener("keypress",s),this.in.isTTY&&this.in.setRawMode(!1),r.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",s)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(Zf)}render(){this.onRender(ep),this.firstRender&&(this.firstRender=!1)}};So.exports=Wi});var Oo=v((Y0,No)=>{var yr=X(),tp=Pe(),{erase:rp,cursor:qt}=V(),{style:zi,clear:Ki,lines:ip,figures:sp}=de(),Ji=class extends tp{constructor(e={}){super(e),this.transform=zi.render(e.style),this.scale=this.transform.scale,this.msg=e.message,this.initial=e.initial||"",this.validator=e.validate||(()=>!0),this.value="",this.errorMsg=e.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=Ki("",this.out.columns),this.render()}set value(e){!e&&this.initial?(this.placeholder=!0,this.rendered=yr.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(e)),this._value=e,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(e){this.placeholder||(this.cursor=this.cursor+e,this.cursorOffset+=e)}_(e,r){let i=this.value.slice(0,this.cursor),s=this.value.slice(this.cursor);this.value=`${i}${e}${s}`,this.red=!1,this.cursor=this.placeholder?0:i.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let e=this.value.slice(0,this.cursor-1),r=this.value.slice(this.cursor);this.value=`${e}${r}`,this.red=!1,this.isCursorAtStart()?this.cursorOffset=0:(this.cursorOffset++,this.moveCursor(-1)),this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor),r=this.value.slice(this.cursor+1);this.value=`${e}${r}`,this.red=!1,this.isCursorAtEnd()?this.cursorOffset=0:this.cursorOffset++,this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){this.closed||(this.firstRender||(this.outputError&&this.out.write(qt.down(ip(this.outputError,this.out.columns)-1)+Ki(this.outputError,this.out.columns)),this.out.write(Ki(this.outputText,this.out.columns))),super.render(),this.outputError="",this.outputText=[zi.symbol(this.done,this.aborted),yr.bold(this.msg),zi.delimiter(this.done),this.red?yr.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split(` -`).reduce((e,r,i)=>e+` -${i?" ":sp.pointerSmall} ${yr.red().italic(r)}`,"")),this.out.write(rp.line+qt.to(0)+this.outputText+qt.save+this.outputError+qt.restore+qt.move(this.cursorOffset,0)))}};No.exports=Ji});var Ro=v((H0,Po)=>{"use strict";var Re=X(),np=Pe(),{style:Io,clear:_o,figures:Ar,wrap:up,entriesToDisplay:op}=de(),{cursor:ap}=V(),Zi=class extends np{constructor(e={}){super(e),this.msg=e.message,this.hint=e.hint||"- Use arrow-keys. Return to submit.",this.warn=e.warn||"- This option is disabled",this.cursor=e.initial||0,this.choices=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),value:r&&(r.value===void 0?i:r.value),description:r&&r.description,selected:r&&r.selected,disabled:r&&r.disabled})),this.optionsPerPage=e.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=_o("",this.out.columns),this.render()}moveCursor(e){this.cursor=e,this.value=this.choices[e].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){this.selection.disabled?this.bell():(this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){this.cursor===0?this.moveCursor(this.choices.length-1):this.moveCursor(this.cursor-1),this.render()}down(){this.cursor===this.choices.length-1?this.moveCursor(0):this.moveCursor(this.cursor+1),this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(e,r){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;this.firstRender?this.out.write(ap.hide):this.out.write(_o(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=op(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[Io.symbol(this.done,this.aborted),Re.bold(this.msg),Io.delimiter(!1),this.done?this.selection.title:this.selection.disabled?Re.yellow(this.warn):Re.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let i=e;i0?n=Ar.arrowUp:i===r-1&&r=this.out.columns||a.description.split(/\r?\n/).length>1)&&(u=` -`+up(a.description,{margin:3,width:this.out.columns})))),this.outputText+=`${n} ${s}${Re.gray(u)} -`}}this.out.write(this.outputText)}};Po.exports=Zi});var Fo=v((W0,Mo)=>{var Er=X(),lp=Pe(),{style:Lo,clear:cp}=de(),{cursor:Bo,erase:hp}=V(),Qi=class extends lp{constructor(e={}){super(e),this.msg=e.message,this.value=!!e.initial,this.active=e.active||"on",this.inactive=e.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`)}});var p8=C((_q,c8)=>{c8.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var B1=C((Dq,d8)=>{d8.exports={action:M8(),clear:y8(),style:f8(),strip:B$(),figures:FY(),lines:v8(),wrap:m8(),entriesToDisplay:p8()}});var L1=C((Tq,i8)=>{var l8=_1("readline"),{action:aQ}=B1(),oQ=_1("events"),{beep:tQ,cursor:eQ}=l(),$5=d();class s8 extends oQ{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=l8.createInterface({input:this.in,escapeCodeTimeout:50});if(l8.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=aQ(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(eQ.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(tQ)}render(){if(this.onRender($5),this.firstRender)this.firstRender=!1}}i8.exports=s8});var a8=C((Sq,n8)=>{var F$=d(),Y5=L1(),{erase:Z5,cursor:y0}=l(),{style:OY,clear:RY,lines:J5,figures:K5}=B1();class r8 extends Y5{constructor($={}){super($);this.transform=OY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=RY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=F$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(y0.down(J5(this.outputError,this.out.columns)-1)+RY(this.outputError,this.out.columns));this.out.write(RY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[OY.symbol(this.done,this.aborted),F$.bold(this.msg),OY.delimiter(this.done),this.red?F$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` +`).reduce(($,Y,Z)=>$+` +${Z?" ":K5.pointerSmall} ${F$.red().italic(Y)}`,"");this.out.write(Z5.line+y0.to(0)+this.outputText+y0.save+this.outputError+y0.restore+y0.move(this.cursorOffset,0))}}n8.exports=r8});var YJ=C((Mq,$J)=>{var x1=d(),z5=L1(),{style:o8,clear:t8,figures:U$,wrap:Q5,entriesToDisplay:G5}=B1(),{cursor:V5}=l();class e8 extends z5{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=t8("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(V5.hide);else this.out.write(t8(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=G5(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[o8.symbol(this.done,this.aborted),x1.bold(this.msg),o8.delimiter(!1),this.done?this.selection.title:this.selection.disabled?x1.yellow(this.warn):x1.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let Z=$;Z0)K=U$.arrowUp;else if(Z===Y-1&&Y=this.out.columns||Q.description.split(/\r?\n/).length>1)z=` +`+Q5(Q.description,{margin:3,width:this.out.columns})}this.outputText+=`${K} ${J}${x1.gray(z)} +`}}this.out.write(this.outputText)}}$J.exports=e8});var QJ=C((Lq,zJ)=>{var O$=d(),W5=L1(),{style:ZJ,clear:q5}=B1(),{cursor:JJ,erase:H5}=l();class KJ extends W5{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(e,r){if(e===" ")this.value=!this.value;else if(e==="1")this.value=!0;else if(e==="0")this.value=!1;else return this.bell();this.render()}render(){this.closed||(this.firstRender?this.out.write(Bo.hide):this.out.write(cp(this.outputText,this.out.columns)),super.render(),this.outputText=[Lo.symbol(this.done,this.aborted),Er.bold(this.msg),Lo.delimiter(this.done),this.value?this.inactive:Er.cyan().underline(this.inactive),Er.gray("/"),this.value?Er.cyan().underline(this.active):this.active].join(" "),this.out.write(hp.line+Bo.to(0)+this.outputText))}};Mo.exports=Qi});var ye=v((z0,qo)=>{"use strict";var es=class t{constructor({token:e,date:r,parts:i,locales:s}){this.token=e,this.date=r||new Date,this.parts=i||[this],this.locales=s||{}}up(){}down(){}next(){let e=this.parts.indexOf(this);return this.parts.find((r,i)=>i>e&&r instanceof t)}setTo(e){}prev(){let e=[].concat(this.parts).reverse(),r=e.indexOf(this);return e.find((i,s)=>s>r&&i instanceof t)}toString(){return String(this.date)}};qo.exports=es});var Uo=v((K0,$o)=>{"use strict";var dp=ye(),ts=class extends dp{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}};$o.exports=ts});var ko=v((J0,jo)=>{"use strict";var fp=ye(),pp=t=>(t=t%10,t===1?"st":t===2?"nd":t===3?"rd":"th"),rs=class extends fp{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate(),r=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pp(e):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:e}};jo.exports=rs});var Vo=v((Z0,Xo)=>{"use strict";var gp=ye(),is=class extends gp{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();return/h/.test(this.token)&&(e=e%12||12),this.token.length>1?String(e).padStart(2,"0"):e}};Xo.exports=is});var Yo=v((Q0,Go)=>{"use strict";var mp=ye(),ss=class extends mp{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}};Go.exports=ss});var Wo=v((eb,Ho)=>{"use strict";var bp=ye(),ns=class extends bp{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}};Ho.exports=ns});var Ko=v((tb,zo)=>{"use strict";var Dp=ye(),us=class extends Dp{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1,this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth(),r=this.token.length;return r===2?String(e+1).padStart(2,"0"):r===3?this.locales.monthsShort[e]:r===4?this.locales.months[e]:String(e+1)}};zo.exports=us});var Zo=v((rb,Jo)=>{"use strict";var yp=ye(),os=class extends yp{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}};Jo.exports=os});var ea=v((ib,Qo)=>{"use strict";var Ap=ye(),as=class extends Ap{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}};Qo.exports=as});var ra=v((sb,ta)=>{"use strict";ta.exports={DatePart:ye(),Meridiem:Uo(),Day:ko(),Hours:Vo(),Milliseconds:Yo(),Minutes:Wo(),Month:Ko(),Seconds:Zo(),Year:ea()}});var la=v((nb,aa)=>{"use strict";var ls=X(),Ep=Pe(),{style:ia,clear:sa,figures:wp}=de(),{erase:vp,cursor:na}=V(),{DatePart:ua,Meridiem:Cp,Day:xp,Hours:Tp,Milliseconds:Sp,Minutes:Np,Month:Op,Seconds:Ip,Year:_p}=ra(),Pp=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,oa={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new xp(t),3:t=>new Op(t),4:t=>new _p(t),5:t=>new Cp(t),6:t=>new Tp(t),7:t=>new Np(t),8:t=>new Ip(t),9:t=>new Sp(t)},Rp={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")},cs=class extends Ep{constructor(e={}){super(e),this.msg=e.message,this.cursor=0,this.typed="",this.locales=Object.assign(Rp,e.locales),this._date=e.initial||new Date,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.mask=e.mask||"YYYY-MM-DD HH:mm:ss",this.clear=sa("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(e){e&&this._date.setTime(e.getTime())}set mask(e){let r;for(this.parts=[];r=Pp.exec(e);){let s=r.shift(),n=r.findIndex(u=>u!=null);this.parts.push(n in oa?oa[n]({token:r[n]||s,date:this.date,parts:this.parts,locales:this.locales}):r[n]||s)}let i=this.parts.reduce((s,n)=>(typeof n=="string"&&typeof s[s.length-1]=="string"?s[s.length-1]+=n:s.push(n),s),[]);this.parts.splice(0),this.parts.push(...i),this.reset()}moveCursor(e){this.typed="",this.cursor=e,this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof ua)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e)),this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(r=>r instanceof ua)),this.render()}_(e){/\d/.test(e)&&(this.typed+=e,this.parts[this.cursor].setTo(this.typed),this.render())}render(){this.closed||(this.firstRender?this.out.write(na.hide):this.out.write(sa(this.outputText,this.out.columns)),super.render(),this.outputText=[ia.symbol(this.done,this.aborted),ls.bold(this.msg),ia.delimiter(!1),this.parts.reduce((e,r,i)=>e.concat(i===this.cursor&&!this.done?ls.cyan().underline(r.toString()):r),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split(` -`).reduce((e,r,i)=>e+` -${i?" ":wp.pointerSmall} ${ls.red().italic(r)}`,"")),this.out.write(vp.line+na.to(0)+this.outputText))}};aa.exports=cs});var fa=v((ub,da)=>{var wr=X(),Lp=Pe(),{cursor:vr,erase:Bp}=V(),{style:hs,figures:Mp,clear:ca,lines:Fp}=de(),qp=/[0-9]/,ds=t=>t!==void 0,ha=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},fs=class extends Lp{constructor(e={}){super(e),this.transform=hs.render(e.style),this.msg=e.message,this.initial=ds(e.initial)?e.initial:"",this.float=!!e.float,this.round=e.round||2,this.inc=e.increment||1,this.min=ds(e.min)?e.min:-1/0,this.max=ds(e.max)?e.max:1/0,this.errorMsg=e.error||"Please Enter A Valid Value",this.validator=e.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(e){!e&&e!==0?(this.placeholder=!0,this.rendered=wr.gray(this.transform.render(`${this.initial}`)),this._value=""):(this.placeholder=!1,this.rendered=this.transform.render(`${ha(e,this.round)}`),this._value=ha(e,this.round)),this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e==="-"||e==="."&&this.float||qp.test(e)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let e=this.value;this.value=e!==""?e:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}async validate(){let e=await this.validator(this.value);typeof e=="string"&&(this.errorMsg=e,e=!1),this.error=!e}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let e=this.value;this.value=e!==""?e:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){if(this.typed="",this.value===""&&(this.value=this.min-this.inc),this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value===""&&(this.value=this.min+this.inc),this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||"",this.value!==""&&this.value1e3&&(this.typed=""),this.typed+=e,this.lastHit=i,this.color="cyan",e===".")return this.fire();this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max&&(this.value=this.max),this.valuee+` -${i?" ":Mp.pointerSmall} ${wr.red().italic(r)}`,"")),this.out.write(Bp.line+vr.to(0)+this.outputText+vr.save+this.outputError+vr.restore))}};da.exports=fs});var gs=v((ob,ma)=>{"use strict";var Ae=X(),{cursor:$p}=V(),Up=Pe(),{clear:pa,figures:Ve,style:ga,wrap:jp,entriesToDisplay:kp}=de(),ps=class extends Up{constructor(e={}){super(e),this.msg=e.message,this.cursor=e.cursor||0,this.scrollIndex=e.cursor||0,this.hint=e.hint||"",this.warn=e.warn||"- This option is disabled -",this.minSelected=e.min,this.showMinError=!1,this.maxChoices=e.max,this.instructions=e.instructions,this.optionsPerPage=e.optionsPerPage||10,this.value=e.choices.map((r,i)=>(typeof r=="string"&&(r={title:r,value:i}),{title:r&&(r.title||r.value||r),description:r&&r.description,value:r&&(r.value===void 0?i:r.value),selected:r&&r.selected,disabled:r&&r.disabled})),this.clear=pa("",this.out.columns),e.overrideRender||this.render()}reset(){this.value.map(e=>!e.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(e=>e.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let e=this.value.filter(r=>r.selected);this.minSelected&&e.lengthe.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let e=this.value[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let e=!this.value[this.cursor].selected;this.value.filter(r=>!r.disabled).forEach(r=>r.selected=e),this.render()}_(e,r){if(e===" ")this.handleSpaceToggle();else if(e==="a")this.toggleAll();else return this.bell()}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(JJ.hide);else this.out.write(q5(this.outputText,this.out.columns));super.render(),this.outputText=[ZJ.symbol(this.done,this.aborted),O$.bold(this.msg),ZJ.delimiter(this.done),this.value?this.inactive:O$.cyan().underline(this.inactive),O$.gray("/"),this.value?O$.cyan().underline(this.active):this.active].join(" "),this.out.write(H5.line+JJ.to(0)+this.outputText)}}zJ.exports=KJ});var A1=C((xq,GJ)=>{class R${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof R$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof R$)}toString(){return String(this.date)}}GJ.exports=R$});var qJ=C((Nq,WJ)=>{var B5=A1();class VJ extends B5{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}WJ.exports=VJ});var FJ=C((yq,BJ)=>{var F5=A1(),U5=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class HJ extends F5{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+U5($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}BJ.exports=HJ});var RJ=C((bq,OJ)=>{var O5=A1();class UJ extends O5{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}OJ.exports=UJ});var EJ=C((gq,AJ)=>{var R5=A1();class PJ extends R5{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}AJ.exports=PJ});var kJ=C((fq,jJ)=>{var P5=A1();class CJ extends P5{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}jJ.exports=CJ});var wJ=C((hq,IJ)=>{var A5=A1();class XJ extends A5{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}IJ.exports=XJ});var TJ=C((vq,DJ)=>{var E5=A1();class _J extends E5{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}DJ.exports=_J});var LJ=C((uq,MJ)=>{var C5=A1();class SJ extends C5{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}MJ.exports=SJ});var NJ=C((mq,xJ)=>{xJ.exports={DatePart:A1(),Meridiem:qJ(),Day:FJ(),Hours:RJ(),Milliseconds:EJ(),Minutes:kJ(),Month:wJ(),Seconds:TJ(),Year:LJ()}});var mJ=C((cq,uJ)=>{var PY=d(),j5=L1(),{style:yJ,clear:bJ,figures:k5}=B1(),{erase:X5,cursor:gJ}=l(),{DatePart:fJ,Meridiem:I5,Day:w5,Hours:_5,Milliseconds:D5,Minutes:T5,Month:S5,Seconds:M5,Year:L5}=NJ(),x5=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,hJ={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new w5($),3:($)=>new S5($),4:($)=>new L5($),5:($)=>new I5($),6:($)=>new _5($),7:($)=>new T5($),8:($)=>new M5($),9:($)=>new D5($)},N5={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class vJ extends j5{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(N5,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=bJ("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=x5.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in hJ?hJ[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof fJ)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof fJ)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(gJ.hide);else this.out.write(bJ(this.outputText,this.out.columns));if(super.render(),this.outputText=[yJ.symbol(this.done,this.aborted),PY.bold(this.msg),yJ.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?PY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` +`).reduce(($,Y,Z)=>$+` +${Z?" ":k5.pointerSmall} ${PY.red().italic(Y)}`,"");this.out.write(X5.line+gJ.to(0)+this.outputText)}}uJ.exports=vJ});var sJ=C((pq,lJ)=>{var P$=d(),y5=L1(),{cursor:A$,erase:b5}=l(),{style:AY,figures:g5,clear:cJ,lines:f5}=B1(),h5=/[0-9]/,EY=($)=>$!==void 0,pJ=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class dJ extends y5{constructor($={}){super($);this.transform=AY.render($.style),this.msg=$.message,this.initial=EY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=EY($.min)?$.min:-1/0,this.max=EY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=P$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${pJ($,this.round)}`),this._value=pJ($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||h5.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let $=this.value;this.value=$!==""?$:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` +${Z?" ":g5.pointerSmall} ${P$.red().italic(Y)}`,"");this.out.write(b5.line+A$.to(0)+this.outputText+A$.save+this.outputError+A$.restore)}}lJ.exports=dJ});var CY=C((dq,aJ)=>{var E1=d(),{cursor:v5}=l(),u5=L1(),{clear:iJ,figures:p1,style:rJ,wrap:m5,entriesToDisplay:c5}=B1();class nJ extends u5{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=iJ("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${Ve.arrowUp}/${Ve.arrowDown}: Highlight option - ${Ve.arrowLeft}/${Ve.arrowRight}/[space]: Toggle selection + ${p1.arrowUp}/${p1.arrowDown}: Highlight option + ${p1.arrowLeft}/${p1.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer":""}renderOption(e,r,i,s){let n=(r.selected?Ae.green(Ve.radioOn):Ve.radioOff)+" "+s+" ",u,a;return r.disabled?u=e===i?Ae.gray().underline(r.title):Ae.strikethrough().gray(r.title):(u=e===i?Ae.cyan().underline(r.title):r.title,e===i&&r.description&&(a=` - ${r.description}`,(n.length+u.length+a.length>=this.out.columns||r.description.split(/\r?\n/).length>1)&&(a=` -`+jp(r.description,{margin:n.length,width:this.out.columns})))),n+u+Ae.gray(a||"")}paginateOptions(e){if(e.length===0)return Ae.red("No matches for this query.");let{startIndex:r,endIndex:i}=kp(this.cursor,e.length,this.optionsPerPage),s,n=[];for(let u=r;u0?s=Ve.arrowUp:u===i-1&&ir.selected).map(r=>r.title).join(", ");let e=[Ae.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&e.push(Ae.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write($p.hide),super.render();let e=[ga.symbol(this.done,this.aborted),Ae.bold(this.msg),ga.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Ae.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.value),this.out.write(this.clear+e),this.clear=pa(e,this.out.columns)}};ma.exports=ps});var Ea=v((ab,Aa)=>{"use strict";var $t=X(),Xp=Pe(),{erase:Vp,cursor:ba}=V(),{style:ms,clear:Da,figures:bs,wrap:Gp,entriesToDisplay:Yp}=de(),ya=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),Hp=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]),Wp=(t,e)=>{let r=t.findIndex(i=>i.value===e||i.title===e);return r>-1?r:void 0},Ds=class extends Xp{constructor(e={}){super(e),this.msg=e.message,this.suggest=e.suggest,this.choices=e.choices,this.initial=typeof e.initial=="number"?e.initial:Wp(e.choices,e.initial),this.select=this.initial||e.cursor||0,this.i18n={noMatches:e.noMatches||"no matches found"},this.fallback=e.fallback||this.initial,this.clearFirst=e.clearFirst||!1,this.suggestions=[],this.input="",this.limit=e.limit||10,this.cursor=0,this.transform=ms.render(e.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=Da("",this.out.columns),this.complete(this.render),this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;return typeof this._fb=="number"?e=this.choices[this._fb]:typeof this._fb=="string"&&(e={title:this._fb}),e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e,this.suggestions.length>0?this.value=ya(this.suggestions,e):this.value=this.fallback.value,this.fire()}async complete(e){let r=this.completing=this.suggest(this.input,this.choices),i=await r;if(this.completing!==r)return;this.suggestions=i.map((n,u,a)=>({title:Hp(a,u),value:ya(a,u),description:n.description})),this.completing=!1;let s=Math.max(i.length-1,0);this.moveSelect(Math.min(s,this.select)),e&&e()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){this.clearFirst&&this.input.length>0?this.reset():(this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close())}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` +`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?E1.green(p1.radioOn):p1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?E1.gray().underline(Y.title):E1.strikethrough().gray(Y.title);else if(z=$===Z?E1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` +`+m5(Y.description,{margin:K.length,width:this.out.columns})}return K+z+E1.gray(Q||"")}paginateOptions($){if($.length===0)return E1.red("No matches for this query.");let{startIndex:Y,endIndex:Z}=c5(this.cursor,$.length,this.optionsPerPage),J,K=[];for(let z=Y;z0)J=p1.arrowUp;else if(z===Z-1&&Z<$.length)J=p1.arrowDown;else J=" ";K.push(this.renderOption(this.cursor,$[z],z,J))}return` +`+K.join(` +`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[E1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(E1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(v5.hide);super.render();let $=[rJ.symbol(this.done,this.aborted),E1.bold(this.msg),rJ.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=E1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=iJ($,this.out.columns)}}aJ.exports=nJ});var Z6=C((lq,Y6)=>{var b0=d(),p5=L1(),{erase:d5,cursor:oJ}=l(),{style:jY,clear:tJ,figures:kY,wrap:l5,entriesToDisplay:s5}=B1(),eJ=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),i5=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),r5=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class $6 extends p5{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:r5($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=jY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=tJ("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=eJ(this.suggestions,$);else this.value=this.fallback.value;this.fire()}async complete($){let Y=this.completing=this.suggest(this.input,this.choices),Z=await Y;if(this.completing!==Y)return;this.suggestions=Z.map((K,z,Q)=>({title:i5(Q,z),value:eJ(Q,z),description:K.description})),this.completing=!1;let J=Math.max(Z.length-1,0);this.moveSelect(Math.min(J,this.select)),$&&$()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(e,r){let i=this.input.slice(0,this.cursor),s=this.input.slice(this.cursor);this.input=`${i}${e}${s}`,this.cursor=i.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1),r=this.input.slice(this.cursor);this.input=`${e}${r}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor),r=this.input.slice(this.cursor+1);this.input=`${e}${r}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){this.select===0?this.moveSelect(this.suggestions.length-1):this.moveSelect(this.select-1),this.render()}down(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}next(){this.select===this.suggestions.length-1?this.moveSelect(0):this.moveSelect(this.select+1),this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(e,r,i,s){let n,u=i?bs.arrowUp:s?bs.arrowDown:" ",a=r?$t.cyan().underline(e.title):e.title;return u=(r?$t.cyan(bs.pointer)+" ":" ")+u,e.description&&(n=` - ${e.description}`,(u.length+a.length+n.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(n=` -`+Gp(e.description,{margin:3,width:this.out.columns}))),u+" "+a+$t.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(ba.hide):this.out.write(Da(this.outputText,this.out.columns)),super.render();let{startIndex:e,endIndex:r}=Yp(this.select,this.choices.length,this.limit);if(this.outputText=[ms.symbol(this.done,this.aborted,this.exited),$t.bold(this.msg),ms.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let i=this.suggestions.slice(e,r).map((s,n)=>this.renderOption(s,this.select===n+e,n===0&&e>0,n+e===r-1&&r=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?kY.arrowUp:J?kY.arrowDown:" ",Q=Y?b0.cyan().underline($.title):$.title;if(z=(Y?b0.cyan(kY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` +`+l5($.description,{margin:3,width:this.out.columns})}return z+" "+Q+b0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(oJ.hide);else this.out.write(tJ(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=s5(this.select,this.choices.length,this.limit);if(this.outputText=[jY.symbol(this.done,this.aborted,this.exited),b0.bold(this.msg),jY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let Z=this.suggestions.slice($,Y).map((J,K)=>this.renderOption(J,this.select===K+$,K===0&&$>0,K+$===Y-1&&Y{"use strict";var Le=X(),{cursor:zp}=V(),Kp=gs(),{clear:wa,style:va,figures:pt}=de(),ys=class extends Kp{constructor(e={}){e.overrideRender=!0,super(e),this.inputValue="",this.clear=wa("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){this.cursor===0?this.cursor=this.filteredOptions.length-1:this.cursor--,this.render()}down(){this.cursor===this.filteredOptions.length-1?this.cursor=0:this.cursor++,this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(e=>e.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){this.inputValue.length&&(this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions())}updateFilteredOptions(){let e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(i=>this.inputValue?!!(typeof i.title=="string"&&i.title.toLowerCase().includes(this.inputValue.toLowerCase())||typeof i.value=="string"&&i.value.toLowerCase().includes(this.inputValue.toLowerCase())):!0);let r=this.filteredOptions.findIndex(i=>i===e);this.cursor=r<0?0:r,this.render()}handleSpaceToggle(){let e=this.filteredOptions[this.cursor];if(e.selected)e.selected=!1,this.render();else{if(e.disabled||this.value.filter(r=>r.selected).length>=this.maxChoices)return this.bell();e.selected=!0,this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e,this.updateFilteredOptions()}_(e,r){e===" "?this.handleSpaceToggle():this.handleInputChange(e)}renderInstructions(){return this.instructions===void 0||this.instructions?typeof this.instructions=="string"?this.instructions:` +`+(Z||b0.gray(this.fallback.title))}this.out.write(d5.line+oJ.to(0)+this.outputText)}}Y6.exports=$6});var G6=C((sq,Q6)=>{var N1=d(),{cursor:n5}=l(),a5=CY(),{clear:J6,style:K6,figures:H0}=B1();class z6 extends a5{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=J6("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${pt.arrowUp}/${pt.arrowDown}: Highlight option - ${pt.arrowLeft}/${pt.arrowRight}/[space]: Toggle selection + ${H0.arrowUp}/${H0.arrowDown}: Highlight option + ${H0.arrowLeft}/${H0.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer -`:""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:Le.gray("Enter something to filter")} -`}renderOption(e,r,i){let s;return r.disabled?s=e===i?Le.gray().underline(r.title):Le.strikethrough().gray(r.title):s=e===i?Le.cyan().underline(r.title):r.title,(r.selected?Le.green(pt.radioOn):pt.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter(r=>r.selected).map(r=>r.title).join(", ");let e=[Le.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&e.push(Le.yellow(this.warn)),e.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(zp.hide),super.render();let e=[va.symbol(this.done,this.aborted),Le.bold(this.msg),va.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(e+=Le.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),e+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+e),this.clear=wa(e,this.out.columns)}};Ca.exports=ys});var Ia=v((cb,Oa)=>{var Ta=X(),Jp=Pe(),{style:Sa,clear:Zp}=de(),{erase:Qp,cursor:Na}=V(),As=class extends Jp{constructor(e={}){super(e),this.msg=e.message,this.value=e.initial,this.initialValue=!!e.initial,this.yesMsg=e.yes||"yes",this.yesOption=e.yesOption||"(Y/n)",this.noMsg=e.no||"no",this.noOption=e.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`}return""}renderCurrentInput(){return` +Filtered results for: ${this.inputValue?this.inputValue:N1.gray("Enter something to filter")} +`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?N1.gray().underline(Y.title):N1.strikethrough().gray(Y.title);else J=$===Z?N1.cyan().underline(Y.title):Y.title;return(Y.selected?N1.green(H0.radioOn):H0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[N1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(N1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n5.hide);super.render();let $=[K6.symbol(this.done,this.aborted),N1.bold(this.msg),K6.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=N1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=J6($,this.out.columns)}}Q6.exports=z6});var F6=C((iq,B6)=>{var V6=d(),o5=L1(),{style:W6,clear:t5}=B1(),{erase:e5,cursor:q6}=l();class H6 extends o5{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_(e,r){return e.toLowerCase()==="y"?(this.value=!0,this.submit()):e.toLowerCase()==="n"?(this.value=!1,this.submit()):this.bell()}render(){this.closed||(this.firstRender?this.out.write(Na.hide):this.out.write(Zp(this.outputText,this.out.columns)),super.render(),this.outputText=[Sa.symbol(this.done,this.aborted),Ta.bold(this.msg),Sa.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:Ta.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(Qp.line+Na.to(0)+this.outputText))}};Oa.exports=As});var Pa=v((hb,_a)=>{"use strict";_a.exports={TextPrompt:Oo(),SelectPrompt:Ro(),TogglePrompt:Fo(),DatePrompt:la(),NumberPrompt:fa(),MultiselectPrompt:gs(),AutocompletePrompt:Ea(),AutocompleteMultiselectPrompt:xa(),ConfirmPrompt:Ia()}});var La=v(Ra=>{"use strict";var te=Ra,eg=Pa(),Cr=t=>t;function Ee(t,e,r={}){return new Promise((i,s)=>{let n=new eg[t](e),u=r.onAbort||Cr,a=r.onSubmit||Cr,o=r.onExit||Cr;n.on("state",e.onState||Cr),n.on("submit",c=>i(a(c))),n.on("exit",c=>i(o(c))),n.on("abort",c=>s(u(c)))})}te.text=t=>Ee("TextPrompt",t);te.password=t=>(t.style="password",te.text(t));te.invisible=t=>(t.style="invisible",te.text(t));te.number=t=>Ee("NumberPrompt",t);te.date=t=>Ee("DatePrompt",t);te.confirm=t=>Ee("ConfirmPrompt",t);te.list=t=>{let e=t.separator||",";return Ee("TextPrompt",t,{onSubmit:r=>r.split(e).map(i=>i.trim())})};te.toggle=t=>Ee("TogglePrompt",t);te.select=t=>Ee("SelectPrompt",t);te.multiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return Ee("MultiselectPrompt",t,{onAbort:e,onSubmit:e})};te.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);let e=r=>r.filter(i=>i.selected).map(i=>i.value);return Ee("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};var tg=(t,e)=>Promise.resolve(e.filter(r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase()));te.autocomplete=t=>(t.suggest=t.suggest||tg,t.choices=[].concat(t.choices||[]),Ee("AutocompletePrompt",t))});var Fa=v((fb,Ma)=>{"use strict";var Es=La(),rg=["suggest","format","onState","validate","onRender","type"],Ba=()=>{};async function Ge(t=[],{onSubmit:e=Ba,onCancel:r=Ba}={}){let i={},s=Ge._override||{};t=[].concat(t);let n,u,a,o,c,g,p=async(m,A,C=!1)=>{if(!(!C&&m.validate&&m.validate(A)!==!0))return m.format?await m.format(A,i):A};for(u of t)if({name:o,type:c}=u,typeof c=="function"&&(c=await c(n,{...i},u),u.type=c),!!c){for(let m in u){if(rg.includes(m))continue;let A=u[m];u[m]=typeof A=="function"?await A(n,{...i},g):A}if(g=u,typeof u.message!="string")throw new Error("prompt message is required");if({name:o,type:c}=u,Es[c]===void 0)throw new Error(`prompt type (${c}) is not defined`);if(s[u.name]!==void 0&&(n=await p(u,s[u.name]),n!==void 0)){i[o]=n;continue}try{n=Ge._injected?ig(Ge._injected,u.initial):await Es[c](u),i[o]=n=await p(u,n,!0),a=await e(u,n,i)}catch{a=!await r(u,i)}if(a)return i}return i}function ig(t,e){let r=t.shift();if(r instanceof Error)throw r;return r===void 0?e:r}function sg(t){Ge._injected=(Ge._injected||[]).concat(t)}function ng(t){Ge._override=Object.assign({},t)}Ma.exports=Object.assign(Ge,{prompt:Ge,prompts:Es,inject:sg,override:ng})});var $a=v((pb,qa)=>{function ug(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;et[e])return!1;if(t[e]>r[e])return!0}return!1}qa.exports=ug("8.6.0")?ao():Fa()});var ka=v(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.isPBXFileReference=Ye.isPBXBuildFile=Ye.createReferenceList=void 0;function lg(t){let r=t?.objects??{},i={};function s(o){for(let[c,g]of Object.entries(r))if(g.buildConfigurationList===o){let p=g.name??g.path??g.productName;return p||(p=r[g.targets?.[0]]?.productName??r[g.targets?.[0]]?.name,p||(p=Object.values(r).find(A=>A.isa==="PBXContainerItemProxy"&&A.containerPortal===c)?.remoteInfo)),`Build configuration list for ${g.isa} "${p}"`}return"Build configuration list for [unknown]"}function n(o){let c=Object.values(r).find(g=>g.files?.includes(o));return c?Ua(c):null}function u(o,c){let g=n(o)??"[missing build phase]",p=c.fileRef??c.productRef;return p?`${a(p,r[p])} in ${g}`:`[unknown] in ${g}`}function a(o,c){return c?.isa?o in i?i[o]:(ja(c)?i[o]=u(o,c):gg(c)?i[o]=s(o):fg(c)?c.repositoryURL?i[o]=`${c.isa} "${cg(c.repositoryURL)}"`:i[o]=c.isa:pg(c)?c.relativePath?i[o]=`${c.isa} "${c.relativePath}"`:i[o]=c.isa:hg(c)?i[o]="Project object":c.isa?.endsWith("BuildPhase")?i[o]=Ua(c)??"":c.isa==="PBXGroup"&&c.name===void 0&&c.path===void 0?i[o]="":i[o]=c.name??c.productName??c.path??c.isa??null,i[o]??null):null}return Object.entries(r).forEach(([o,c])=>{a(o,c)}),i}Ye.createReferenceList=lg;function cg(t){try{let e=new URL(t);if(e.hostname==="github.com")return e.pathname.split("/").pop()}catch{}return t}function hg(t){return t?.isa==="PBXProject"}function ja(t){return t?.isa==="PBXBuildFile"}Ye.isPBXBuildFile=ja;function dg(t){return t?.isa==="PBXFileReference"}Ye.isPBXFileReference=dg;function fg(t){return t?.isa==="XCRemoteSwiftPackageReference"}function pg(t){return t?.isa==="XCLocalSwiftPackageReference"}function gg(t){return t?.isa==="XCConfigurationList"}function Ua(t){return t.name??mg(t.isa)}function mg(t){return t.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var Xa=v(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.Writer=void 0;var ws=ka(),bg={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r"," ":"\\t","\v":"\\v","\n":"\\n",'"':'\\"',"\\":"\\\\","\0":"\\U0000","":"\\U0001","":"\\U0002","":"\\U0003","":"\\U0004","":"\\U0005","":"\\U0006","":"\\U000e","":"\\U000f","":"\\U0010","":"\\U0011","":"\\U0012","":"\\U0013","":"\\U0014","":"\\U0015","":"\\U0016","":"\\U0017","":"\\U0018","":"\\U0019","":"\\U001a","\x1B":"\\U001b","":"\\U001c","":"\\U001d","":"\\U001e","":"\\U001f"},Dg=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function yg(t){return String(t).replace(Dg,e=>bg[e]||e)}var jt=` -`;try{jt=Se("os").EOL}catch{}function vs(t){return typeof t=="object"&&t!==null&&!(t instanceof Buffer)}function ne(t){return t=yg(t),/^[\w_$/:.]+$/.test(t)?t:`"${t}"`}function Cs(t){return`<${t.toString("hex").toUpperCase()}>`}function Ag(t){let e={};return Object.entries(t).forEach(([r,i])=>{e[i.isa]||(e[i.isa]=[]),e[i.isa].push([r,i])}),Object.entries(e).sort()}var xs=class{pad(e){let r=this.options.tab??" ";return e>0?r+this.pad(e-1):""}constructor(e,r={}){this.project=e,this.options=r,this.indent=0,this.contents="",this.comments={},this.comments=(0,ws.createReferenceList)(e),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println(e){this.contents+=this.pad(this.indent),this.contents+=e,this.contents+=jt}write(e){this.contents+=this.pad(this.indent),this.contents+=e}printAssignLn(e,r){return this.println(e+" = "+r+";")}flush(e){let r=this.indent;this.indent=0,this.write(e),this.indent=r}writeShebang(){let e=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${e}`)}formatId(e,r=this.comments[e]){return r?`${e} /* ${r} */`:ne(e)}writeProject(){this.println("{"),this.project&&(this.indent++,this.writeObject(this.project,!0),this.indent--),this.println("}")}keyHasFloatValue(e){return e===e.toUpperCase()&&(e.endsWith("SWIFT_VERSION")||e.endsWith("MARKETING_VERSION")||e.endsWith("_DEPLOYMENT_TARGET"))}writeObject(e,r){Object.entries(e).sort(([i],[s])=>i==="isa"?-1:s==="isa"?1:is?1:0).forEach(([i,s])=>{if(!(this.options.skipNullishValues&&s==null))if(s instanceof Buffer)this.printAssignLn(ne(i),Cs(s));else if(Array.isArray(s))this.writeArray(i,s);else if(vs(s)){if(!r&&!Object.keys(s).length){this.println(ne(i)+" = {};");return}this.println(ne(i)+" = {"),this.indent++,r&&i==="objects"?this.writePbxObjects(s):this.writeObject(s,r),this.indent--,this.println("};")}else if(typeof s=="number"){let n=this.keyHasFloatValue(i)&&Number.isInteger(s)?`${s}.0`:s;this.printAssignLn(ne(i),ne(n))}else this.printAssignLn(ne(i),i==="remoteGlobalIDString"||i==="TestTargetID"?ne(s):this.formatId(s))})}writePbxObjects(e){Ag(e).forEach(([r,i])=>{this.flush(jt),this.flush(`/* Begin ${r} section */`+jt),i.sort(([s],[n])=>s.localeCompare(n)).forEach(([s,n])=>this.writeObjectInclusive(s,n)),this.flush(`/* End ${r} section */`+jt)})}writeArray(e,r){this.println(ne(e)+" = ("),this.indent++,r.forEach(i=>{if(i instanceof Buffer)this.println(Cs(i)+",");else{if(i==null)return;vs(i)?(this.println("{"),i&&(this.indent++,this.writeObject(i),this.indent--),this.println("},")):this.println(this.formatId(String(i))+",")}}),this.indent--,this.println(");")}writeObjectInclusive(e,r){if((0,ws.isPBXBuildFile)(r)||(0,ws.isPBXFileReference)(r))return this.writeObjectWithoutIndent(e,r);this.println(this.formatId(e)+" = {"),this.indent++,this.writeObject(r),this.indent--,this.println("};")}writeObjectWithoutIndent(e,r){let i=[],s=(n,u)=>{i.push(this.formatId(n)+" = {"),Object.entries(u).sort(([a],[o])=>a==="isa"?-1:o==="isa"?1:ao?1:0).forEach(([a,o])=>{this.options.skipNullishValues&&o==null||(o instanceof Buffer?i.push(ne(a)+" = "+Cs(o)+"; "):Array.isArray(o)?(i.push(ne(a)+" = ("),o.forEach(c=>i.push(ne(c)+", ")),i.push("); ")):vs(o)?s(a,o):i.push(ne(a)+" = "+this.formatId(o)+"; "))}),i.push("}; ")};s(e,r),this.println(i.join("").trim())}};Sr.Writer=xs});var Ka=v(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.parse=mt.Parser=void 0;var Eg={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},wg=32,vg=9,Ss=10,Cg=13,Va=123,xg=125,Ga=40,Tg=41,Sg=59,Ng=44,Og=61,Ya=34,Ha=39,Wa=92,Ts=47,za=42,Ig=60,_g=62,Pg={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},gt=new Uint8Array(256);gt[wg]=1;gt[vg]=1;gt[Ss]=1;gt[Cg]=1;var we=new Uint8Array(256);for(let t=65;t<=90;t++)we[t]=1;for(let t=97;t<=122;t++)we[t]=1;for(let t=48;t<=57;t++)we[t]=1;we[95]=1;we[36]=1;we[47]=1;we[58]=1;we[46]=1;we[45]=1;var kt=new Uint8Array(256);for(let t=48;t<=57;t++)kt[t]=1;for(let t=65;t<=70;t++)kt[t]=1;for(let t=97;t<=102;t++)kt[t]=1;var Ns=new Uint8Array(256);for(let t=48;t<=55;t++)Ns[t]=1;var Nr=new Uint8Array(256);for(let t=48;t<=57;t++)Nr[t]=1;var Or=class{constructor(e){this.pos=0,this.text=e,this.len=e.length}parse(){this.skipWhitespaceAndComments();let e=this.text.charCodeAt(this.pos);if(e===Va)return this.parseObject();if(e===Ga)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){for(;this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===xg)return this.pos++,e;let i=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==Og)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),e[i]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==Sg)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let e=[];for(;;){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===Tg)return this.pos++,e;e.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===Ng&&this.pos++}}parseValue(){this.skipWhitespaceAndComments();let e=this.text.charCodeAt(this.pos);return e===Va?this.parseObject():e===Ga?this.parseArray():e===Ig?this.parseDataLiteral():e===Ya||e===Ha?this.parseQuotedString():this.parseStringLiteral()}parseIdentifierAsString(){let e=this.text.charCodeAt(this.pos);return e===Ya||e===Ha?this.parseQuotedString():this.parseStringLiteralRaw()}parseStringLiteralRaw(){let e=this.pos;for(;this.pos1)return e;let o=parseInt(e,10);return Number.isSafeInteger(o)?o:e}let n=!1,u=!0,a=!1;for(let o=0;o=this.len)throw this.error("Unterminated string");let s=this.text.slice(r,this.pos);return this.pos++,this.unescapeString(s)}unescapeString(e){let r=[],i=0,s=e.length;for(;i=128&&Eg[g]||g;r.push(String.fromCharCode(p)),i=c;continue}r.push(e[i],e[i+1]),i+=2}else r.push(e[i]),i++;return r.join("")}isHexString(e){if(e.length!==4)return!1;for(let r=0;r<4;r++)if(!kt[e.charCodeAt(r)])return!1;return!0}parseDataLiteral(){this.pos++;let e=[];for(;this.pos{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.SubFolder=fe.ProxyType=fe.ISA=void 0;var Lg;(function(t){t.PBXBuildFile="PBXBuildFile",t.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",t.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",t.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",t.PBXHeadersBuildPhase="PBXHeadersBuildPhase",t.PBXResourcesBuildPhase="PBXResourcesBuildPhase",t.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",t.PBXSourcesBuildPhase="PBXSourcesBuildPhase",t.PBXRezBuildPhase="PBXRezBuildPhase",t.PBXContainerItemProxy="PBXContainerItemProxy",t.PBXFileReference="PBXFileReference",t.PBXGroup="PBXGroup",t.PBXVariantGroup="PBXVariantGroup",t.XCVersionGroup="XCVersionGroup",t.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",t.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",t.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",t.PBXNativeTarget="PBXNativeTarget",t.PBXAggregateTarget="PBXAggregateTarget",t.PBXLegacyTarget="PBXLegacyTarget",t.PBXProject="PBXProject",t.PBXTargetDependency="PBXTargetDependency",t.XCBuildConfiguration="XCBuildConfiguration",t.XCConfigurationList="XCConfigurationList",t.PBXBuildRule="PBXBuildRule",t.PBXReferenceProxy="PBXReferenceProxy",t.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",t.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",t.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(Lg=fe.ISA||(fe.ISA={}));var Bg;(function(t){t[t.targetReference=1]="targetReference",t[t.reference=2]="reference"})(Bg=fe.ProxyType||(fe.ProxyType={}));var Mg;(function(t){t[t.absolutePath=0]="absolutePath",t[t.productsDirectory=16]="productsDirectory",t[t.wrapper=1]="wrapper",t[t.executables=6]="executables",t[t.resources=7]="resources",t[t.javaResources=15]="javaResources",t[t.frameworks=10]="frameworks",t[t.sharedFrameworks=11]="sharedFrameworks",t[t.sharedSupport=12]="sharedSupport",t[t.plugins=13]="plugins"})(Mg=fe.SubFolder||(fe.SubFolder={}))});var Za=v(pe=>{"use strict";var Fg=pe&&pe.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),qg=pe&&pe.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Fg(e,t,r)};Object.defineProperty(pe,"__esModule",{value:!0});pe.build=pe.parse=void 0;var $g=Xa(),Ug=Ka();Object.defineProperty(pe,"parse",{enumerable:!0,get:function(){return Ug.parse}});function jg(t){return new $g.Writer(t).getResults()}pe.build=jg;qg(Ja(),pe)});var Vt=v(Xt=>{"use strict";function kg(t,e,r){if(r===void 0&&(r=Array.prototype),t&&typeof r.find=="function")return r.find.call(t,e);for(var i=0;i{var al=Vt(),ve=al.find,Gt=al.NAMESPACE;function Xg(t){return t!==""}function Vg(t){return t?t.split(/[\t\n\f\r ]+/).filter(Xg):[]}function Gg(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function tl(t){if(!t)return[];var e=Vg(t);return Object.keys(e.reduce(Gg,{}))}function Yg(t){return function(e){return t&&t.indexOf(e)!==-1}}function Ht(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function ie(t,e){var r=t.prototype;if(!(r instanceof e)){let s=function(){};var i=s;s.prototype=e.prototype,s=new s,Ht(r,s),t.prototype=r=s}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var se={},ge=se.ELEMENT_NODE=1,Dt=se.ATTRIBUTE_NODE=2,Ir=se.TEXT_NODE=3,ll=se.CDATA_SECTION_NODE=4,cl=se.ENTITY_REFERENCE_NODE=5,Hg=se.ENTITY_NODE=6,hl=se.PROCESSING_INSTRUCTION_NODE=7,dl=se.COMMENT_NODE=8,fl=se.DOCUMENT_NODE=9,pl=se.DOCUMENT_TYPE_NODE=10,Fe=se.DOCUMENT_FRAGMENT_NODE=11,Wg=se.NOTATION_NODE=12,J={},W={},wb=J.INDEX_SIZE_ERR=(W[1]="Index size error",1),vb=J.DOMSTRING_SIZE_ERR=(W[2]="DOMString size error",2),re=J.HIERARCHY_REQUEST_ERR=(W[3]="Hierarchy request error",3),Cb=J.WRONG_DOCUMENT_ERR=(W[4]="Wrong document",4),xb=J.INVALID_CHARACTER_ERR=(W[5]="Invalid character",5),Tb=J.NO_DATA_ALLOWED_ERR=(W[6]="No data allowed",6),Sb=J.NO_MODIFICATION_ALLOWED_ERR=(W[7]="No modification allowed",7),gl=J.NOT_FOUND_ERR=(W[8]="Not found",8),Nb=J.NOT_SUPPORTED_ERR=(W[9]="Not supported",9),rl=J.INUSE_ATTRIBUTE_ERR=(W[10]="Attribute in use",10),Ob=J.INVALID_STATE_ERR=(W[11]="Invalid state",11),Ib=J.SYNTAX_ERR=(W[12]="Syntax error",12),_b=J.INVALID_MODIFICATION_ERR=(W[13]="Invalid modification",13),Pb=J.NAMESPACE_ERR=(W[14]="Invalid namespace",14),Rb=J.INVALID_ACCESS_ERR=(W[15]="Invalid access",15);function Y(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,W[t]),this.message=W[t],Error.captureStackTrace&&Error.captureStackTrace(this,Y);return r.code=t,e&&(this.message=this.message+": "+e),r}Y.prototype=Error.prototype;Ht(J,Y);function Me(){}Me.prototype={length:0,item:function(t){return t>=0&&t=0){for(var s=e.length-1;i0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&r[i]===t)return i}e=e.nodeType==Dt?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==Dt?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function Dl(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}Ht(se,q);Ht(se,q.prototype);function Yt(t,e){if(e(t))return!0;if(t=t.firstChild)do if(Yt(t,e))return!0;while(t=t.nextSibling)}function Wt(){this.ownerDocument=this}function zg(t,e,r){t&&t._inc++;var i=r.namespaceURI;i===Gt.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value)}function yl(t,e,r,i){t&&t._inc++;var s=r.namespaceURI;s===Gt.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function Rs(t,e,r){if(t&&t._inc){t._inc++;var i=e.childNodes;if(r)i[i.length++]=r;else{for(var s=e.firstChild,n=0;s;)i[n++]=s,s=s.nextSibling;i.length=n,delete i[i.length]}}}function Al(t,e){var r=e.previousSibling,i=e.nextSibling;return r?r.nextSibling=i:t.firstChild=i,i?i.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Rs(t.ownerDocument,t),e}function Kg(t){return t&&(t.nodeType===q.DOCUMENT_NODE||t.nodeType===q.DOCUMENT_FRAGMENT_NODE||t.nodeType===q.ELEMENT_NODE)}function Jg(t){return t&&(Ce(t)||Ls(t)||qe(t)||t.nodeType===q.DOCUMENT_FRAGMENT_NODE||t.nodeType===q.COMMENT_NODE||t.nodeType===q.PROCESSING_INSTRUCTION_NODE)}function qe(t){return t&&t.nodeType===q.DOCUMENT_TYPE_NODE}function Ce(t){return t&&t.nodeType===q.ELEMENT_NODE}function Ls(t){return t&&t.nodeType===q.TEXT_NODE}function nl(t,e){var r=t.childNodes||[];if(ve(r,Ce)||qe(e))return!1;var i=ve(r,qe);return!(e&&i&&r.indexOf(i)>r.indexOf(e))}function ul(t,e){var r=t.childNodes||[];function i(n){return Ce(n)&&n!==e}if(ve(r,i))return!1;var s=ve(r,qe);return!(e&&s&&r.indexOf(s)>r.indexOf(e))}function Zg(t,e,r){if(!Kg(t))throw new Y(re,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new Y(gl,"child not in parent");if(!Jg(e)||qe(e)&&t.nodeType!==q.DOCUMENT_NODE)throw new Y(re,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function Qg(t,e,r){var i=t.childNodes||[],s=e.childNodes||[];if(e.nodeType===q.DOCUMENT_FRAGMENT_NODE){var n=s.filter(Ce);if(n.length>1||ve(s,Ls))throw new Y(re,"More than one element or text in fragment");if(n.length===1&&!nl(t,r))throw new Y(re,"Element in fragment can not be inserted before doctype")}if(Ce(e)&&!nl(t,r))throw new Y(re,"Only one element can be added and only after doctype");if(qe(e)){if(ve(i,qe))throw new Y(re,"Only one doctype is allowed");var u=ve(i,Ce);if(r&&i.indexOf(u)1||ve(s,Ls))throw new Y(re,"More than one element or text in fragment");if(n.length===1&&!ul(t,r))throw new Y(re,"Element in fragment can not be inserted before doctype")}if(Ce(e)&&!ul(t,r))throw new Y(re,"Only one element can be added and only after doctype");if(qe(e)){let o=function(c){return qe(c)&&c!==r};var a=o;if(ve(i,o))throw new Y(re,"Only one doctype is allowed");var u=ve(i,Ce);if(r&&i.indexOf(u)0&&Yt(r.documentElement,function(s){if(s!==r&&s.nodeType===ge){var n=s.getAttribute("class");if(n){var u=t===n;if(!u){var a=tl(n);u=e.every(Yg(a))}u&&i.push(s)}}}),i})},createElement:function(t){var e=new it;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new Me;var r=e.attributes=new _r;return r._ownerElement=e,e},createDocumentFragment:function(){var t=new Br;return t.ownerDocument=this,t.childNodes=new Me,t},createTextNode:function(t){var e=new Bs;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Ms;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Fs;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new $s;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new Rr;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new qs;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new it,i=e.split(":"),s=r.attributes=new _r;return r.childNodes=new Me,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=e,s._ownerElement=r,r},createAttributeNS:function(t,e){var r=new Rr,i=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,i.length==2?(r.prefix=i[0],r.localName=i[1]):r.localName=e,r}};ie(Wt,q);function it(){this._nsMap={}}it.prototype={nodeType:ge,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Fe?this.insertBefore(t,null):em(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+r,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new yt(this,function(e){var r=[];return Yt(e,function(i){i!==e&&i.nodeType==ge&&(t==="*"||i.tagName==t)&&r.push(i)}),r})},getElementsByTagNameNS:function(t,e){return new yt(this,function(r){var i=[];return Yt(r,function(s){s!==r&&s.nodeType===ge&&(t==="*"||s.namespaceURI===t)&&(e==="*"||s.localName==e)&&i.push(s)}),i})}};Wt.prototype.getElementsByTagName=it.prototype.getElementsByTagName;Wt.prototype.getElementsByTagNameNS=it.prototype.getElementsByTagNameNS;ie(it,q);function Rr(){}Rr.prototype.nodeType=Dt;ie(Rr,q);function zt(){}zt.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(W[re])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){var i=this.data.substring(0,t),s=this.data.substring(t+e);r=i+r+s,this.nodeValue=this.data=r,this.length=r.length}};ie(zt,q);function Bs(){}Bs.prototype={nodeName:"#text",nodeType:Ir,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};ie(Bs,zt);function Ms(){}Ms.prototype={nodeName:"#comment",nodeType:dl};ie(Ms,zt);function Fs(){}Fs.prototype={nodeName:"#cdata-section",nodeType:ll};ie(Fs,zt);function Lr(){}Lr.prototype.nodeType=pl;ie(Lr,q);function wl(){}wl.prototype.nodeType=Wg;ie(wl,q);function vl(){}vl.prototype.nodeType=Hg;ie(vl,q);function qs(){}qs.prototype.nodeType=cl;ie(qs,q);function Br(){}Br.prototype.nodeName="#document-fragment";Br.prototype.nodeType=Fe;ie(Br,q);function $s(){}$s.prototype.nodeType=hl;ie($s,q);function Cl(){}Cl.prototype.serializeToString=function(t,e,r){return xl.call(t,e,r)};q.prototype.toString=xl;function xl(t,e){var r=[],i=this.nodeType==9&&this.documentElement||this,s=i.prefix,n=i.namespaceURI;if(n&&s==null){var s=i.lookupPrefix(n);if(s==null)var u=[{namespace:n,prefix:null}]}return bt(this,r,t,e,u),r.join("")}function ol(t,e,r){var i=t.prefix||"",s=t.namespaceURI;if(!s||i==="xml"&&s===Gt.XML||s===Gt.XMLNS)return!1;for(var n=r.length;n--;){var u=r[n];if(u.prefix===i)return u.namespace!==s}return!0}function Is(t,e,r){t.push(" ",e,'="',r.replace(/[<&"]/g,Dl),'"')}function bt(t,e,r,i,s){if(s||(s=[]),i)if(t=i(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case ge:var n=t.attributes,u=n.length,x=t.firstChild,a=t.tagName;r=Gt.isHTML(t.namespaceURI)||r;var o=a;if(!r&&!t.prefix&&t.namespaceURI){for(var c,g=0;g=0;p--){var m=s[p];if(m.prefix===""&&m.namespace===t.namespaceURI){c=m.namespace;break}}if(c!==t.namespaceURI)for(var p=s.length-1;p>=0;p--){var m=s[p];if(m.namespace===t.namespaceURI){m.prefix&&(o=m.prefix+":"+a);break}}}e.push("<",o);for(var A=0;A"),r&&/^script$/i.test(a))for(;x;)x.data?e.push(x.data):bt(x,e,r,i,s.slice()),x=x.nextSibling;else for(;x;)bt(x,e,r,i,s.slice()),x=x.nextSibling;e.push("")}else e.push("/>");return;case fl:case Fe:for(var x=t.firstChild;x;)bt(x,e,r,i,s.slice()),x=x.nextSibling;return;case Dt:return Is(e,t.name,t.value);case Ir:return e.push(t.data.replace(/[<&]/g,Dl).replace(/]]>/g,"]]>"));case ll:return e.push("");case dl:return e.push("");case pl:var B=t.publicId,f=t.systemId;if(e.push("");else if(f&&f!=".")e.push(" SYSTEM ",f,">");else{var d=t.internalSubset;d&&e.push(" [",d,"]"),e.push(">")}return;case hl:return e.push("");case cl:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Tl(t,e,r){var i;switch(e.nodeType){case ge:i=e.cloneNode(!1),i.ownerDocument=t;case Fe:break;case Dt:r=!0;break}if(i||(i=e.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,r)for(var s=e.firstChild;s;)i.appendChild(Tl(t,s,r)),s=s.nextSibling;return i}function _s(t,e,r){var i=new e.constructor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var n=e[s];typeof n!="object"&&n!=i[s]&&(i[s]=n)}switch(e.childNodes&&(i.childNodes=new Me),i.ownerDocument=t,i.nodeType){case ge:var u=e.attributes,a=i.attributes=new _r,o=u.length;a._ownerElement=i;for(var c=0;c{"use strict";var Nl=Vt().freeze;Kt.XML_ENTITIES=Nl({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});Kt.HTML_ENTITIES=Nl({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});Kt.entityMap=Kt.HTML_ENTITIES});var Fl=v(ks=>{var er=Vt().NAMESPACE,js=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Il=new RegExp("[\\-\\.0-9"+js.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),_l=new RegExp("^"+js.source+Il.source+"*(?::"+js.source+Il.source+"*)?$"),Jt=0,We=1,At=2,Zt=3,Et=4,wt=5,Qt=6,Mr=7;function vt(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,vt)}vt.prototype=new Error;vt.prototype.name=vt.name;function Ll(){}Ll.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),Bl(e,e={}),rm(t,e,r,i,this.errorHandler),i.endDocument()}};function rm(t,e,r,i,s){function n(I){if(I>65535){I-=65536;var N=55296+(I>>10),k=56320+(I&1023);return String.fromCharCode(N,k)}else return String.fromCharCode(I)}function u(I){var N=I.slice(1,-1);return N in r?r[N]:N.charAt(0)==="#"?n(parseInt(N.substr(1).replace("x","0x"))):(s.error("entity not found:"+I),I)}function a(I){if(I>S){var N=t.substring(S,I).replace(/&#?\w+;/g,u);m&&o(S),i.characters(N,0,I-S),S=I}}function o(I,N){for(;I>=g&&(N=p.exec(t));)c=N.index,g=c+N[0].length,m.lineNumber++;m.columnNumber=I-c+1}for(var c=0,g=0,p=/.*(?:\r\n?|\n)|.*$/g,m=i.locator,A=[{currentNSMap:e}],C={},S=0;;){try{var T=t.indexOf("<",S);if(T<0){if(!t.substr(S).match(/^\s*$/)){var x=i.doc,B=x.createTextNode(t.substr(S));x.appendChild(B),i.currentElement=B}return}switch(T>S&&a(T),t.charAt(T+1)){case"/":var w=t.indexOf(">",T+3),f=t.substring(T+2,w).replace(/[ \t\n\r]+$/g,""),d=A.pop();w<0?(f=t.substring(T+2).replace(/[\s<].*/,""),s.error("end tag name: "+f+" is not complete:"+d.tagName),w=T+1+f.length):f.match(/\sS?S=w:a(Math.max(T,S)+1)}}function Pl(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function im(t,e,r,i,s,n){function u(A,C,S){r.attributeNames.hasOwnProperty(A)&&n.fatalError("Attribute "+A+" redefined"),r.addValue(A,C,S)}for(var a,o,c=++e,g=Jt;;){var p=t.charAt(c);switch(p){case"=":if(g===We)a=t.slice(e,c),g=Zt;else if(g===At)g=Zt;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(g===Zt||g===We)if(g===We&&(n.warning('attribute value must after "="'),a=t.slice(e,c)),e=c+1,c=t.indexOf(p,e),c>0)o=t.slice(e,c).replace(/&#?\w+;/g,s),u(a,o,e-1),g=wt;else throw new Error("attribute value no end '"+p+"' match");else if(g==Et)o=t.slice(e,c).replace(/&#?\w+;/g,s),u(a,o,e),n.warning('attribute "'+a+'" missed start quot('+p+")!!"),e=c+1,g=wt;else throw new Error('attribute value must after "="');break;case"/":switch(g){case Jt:r.setTagName(t.slice(e,c));case wt:case Qt:case Mr:g=Mr,r.closed=!0;case Et:case We:break;case At:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return n.error("unexpected end of input"),g==Jt&&r.setTagName(t.slice(e,c)),c;case">":switch(g){case Jt:r.setTagName(t.slice(e,c));case wt:case Qt:case Mr:break;case Et:case We:o=t.slice(e,c),o.slice(-1)==="/"&&(r.closed=!0,o=o.slice(0,-1));case At:g===At&&(o=a),g==Et?(n.warning('attribute "'+o+'" missed quot(")!'),u(a,o.replace(/&#?\w+;/g,s),e)):((!er.isHTML(i[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+o+'" missed value!! "'+o+'" instead!!'),u(o,o,e));break;case Zt:throw new Error("attribute value missed!!")}return c;case"\x80":p=" ";default:if(p<=" ")switch(g){case Jt:r.setTagName(t.slice(e,c)),g=Qt;break;case We:a=t.slice(e,c),g=At;break;case Et:var o=t.slice(e,c).replace(/&#?\w+;/g,s);n.warning('attribute "'+o+'" missed quot(")!!'),u(a,o,e);case wt:g=Qt;break}else switch(g){case At:var m=r.tagName;(!er.isHTML(i[""])||!a.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),u(a,a,e),e=c,g=We;break;case wt:n.warning('attribute space is required"'+a+'"!!');case Qt:g=We,e=c;break;case Zt:g=Et,e=c;break;case Mr:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function Rl(t,e,r){for(var i=t.tagName,s=null,p=t.length;p--;){var n=t[p],u=n.qName,a=n.value,m=u.indexOf(":");if(m>0)var o=n.prefix=u.slice(0,m),c=u.slice(m+1),g=o==="xmlns"&&c;else c=u,o=null,g=u==="xmlns"&&"";n.localName=c,g!==!1&&(s==null&&(s={},Bl(r,r={})),r[g]=s[g]=a,n.uri=er.XMLNS,e.startPrefixMapping(g,a))}for(var p=t.length;p--;){n=t[p];var o=n.prefix;o&&(o==="xml"&&(n.uri=er.XML),o!=="xmlns"&&(n.uri=r[o||""]))}var m=i.indexOf(":");m>0?(o=t.prefix=i.slice(0,m),c=t.localName=i.slice(m+1)):(o=null,c=t.localName=i);var A=t.uri=r[o||""];if(e.startElement(A,c,i,t),t.closed){if(e.endElement(A,c,i),s)for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&e.endPrefixMapping(o)}else return t.currentNSMap=r,t.localNSMap=s,!0}function sm(t,e,r,i,s){if(/^(?:script|textarea)$/i.test(r)){var n=t.indexOf("",e),u=t.substring(e+1,n);if(/[&<]/.test(u))return/^script$/i.test(r)?(s.characters(u,0,u.length),n):(u=u.replace(/&#?\w+;/g,i),s.characters(u,0,u.length),n)}return e+1}function nm(t,e,r,i){var s=i[r];return s==null&&(s=t.lastIndexOf(""),s",e+4);return n>e?(r.comment(t,e+4,n-e-4),n+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var n=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,n-e-9),r.endCDATA(),n+3}var u=am(t,e),a=u.length;if(a>1&&/!doctype/i.test(u[0][0])){var o=u[1][0],c=!1,g=!1;a>3&&(/^public$/i.test(u[2][0])?(c=u[3][0],g=a>4&&u[4][0]):/^system$/i.test(u[2][0])&&(g=u[3][0]));var p=u[a-1];return r.startDTD(o,c,g),r.endDTD(),p.index+p[0].length}}return-1}function om(t,e,r){var i=t.indexOf("?>",e);if(i){var s=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(s){var n=s[0].length;return r.processingInstruction(s[1],s[2]),i+2}else return-1}return-1}function Ml(){this.attributeNames={}}Ml.prototype={setTagName:function(t){if(!_l.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!_l.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function am(t,e){var r,i=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(s.lastIndex=e,s.exec(t);r=s.exec(t);)if(i.push(r),r[1])return i}ks.XMLReader=Ll;ks.ParseError=vt});var Xl=v(rr=>{var lm=Vt(),Vs=Us(),ql=Ol(),jl=Fl(),cm=Vs.DOMImplementation,$l=lm.NAMESPACE,hm=jl.ParseError,dm=jl.XMLReader;function kl(t){this.options=t||{locator:{}}}kl.prototype.parseFromString=function(t,e){var r=this.options,i=new dm,s=r.domBuilder||new tr,n=r.errorHandler,u=r.locator,a=r.xmlns||{},o=/\/x?html?$/.test(e),c=o?ql.HTML_ENTITIES:ql.XML_ENTITIES;return u&&s.setDocumentLocator(u),i.errorHandler=fm(n,s,u),i.domBuilder=r.domBuilder||s,o&&(a[""]=$l.HTML),a.xml=a.xml||$l.XML,t&&typeof t=="string"?i.parse(t,a,c):i.errorHandler.error("invalid doc source"),s.doc};function fm(t,e,r){if(!t){if(e instanceof tr)return e;t=e}var i={},s=t instanceof Function;r=r||{};function n(u){var a=t[u];!a&&s&&(a=t.length==2?function(o){t(u,o)}:t),i[u]=a&&function(o){a("[xmldom "+u+"] "+o+Xs(r))}||function(){}}return n("warning"),n("error"),n("fatalError"),i}function tr(){this.cdata=!1}function Ct(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}tr.prototype={startDocument:function(){this.doc=new cm().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,i){var s=this.doc,n=s.createElementNS(t,r||e),u=i.length;Fr(this,n),this.currentElement=n,this.locator&&Ct(this.locator,n);for(var a=0;a=e+r||e?new java.lang.String(t,e,r)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){tr.prototype[t]=function(){return null}});function Fr(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}rr.__DOMHandler=tr;rr.DOMParser=kl;rr.DOMImplementation=Vs.DOMImplementation;rr.XMLSerializer=Vs.XMLSerializer});var $r=v(qr=>{var Vl=Us();qr.DOMImplementation=Vl.DOMImplementation;qr.XMLSerializer=Vl.XMLSerializer;qr.DOMParser=Xl().DOMParser});var Hl=v(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.parse=void 0;var pm=$r();function gm(t){let i=new pm.DOMParser().parseFromString(t,"text/xml").documentElement;if(!i||i.tagName!=="Workspace")throw new Error("Invalid xcworkspacedata file: root element must be ");return mm(i)}kr.parse=gm;function mm(t){let e={};e.version=Ur(t,"version");let r=jr(t,"FileRef");r.length>0&&(e.fileRefs=r.map(Gl));let i=jr(t,"Group");return i.length>0&&(e.groups=i.map(Yl)),e}function Gl(t){return{location:Ur(t,"location")||""}}function Yl(t){let e={};e.location=Ur(t,"location"),e.name=Ur(t,"name");let r=jr(t,"FileRef");r.length>0&&(e.fileRefs=r.map(Gl));let i=jr(t,"Group");return i.length>0&&(e.groups=i.map(Yl)),e}function Ur(t,e){if(t.hasAttribute(e))return t.getAttribute(e)??void 0}function jr(t,e){let r=[],i=t.childNodes;for(let s=0;s{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.build=void 0;function bm(t){let e=[];e.push('');let r=[];if(t.version!==void 0&&r.push(`version = "${t.version}"`),r.length>0){e.push("");if(t.fileRefs)for(let i of t.fileRefs)e.push(...Wl(i,1));if(t.groups)for(let i of t.groups)e.push(...zl(i,1));return e.push(""),e.join(` +`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(q6.hide);else this.out.write(t5(this.outputText,this.out.columns));super.render(),this.outputText=[W6.symbol(this.done,this.aborted),V6.bold(this.msg),W6.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:V6.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(e5.line+q6.to(0)+this.outputText)}}B6.exports=H6});var O6=C((rq,U6)=>{U6.exports={TextPrompt:a8(),SelectPrompt:YJ(),TogglePrompt:QJ(),DatePrompt:mJ(),NumberPrompt:sJ(),MultiselectPrompt:CY(),AutocompletePrompt:Z6(),AutocompleteMultiselectPrompt:G6(),ConfirmPrompt:F6()}});var P6=C((R6)=>{var Y1=R6,$G=O6(),E$=($)=>$;function C1($,Y,Z={}){return new Promise((J,K)=>{let z=new $G[$](Y),Q=Z.onAbort||E$,W=Z.onSubmit||E$,G=Z.onExit||E$;z.on("state",Y.onState||E$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}Y1.text=($)=>C1("TextPrompt",$);Y1.password=($)=>{return $.style="password",Y1.text($)};Y1.invisible=($)=>{return $.style="invisible",Y1.text($)};Y1.number=($)=>C1("NumberPrompt",$);Y1.date=($)=>C1("DatePrompt",$);Y1.confirm=($)=>C1("ConfirmPrompt",$);Y1.list=($)=>{let Y=$.separator||",";return C1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};Y1.toggle=($)=>C1("TogglePrompt",$);Y1.select=($)=>C1("SelectPrompt",$);Y1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};Y1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var YG=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));Y1.autocomplete=($)=>{return $.suggest=$.suggest||YG,$.choices=[].concat($.choices||[]),C1("AutocompletePrompt",$)}});var C6=C((aq,E6)=>{var XY=P6(),ZG=["suggest","format","onState","validate","onRender","type"],A6=()=>{};async function d1($=[],{onSubmit:Y=A6,onCancel:Z=A6}={}){let J={},K=d1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=async(P,j,w=!1)=>{if(!w&&P.validate&&P.validate(j)!==!0)return;return P.format?await P.format(j,J):j};for(Q of $){if({name:G,type:q}=Q,typeof q==="function")q=await q(z,{...J},Q),Q.type=q;if(!q)continue;for(let P in Q){if(ZG.includes(P))continue;let j=Q[P];Q[P]=typeof j==="function"?await j(z,{...J},H):j}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");if({name:G,type:q}=Q,XY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=await R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=d1._injected?JG(d1._injected,Q.initial):await XY[q](Q),J[G]=z=await R(Q,z,!0),W=await Y(Q,z,J)}catch(P){W=!await Z(Q,J)}if(W)return J}return J}function JG($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function KG($){d1._injected=(d1._injected||[]).concat($)}function zG($){d1._override=Object.assign({},$)}E6.exports=Object.assign(d1,{prompt:d1,prompts:XY,inject:KG,override:zG})});var k6=C((oq,j6)=>{function QG($){$=(Array.isArray($)?$:$.split(".")).map(Number);let Y=0,Z=process.versions.node.split(".").map(Number);for(;Y<$.length;Y++){if(Z[Y]>$[Y])return!1;if($[Y]>Z[Y])return!0}return!1}j6.exports=QG("8.6.0")?T8():C6()});var D6=C((w6)=>{Object.defineProperty(w6,"__esModule",{value:!0});w6.isPBXFileReference=w6.isPBXBuildFile=w6.createReferenceList=void 0;function GG($){let Z=$?.objects??{},J={};function K(G){for(let[q,H]of Object.entries(Z))if(H.buildConfigurationList===G){let R=H.name??H.path??H.productName;if(!R){if(R=Z[H.targets?.[0]]?.productName??Z[H.targets?.[0]]?.name,!R)R=Object.values(Z).find((j)=>j.isa==="PBXContainerItemProxy"&&j.containerPortal===q)?.remoteInfo}return`Build configuration list for ${H.isa} "${R}"`}return"Build configuration list for [unknown]"}function z(G){let q=Object.values(Z).find((H)=>H.files?.includes(G));return q?X6(q):null}function Q(G,q){let H=z(G)??"[missing build phase]",R=q.fileRef??q.productRef;if(!R)return`[unknown] in ${H}`;return`${W(R,Z[R])} in ${H}`}function W(G,q){if(!q?.isa)return null;if(G in J)return J[G];if(I6(q))J[G]=Q(G,q);else if(FG(q))J[G]=K(G);else if(HG(q))if(q.repositoryURL)J[G]=`${q.isa} "${VG(q.repositoryURL)}"`;else J[G]=q.isa;else if(BG(q))if(q.relativePath)J[G]=`${q.isa} "${q.relativePath}"`;else J[G]=q.isa;else if(WG(q))J[G]="Project object";else if(q.isa?.endsWith("BuildPhase"))J[G]=X6(q)??"";else if(q.isa==="PBXGroup"&&q.name===void 0&&q.path===void 0)J[G]="";else J[G]=q.name??q.productName??q.path??q.isa??null;return J[G]??null}return Object.entries(Z).forEach(([G,q])=>{if(!W(G,q));}),J}w6.createReferenceList=GG;function VG($){try{let Y=new URL($);if(Y.hostname==="github.com")return Y.pathname.split("/").pop()}catch{}return $}function WG($){return $?.isa==="PBXProject"}function I6($){return $?.isa==="PBXBuildFile"}w6.isPBXBuildFile=I6;function qG($){return $?.isa==="PBXFileReference"}w6.isPBXFileReference=qG;function HG($){return $?.isa==="XCRemoteSwiftPackageReference"}function BG($){return $?.isa==="XCLocalSwiftPackageReference"}function FG($){return $?.isa==="XCConfigurationList"}function X6($){return $.name??UG($.isa)}function UG($){return $.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var L6=C((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.Writer=void 0;var wY=D6(),PG={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':"\\\"","\\":"\\\\","\x00":"\\U0000","\x01":"\\U0001","\x02":"\\U0002","\x03":"\\U0003","\x04":"\\U0004","\x05":"\\U0005","\x06":"\\U0006","\x0E":"\\U000e","\x0F":"\\U000f","\x10":"\\U0010","\x11":"\\U0011","\x12":"\\U0012","\x13":"\\U0013","\x14":"\\U0014","\x15":"\\U0015","\x16":"\\U0016","\x17":"\\U0017","\x18":"\\U0018","\x19":"\\U0019","\x1A":"\\U001a","\x1B":"\\U001b","\x1C":"\\U001c","\x1D":"\\U001d","\x1E":"\\U001e","\x1F":"\\U001f"},AG=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function EG($){return String($).replace(AG,(Y)=>PG[Y]||Y)}var g0=` +`;try{g0=_1("os").EOL}catch{}function _Y($){return typeof $==="object"&&$!==null&&!($ instanceof Buffer)}function z1($){if($=EG($),/^[\w_$/:.]+$/.test($))return $;return`"${$}"`}function DY($){return`<${$.toString("hex").toUpperCase()}>`}function CG($){let Y={};return Object.entries($).forEach(([Z,J])=>{if(!Y[J.isa])Y[J.isa]=[];Y[J.isa].push([Z,J])}),Object.entries(Y).sort()}class T6{pad($){let Y=this.options.tab??"\t";return $>0?Y+this.pad($-1):""}constructor($,Y={}){this.project=$,this.options=Y,this.indent=0,this.contents="",this.comments={},this.comments=(0,wY.createReferenceList)($),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println($){this.contents+=this.pad(this.indent),this.contents+=$,this.contents+=g0}write($){this.contents+=this.pad(this.indent),this.contents+=$}printAssignLn($,Y){return this.println($+" = "+Y+";")}flush($){let Y=this.indent;this.indent=0,this.write($),this.indent=Y}writeShebang(){let $=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${$}`)}formatId($,Y=this.comments[$]){if(Y)return`${$} /* ${Y} */`;return z1($)}writeProject(){if(this.println("{"),this.project)this.indent++,this.writeObject(this.project,!0),this.indent--;this.println("}")}keyHasFloatValue($){return $===$.toUpperCase()&&($.endsWith("SWIFT_VERSION")||$.endsWith("MARKETING_VERSION")||$.endsWith("_DEPLOYMENT_TARGET"))}writeObject($,Y){Object.entries($).sort(([Z],[J])=>{if(Z==="isa")return-1;if(J==="isa")return 1;return ZJ?1:0}).forEach(([Z,J])=>{if(this.options.skipNullishValues&&J==null)return;else if(J instanceof Buffer)this.printAssignLn(z1(Z),DY(J));else if(Array.isArray(J))this.writeArray(Z,J);else if(_Y(J)){if(!Y&&!Object.keys(J).length){this.println(z1(Z)+" = {};");return}if(this.println(z1(Z)+" = {"),this.indent++,Y&&Z==="objects")this.writePbxObjects(J);else this.writeObject(J,Y);this.indent--,this.println("};")}else if(typeof J==="number"){let K=this.keyHasFloatValue(Z)&&Number.isInteger(J)?`${J}.0`:J;this.printAssignLn(z1(Z),z1(K))}else this.printAssignLn(z1(Z),Z==="remoteGlobalIDString"||Z==="TestTargetID"?z1(J):this.formatId(J))})}writePbxObjects($){CG($).forEach(([Y,Z])=>{this.flush(g0),this.flush(`/* Begin ${Y} section */`+g0),Z.sort(([J],[K])=>J.localeCompare(K)).forEach(([J,K])=>this.writeObjectInclusive(J,K)),this.flush(`/* End ${Y} section */`+g0)})}writeArray($,Y){this.println(z1($)+" = ("),this.indent++,Y.forEach((Z)=>{if(Z instanceof Buffer)this.println(DY(Z)+",");else if(Z==null)return;else if(_Y(Z)){if(this.println("{"),Z)this.indent++,this.writeObject(Z),this.indent--;this.println("},")}else this.println(this.formatId(String(Z))+",")}),this.indent--,this.println(");")}writeObjectInclusive($,Y){if((0,wY.isPBXBuildFile)(Y)||(0,wY.isPBXFileReference)(Y))return this.writeObjectWithoutIndent($,Y);this.println(this.formatId($)+" = {"),this.indent++,this.writeObject(Y),this.indent--,this.println("};")}writeObjectWithoutIndent($,Y){let Z=[],J=(K,z)=>{Z.push(this.formatId(K)+" = {"),Object.entries(z).sort(([Q],[W])=>{if(Q==="isa")return-1;if(W==="isa")return 1;return QW?1:0}).forEach(([Q,W])=>{if(this.options.skipNullishValues&&W==null)return;else if(W instanceof Buffer)Z.push(z1(Q)+" = "+DY(W)+"; ");else if(Array.isArray(W))Z.push(z1(Q)+" = ("),W.forEach((G)=>Z.push(z1(G)+", ")),Z.push("); ");else if(_Y(W))J(Q,W);else Z.push(z1(Q)+" = "+this.formatId(W)+"; ")}),Z.push("}; ")};J($,Y),this.println(Z.join("").trim())}}S6.Writer=T6});var u6=C((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.parse=h6.Parser=void 0;var jG={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},kG=32,XG=9,SY=10,IG=13,x6=123,wG=125,N6=40,_G=41,DG=59,TG=44,SG=61,y6=34,b6=39,g6=92,TY=47,f6=42,MG=60,LG=62,xG={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},B0=new Uint8Array(256);B0[kG]=1;B0[XG]=1;B0[SY]=1;B0[IG]=1;var j1=new Uint8Array(256);for(let $=65;$<=90;$++)j1[$]=1;for(let $=97;$<=122;$++)j1[$]=1;for(let $=48;$<=57;$++)j1[$]=1;j1[95]=1;j1[36]=1;j1[47]=1;j1[58]=1;j1[46]=1;j1[45]=1;var f0=new Uint8Array(256);for(let $=48;$<=57;$++)f0[$]=1;for(let $=65;$<=70;$++)f0[$]=1;for(let $=97;$<=102;$++)f0[$]=1;var MY=new Uint8Array(256);for(let $=48;$<=55;$++)MY[$]=1;var C$=new Uint8Array(256);for(let $=48;$<=57;$++)C$[$]=1;class LY{constructor($){this.pos=0,this.text=$,this.len=$.length}parse(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===x6)return this.parseObject();else if($===N6)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){while(this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===wG)return this.pos++,$;let Z=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==SG)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),$[Z]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==DG)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let $=[];while(!0){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===_G)return this.pos++,$;if($.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===TG)this.pos++}}parseValue(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===x6)return this.parseObject();if($===N6)return this.parseArray();if($===MG)return this.parseDataLiteral();if($===y6||$===b6)return this.parseQuotedString();return this.parseStringLiteral()}parseIdentifierAsString(){let $=this.text.charCodeAt(this.pos);if($===y6||$===b6)return this.parseQuotedString();return this.parseStringLiteralRaw()}parseStringLiteralRaw(){let $=this.pos;while(this.pos1)return $;let W=parseInt($,10);if(Number.isSafeInteger(W))return W;return $}let K=!1,z=!0,Q=!1;for(let W=0;W=this.len)throw this.error("Unterminated string");let J=this.text.slice(Y,this.pos);return this.pos++,this.unescapeString(J)}unescapeString($){let Y=[],Z=0,J=$.length;while(Z=128?jG[q]||q:q;Y.push(String.fromCharCode(H)),Z=G;continue}Y.push($[Z],$[Z+1]),Z+=2}else Y.push($[Z]),Z++;return Y.join("")}isHexString($){if($.length!==4)return!1;for(let Y=0;Y<4;Y++)if(!f0[$.charCodeAt(Y)])return!1;return!0}parseDataLiteral(){this.pos++;let $=[];while(this.pos{Object.defineProperty(p6,"__esModule",{value:!0});p6.SubFolder=p6.ProxyType=p6.ISA=void 0;var bG;(function($){$.PBXBuildFile="PBXBuildFile",$.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",$.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",$.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",$.PBXHeadersBuildPhase="PBXHeadersBuildPhase",$.PBXResourcesBuildPhase="PBXResourcesBuildPhase",$.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",$.PBXSourcesBuildPhase="PBXSourcesBuildPhase",$.PBXRezBuildPhase="PBXRezBuildPhase",$.PBXContainerItemProxy="PBXContainerItemProxy",$.PBXFileReference="PBXFileReference",$.PBXGroup="PBXGroup",$.PBXVariantGroup="PBXVariantGroup",$.XCVersionGroup="XCVersionGroup",$.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",$.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",$.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",$.PBXNativeTarget="PBXNativeTarget",$.PBXAggregateTarget="PBXAggregateTarget",$.PBXLegacyTarget="PBXLegacyTarget",$.PBXProject="PBXProject",$.PBXTargetDependency="PBXTargetDependency",$.XCBuildConfiguration="XCBuildConfiguration",$.XCConfigurationList="XCConfigurationList",$.PBXBuildRule="PBXBuildRule",$.PBXReferenceProxy="PBXReferenceProxy",$.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",$.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",$.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(bG=p6.ISA||(p6.ISA={}));var gG;(function($){$[$.targetReference=1]="targetReference",$[$.reference=2]="reference"})(gG=p6.ProxyType||(p6.ProxyType={}));var fG;(function($){$[$.absolutePath=0]="absolutePath",$[$.productsDirectory=16]="productsDirectory",$[$.wrapper=1]="wrapper",$[$.executables=6]="executables",$[$.resources=7]="resources",$[$.javaResources=15]="javaResources",$[$.frameworks=10]="frameworks",$[$.sharedFrameworks=11]="sharedFrameworks",$[$.sharedSupport=12]="sharedSupport",$[$.plugins=13]="plugins"})(fG=p6.SubFolder||(p6.SubFolder={}))});var l6=C((F1)=>{var hG=F1&&F1.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),vG=F1&&F1.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))hG(Y,$,Z)};Object.defineProperty(F1,"__esModule",{value:!0});F1.build=F1.parse=void 0;var uG=L6(),mG=u6();Object.defineProperty(F1,"parse",{enumerable:!0,get:function(){return mG.parse}});function cG($){return new uG.Writer($).getResults()}F1.build=cG;vG(d6(),F1)});var h0=C((dG)=>{function pG($,Y,Z){if(Z===void 0)Z=Array.prototype;if($&&typeof Z.find==="function")return Z.find.call($,Y);for(var J=0;J<$.length;J++)if(Object.prototype.hasOwnProperty.call($,J)){var K=$[J];if(Y.call(void 0,K,J,$))return K}}function NY($,Y){if(Y===void 0)Y=Object;return Y&&typeof Y.freeze==="function"?Y.freeze($):$}var s6=NY({HTML:"text/html",isHTML:function($){return $===s6.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i6=NY({HTML:"http://www.w3.org/1999/xhtml",isHTML:function($){return $===i6.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});dG.find=pG;dG.freeze=NY;dG.MIME_TYPE=s6;dG.NAMESPACE=i6});var dY=C((V2)=>{var Y4=h0(),k1=Y4.find,v0=Y4.NAMESPACE;function nG($){return $!==""}function aG($){return $?$.split(/[\t\n\f\r ]+/).filter(nG):[]}function oG($,Y){if(!$.hasOwnProperty(Y))$[Y]=!0;return $}function r6($){if(!$)return[];var Y=aG($);return Object.keys(Y.reduce(oG,{}))}function tG($){return function(Y){return $&&$.indexOf(Y)!==-1}}function m0($,Y){for(var Z in $)if(Object.prototype.hasOwnProperty.call($,Z))Y[Z]=$[Z]}function J1($,Y){var Z=$.prototype;if(!(Z instanceof Y)){let K=function(){};var J=K;K.prototype=Y.prototype,K=new K,m0(Z,K),$.prototype=Z=K}if(Z.constructor!=$){if(typeof $!="function")console.error("unknown Class:"+$);Z.constructor=$}}var K1={},U1=K1.ELEMENT_NODE=1,U0=K1.ATTRIBUTE_NODE=2,j$=K1.TEXT_NODE=3,Z4=K1.CDATA_SECTION_NODE=4,J4=K1.ENTITY_REFERENCE_NODE=5,eG=K1.ENTITY_NODE=6,K4=K1.PROCESSING_INSTRUCTION_NODE=7,z4=K1.COMMENT_NODE=8,Q4=K1.DOCUMENT_NODE=9,G4=K1.DOCUMENT_TYPE_NODE=10,b1=K1.DOCUMENT_FRAGMENT_NODE=11,$2=K1.NOTATION_NODE=12,o={},r={},zH=o.INDEX_SIZE_ERR=(r[1]="Index size error",1),QH=o.DOMSTRING_SIZE_ERR=(r[2]="DOMString size error",2),Z1=o.HIERARCHY_REQUEST_ERR=(r[3]="Hierarchy request error",3),GH=o.WRONG_DOCUMENT_ERR=(r[4]="Wrong document",4),VH=o.INVALID_CHARACTER_ERR=(r[5]="Invalid character",5),WH=o.NO_DATA_ALLOWED_ERR=(r[6]="No data allowed",6),qH=o.NO_MODIFICATION_ALLOWED_ERR=(r[7]="No modification allowed",7),V4=o.NOT_FOUND_ERR=(r[8]="Not found",8),HH=o.NOT_SUPPORTED_ERR=(r[9]="Not supported",9),n6=o.INUSE_ATTRIBUTE_ERR=(r[10]="Attribute in use",10),BH=o.INVALID_STATE_ERR=(r[11]="Invalid state",11),FH=o.SYNTAX_ERR=(r[12]="Syntax error",12),UH=o.INVALID_MODIFICATION_ERR=(r[13]="Invalid modification",13),OH=o.NAMESPACE_ERR=(r[14]="Invalid namespace",14),RH=o.INVALID_ACCESS_ERR=(r[15]="Invalid access",15);function s($,Y){if(Y instanceof Error)var Z=Y;else if(Z=this,Error.call(this,r[$]),this.message=r[$],Error.captureStackTrace)Error.captureStackTrace(this,s);if(Z.code=$,Y)this.message=this.message+": "+Y;return Z}s.prototype=Error.prototype;m0(o,s);function y1(){}y1.prototype={length:0,item:function($){return $>=0&&$=0){var K=Y.length-1;while(J0},lookupPrefix:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){for(var J in Z)if(Object.prototype.hasOwnProperty.call(Z,J)&&Z[J]===$)return J}Y=Y.nodeType==U0?Y.ownerDocument:Y.parentNode}return null},lookupNamespaceURI:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){if($ in Z){if(Object.prototype.hasOwnProperty.call(Z,$))return Z[$]}}Y=Y.nodeType==U0?Y.ownerDocument:Y.parentNode}return null},isDefaultNamespace:function($){var Y=this.lookupPrefix($);return Y==null}};function H4($){return $=="<"&&"<"||$==">"&&">"||$=="&"&&"&"||$=='"'&&"""||"&#"+$.charCodeAt()+";"}m0(K1,f);m0(K1,f.prototype);function u0($,Y){if(Y($))return!0;if($=$.firstChild)do if(u0($,Y))return!0;while($=$.nextSibling)}function c0(){this.ownerDocument=this}function Y2($,Y,Z){$&&$._inc++;var J=Z.namespaceURI;if(J===v0.XMLNS)Y._nsMap[Z.prefix?Z.localName:""]=Z.value}function B4($,Y,Z,J){$&&$._inc++;var K=Z.namespaceURI;if(K===v0.XMLNS)delete Y._nsMap[Z.prefix?Z.localName:""]}function fY($,Y,Z){if($&&$._inc){$._inc++;var J=Y.childNodes;if(Z)J[J.length++]=Z;else{var K=Y.firstChild,z=0;while(K)J[z++]=K,K=K.nextSibling;J.length=z,delete J[J.length]}}}function F4($,Y){var{previousSibling:Z,nextSibling:J}=Y;if(Z)Z.nextSibling=J;else $.firstChild=J;if(J)J.previousSibling=Z;else $.lastChild=Z;return Y.parentNode=null,Y.previousSibling=null,Y.nextSibling=null,fY($.ownerDocument,$),Y}function Z2($){return $&&($.nodeType===f.DOCUMENT_NODE||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.ELEMENT_NODE)}function J2($){return $&&(X1($)||hY($)||g1($)||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.COMMENT_NODE||$.nodeType===f.PROCESSING_INSTRUCTION_NODE)}function g1($){return $&&$.nodeType===f.DOCUMENT_TYPE_NODE}function X1($){return $&&$.nodeType===f.ELEMENT_NODE}function hY($){return $&&$.nodeType===f.TEXT_NODE}function t6($,Y){var Z=$.childNodes||[];if(k1(Z,X1)||g1(Y))return!1;var J=k1(Z,g1);return!(Y&&J&&Z.indexOf(J)>Z.indexOf(Y))}function e6($,Y){var Z=$.childNodes||[];function J(z){return X1(z)&&z!==Y}if(k1(Z,J))return!1;var K=k1(Z,g1);return!(Y&&K&&Z.indexOf(K)>Z.indexOf(Y))}function K2($,Y,Z){if(!Z2($))throw new s(Z1,"Unexpected parent node type "+$.nodeType);if(Z&&Z.parentNode!==$)throw new s(V4,"child not in parent");if(!J2(Y)||g1(Y)&&$.nodeType!==f.DOCUMENT_NODE)throw new s(Z1,"Unexpected node type "+Y.nodeType+" for parent node type "+$.nodeType)}function z2($,Y,Z){var J=$.childNodes||[],K=Y.childNodes||[];if(Y.nodeType===f.DOCUMENT_FRAGMENT_NODE){var z=K.filter(X1);if(z.length>1||k1(K,hY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!t6($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(X1(Y)){if(!t6($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(g1(Y)){if(k1(J,g1))throw new s(Z1,"Only one doctype is allowed");var Q=k1(J,X1);if(Z&&J.indexOf(Q)1||k1(K,hY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!e6($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(X1(Y)){if(!e6($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(g1(Y)){let G=function(q){return g1(q)&&q!==Z};var W=G;if(k1(J,G))throw new s(Z1,"Only one doctype is allowed");var Q=k1(J,X1);if(Z&&J.indexOf(Q)0)u0(Z.documentElement,function(K){if(K!==Z&&K.nodeType===U1){var z=K.getAttribute("class");if(z){var Q=$===z;if(!Q){var W=r6(z);Q=Y.every(tG(W))}if(Q)J.push(K)}}});return J})},createElement:function($){var Y=new Y0;Y.ownerDocument=this,Y.nodeName=$,Y.tagName=$,Y.localName=$,Y.childNodes=new y1;var Z=Y.attributes=new k$;return Z._ownerElement=Y,Y},createDocumentFragment:function(){var $=new _$;return $.ownerDocument=this,$.childNodes=new y1,$},createTextNode:function($){var Y=new vY;return Y.ownerDocument=this,Y.appendData($),Y},createComment:function($){var Y=new uY;return Y.ownerDocument=this,Y.appendData($),Y},createCDATASection:function($){var Y=new mY;return Y.ownerDocument=this,Y.appendData($),Y},createProcessingInstruction:function($,Y){var Z=new pY;return Z.ownerDocument=this,Z.tagName=Z.nodeName=Z.target=$,Z.nodeValue=Z.data=Y,Z},createAttribute:function($){var Y=new I$;return Y.ownerDocument=this,Y.name=$,Y.nodeName=$,Y.localName=$,Y.specified=!0,Y},createEntityReference:function($){var Y=new cY;return Y.ownerDocument=this,Y.nodeName=$,Y},createElementNS:function($,Y){var Z=new Y0,J=Y.split(":"),K=Z.attributes=new k$;if(Z.childNodes=new y1,Z.ownerDocument=this,Z.nodeName=Y,Z.tagName=Y,Z.namespaceURI=$,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return K._ownerElement=Z,Z},createAttributeNS:function($,Y){var Z=new I$,J=Y.split(":");if(Z.ownerDocument=this,Z.nodeName=Y,Z.name=Y,Z.namespaceURI=$,Z.specified=!0,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return Z}};J1(c0,f);function Y0(){this._nsMap={}}Y0.prototype={nodeType:U1,hasAttribute:function($){return this.getAttributeNode($)!=null},getAttribute:function($){var Y=this.getAttributeNode($);return Y&&Y.value||""},getAttributeNode:function($){return this.attributes.getNamedItem($)},setAttribute:function($,Y){var Z=this.ownerDocument.createAttribute($);Z.value=Z.nodeValue=""+Y,this.setAttributeNode(Z)},removeAttribute:function($){var Y=this.getAttributeNode($);Y&&this.removeAttributeNode(Y)},appendChild:function($){if($.nodeType===b1)return this.insertBefore($,null);else return Q2(this,$)},setAttributeNode:function($){return this.attributes.setNamedItem($)},setAttributeNodeNS:function($){return this.attributes.setNamedItemNS($)},removeAttributeNode:function($){return this.attributes.removeNamedItem($.nodeName)},removeAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);Z&&this.removeAttributeNode(Z)},hasAttributeNS:function($,Y){return this.getAttributeNodeNS($,Y)!=null},getAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);return Z&&Z.value||""},setAttributeNS:function($,Y,Z){var J=this.ownerDocument.createAttributeNS($,Y);J.value=J.nodeValue=""+Z,this.setAttributeNode(J)},getAttributeNodeNS:function($,Y){return this.attributes.getNamedItemNS($,Y)},getElementsByTagName:function($){return new O0(this,function(Y){var Z=[];return u0(Y,function(J){if(J!==Y&&J.nodeType==U1&&($==="*"||J.tagName==$))Z.push(J)}),Z})},getElementsByTagNameNS:function($,Y){return new O0(this,function(Z){var J=[];return u0(Z,function(K){if(K!==Z&&K.nodeType===U1&&($==="*"||K.namespaceURI===$)&&(Y==="*"||K.localName==Y))J.push(K)}),J})}};c0.prototype.getElementsByTagName=Y0.prototype.getElementsByTagName;c0.prototype.getElementsByTagNameNS=Y0.prototype.getElementsByTagNameNS;J1(Y0,f);function I$(){}I$.prototype.nodeType=U0;J1(I$,f);function p0(){}p0.prototype={data:"",substringData:function($,Y){return this.data.substring($,$+Y)},appendData:function($){$=this.data+$,this.nodeValue=this.data=$,this.length=$.length},insertData:function($,Y){this.replaceData($,0,Y)},appendChild:function($){throw Error(r[Z1])},deleteData:function($,Y){this.replaceData($,Y,"")},replaceData:function($,Y,Z){var J=this.data.substring(0,$),K=this.data.substring($+Y);Z=J+Z+K,this.nodeValue=this.data=Z,this.length=Z.length}};J1(p0,f);function vY(){}vY.prototype={nodeName:"#text",nodeType:j$,splitText:function($){var Y=this.data,Z=Y.substring($);Y=Y.substring(0,$),this.data=this.nodeValue=Y,this.length=Y.length;var J=this.ownerDocument.createTextNode(Z);if(this.parentNode)this.parentNode.insertBefore(J,this.nextSibling);return J}};J1(vY,p0);function uY(){}uY.prototype={nodeName:"#comment",nodeType:z4};J1(uY,p0);function mY(){}mY.prototype={nodeName:"#cdata-section",nodeType:Z4};J1(mY,p0);function w$(){}w$.prototype.nodeType=G4;J1(w$,f);function O4(){}O4.prototype.nodeType=$2;J1(O4,f);function R4(){}R4.prototype.nodeType=eG;J1(R4,f);function cY(){}cY.prototype.nodeType=J4;J1(cY,f);function _$(){}_$.prototype.nodeName="#document-fragment";_$.prototype.nodeType=b1;J1(_$,f);function pY(){}pY.prototype.nodeType=K4;J1(pY,f);function P4(){}P4.prototype.serializeToString=function($,Y,Z){return A4.call($,Y,Z)};f.prototype.toString=A4;function A4($,Y){var Z=[],J=this.nodeType==9&&this.documentElement||this,K=J.prefix,z=J.namespaceURI;if(z&&K==null){var K=J.lookupPrefix(z);if(K==null)var Q=[{namespace:z,prefix:null}]}return F0(this,Z,$,Y,Q),Z.join("")}function $4($,Y,Z){var J=$.prefix||"",K=$.namespaceURI;if(!K)return!1;if(J==="xml"&&K===v0.XML||K===v0.XMLNS)return!1;var z=Z.length;while(z--){var Q=Z[z];if(Q.prefix===J)return Q.namespace!==K}return!0}function yY($,Y,Z){$.push(" ",Y,'="',Z.replace(/[<&"]/g,H4),'"')}function F0($,Y,Z,J,K){if(!K)K=[];if(J)if($=J($),$){if(typeof $=="string"){Y.push($);return}}else return;switch($.nodeType){case U1:var z=$.attributes,Q=z.length,D=$.firstChild,W=$.tagName;Z=v0.isHTML($.namespaceURI)||Z;var G=W;if(!Z&&!$.prefix&&$.namespaceURI){var q;for(var H=0;H=0;R--){var P=K[R];if(P.prefix===""&&P.namespace===$.namespaceURI){q=P.namespace;break}}if(q!==$.namespaceURI)for(var R=K.length-1;R>=0;R--){var P=K[R];if(P.namespace===$.namespaceURI){if(P.prefix)G=P.prefix+":"+W;break}}}Y.push("<",G);for(var j=0;j"),Z&&/^script$/i.test(W))while(D){if(D.data)Y.push(D.data);else F0(D,Y,Z,J,K.slice());D=D.nextSibling}else while(D)F0(D,Y,Z,J,K.slice()),D=D.nextSibling;Y.push("")}else Y.push("/>");return;case Q4:case b1:var D=$.firstChild;while(D)F0(D,Y,Z,J,K.slice()),D=D.nextSibling;return;case U0:return yY(Y,$.name,$.value);case j$:return Y.push($.data.replace(/[<&]/g,H4).replace(/]]>/g,"]]>"));case Z4:return Y.push("");case z4:return Y.push("");case G4:var{publicId:y,systemId:O}=$;if(Y.push("")}else if(O&&O!=".")Y.push(" SYSTEM ",O,">");else{var B=$.internalSubset;if(B)Y.push(" [",B,"]");Y.push(">")}return;case K4:return Y.push("");case J4:return Y.push("&",$.nodeName,";");default:Y.push("??",$.nodeName)}}function E4($,Y,Z){var J;switch(Y.nodeType){case U1:J=Y.cloneNode(!1),J.ownerDocument=$;case b1:break;case U0:Z=!0;break}if(!J)J=Y.cloneNode(!1);if(J.ownerDocument=$,J.parentNode=null,Z){var K=Y.firstChild;while(K)J.appendChild(E4($,K,Z)),K=K.nextSibling}return J}function bY($,Y,Z){var J=new Y.constructor;for(var K in Y)if(Object.prototype.hasOwnProperty.call(Y,K)){var z=Y[K];if(typeof z!="object"){if(z!=J[K])J[K]=z}}if(Y.childNodes)J.childNodes=new y1;switch(J.ownerDocument=$,J.nodeType){case U1:var Q=Y.attributes,W=J.attributes=new k$,G=Q.length;W._ownerElement=J;for(var q=0;q{var j4=h0().freeze;R2.XML_ENTITIES=j4({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});R2.HTML_ENTITIES=j4({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"});R2.entityMap=R2.HTML_ENTITIES});var L4=C((_2)=>{var i0=h0().NAMESPACE,lY=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I4=new RegExp("[\\-\\.0-9"+lY.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),w4=new RegExp("^"+lY.source+I4.source+"*(?::"+lY.source+I4.source+"*)?$"),d0=0,l1=1,R0=2,l0=3,P0=4,A0=5,s0=6,D$=7;function E0($,Y){if(this.message=$,this.locator=Y,Error.captureStackTrace)Error.captureStackTrace(this,E0)}E0.prototype=Error();E0.prototype.name=E0.name;function T4(){}T4.prototype={parse:function($,Y,Z){var J=this.domBuilder;J.startDocument(),S4(Y,Y={}),E2($,Y,Z,J,this.errorHandler),J.endDocument()}};function E2($,Y,Z,J,K){function z(_){if(_>65535){_-=65536;var L=55296+(_>>10),p=56320+(_&1023);return String.fromCharCode(L,p)}else return String.fromCharCode(_)}function Q(_){var L=_.slice(1,-1);if(L in Z)return Z[L];else if(L.charAt(0)==="#")return z(parseInt(L.substr(1).replace("x","0x")));else return K.error("entity not found:"+_),_}function W(_){if(_>T){var L=$.substring(T,_).replace(/&#?\w+;/g,Q);P&&G(T),J.characters(L,0,_-T),T=_}}function G(_,L){while(_>=H&&(L=R.exec($)))q=L.index,H=q+L[0].length,P.lineNumber++;P.columnNumber=_-q+1}var q=0,H=0,R=/.*(?:\r\n?|\n)|.*$/g,P=J.locator,j=[{currentNSMap:Y}],w={},T=0;while(!0){try{var I=$.indexOf("<",T);if(I<0){if(!$.substr(T).match(/^\s*$/)){var D=J.doc,y=D.createTextNode($.substr(T));D.appendChild(y),J.currentElement=y}return}if(I>T)W(I);switch($.charAt(I+1)){case"/":var k=$.indexOf(">",I+3),O=$.substring(I+2,k).replace(/[ \t\n\r]+$/g,""),B=j.pop();if(k<0)O=$.substring(I+2).replace(/[\s<].*/,""),K.error("end tag name: "+O+" is not complete:"+B.tagName),k=I+1+O.length;else if(O.match(/\sT)T=k;else W(Math.max(I,T)+1)}}function _4($,Y){return Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber,Y}function C2($,Y,Z,J,K,z){function Q(j,w,T){if(Z.attributeNames.hasOwnProperty(j))z.fatalError("Attribute "+j+" redefined");Z.addValue(j,w,T)}var W,G,q=++Y,H=d0;while(!0){var R=$.charAt(q);switch(R){case"=":if(H===l1)W=$.slice(Y,q),H=l0;else if(H===R0)H=l0;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(H===l0||H===l1){if(H===l1)z.warning('attribute value must after "="'),W=$.slice(Y,q);if(Y=q+1,q=$.indexOf(R,Y),q>0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y-1),H=A0;else throw Error("attribute value no end '"+R+"' match")}else if(H==P0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y),z.warning('attribute "'+W+'" missed start quot('+R+")!!"),Y=q+1,H=A0;else throw Error('attribute value must after "="');break;case"/":switch(H){case d0:Z.setTagName($.slice(Y,q));case A0:case s0:case D$:H=D$,Z.closed=!0;case P0:case l1:break;case R0:Z.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(z.error("unexpected end of input"),H==d0)Z.setTagName($.slice(Y,q));return q;case">":switch(H){case d0:Z.setTagName($.slice(Y,q));case A0:case s0:case D$:break;case P0:case l1:if(G=$.slice(Y,q),G.slice(-1)==="/")Z.closed=!0,G=G.slice(0,-1);case R0:if(H===R0)G=W;if(H==P0)z.warning('attribute "'+G+'" missed quot(")!'),Q(W,G.replace(/&#?\w+;/g,K),Y);else{if(!i0.isHTML(J[""])||!G.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');Q(G,G,Y)}break;case l0:throw Error("attribute value missed!!")}return q;case"€":R=" ";default:if(R<=" ")switch(H){case d0:Z.setTagName($.slice(Y,q)),H=s0;break;case l1:W=$.slice(Y,q),H=R0;break;case P0:var G=$.slice(Y,q).replace(/&#?\w+;/g,K);z.warning('attribute "'+G+'" missed quot(")!!'),Q(W,G,Y);case A0:H=s0;break}else switch(H){case R0:var P=Z.tagName;if(!i0.isHTML(J[""])||!W.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+W+'" missed value!! "'+W+'" instead2!!');Q(W,W,Y),Y=q,H=l1;break;case A0:z.warning('attribute space is required"'+W+'"!!');case s0:H=l1,Y=q;break;case l0:H=P0,Y=q;break;case D$:throw Error("elements closed character '/' and '>' must be connected to")}}q++}}function D4($,Y,Z){var J=$.tagName,K=null,R=$.length;while(R--){var z=$[R],Q=z.qName,W=z.value,P=Q.indexOf(":");if(P>0)var G=z.prefix=Q.slice(0,P),q=Q.slice(P+1),H=G==="xmlns"&&q;else q=Q,G=null,H=Q==="xmlns"&&"";if(z.localName=q,H!==!1){if(K==null)K={},S4(Z,Z={});Z[H]=K[H]=W,z.uri=i0.XMLNS,Y.startPrefixMapping(H,W)}}var R=$.length;while(R--){z=$[R];var G=z.prefix;if(G){if(G==="xml")z.uri=i0.XML;if(G!=="xmlns")z.uri=Z[G||""]}}var P=J.indexOf(":");if(P>0)G=$.prefix=J.slice(0,P),q=$.localName=J.slice(P+1);else G=null,q=$.localName=J;var j=$.uri=Z[G||""];if(Y.startElement(j,q,J,$),$.closed){if(Y.endElement(j,q,J),K){for(G in K)if(Object.prototype.hasOwnProperty.call(K,G))Y.endPrefixMapping(G)}}else return $.currentNSMap=Z,$.localNSMap=K,!0}function j2($,Y,Z,J,K){if(/^(?:script|textarea)$/i.test(Z)){var z=$.indexOf("",Y),Q=$.substring(Y+1,z);if(/[&<]/.test(Q)){if(/^script$/i.test(Z))return K.characters(Q,0,Q.length),z;return Q=Q.replace(/&#?\w+;/g,J),K.characters(Q,0,Q.length),z}}return Y+1}function k2($,Y,Z,J){var K=J[Z];if(K==null){if(K=$.lastIndexOf(""),K",Y+4);if(z>Y)return Z.comment($,Y+4,z-Y-4),z+3;else return J.error("Unclosed comment"),-1}else return-1;default:if($.substr(Y+3,6)=="CDATA["){var z=$.indexOf("]]>",Y+9);return Z.startCDATA(),Z.characters($,Y+9,z-Y-9),Z.endCDATA(),z+3}var Q=w2($,Y),W=Q.length;if(W>1&&/!doctype/i.test(Q[0][0])){var G=Q[1][0],q=!1,H=!1;if(W>3){if(/^public$/i.test(Q[2][0]))q=Q[3][0],H=W>4&&Q[4][0];else if(/^system$/i.test(Q[2][0]))H=Q[3][0]}var R=Q[W-1];return Z.startDTD(G,q,H),Z.endDTD(),R.index+R[0].length}}return-1}function I2($,Y,Z){var J=$.indexOf("?>",Y);if(J){var K=$.substring(Y,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(K){var z=K[0].length;return Z.processingInstruction(K[1],K[2]),J+2}else return-1}return-1}function M4(){this.attributeNames={}}M4.prototype={setTagName:function($){if(!w4.test($))throw Error("invalid tagName:"+$);this.tagName=$},addValue:function($,Y,Z){if(!w4.test($))throw Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:Y,offset:Z}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function w2($,Y){var Z,J=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;K.lastIndex=Y,K.exec($);while(Z=K.exec($))if(J.push(Z),Z[1])return J}_2.XMLReader=T4;_2.ParseError=E0});var f4=C((y2)=>{var S2=h0(),iY=dY(),x4=X4(),b4=L4(),M2=iY.DOMImplementation,N4=S2.NAMESPACE,L2=b4.ParseError,x2=b4.XMLReader;function g4($){this.options=$||{locator:{}}}g4.prototype.parseFromString=function($,Y){var Z=this.options,J=new x2,K=Z.domBuilder||new r0,z=Z.errorHandler,Q=Z.locator,W=Z.xmlns||{},G=/\/x?html?$/.test(Y),q=G?x4.HTML_ENTITIES:x4.XML_ENTITIES;if(Q)K.setDocumentLocator(Q);if(J.errorHandler=N2(z,K,Q),J.domBuilder=Z.domBuilder||K,G)W[""]=N4.HTML;if(W.xml=W.xml||N4.XML,$&&typeof $==="string")J.parse($,W,q);else J.errorHandler.error("invalid doc source");return K.doc};function N2($,Y,Z){if(!$){if(Y instanceof r0)return Y;$=Y}var J={},K=$ instanceof Function;Z=Z||{};function z(Q){var W=$[Q];if(!W&&K)W=$.length==2?function(G){$(Q,G)}:$;J[Q]=W&&function(G){W("[xmldom "+Q+"]\t"+G+sY(Z))}||function(){}}return z("warning"),z("error"),z("fatalError"),J}function r0(){this.cdata=!1}function C0($,Y){Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber}r0.prototype={startDocument:function(){if(this.doc=new M2().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function($,Y,Z,J){var K=this.doc,z=K.createElementNS($,Z||Y),Q=J.length;T$(this,z),this.currentElement=z,this.locator&&C0(this.locator,z);for(var W=0;W=Y+Z||Y)return new java.lang.String($,Y,Z)+"";return $}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function($){r0.prototype[$]=function(){return null}});function T$($,Y){if(!$.currentElement)$.doc.appendChild(Y);else $.currentElement.appendChild(Y)}y2.__DOMHandler=r0;y2.DOMParser=g4;y2.DOMImplementation=iY.DOMImplementation;y2.XMLSerializer=iY.XMLSerializer});var S$=C((v2)=>{var h4=dY();v2.DOMImplementation=h4.DOMImplementation;v2.XMLSerializer=h4.XMLSerializer;v2.DOMParser=f4().DOMParser});var p4=C((m4)=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.parse=void 0;var p2=S$();function d2($){let J=new p2.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Workspace")throw Error("Invalid xcworkspacedata file: root element must be ");return l2(J)}m4.parse=d2;function l2($){let Y={};Y.version=M$($,"version");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(v4);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(u4);return Y}function v4($){return{location:M$($,"location")||""}}function u4($){let Y={};Y.location=M$($,"location"),Y.name=M$($,"name");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(v4);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(u4);return Y}function M$($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function L$($,Y){let Z=[],J=$.childNodes;for(let K=0;K{Object.defineProperty(i4,"__esModule",{value:!0});i4.build=void 0;function s2($){let Y=[];Y.push('');let Z=[];if($.version!==void 0)Z.push(`version = "${$.version}"`);if(Z.length>0){Y.push("");if($.fileRefs)for(let J of $.fileRefs)Y.push(...d4(J,1));if($.groups)for(let J of $.groups)Y.push(...l4(J,1));return Y.push(""),Y.join(` `)+` -`}Xr.build=bm;function Wl(t,e){let r=Kl(e);return[`${r} -${r}`]}function zl(t,e){let r=[],i=Kl(e),s=[];t.location!==void 0&&s.push(`location = "${Gs(t.location)}"`),t.name!==void 0&&s.push(`name = "${Gs(t.name)}"`),r.push(`${i}`),r}function Kl(t){return" ".repeat(t)}function Gs(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var ec=v(Vr=>{"use strict";Vr.byteLength=ym;Vr.toByteArray=Em;Vr.fromByteArray=Cm;var xe=[],oe=[],Dm=typeof Uint8Array<"u"?Uint8Array:Array,Ys="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(st=0,Zl=Ys.length;st0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var i=r===e?0:4-r%4;return[r,i]}function ym(t){var e=Ql(t),r=e[0],i=e[1];return(r+i)*3/4-i}function Am(t,e,r){return(e+r)*3/4-r}function Em(t){var e,r=Ql(t),i=r[0],s=r[1],n=new Dm(Am(t,i,s)),u=0,a=s>0?i-4:i,o;for(o=0;o>16&255,n[u++]=e>>8&255,n[u++]=e&255;return s===2&&(e=oe[t.charCodeAt(o)]<<2|oe[t.charCodeAt(o+1)]>>4,n[u++]=e&255),s===1&&(e=oe[t.charCodeAt(o)]<<10|oe[t.charCodeAt(o+1)]<<4|oe[t.charCodeAt(o+2)]>>2,n[u++]=e>>8&255,n[u++]=e&255),n}function wm(t){return xe[t>>18&63]+xe[t>>12&63]+xe[t>>6&63]+xe[t&63]}function vm(t,e,r){for(var i,s=[],n=e;na?a:u+n));return i===1?(e=t[r-1],s.push(xe[e>>2]+xe[e<<4&63]+"==")):i===2&&(e=(t[r-2]<<8)+t[r-1],s.push(xe[e>>10]+xe[e>>4&63]+xe[e<<2&63]+"=")),s.join("")}});var Te=v((tc,ze)=>{(function(){var t,e,r,i,s,n,u,a={}.hasOwnProperty;t=function(o,...c){var g,p,m,A;if(s(Object.assign))Object.assign.apply(null,arguments);else for(g=0,m=c.length;g{(function(){var t;ic.exports=t=class{hasFeature(r,i){return!0}createDocumentType(r,i,s){throw new Error("This DOM method is not implemented.")}createDocument(r,i,s){throw new Error("This DOM method is not implemented.")}createHTMLDocument(r){throw new Error("This DOM method is not implemented.")}getFeature(r,i){throw new Error("This DOM method is not implemented.")}}}).call(rc)});var uc=v((sc,nc)=>{(function(){var t;nc.exports=t=class{constructor(){}handleError(r){throw new Error(r)}}}).call(sc)});var lc=v((oc,ac)=>{(function(){var t;ac.exports=t=(function(){class e{constructor(i){this.arr=i||[]}item(i){return this.arr[i]||null}contains(i){return this.arr.indexOf(i)!==-1}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e}).call(this)}).call(oc)});var dc=v((cc,hc)=>{(function(){var t,e,r;e=uc(),r=lc(),hc.exports=t=(function(){class i{constructor(){var n;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=n=Object.create(this.defaultParams)}getParameter(n){return this.params.hasOwnProperty(n)?this.params[n]:null}canSetParameter(n,u){return!0}setParameter(n,u){return u!=null?this.params[n]=u:delete this.params[n]}}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new r(Object.keys(this.defaultParams))}}),i}).call(this)}).call(cc)});var H=v((fc,pc)=>{(function(){pc.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(fc)});var Ws=v((gc,mc)=>{(function(){var t,e,r;t=H(),r=ue(),mc.exports=e=(function(){class i{constructor(n,u,a){if(this.parent=n,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),u==null)throw new Error("Missing attribute name. "+this.debugInfo(u));this.name=this.stringify.name(u),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(n){return this.options.writer.attribute(this,this.options.writer.filterOptions(n))}debugInfo(n){return n=n||this.name,n==null?"parent: <"+this.parent.name+">":"attribute: {"+n+"}, parent: <"+this.parent.name+">"}isEqualNode(n){return!(n.namespaceURI!==this.namespaceURI||n.prefix!==this.prefix||n.localName!==this.localName||n.value!==this.value)}}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"specified",{get:function(){return!0}}),i}).call(this)}).call(gc)});var Gr=v((bc,Dc)=>{(function(){var t;Dc.exports=t=(function(){class e{constructor(i){this.nodes=i}clone(){return this.nodes=null}getNamedItem(i){return this.nodes[i]}setNamedItem(i){var s;return s=this.nodes[i.nodeName],this.nodes[i.nodeName]=i,s||null}removeNamedItem(i){var s;return s=this.nodes[i],delete this.nodes[i],s||null}item(i){return this.nodes[Object.keys(this.nodes)[i]]||null}getNamedItemNS(i,s){throw new Error("This DOM method is not implemented.")}setNamedItemNS(i){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(i,s){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e}).call(this)}).call(bc)});var Yr=v((yc,Ac)=>{(function(){var t,e,r,i,s,n,u,a,o={}.hasOwnProperty;({isObject:a,isFunction:u,getValue:n}=Te()),s=ue(),t=H(),e=Ws(),i=Gr(),Ac.exports=r=(function(){class c extends s{constructor(p,m,A){var C,S,T,x;if(super(p),m==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(m),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,A!=null&&this.attribute(A),p.type===t.Document&&(this.isRoot=!0,this.documentObject=p,p.rootObject=this,p.children)){for(x=p.children,S=0,T=x.length;S=C;m=0<=C?++A:--A)if(!this.attribs[m].isEqualNode(p.attribs[m]))return!1;return!0}}return Object.defineProperty(c.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(c.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(c.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(c.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new i(this.attribs)),this.attributeMap}}),c}).call(this)}).call(yc)});var ir=v((Ec,wc)=>{(function(){var t,e;e=ue(),wc.exports=t=(function(){class r extends e{constructor(s){super(s),this.value=""}clone(){return Object.create(this)}substringData(s,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(s){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(s,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(s,n){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(s,n,u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(s){return!(!super.isEqualNode(s)||s.data!==this.data)}}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),r}).call(this)}).call(Ec)});var Hr=v((vc,Cc)=>{(function(){var t,e,r;t=H(),r=ir(),Cc.exports=e=class extends r{constructor(s,n){if(super(s),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(n)}clone(){return Object.create(this)}toString(s){return this.options.writer.cdata(this,this.options.writer.filterOptions(s))}}}).call(vc)});var Wr=v((xc,Tc)=>{(function(){var t,e,r;t=H(),e=ir(),Tc.exports=r=class extends e{constructor(s,n){if(super(s),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(n)}clone(){return Object.create(this)}toString(s){return this.options.writer.comment(this,this.options.writer.filterOptions(s))}}}).call(xc)});var zr=v((Sc,Nc)=>{(function(){var t,e,r,i;({isObject:i}=Te()),r=ue(),t=H(),Nc.exports=e=class extends r{constructor(n,u,a,o){super(n),i(u)&&({version:u,encoding:a,standalone:o}=u),u||(u="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(u),a!=null&&(this.encoding=this.stringify.xmlEncoding(a)),o!=null&&(this.standalone=this.stringify.xmlStandalone(o))}toString(n){return this.options.writer.declaration(this,this.options.writer.filterOptions(n))}}}).call(Sc)});var Kr=v((Oc,Ic)=>{(function(){var t,e,r;r=ue(),t=H(),Ic.exports=e=class extends r{constructor(s,n,u,a,o,c){if(super(s),n==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!a)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(o.indexOf("#")!==0&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(c&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(a),c&&(this.defaultValue=this.stringify.dtdAttDefault(c)),this.defaultValueType=o}toString(s){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(s))}}}).call(Oc)});var Jr=v((_c,Pc)=>{(function(){var t,e,r,i;({isObject:i}=Te()),r=ue(),t=H(),Pc.exports=e=(function(){class s extends r{constructor(u,a,o,c){if(super(u),o==null)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!a,this.name=this.stringify.name(o),this.type=t.EntityDeclaration,!i(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}}toString(u){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(u))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(s.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(s.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(s.prototype,"xmlVersion",{get:function(){return null}}),s}).call(this)}).call(_c)});var Zr=v((Rc,Lc)=>{(function(){var t,e,r;r=ue(),t=H(),Lc.exports=e=class extends r{constructor(s,n,u){if(super(s),n==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(n),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}toString(s){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(s))}}}).call(Rc)});var Qr=v((Bc,Mc)=>{(function(){var t,e,r;r=ue(),t=H(),Mc.exports=e=(function(){class i extends r{constructor(n,u,a){if(super(n),u==null)throw new Error("Missing DTD notation name. "+this.debugInfo(u));if(!a.pubID&&!a.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(u));this.name=this.stringify.name(u),this.type=t.NotationDeclaration,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID))}toString(n){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(n))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i}).call(this)}).call(Bc)});var ei=v((Fc,qc)=>{(function(){var t,e,r,i,s,n,u,a,o;({isObject:o}=Te()),a=ue(),t=H(),e=Kr(),i=Jr(),r=Zr(),s=Qr(),u=Gr(),qc.exports=n=(function(){class c extends a{constructor(p,m,A){var C,S,T,x;if(super(p),this.type=t.DocType,p.children){for(x=p.children,S=0,T=x.length;S{(function(){var t,e,r;t=H(),e=ue(),Uc.exports=r=class extends e{constructor(s,n){if(super(s),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(n)}clone(){return Object.create(this)}toString(s){return this.options.writer.raw(this,this.options.writer.filterOptions(s))}}}).call($c)});var ri=v((jc,kc)=>{(function(){var t,e,r;t=H(),e=ir(),kc.exports=r=(function(){class i extends e{constructor(n,u){if(super(n),u==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(u)}clone(){return Object.create(this)}toString(n){return this.options.writer.text(this,this.options.writer.filterOptions(n))}splitText(n){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(n){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){var s,n,u;for(u="",n=this.previousSibling;n;)u=n.data+u,n=n.previousSibling;for(u+=this.data,s=this.nextSibling;s;)u=u+s.data,s=s.nextSibling;return u}}),i}).call(this)}).call(jc)});var ii=v((Xc,Vc)=>{(function(){var t,e,r;t=H(),e=ir(),Vc.exports=r=class extends e{constructor(s,n,u){if(super(s),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}clone(){return Object.create(this)}toString(s){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(s))}isEqualNode(s){return!(!super.isEqualNode(s)||s.target!==this.target)}}}).call(Xc)});var zs=v((Gc,Yc)=>{(function(){var t,e,r;r=ue(),t=H(),Yc.exports=e=class extends r{constructor(s){super(s),this.type=t.Dummy}clone(){return Object.create(this)}toString(s){return""}}}).call(Gc)});var zc=v((Hc,Wc)=>{(function(){var t;Wc.exports=t=(function(){class e{constructor(i){this.nodes=i}clone(){return this.nodes=null}item(i){return this.nodes[i]||null}}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e}).call(this)}).call(Hc)});var Zc=v((Kc,Jc)=>{(function(){Jc.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Kc)});var ue=v((Qc,eh)=>{(function(){var t,e,r,i,s,n,u,a,o,c,g,p,m,A,C,S,T,x,B={}.hasOwnProperty,f=[].splice;({isObject:x,isFunction:T,isEmpty:S,getValue:C}=Te()),a=null,r=null,i=null,s=null,n=null,m=null,A=null,p=null,u=null,e=null,g=null,o=null,t=null,eh.exports=c=(function(){class d{constructor(l){this.parent=l,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,a||(a=Yr(),r=Hr(),i=Wr(),s=zr(),n=ei(),m=ti(),A=ri(),p=ii(),u=zs(),e=H(),g=zc(),o=Gr(),t=Zc())}setParent(l){var b,E,h,D,w;for(this.parent=l,l&&(this.options=l.options,this.stringify=l.stringify),D=this.children,w=[],E=0,h=D.length;E":(E=this.parent)!=null&&E.name?"node: <"+l+">, parent: <"+this.parent.name+">":"node: <"+l+">"}ele(l,b,E){return this.element(l,b,E)}nod(l,b,E){return this.node(l,b,E)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,b){return this.instruction(l,b)}doc(){return this.document()}dec(l,b,E){return this.declaration(l,b,E)}e(l,b,E){return this.element(l,b,E)}n(l,b,E){return this.node(l,b,E)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,b){return this.instruction(l,b)}u(){return this.up()}importXMLBuilder(l){return this.importDocument(l)}attribute(l,b){throw new Error("attribute() applies to element nodes only.")}att(l,b){return this.attribute(l,b)}a(l,b){return this.attribute(l,b)}removeAttribute(l){throw new Error("attribute() applies to element nodes only.")}replaceChild(l,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(l,b){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(l){var b,E;return b=this,b===l?0:this.document()!==l.document()?(E=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?E|=t.Preceding:E|=t.Following,E):b.isAncestor(l)?t.Contains|t.Preceding:b.isDescendant(l)?t.Contains|t.Following:b.isPreceding(l)?t.Preceding:t.Following}isSameNode(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(l){var b,E,h;if(l.nodeType!==this.nodeType||l.children.length!==this.children.length)return!1;for(b=E=0,h=this.children.length-1;0<=h?E<=h:E>=h;b=0<=h?++E:--E)if(!this.children[b].isEqualNode(l.children[b]))return!1;return!0}getFeature(l,b){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(l,b,E){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(l){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(l){return l?l===this||this.isDescendant(l):!1}isDescendant(l){var b,E,h,D,w;for(w=this.children,h=0,D=w.length;hE}treePosition(l){var b,E;return E=0,b=!1,this.foreachTreeNode(this.document(),function(h){if(E++,!b&&h===l)return b=!0}),b?E:-1}foreachTreeNode(l,b){var E,h,D,w,O;for(l||(l=this.document()),w=l.children,h=0,D=w.length;h{(function(){var t,e={}.hasOwnProperty;rh.exports=t=(function(){class r{constructor(s){var n,u,a;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),s||(s={}),this.options=s,this.options.version||(this.options.version="1.0"),u=s.stringify||{};for(n in u)e.call(u,n)&&(a=u[n],this[n]=a)}name(s){return this.options.noValidation?s:this.assertLegalName(""+s||"")}text(s){return this.options.noValidation?s:this.assertLegalChar(this.textEscape(""+s||""))}cdata(s){return this.options.noValidation?s:(s=""+s||"",s=s.replace("]]>","]]]]>"),this.assertLegalChar(s))}comment(s){if(this.options.noValidation)return s;if(s=""+s||"",s.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+s);return this.assertLegalChar(s)}raw(s){return this.options.noValidation?s:""+s||""}attValue(s){return this.options.noValidation?s:this.assertLegalChar(this.attEscape(s=""+s||""))}insTarget(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}insValue(s){if(this.options.noValidation)return s;if(s=""+s||"",s.match(/\?>/))throw new Error("Invalid processing instruction value: "+s);return this.assertLegalChar(s)}xmlVersion(s){if(this.options.noValidation)return s;if(s=""+s||"",!s.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+s);return s}xmlEncoding(s){if(this.options.noValidation)return s;if(s=""+s||"",!s.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+s);return this.assertLegalChar(s)}xmlStandalone(s){return this.options.noValidation?s:s?"yes":"no"}dtdPubID(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdSysID(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdElementValue(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdAttType(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdAttDefault(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdEntityValue(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}dtdNData(s){return this.options.noValidation?s:this.assertLegalChar(""+s||"")}assertLegalChar(s){var n,u;if(this.options.noValidation)return s;if(n="",this.options.version==="1.0"){if(n=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=s.match(n))throw new Error(`Invalid character in string: ${s} at index ${u.index}`)}else if(this.options.version==="1.1"&&(n=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,u=s.match(n)))throw new Error(`Invalid character in string: ${s} at index ${u.index}`);return s}assertLegalName(s){var n;if(this.options.noValidation)return s;if(this.assertLegalChar(s),n=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!s.match(n))throw new Error("Invalid character in name");return s}textEscape(s){var n;return this.options.noValidation?s:(n=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(n,"&").replace(//g,">").replace(/\r/g," "))}attEscape(s){var n;return this.options.noValidation?s:(n=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,s.replace(n,"&").replace(/{(function(){sh.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(ih)});var Js=v((nh,uh)=>{(function(){var t,e,r,i,s,n,u,a,o,c,g,p,m,A,C,S,T,x={}.hasOwnProperty;({assign:T}=Te()),t=H(),o=zr(),c=ei(),r=Hr(),i=Wr(),p=Yr(),A=ti(),C=ri(),m=ii(),g=zs(),s=Kr(),n=Zr(),u=Jr(),a=Qr(),e=sr(),uh.exports=S=class{constructor(f){var d,y,l;f||(f={}),this.options=f,y=f.writer||{};for(d in y)x.call(y,d)&&(l=y[d],this["_"+d]=this[d],this[d]=l)}filterOptions(f){var d,y,l,b,E,h,D,w,O;return f||(f={}),f=T({},this.options,f),d={writer:this},d.pretty=f.pretty||!1,d.allowEmpty=f.allowEmpty||!1,d.indent=(y=f.indent)!=null?y:" ",d.newline=(l=f.newline)!=null?l:` -`,d.offset=(b=f.offset)!=null?b:0,d.width=(E=f.width)!=null?E:0,d.dontPrettyTextNodes=(h=(D=f.dontPrettyTextNodes)!=null?D:f.dontprettytextnodes)!=null?h:0,d.spaceBeforeSlash=(w=(O=f.spaceBeforeSlash)!=null?O:f.spacebeforeslash)!=null?w:"",d.spaceBeforeSlash===!0&&(d.spaceBeforeSlash=" "),d.suppressPrettyCount=0,d.user={},d.state=e.None,d}indent(f,d,y){var l;return!d.pretty||d.suppressPrettyCount?"":d.pretty&&(l=(y||0)+d.offset+1,l>0)?new Array(l).join(d.indent):""}endline(f,d,y){return!d.pretty||d.suppressPrettyCount?"":d.newline}attribute(f,d,y){var l;return this.openAttribute(f,d,y),d.pretty&&d.width>0?l=f.name+'="'+f.value+'"':l=" "+f.name+'="'+f.value+'"',this.closeAttribute(f,d,y),l}cdata(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}comment(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}declaration(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+"",l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}docType(f,d,y){var l,b,E,h,D;if(y||(y=0),this.openNode(f,d,y),d.state=e.OpenTag,h=this.indent(f,d,y),h+="0){for(h+=" [",h+=this.endline(f,d,y),d.state=e.InsideTag,D=f.children,b=0,E=D.length;b",h+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),h}element(f,d,y){var l,b,E,h,D,w,O,P,R,G,I,N,k,je,ur,or,li,ci,ct;if(y||(y=0),N=!1,this.openNode(f,d,y),d.state=e.OpenTag,k=this.indent(f,d,y)+"<"+f.name,d.pretty&&d.width>0){P=k.length,ur=f.attribs;for(I in ur)x.call(ur,I)&&(l=ur[I],je=this.attribute(l,d,y),b=je.length,P+b>d.width?(ct=this.indent(f,d,y+1)+je,k+=this.endline(f,d,y)+ct,P=ct.length):(ct=" "+je,k+=ct,P+=ct.length))}else{or=f.attribs;for(I in or)x.call(or,I)&&(l=or[I],k+=this.attribute(l,d,y))}if(h=f.children.length,D=h===0?null:f.children[0],h===0||f.children.every(function(hi){return(hi.type===t.Text||hi.type===t.Raw)&&hi.value===""}))d.allowEmpty?(k+=">",d.state=e.CloseTag,k+=""+this.endline(f,d,y)):(d.state=e.CloseTag,k+=d.spaceBeforeSlash+"/>"+this.endline(f,d,y));else if(d.pretty&&h===1&&(D.type===t.Text||D.type===t.Raw)&&D.value!=null)k+=">",d.state=e.InsideTag,d.suppressPrettyCount++,N=!0,k+=this.writeChildNode(D,d,y+1),d.suppressPrettyCount--,N=!1,d.state=e.CloseTag,k+=""+this.endline(f,d,y);else{if(d.dontPrettyTextNodes){for(li=f.children,w=0,R=li.length;w"+this.endline(f,d,y),d.state=e.InsideTag,ci=f.children,O=0,G=ci.length;O",N&&d.suppressPrettyCount--,k+=this.endline(f,d,y),d.state=e.None}return this.closeNode(f,d,y),k}writeChildNode(f,d,y){switch(f.type){case t.CData:return this.cdata(f,d,y);case t.Comment:return this.comment(f,d,y);case t.Element:return this.element(f,d,y);case t.Raw:return this.raw(f,d,y);case t.Text:return this.text(f,d,y);case t.ProcessingInstruction:return this.processingInstruction(f,d,y);case t.Dummy:return"";case t.Declaration:return this.declaration(f,d,y);case t.DocType:return this.docType(f,d,y);case t.AttributeDeclaration:return this.dtdAttList(f,d,y);case t.ElementDeclaration:return this.dtdElement(f,d,y);case t.EntityDeclaration:return this.dtdEntity(f,d,y);case t.NotationDeclaration:return this.dtdNotation(f,d,y);default:throw new Error("Unknown XML node type: "+f.constructor.name)}}processingInstruction(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+"",l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}raw(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y),d.state=e.InsideTag,l+=f.value,d.state=e.CloseTag,l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}text(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y),d.state=e.InsideTag,l+=f.value,d.state=e.CloseTag,l+=this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdAttList(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdElement(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdEntity(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}dtdNotation(f,d,y){var l;return this.openNode(f,d,y),d.state=e.OpenTag,l=this.indent(f,d,y)+""+this.endline(f,d,y),d.state=e.None,this.closeNode(f,d,y),l}openNode(f,d,y){}closeNode(f,d,y){}openAttribute(f,d,y){}closeAttribute(f,d,y){}}}).call(nh)});var si=v((oh,ah)=>{(function(){var t,e;e=Js(),ah.exports=t=class extends e{constructor(i){super(i)}document(i,s){var n,u,a,o,c;for(s=this.filterOptions(s),o="",c=i.children,u=0,a=c.length;u{(function(){var t,e,r,i,s,n,u,a;({isPlainObject:a}=Te()),r=Hs(),e=dc(),s=ue(),t=H(),u=Ks(),n=si(),ch.exports=i=(function(){class o extends s{constructor(g){super(null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new e,g||(g={}),g.writer||(g.writer=new n),this.options=g,this.stringify=new u(g)}end(g){var p;return p={},g?a(g)&&(p=g,g=this.options.writer):g=this.options.writer,g.document(this,g.filterOptions(p))}toString(g){return this.options.writer.document(this,this.options.writer.filterOptions(g))}createElement(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(g,p){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(g,p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(g,p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(g,p,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(o.prototype,"implementation",{value:new r}),Object.defineProperty(o.prototype,"doctype",{get:function(){var c,g,p,m;for(m=this.children,g=0,p=m.length;g{(function(){var t,e,r,i,s,n,u,a,o,c,g,p,m,A,C,S,T,x,B,f,d,y,l,b={}.hasOwnProperty;({isObject:y,isFunction:d,isPlainObject:l,getValue:f}=Te()),t=H(),p=Zs(),A=Yr(),i=Hr(),s=Wr(),S=ti(),B=ri(),C=ii(),c=zr(),g=ei(),n=Kr(),a=Jr(),u=Zr(),o=Qr(),r=Ws(),x=Ks(),T=si(),e=sr(),dh.exports=m=class{constructor(h,D,w){var O;this.name="?xml",this.type=t.Document,h||(h={}),O={},h.writer?l(h.writer)&&(O=h.writer,h.writer=new T):h.writer=new T,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(O),this.stringify=new x(h),this.onDataCallback=D||function(){},this.onEndCallback=w||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(h){var D,w,O,P,R,G,I,N;switch(h.type){case t.CData:this.cdata(h.value);break;case t.Comment:this.comment(h.value);break;case t.Element:O={},I=h.attribs;for(w in I)b.call(I,w)&&(D=I[w],O[w]=D.value);this.node(h.name,O);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(h.value);break;case t.Text:this.text(h.value);break;case t.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(N=h.children,R=0,G=N.length;R=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(h){var D,w,O,P;if(!h.isOpen){if(!this.root&&this.currentLevel===0&&h.type===t.Element&&(this.root=h),w="",h.type===t.Element){this.writerOptions.state=e.OpenTag,w=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,P=h.attribs;for(O in P)b.call(P,O)&&(D=P[O],w+=this.writer.attribute(D,this.writerOptions,this.currentLevel));w+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=e.InsideTag}else this.writerOptions.state=e.OpenTag,w=this.writer.indent(h,this.writerOptions,this.currentLevel)+""),w+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(w,this.currentLevel),h.isOpen=!0}}closeNode(h){var D;if(!h.isClosed)return D="",this.writerOptions.state=e.CloseTag,h.type===t.Element?D=this.writer.indent(h,this.writerOptions,this.currentLevel)+""+this.writer.endline(h,this.writerOptions,this.currentLevel):D=this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=e.None,this.onData(D,this.currentLevel),h.isClosed=!0}onData(h,D){return this.documentStarted=!0,this.onDataCallback(h,D+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(h){return h==null?"":"node: <"+h+">"}ele(){return this.element(...arguments)}nod(h,D,w){return this.node(h,D,w)}txt(h){return this.text(h)}dat(h){return this.cdata(h)}com(h){return this.comment(h)}ins(h,D){return this.instruction(h,D)}dec(h,D,w){return this.declaration(h,D,w)}dtd(h,D,w){return this.doctype(h,D,w)}e(h,D,w){return this.element(h,D,w)}n(h,D,w){return this.node(h,D,w)}t(h){return this.text(h)}d(h){return this.cdata(h)}c(h){return this.comment(h)}r(h){return this.raw(h)}i(h,D){return this.instruction(h,D)}att(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(h,D){return this.entity(h,D)}pent(h,D){return this.pEntity(h,D)}not(h,D){return this.notation(h,D)}}}).call(hh)});var mh=v((ph,gh)=>{(function(){var t,e,r,i,s={}.hasOwnProperty;t=H(),i=Js(),e=sr(),gh.exports=r=class extends i{constructor(u,a){super(a),this.stream=u}endline(u,a,o){return u.isLastRootNode&&a.state===e.CloseTag?"":super.endline(u,a,o)}document(u,a){var o,c,g,p,m,A,C,S,T;for(C=u.children,c=g=0,m=C.length;g0){for(this.stream.write(" ["),this.stream.write(this.endline(u,a,o)),a.state=e.InsideTag,m=u.children,g=0,p=m.length;g"),this.stream.write(this.endline(u,a,o)),a.state=e.None,this.closeNode(u,a,o)}element(u,a,o){var c,g,p,m,A,C,S,T,x,B,f,d,y,l,b,E;if(o||(o=0),this.openNode(u,a,o),a.state=e.OpenTag,f=this.indent(u,a,o)+"<"+u.name,a.pretty&&a.width>0){S=f.length,y=u.attribs;for(x in y)s.call(y,x)&&(c=y[x],d=this.attribute(c,a,o),g=d.length,S+g>a.width?(E=this.indent(u,a,o+1)+d,f+=this.endline(u,a,o)+E,S=E.length):(E=" "+d,f+=E,S+=E.length))}else{l=u.attribs;for(x in l)s.call(l,x)&&(c=l[x],f+=this.attribute(c,a,o))}if(this.stream.write(f),m=u.children.length,A=m===0?null:u.children[0],m===0||u.children.every(function(h){return(h.type===t.Text||h.type===t.Raw)&&h.value===""}))a.allowEmpty?(this.stream.write(">"),a.state=e.CloseTag,this.stream.write("")):(a.state=e.CloseTag,this.stream.write(a.spaceBeforeSlash+"/>"));else if(a.pretty&&m===1&&(A.type===t.Text||A.type===t.Raw)&&A.value!=null)this.stream.write(">"),a.state=e.InsideTag,a.suppressPrettyCount++,B=!0,this.writeChildNode(A,a,o+1),a.suppressPrettyCount--,B=!1,a.state=e.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(u,a,o)),a.state=e.InsideTag,b=u.children,C=0,T=b.length;C")}return this.stream.write(this.endline(u,a,o)),a.state=e.None,this.closeNode(u,a,o)}processingInstruction(u,a,o){return this.stream.write(super.processingInstruction(u,a,o))}raw(u,a,o){return this.stream.write(super.raw(u,a,o))}text(u,a,o){return this.stream.write(super.text(u,a,o))}dtdAttList(u,a,o){return this.stream.write(super.dtdAttList(u,a,o))}dtdElement(u,a,o){return this.stream.write(super.dtdElement(u,a,o))}dtdEntity(u,a,o){return this.stream.write(super.dtdEntity(u,a,o))}dtdNotation(u,a,o){return this.stream.write(super.dtdNotation(u,a,o))}}}).call(ph)});var Dh=v((bh,Ke)=>{(function(){var t,e,r,i,s,n,u,a,o;({assign:a,isFunction:o}=Te()),r=Hs(),i=Zs(),s=fh(),u=si(),n=mh(),t=H(),e=sr(),Ke.exports.create=function(c,g,p,m){var A,C;if(c==null)throw new Error("Root element needs a name.");return m=a({},g,p,m),A=new i(m),C=A.element(c),m.headless||(A.declaration(m),(m.pubID!=null||m.sysID!=null)&&A.dtd(m)),C},Ke.exports.begin=function(c,g,p){return o(c)&&([g,p]=[c,g],c={}),g?new s(c,g,p):new i(c)},Ke.exports.stringWriter=function(c){return new u(c)},Ke.exports.streamWriter=function(c,g){return new n(c,g)},Ke.exports.implementation=new r,Ke.exports.nodeType=t,Ke.exports.writerState=e}).call(bh)});var wh=v(xt=>{"use strict";var Eh=xt&&xt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xt,"__esModule",{value:!0});xt.build=void 0;var yh=Eh(ec()),xm=Eh(Dh());function Tm(t){function e(r){return r<10?"0"+r:r}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())+"Z"}var Sm=Object.prototype.toString;function Ah(t){let e=Sm.call(t).match(/\[object (.*)\]/);return e&&e[1]}function Nm(t,e){let r={version:"1.0",encoding:"UTF-8"},i={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},s=xm.default.create("plist");return s.dec(r.version,r.encoding,r.standalone),s.dtd(i.pubid,i.sysid),s.att("version","1.0"),Qs(t,s),e||(e={}),e.pretty=e.pretty!==!1,s.end(e)}xt.build=Nm;function Qs(t,e){let r,i,s,n=Ah(t);if(n!="Undefined")if(Array.isArray(t))for(e=e.ele("array"),i=0;i{"use strict";var Om=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.parse=void 0;var Im=$r(),Tt=Om(Se("assert")),ni=3,vh=4,_m=8;function en(t){return t.nodeType===ni||t.nodeType===_m||t.nodeType===vh}function $e(t){return!t.childNodes||t.childNodes.length===0}function Pm(t){let e=new Im.DOMParser({errorHandler(){}}).parseFromString(t);Tt.default(e.documentElement.nodeName==="plist","malformed document. First element should be ");let r=St(e.documentElement);return r.length==1&&(r=r[0]),r}Nt.parse=Pm;function St(t){let e,r,i,s,n,u;if(!t)return null;if(t.nodeName==="plist"){if(s=[],$e(t))return s;for(e=0;e."),i=St(t.childNodes[e])):(Tt.default(t.childNodes[e].nodeName!=="key",'Unexpected key "'+St(t.childNodes[e])+'" while parsing .'),r[i]=St(t.childNodes[e])),u+=1);if(u%2===1)throw new Error('Missing value for "'+i+'" while parsing ');return r}else if(t.nodeName==="array"){if(s=[],$e(t))return s;for(e=0;e{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});var Rm=wh(),Lm=Ch();tn.default={parse:Lm.parse,build:Rm.build}});var Th=v(Je=>{"use strict";var Bm=Je&&Je.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Je,"__esModule",{value:!0});Je.buildChecks=Je.parseChecks=void 0;var xh=Bm(rn());function Mm(t){let e=xh.default.parse(t),r={};for(let[i,s]of Object.entries(e))typeof s=="boolean"&&(r[i]=s);return r}Je.parseChecks=Mm;function Fm(t){let e={};for(let[r,i]of Object.entries(t))typeof i=="boolean"&&(e[r]=i);return xh.default.build(e)}Je.buildChecks=Fm});var Nh=v(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0})});var Ih=v(Z=>{"use strict";var qm=Z&&Z.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),$m=Z&&Z.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qm(e,t,r)};Object.defineProperty(Z,"__esModule",{value:!0});Z.buildChecks=Z.parseChecks=Z.build=Z.parse=void 0;var Um=Hl();Object.defineProperty(Z,"parse",{enumerable:!0,get:function(){return Um.parse}});var jm=Jl();Object.defineProperty(Z,"build",{enumerable:!0,get:function(){return jm.build}});var Oh=Th();Object.defineProperty(Z,"parseChecks",{enumerable:!0,get:function(){return Oh.parseChecks}});Object.defineProperty(Z,"buildChecks",{enumerable:!0,get:function(){return Oh.buildChecks}});$m(Nh(),Z)});var Ph=v(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.parse=void 0;var km=$r();function Xm(t){let i=new km.DOMParser().parseFromString(t,"text/xml").documentElement;if(!i||i.tagName!=="Scheme")throw new Error("Invalid xcscheme file: root element must be ");return Vm(i)}ui.parse=Xm;function Vm(t){let e={};e.version=L(t,"version"),e.lastUpgradeVersion=L(t,"LastUpgradeVersion");let r=M(t,"BuildAction");r&&(e.buildAction=Gm(r));let i=M(t,"TestAction");i&&(e.testAction=zm(i));let s=M(t,"LaunchAction");s&&(e.launchAction=Zm(s));let n=M(t,"ProfileAction");n&&(e.profileAction=r2(n));let u=M(t,"AnalyzeAction");u&&(e.analyzeAction=i2(u));let a=M(t,"ArchiveAction");return a&&(e.archiveAction=s2(a)),e}function Gm(t){let e={};e.parallelizeBuildables=$(t,"parallelizeBuildables"),e.buildImplicitDependencies=$(t,"buildImplicitDependencies"),e.runPostActionsOnFailure=$(t,"runPostActionsOnFailure"),e.buildArchitectures=L(t,"buildArchitectures");let r=M(t,"BuildActionEntries");return r&&(e.entries=Ze(r,"BuildActionEntry").map(Ym)),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function Ym(t){let e={};e.buildForRunning=$(t,"buildForRunning"),e.buildForTesting=$(t,"buildForTesting"),e.buildForProfiling=$(t,"buildForProfiling"),e.buildForArchiving=$(t,"buildForArchiving"),e.buildForAnalyzing=$(t,"buildForAnalyzing");let r=M(t,"BuildableReference");return r&&(e.buildableReference=nt(r)),e}function nt(t){return{buildableIdentifier:L(t,"BuildableIdentifier")||"primary",blueprintIdentifier:L(t,"BlueprintIdentifier")||"",buildableName:L(t,"BuildableName")||"",blueprintName:L(t,"BlueprintName")||"",referencedContainer:L(t,"ReferencedContainer")||""}}function ae(t,e){let r=M(t,e);if(!r)return;let i=Ze(r,"ExecutionAction");if(i.length!==0)return i.map(Hm)}function Hm(t){let e={};e.actionType=L(t,"ActionType");let r=M(t,"ActionContent");return r&&(e.actionContent=Wm(r)),e}function Wm(t){let e={};e.title=L(t,"title"),e.scriptText=L(t,"scriptText"),e.shellToInvoke=L(t,"shellToInvoke");let r=M(t,"EnvironmentBuildable");if(r){let i=M(r,"BuildableReference");i&&(e.environmentBuildable=nt(i))}return e}function zm(t){let e={};e.buildConfiguration=L(t,"buildConfiguration"),e.selectedDebuggerIdentifier=L(t,"selectedDebuggerIdentifier"),e.selectedLauncherIdentifier=L(t,"selectedLauncherIdentifier"),e.shouldUseLaunchSchemeArgsEnv=$(t,"shouldUseLaunchSchemeArgsEnv"),e.shouldAutocreateTestPlan=$(t,"shouldAutocreateTestPlan"),e.preferredScreenCaptureFormat=L(t,"preferredScreenCaptureFormat"),e.codeCoverageEnabled=$(t,"codeCoverageEnabled"),e.onlyGenerateCoverageForSpecifiedTargets=$(t,"onlyGenerateCoverageForSpecifiedTargets");let r=M(t,"Testables");r&&(e.testables=Ze(r,"TestableReference").map(Km));let i=M(t,"TestPlans");i&&(e.testPlans=Ze(i,"TestPlanReference").map(Jm));let s=M(t,"MacroExpansion");if(s){let n=M(s,"BuildableReference");n&&(e.macroExpansion=nt(n))}return e.commandLineArguments=sn(t),e.environmentVariables=nn(t),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function Km(t){let e={};e.skipped=$(t,"skipped"),e.parallelizable=$(t,"parallelizable"),e.useTestSelectionWhitelist=$(t,"useTestSelectionWhitelist");let r=M(t,"BuildableReference");r&&(e.buildableReference=nt(r));let i=M(t,"SkippedTests");i&&(e.skippedTests=Ze(i,"Test").map(n=>({identifier:L(n,"Identifier")||""})));let s=M(t,"SelectedTests");return s&&(e.selectedTests=Ze(s,"Test").map(n=>({identifier:L(n,"Identifier")||""}))),e}function Jm(t){return{reference:L(t,"reference")||"",default:$(t,"default")}}function Zm(t){let e={};e.buildConfiguration=L(t,"buildConfiguration"),e.selectedDebuggerIdentifier=L(t,"selectedDebuggerIdentifier"),e.selectedLauncherIdentifier=L(t,"selectedLauncherIdentifier"),e.launchStyle=L(t,"launchStyle"),e.useCustomWorkingDirectory=$(t,"useCustomWorkingDirectory"),e.customWorkingDirectory=L(t,"customWorkingDirectory"),e.ignoresPersistentStateOnLaunch=$(t,"ignoresPersistentStateOnLaunch"),e.debugDocumentVersioning=$(t,"debugDocumentVersioning"),e.debugServiceExtension=L(t,"debugServiceExtension"),e.allowLocationSimulation=$(t,"allowLocationSimulation"),e.customLaunchCommand=L(t,"customLaunchCommand"),e.appClipInvocationURLString=L(t,"appClipInvocationURLString"),e.askForAppToLaunch=$(t,"askForAppToLaunch"),e.launchAutomaticallySubstyle=L(t,"launchAutomaticallySubstyle");let r=M(t,"BuildableProductRunnable");r&&(e.buildableProductRunnable=_h(r));let i=M(t,"RemoteRunnable");i&&(e.remoteRunnable=Qm(i));let s=M(t,"MacroExpansion");if(s){let a=M(s,"BuildableReference");a&&(e.macroExpansion=nt(a))}let n=M(t,"LocationScenarioReference");n&&(e.locationScenarioReference=e2(n));let u=M(t,"StoreKitConfigurationFileReference");return u&&(e.storeKitConfigurationFileReference=t2(u)),e.commandLineArguments=sn(t),e.environmentVariables=nn(t),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function _h(t){let e={};e.runnableDebuggingMode=L(t,"runnableDebuggingMode");let r=M(t,"BuildableReference");return r&&(e.buildableReference=nt(r)),e}function Qm(t){let e={};e.runnableDebuggingMode=L(t,"runnableDebuggingMode"),e.bundleIdentifier=L(t,"BundleIdentifier"),e.remotePath=L(t,"RemotePath");let r=M(t,"BuildableReference");return r&&(e.buildableReference=nt(r)),e}function e2(t){return{identifier:L(t,"identifier"),referenceType:L(t,"referenceType")}}function t2(t){return{identifier:L(t,"identifier")}}function r2(t){let e={};e.buildConfiguration=L(t,"buildConfiguration"),e.shouldUseLaunchSchemeArgsEnv=$(t,"shouldUseLaunchSchemeArgsEnv"),e.savedToolIdentifier=L(t,"savedToolIdentifier"),e.useCustomWorkingDirectory=$(t,"useCustomWorkingDirectory"),e.debugDocumentVersioning=$(t,"debugDocumentVersioning"),e.askForAppToLaunch=$(t,"askForAppToLaunch"),e.launchAutomaticallySubstyle=L(t,"launchAutomaticallySubstyle"),e.appClipInvocationURLString=L(t,"appClipInvocationURLString");let r=M(t,"BuildableProductRunnable");return r&&(e.buildableProductRunnable=_h(r)),e.commandLineArguments=sn(t),e.environmentVariables=nn(t),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function i2(t){let e={};return e.buildConfiguration=L(t,"buildConfiguration"),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function s2(t){let e={};return e.buildConfiguration=L(t,"buildConfiguration"),e.customArchiveName=L(t,"customArchiveName"),e.revealArchiveInOrganizer=$(t,"revealArchiveInOrganizer"),e.preActions=ae(t,"PreActions"),e.postActions=ae(t,"PostActions"),e}function sn(t){let e=M(t,"CommandLineArguments");if(!e)return;let r=Ze(e,"CommandLineArgument");if(r.length!==0)return r.map(i=>({argument:L(i,"argument")||"",isEnabled:$(i,"isEnabled")}))}function nn(t){let e=M(t,"EnvironmentVariables");if(!e)return;let r=Ze(e,"EnvironmentVariable");if(r.length!==0)return r.map(i=>({key:L(i,"key")||"",value:L(i,"value")||"",isEnabled:$(i,"isEnabled")}))}function L(t,e){if(t.hasAttribute(e))return t.getAttribute(e)??void 0}function $(t,e){let r=t.getAttribute(e);if(r==="YES"||r==="Yes")return!0;if(r==="NO"||r==="No")return!1}function M(t,e){let r=t.childNodes;for(let i=0;i{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.build=void 0;function n2(t){let e=[];e.push(''),e.push("` ${i}`)),e[e.length-1]+=">",t.buildAction&&e.push(...o2(t.buildAction,1)),t.testAction&&e.push(...h2(t.testAction,1)),t.launchAction&&e.push(...p2(t.launchAction,1)),t.profileAction&&e.push(...D2(t.profileAction,1)),t.analyzeAction&&e.push(...y2(t.analyzeAction,1)),t.archiveAction&&e.push(...A2(t.archiveAction,1)),e.push(""),e.join(` +`}i4.build=s2;function d4($,Y){let Z=s4(Y);return[`${Z} +${Z}`]}function l4($,Y){let Z=[],J=s4(Y),K=[];if($.location!==void 0)K.push(`location = "${rY($.location)}"`);if($.name!==void 0)K.push(`name = "${rY($.name)}"`);Z.push(`${J}`),Z}function s4($){return" ".repeat($)}function rY($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var o4=C(($V)=>{$V.byteLength=r2;$V.toByteArray=a2;$V.fromByteArray=e2;var I1=[],G1=[],i2=typeof Uint8Array<"u"?Uint8Array:Array,nY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s1=0,aY=nY.length;s10)throw Error("Invalid string. Length must be a multiple of 4");var Z=$.indexOf("=");if(Z===-1)Z=Y;var J=Z===Y?0:4-Z%4;return[Z,J]}function r2($){var Y=a4($),Z=Y[0],J=Y[1];return(Z+J)*3/4-J}function n2($,Y,Z){return(Y+Z)*3/4-Z}function a2($){var Y,Z=a4($),J=Z[0],K=Z[1],z=new i2(n2($,J,K)),Q=0,W=K>0?J-4:J,G;for(G=0;G>16&255,z[Q++]=Y>>8&255,z[Q++]=Y&255;if(K===2)Y=G1[$.charCodeAt(G)]<<2|G1[$.charCodeAt(G+1)]>>4,z[Q++]=Y&255;if(K===1)Y=G1[$.charCodeAt(G)]<<10|G1[$.charCodeAt(G+1)]<<4|G1[$.charCodeAt(G+2)]>>2,z[Q++]=Y>>8&255,z[Q++]=Y&255;return z}function o2($){return I1[$>>18&63]+I1[$>>12&63]+I1[$>>6&63]+I1[$&63]}function t2($,Y,Z){var J,K=[];for(var z=Y;zW?W:Q+z));if(J===1)Y=$[Z-1],K.push(I1[Y>>2]+I1[Y<<4&63]+"==");else if(J===2)Y=($[Z-2]<<8)+$[Z-1],K.push(I1[Y>>10]+I1[Y>>4&63]+I1[Y<<2&63]+"=");return K.join("")}});var w1=C((t4,i1)=>{(function(){var $,Y,Z,J,K,z,Q,W={}.hasOwnProperty;$=function(G,...q){var H,R,P,j;if(K(Object.assign))Object.assign.apply(null,arguments);else for(H=0,P=q.length;H{(function(){var $;$K.exports=$=class{hasFeature(Z,J){return!0}createDocumentType(Z,J,K){throw Error("This DOM method is not implemented.")}createDocument(Z,J,K){throw Error("This DOM method is not implemented.")}createHTMLDocument(Z){throw Error("This DOM method is not implemented.")}getFeature(Z,J){throw Error("This DOM method is not implemented.")}}}).call(e4)});var JK=C((YK,ZK)=>{(function(){var $;ZK.exports=$=class{constructor(){}handleError(Z){throw Error(Z)}}}).call(YK)});var QK=C((KK,zK)=>{(function(){var $;zK.exports=$=function(){class Y{constructor(Z){this.arr=Z||[]}item(Z){return this.arr[Z]||null}contains(Z){return this.arr.indexOf(Z)!==-1}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.arr.length}}),Y}.call(this)}).call(KK)});var WK=C((GK,VK)=>{(function(){var $,Y,Z;Y=JK(),Z=QK(),VK.exports=$=function(){class J{constructor(){var K;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Y,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=K=Object.create(this.defaultParams)}getParameter(K){if(this.params.hasOwnProperty(K))return this.params[K];else return null}canSetParameter(K,z){return!0}setParameter(K,z){if(z!=null)return this.params[K]=z;else return delete this.params[K]}}return Object.defineProperty(J.prototype,"parameterNames",{get:function(){return new Z(Object.keys(this.defaultParams))}}),J}.call(this)}).call(GK)});var i=C((qK,HK)=>{(function(){HK.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(qK)});var tY=C((BK,FK)=>{(function(){var $,Y,Z;$=i(),Z=Q1(),FK.exports=Y=function(){class J{constructor(K,z,Q){if(this.parent=K,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(z==null)throw Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(Q),this.type=$.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(K){return this.options.writer.attribute(this,this.options.writer.filterOptions(K))}debugInfo(K){if(K=K||this.name,K==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+K+"}, parent: <"+this.parent.name+">"}isEqualNode(K){if(K.namespaceURI!==this.namespaceURI)return!1;if(K.prefix!==this.prefix)return!1;if(K.localName!==this.localName)return!1;if(K.value!==this.value)return!1;return!0}}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(J.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(J.prototype,"textContent",{get:function(){return this.value},set:function(K){return this.value=K||""}}),Object.defineProperty(J.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(J.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(J.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(J.prototype,"specified",{get:function(){return!0}}),J}.call(this)}).call(BK)});var x$=C((UK,OK)=>{(function(){var $;OK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}getNamedItem(Z){return this.nodes[Z]}setNamedItem(Z){var J=this.nodes[Z.nodeName];return this.nodes[Z.nodeName]=Z,J||null}removeNamedItem(Z){var J=this.nodes[Z];return delete this.nodes[Z],J||null}item(Z){return this.nodes[Object.keys(this.nodes)[Z]]||null}getNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}setNamedItemNS(Z){throw Error("This DOM method is not implemented.")}removeNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(Y.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Y}.call(this)}).call(UK)});var N$=C((RK,PK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G={}.hasOwnProperty;({isObject:W,isFunction:Q,getValue:z}=w1()),K=Q1(),$=i(),Y=tY(),J=x$(),PK.exports=Z=function(){class q extends K{constructor(H,R,P){var j,w,T,I;super(H);if(R==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(R),this.type=$.Element,this.attribs={},this.schemaTypeInfo=null,P!=null)this.attribute(P);if(H.type===$.Document){if(this.isRoot=!0,this.documentObject=H,H.rootObject=this,H.children){I=H.children;for(w=0,T=I.length;w=j;R=0<=j?++P:--P)if(!this.attribs[R].isEqualNode(H.attribs[R]))return!1;return!0}}return Object.defineProperty(q.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(q.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(q.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes)this.attributeMap=new J(this.attribs);return this.attributeMap}}),q}.call(this)}).call(RK)});var n0=C((AK,EK)=>{(function(){var $,Y;Y=Q1(),EK.exports=$=function(){class Z extends Y{constructor(J){super(J);this.value=""}clone(){return Object.create(this)}substringData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(J){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(J,K,z){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(J){if(!super.isEqualNode(J))return!1;if(J.data!==this.data)return!1;return!0}}return Object.defineProperty(Z.prototype,"data",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Object.defineProperty(Z.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Z}.call(this)}).call(AK)});var y$=C((CK,jK)=>{(function(){var $,Y,Z;$=i(),Z=n0(),jK.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=$.CData,this.value=this.stringify.cdata(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.cdata(this,this.options.writer.filterOptions(K))}}}).call(CK)});var b$=C((kK,XK)=>{(function(){var $,Y,Z;$=i(),Y=n0(),XK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=$.Comment,this.value=this.stringify.comment(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.comment(this,this.options.writer.filterOptions(K))}}}).call(kK)});var g$=C((IK,wK)=>{(function(){var $,Y,Z,J;({isObject:J}=w1()),Z=Q1(),$=i(),wK.exports=Y=class extends Z{constructor(z,Q,W,G){super(z);if(J(Q))({version:Q,encoding:W,standalone:G}=Q);if(!Q)Q="1.0";if(this.type=$.Declaration,this.version=this.stringify.xmlVersion(Q),W!=null)this.encoding=this.stringify.xmlEncoding(W);if(G!=null)this.standalone=this.stringify.xmlStandalone(G)}toString(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))}}}).call(IK)});var f$=C((_K,DK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),DK.exports=Y=class extends Z{constructor(K,z,Q,W,G,q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(Q==null)throw Error("Missing DTD attribute name. "+this.debugInfo(z));if(!W)throw Error("Missing DTD attribute type. "+this.debugInfo(z));if(!G)throw Error("Missing DTD attribute default. "+this.debugInfo(z));if(G.indexOf("#")!==0)G="#"+G;if(!G.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(q&&!G.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));if(this.elementName=this.stringify.name(z),this.type=$.AttributeDeclaration,this.attributeName=this.stringify.name(Q),this.attributeType=this.stringify.dtdAttType(W),q)this.defaultValue=this.stringify.dtdAttDefault(q);this.defaultValueType=G}toString(K){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(K))}}}).call(_K)});var h$=C((TK,SK)=>{(function(){var $,Y,Z,J;({isObject:J}=w1()),Z=Q1(),$=i(),SK.exports=Y=function(){class K extends Z{constructor(z,Q,W,G){super(z);if(W==null)throw Error("Missing DTD entity name. "+this.debugInfo(W));if(G==null)throw Error("Missing DTD entity value. "+this.debugInfo(W));if(this.pe=!!Q,this.name=this.stringify.name(W),this.type=$.EntityDeclaration,!J(G))this.value=this.stringify.dtdEntityValue(G),this.internal=!0;else{if(!G.pubID&&!G.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(W));if(G.pubID&&!G.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(W));if(this.internal=!1,G.pubID!=null)this.pubID=this.stringify.dtdPubID(G.pubID);if(G.sysID!=null)this.sysID=this.stringify.dtdSysID(G.sysID);if(G.nData!=null)this.nData=this.stringify.dtdNData(G.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(W))}}toString(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))}}return Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(K.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlVersion",{get:function(){return null}}),K}.call(this)}).call(TK)});var v$=C((MK,LK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),LK.exports=Y=class extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!Q)Q="(#PCDATA)";if(Array.isArray(Q))Q="("+Q.join(",")+")";this.name=this.stringify.name(z),this.type=$.ElementDeclaration,this.value=this.stringify.dtdElementValue(Q)}toString(K){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(K))}}}).call(MK)});var u$=C((xK,NK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),NK.exports=Y=function(){class J extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD notation name. "+this.debugInfo(z));if(!Q.pubID&&!Q.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));if(this.name=this.stringify.name(z),this.type=$.NotationDeclaration,Q.pubID!=null)this.pubID=this.stringify.dtdPubID(Q.pubID);if(Q.sysID!=null)this.sysID=this.stringify.dtdSysID(Q.sysID)}toString(K){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(K))}}return Object.defineProperty(J.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(J.prototype,"systemId",{get:function(){return this.sysID}}),J}.call(this)}).call(xK)});var m$=C((yK,bK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({isObject:G}=w1()),W=Q1(),$=i(),Y=f$(),J=h$(),Z=v$(),K=u$(),Q=x$(),bK.exports=z=function(){class q extends W{constructor(H,R,P){var j,w,T,I;super(H);if(this.type=$.DocType,H.children){I=H.children;for(w=0,T=I.length;w{(function(){var $,Y,Z;$=i(),Y=Q1(),fK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing raw text. "+this.debugInfo());this.type=$.Raw,this.value=this.stringify.raw(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.raw(this,this.options.writer.filterOptions(K))}}}).call(gK)});var p$=C((hK,vK)=>{(function(){var $,Y,Z;$=i(),Y=n0(),vK.exports=Z=function(){class J extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=$.Text,this.value=this.stringify.text(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.text(this,this.options.writer.filterOptions(K))}splitText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(J.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(J.prototype,"wholeText",{get:function(){var K,z,Q;Q="",z=this.previousSibling;while(z)Q=z.data+Q,z=z.previousSibling;Q+=this.data,K=this.nextSibling;while(K)Q=Q+K.data,K=K.nextSibling;return Q}}),J}.call(this)}).call(hK)});var d$=C((uK,mK)=>{(function(){var $,Y,Z;$=i(),Y=n0(),mK.exports=Z=class extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.type=$.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,Q)this.value=this.stringify.insValue(Q)}clone(){return Object.create(this)}toString(K){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(K))}isEqualNode(K){if(!super.isEqualNode(K))return!1;if(K.target!==this.target)return!1;return!0}}}).call(uK)});var eY=C((cK,pK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),pK.exports=Y=class extends Z{constructor(K){super(K);this.type=$.Dummy}clone(){return Object.create(this)}toString(K){return""}}}).call(cK)});var sK=C((dK,lK)=>{(function(){var $;lK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}item(Z){return this.nodes[Z]||null}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.nodes.length||0}}),Y}.call(this)}).call(dK)});var nK=C((iK,rK)=>{(function(){rK.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(iK)});var Q1=C((aK,oK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,j,w,T,I,D,y={}.hasOwnProperty,O=[].splice;({isObject:D,isFunction:I,isEmpty:T,getValue:w}=w1()),W=null,Z=null,J=null,K=null,z=null,P=null,j=null,R=null,Q=null,Y=null,H=null,G=null,$=null,oK.exports=q=function(){class B{constructor(V){if(this.parent=V,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.value=null,this.children=[],this.baseURI=null,!W)W=N$(),Z=y$(),J=b$(),K=g$(),z=m$(),P=c$(),j=p$(),R=d$(),Q=eY(),Y=i(),H=sK(),G=x$(),$=nK()}setParent(V){var U,E,X,F,A;if(this.parent=V,V)this.options=V.options,this.stringify=V.stringify;F=this.children,A=[];for(E=0,X=F.length;E";else if(!((E=this.parent)!=null?E.name:void 0))return"node: <"+V+">";else return"node: <"+V+">, parent: <"+this.parent.name+">"}ele(V,U,E){return this.element(V,U,E)}nod(V,U,E){return this.node(V,U,E)}txt(V){return this.text(V)}dat(V){return this.cdata(V)}com(V){return this.comment(V)}ins(V,U){return this.instruction(V,U)}doc(){return this.document()}dec(V,U,E){return this.declaration(V,U,E)}e(V,U,E){return this.element(V,U,E)}n(V,U,E){return this.node(V,U,E)}t(V){return this.text(V)}d(V){return this.cdata(V)}c(V){return this.comment(V)}r(V){return this.raw(V)}i(V,U){return this.instruction(V,U)}u(){return this.up()}importXMLBuilder(V){return this.importDocument(V)}attribute(V,U){throw Error("attribute() applies to element nodes only.")}att(V,U){return this.attribute(V,U)}a(V,U){return this.attribute(V,U)}removeAttribute(V){throw Error("attribute() applies to element nodes only.")}replaceChild(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(V,U){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(V){var U,E;if(U=this,U===V)return 0;else if(this.document()!==V.document()){if(E=$.Disconnected|$.ImplementationSpecific,Math.random()<0.5)E|=$.Preceding;else E|=$.Following;return E}else if(U.isAncestor(V))return $.Contains|$.Preceding;else if(U.isDescendant(V))return $.Contains|$.Following;else if(U.isPreceding(V))return $.Preceding;else return $.Following}isSameNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(V){var U,E,X;if(V.nodeType!==this.nodeType)return!1;if(V.children.length!==this.children.length)return!1;for(U=E=0,X=this.children.length-1;0<=X?E<=X:E>=X;U=0<=X?++E:--E)if(!this.children[U].isEqualNode(V.children[U]))return!1;return!0}getFeature(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(V,U,E){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(V){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(V){if(!V)return!1;return V===this||this.isDescendant(V)}isDescendant(V){var U,E,X,F,A;A=this.children;for(X=0,F=A.length;XE}treePosition(V){var U,E;if(E=0,U=!1,this.foreachTreeNode(this.document(),function(X){if(E++,!U&&X===V)return U=!0}),U)return E;else return-1}foreachTreeNode(V,U){var E,X,F,A,k;V||(V=this.document()),A=V.children;for(X=0,F=A.length;X{(function(){var $,Y={}.hasOwnProperty;eK.exports=$=function(){class Z{constructor(J){var K,z,Q;if(this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),J||(J={}),this.options=J,!this.options.version)this.options.version="1.0";z=J.stringify||{};for(K in z){if(!Y.call(z,K))continue;Q=z[K],this[K]=Q}}name(J){if(this.options.noValidation)return J;return this.assertLegalName(""+J||"")}text(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.textEscape(""+J||""))}cdata(J){if(this.options.noValidation)return J;return J=""+J||"",J=J.replace("]]>","]]]]>"),this.assertLegalChar(J)}comment(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/--/))throw Error("Comment text cannot contain double-hypen: "+J);return this.assertLegalChar(J)}raw(J){if(this.options.noValidation)return J;return""+J||""}attValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.attEscape(J=""+J||""))}insTarget(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}insValue(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/\?>/))throw Error("Invalid processing instruction value: "+J);return this.assertLegalChar(J)}xmlVersion(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/1\.[0-9]+/))throw Error("Invalid version number: "+J);return J}xmlEncoding(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+J);return this.assertLegalChar(J)}xmlStandalone(J){if(this.options.noValidation)return J;if(J)return"yes";else return"no"}dtdPubID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdSysID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdElementValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttType(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttDefault(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdEntityValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdNData(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}assertLegalChar(J){var K,z;if(this.options.noValidation)return J;if(K="",this.options.version==="1.0"){if(K=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}else if(this.options.version==="1.1"){if(K=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}return J}assertLegalName(J){var K;if(this.options.noValidation)return J;if(this.assertLegalChar(J),K=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!J.match(K))throw Error("Invalid character in name");return J}textEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(//g,">").replace(/\r/g," ")}attEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(/{(function(){Yz.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call($z)});var YZ=C((Zz,Jz)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,j,w,T,I,D={}.hasOwnProperty;({assign:I}=w1()),$=i(),G=g$(),q=m$(),Z=y$(),J=b$(),R=N$(),j=c$(),w=p$(),P=d$(),H=eY(),K=f$(),z=v$(),Q=h$(),W=u$(),Y=a0(),Jz.exports=T=class{constructor(O){var B,V,U;O||(O={}),this.options=O,V=O.writer||{};for(B in V){if(!D.call(V,B))continue;U=V[B],this["_"+B]=this[B],this[B]=U}}filterOptions(O){var B,V,U,E,X,F,A,k,S;if(O||(O={}),O=I({},this.options,O),B={writer:this},B.pretty=O.pretty||!1,B.allowEmpty=O.allowEmpty||!1,B.indent=(V=O.indent)!=null?V:" ",B.newline=(U=O.newline)!=null?U:` +`,B.offset=(E=O.offset)!=null?E:0,B.width=(X=O.width)!=null?X:0,B.dontPrettyTextNodes=(F=(A=O.dontPrettyTextNodes)!=null?A:O.dontprettytextnodes)!=null?F:0,B.spaceBeforeSlash=(k=(S=O.spaceBeforeSlash)!=null?S:O.spacebeforeslash)!=null?k:"",B.spaceBeforeSlash===!0)B.spaceBeforeSlash=" ";return B.suppressPrettyCount=0,B.user={},B.state=Y.None,B}indent(O,B,V){var U;if(!B.pretty||B.suppressPrettyCount)return"";else if(B.pretty){if(U=(V||0)+B.offset+1,U>0)return Array(U).join(B.indent)}return""}endline(O,B,V){if(!B.pretty||B.suppressPrettyCount)return"";else return B.newline}attribute(O,B,V){var U;if(this.openAttribute(O,B,V),B.pretty&&B.width>0)U=O.name+'="'+O.value+'"';else U=" "+O.name+'="'+O.value+'"';return this.closeAttribute(O,B,V),U}cdata(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}comment(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}declaration(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}docType(O,B,V){var U,E,X,F,A;if(V||(V=0),this.openNode(O,B,V),B.state=Y.OpenTag,F=this.indent(O,B,V),F+="0){F+=" [",F+=this.endline(O,B,V),B.state=Y.InsideTag,A=O.children;for(E=0,X=A.length;E",F+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),F}element(O,B,V){var U,E,X,F,A,k,S,M,h,c,_,L,p,u1,e0,$$,n$,a$,G0;if(V||(V=0),L=!1,this.openNode(O,B,V),B.state=Y.OpenTag,p=this.indent(O,B,V)+"<"+O.name,B.pretty&&B.width>0){M=p.length,e0=O.attribs;for(_ in e0){if(!D.call(e0,_))continue;if(U=e0[_],u1=this.attribute(U,B,V),E=u1.length,M+E>B.width)G0=this.indent(O,B,V+1)+u1,p+=this.endline(O,B,V)+G0,M=G0.length;else G0=" "+u1,p+=G0,M+=G0.length}}else{$$=O.attribs;for(_ in $$){if(!D.call($$,_))continue;U=$$[_],p+=this.attribute(U,B,V)}}if(F=O.children.length,A=F===0?null:O.children[0],F===0||O.children.every(function(o$){return(o$.type===$.Text||o$.type===$.Raw)&&o$.value===""}))if(B.allowEmpty)p+=">",B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else B.state=Y.CloseTag,p+=B.spaceBeforeSlash+"/>"+this.endline(O,B,V);else if(B.pretty&&F===1&&(A.type===$.Text||A.type===$.Raw)&&A.value!=null)p+=">",B.state=Y.InsideTag,B.suppressPrettyCount++,L=!0,p+=this.writeChildNode(A,B,V+1),B.suppressPrettyCount--,L=!1,B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else{if(B.dontPrettyTextNodes){n$=O.children;for(k=0,h=n$.length;k"+this.endline(O,B,V),B.state=Y.InsideTag,a$=O.children;for(S=0,c=a$.length;S",L)B.suppressPrettyCount--;p+=this.endline(O,B,V),B.state=Y.None}return this.closeNode(O,B,V),p}writeChildNode(O,B,V){switch(O.type){case $.CData:return this.cdata(O,B,V);case $.Comment:return this.comment(O,B,V);case $.Element:return this.element(O,B,V);case $.Raw:return this.raw(O,B,V);case $.Text:return this.text(O,B,V);case $.ProcessingInstruction:return this.processingInstruction(O,B,V);case $.Dummy:return"";case $.Declaration:return this.declaration(O,B,V);case $.DocType:return this.docType(O,B,V);case $.AttributeDeclaration:return this.dtdAttList(O,B,V);case $.ElementDeclaration:return this.dtdElement(O,B,V);case $.EntityDeclaration:return this.dtdEntity(O,B,V);case $.NotationDeclaration:return this.dtdNotation(O,B,V);default:throw Error("Unknown XML node type: "+O.constructor.name)}}processingInstruction(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}raw(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}text(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdAttList(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdElement(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdEntity(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdNotation(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}openNode(O,B,V){}closeNode(O,B,V){}openAttribute(O,B,V){}closeAttribute(O,B,V){}}}).call(Zz)});var l$=C((Kz,zz)=>{(function(){var $,Y;Y=YZ(),zz.exports=$=class extends Y{constructor(J){super(J)}document(J,K){var z,Q,W,G,q;K=this.filterOptions(K),G="",q=J.children;for(Q=0,W=q.length;Q{(function(){var $,Y,Z,J,K,z,Q,W;({isPlainObject:W}=w1()),Z=oY(),Y=WK(),K=Q1(),$=i(),Q=$Z(),z=l$(),Gz.exports=J=function(){class G extends K{constructor(q){super(null);if(this.name="#document",this.type=$.Document,this.documentURI=null,this.domConfig=new Y,q||(q={}),!q.writer)q.writer=new z;this.options=q,this.stringify=new Q(q)}end(q){var H={};if(!q)q=this.options.writer;else if(W(q))H=q,q=this.options.writer;return q.document(this,q.filterOptions(H))}toString(q){return this.options.writer.document(this,this.options.writer.filterOptions(q))}createElement(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(q){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(q){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(G.prototype,"implementation",{value:new Z}),Object.defineProperty(G.prototype,"doctype",{get:function(){var q,H,R,P;P=this.children;for(H=0,R=P.length;H{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,j,w,T,I,D,y,O,B,V,U,E={}.hasOwnProperty;({isObject:V,isFunction:B,isPlainObject:U,getValue:O}=w1()),$=i(),R=ZZ(),j=N$(),J=y$(),K=b$(),T=c$(),y=p$(),w=d$(),q=g$(),H=m$(),z=f$(),W=h$(),Q=v$(),G=u$(),Z=tY(),D=$Z(),I=l$(),Y=a0(),Wz.exports=P=class{constructor(F,A,k){var S;if(this.name="?xml",this.type=$.Document,F||(F={}),S={},!F.writer)F.writer=new I;else if(U(F.writer))S=F.writer,F.writer=new I;this.options=F,this.writer=F.writer,this.writerOptions=this.writer.filterOptions(S),this.stringify=new D(F),this.onDataCallback=A||function(){},this.onEndCallback=k||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(F){var A,k,S,M,h,c,_,L;switch(F.type){case $.CData:this.cdata(F.value);break;case $.Comment:this.comment(F.value);break;case $.Element:S={},_=F.attribs;for(k in _){if(!E.call(_,k))continue;A=_[k],S[k]=A.value}this.node(F.name,S);break;case $.Dummy:this.dummy();break;case $.Raw:this.raw(F.value);break;case $.Text:this.text(F.value);break;case $.ProcessingInstruction:this.instruction(F.target,F.value);break;default:throw Error("This XML node type is not supported in a JS object: "+F.constructor.name)}L=F.children;for(h=0,c=L.length;h=0)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(F){var A,k,S,M;if(!F.isOpen){if(!this.root&&this.currentLevel===0&&F.type===$.Element)this.root=F;if(k="",F.type===$.Element){this.writerOptions.state=Y.OpenTag,k=this.writer.indent(F,this.writerOptions,this.currentLevel)+"<"+F.name,M=F.attribs;for(S in M){if(!E.call(M,S))continue;A=M[S],k+=this.writer.attribute(A,this.writerOptions,this.currentLevel)}k+=(F.children?">":"/>")+this.writer.endline(F,this.writerOptions,this.currentLevel),this.writerOptions.state=Y.InsideTag}else{if(this.writerOptions.state=Y.OpenTag,k=this.writer.indent(F,this.writerOptions,this.currentLevel)+"";k+=this.writer.endline(F,this.writerOptions,this.currentLevel)}return this.onData(k,this.currentLevel),F.isOpen=!0}}closeNode(F){var A;if(!F.isClosed){if(A="",this.writerOptions.state=Y.CloseTag,F.type===$.Element)A=this.writer.indent(F,this.writerOptions,this.currentLevel)+""+this.writer.endline(F,this.writerOptions,this.currentLevel);else A=this.writer.indent(F,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(F,this.writerOptions,this.currentLevel);return this.writerOptions.state=Y.None,this.onData(A,this.currentLevel),F.isClosed=!0}}onData(F,A){return this.documentStarted=!0,this.onDataCallback(F,A+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(F){if(F==null)return"";else return"node: <"+F+">"}ele(){return this.element(...arguments)}nod(F,A,k){return this.node(F,A,k)}txt(F){return this.text(F)}dat(F){return this.cdata(F)}com(F){return this.comment(F)}ins(F,A){return this.instruction(F,A)}dec(F,A,k){return this.declaration(F,A,k)}dtd(F,A,k){return this.doctype(F,A,k)}e(F,A,k){return this.element(F,A,k)}n(F,A,k){return this.node(F,A,k)}t(F){return this.text(F)}d(F){return this.cdata(F)}c(F){return this.comment(F)}r(F){return this.raw(F)}i(F,A){return this.instruction(F,A)}att(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}a(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}ent(F,A){return this.entity(F,A)}pent(F,A){return this.pEntity(F,A)}not(F,A){return this.notation(F,A)}}}).call(Vz)});var Fz=C((Hz,Bz)=>{(function(){var $,Y,Z,J,K={}.hasOwnProperty;$=i(),J=YZ(),Y=a0(),Bz.exports=Z=class extends J{constructor(Q,W){super(W);this.stream=Q}endline(Q,W,G){if(Q.isLastRootNode&&W.state===Y.CloseTag)return"";else return super.endline(Q,W,G)}document(Q,W){var G,q,H,R,P,j,w,T,I;w=Q.children;for(q=H=0,P=w.length;H0){this.stream.write(" ["),this.stream.write(this.endline(Q,W,G)),W.state=Y.InsideTag,P=Q.children;for(H=0,R=P.length;H"),this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}element(Q,W,G){var q,H,R,P,j,w,T,I,D,y,O,B,V,U,E,X;if(G||(G=0),this.openNode(Q,W,G),W.state=Y.OpenTag,O=this.indent(Q,W,G)+"<"+Q.name,W.pretty&&W.width>0){T=O.length,V=Q.attribs;for(D in V){if(!K.call(V,D))continue;if(q=V[D],B=this.attribute(q,W,G),H=B.length,T+H>W.width)X=this.indent(Q,W,G+1)+B,O+=this.endline(Q,W,G)+X,T=X.length;else X=" "+B,O+=X,T+=X.length}}else{U=Q.attribs;for(D in U){if(!K.call(U,D))continue;q=U[D],O+=this.attribute(q,W,G)}}if(this.stream.write(O),P=Q.children.length,j=P===0?null:Q.children[0],P===0||Q.children.every(function(F){return(F.type===$.Text||F.type===$.Raw)&&F.value===""}))if(W.allowEmpty)this.stream.write(">"),W.state=Y.CloseTag,this.stream.write("");else W.state=Y.CloseTag,this.stream.write(W.spaceBeforeSlash+"/>");else if(W.pretty&&P===1&&(j.type===$.Text||j.type===$.Raw)&&j.value!=null)this.stream.write(">"),W.state=Y.InsideTag,W.suppressPrettyCount++,y=!0,this.writeChildNode(j,W,G+1),W.suppressPrettyCount--,y=!1,W.state=Y.CloseTag,this.stream.write("");else{this.stream.write(">"+this.endline(Q,W,G)),W.state=Y.InsideTag,E=Q.children;for(w=0,I=E.length;w")}return this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}processingInstruction(Q,W,G){return this.stream.write(super.processingInstruction(Q,W,G))}raw(Q,W,G){return this.stream.write(super.raw(Q,W,G))}text(Q,W,G){return this.stream.write(super.text(Q,W,G))}dtdAttList(Q,W,G){return this.stream.write(super.dtdAttList(Q,W,G))}dtdElement(Q,W,G){return this.stream.write(super.dtdElement(Q,W,G))}dtdEntity(Q,W,G){return this.stream.write(super.dtdEntity(Q,W,G))}dtdNotation(Q,W,G){return this.stream.write(super.dtdNotation(Q,W,G))}}}).call(Hz)});var Oz=C((Uz,r1)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({assign:W,isFunction:G}=w1()),Z=oY(),J=ZZ(),K=qz(),Q=l$(),z=Fz(),$=i(),Y=a0(),Uz.create=function(q,H,R,P){var j,w;if(q==null)throw Error("Root element needs a name.");if(P=W({},H,R,P),j=new J(P),w=j.element(q),!P.headless){if(j.declaration(P),P.pubID!=null||P.sysID!=null)j.dtd(P)}return w},Uz.begin=function(q,H,R){if(G(q))[H,R]=[q,H],q={};if(H)return new K(q,H,R);else return new J(q)},Uz.stringWriter=function(q){return new Q(q)},Uz.streamWriter=function(q,H){return new z(q,H)},Uz.implementation=new Z,Uz.nodeType=$,Uz.writerState=Y}).call(Uz)});var Ez=C((j0)=>{var Az=j0&&j0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(j0,"__esModule",{value:!0});j0.build=void 0;var Rz=Az(o4()),KV=Az(Oz());function zV($){function Y(Z){return Z<10?"0"+Z:Z}return $.getUTCFullYear()+"-"+Y($.getUTCMonth()+1)+"-"+Y($.getUTCDate())+"T"+Y($.getUTCHours())+":"+Y($.getUTCMinutes())+":"+Y($.getUTCSeconds())+"Z"}var QV=Object.prototype.toString;function Pz($){let Y=QV.call($).match(/\[object (.*)\]/);return Y?Y[1]:Y}function GV($,Y){let Z={version:"1.0",encoding:"UTF-8"},J={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},K=KV.default.create("plist");if(K.dec(Z.version,Z.encoding,Z.standalone),K.dtd(J.pubid,J.sysid),K.att("version","1.0"),JZ($,K),!Y)Y={};return Y.pretty=Y.pretty!==!1,K.end(Y)}j0.build=GV;function JZ($,Y){let Z,J,K,z=Pz($);if(z=="Undefined");else if(Array.isArray($)){Y=Y.ele("array");for(J=0;J<$.length;J++)JZ($[J],Y)}else if(Buffer.isBuffer($))Y.ele("data").raw($.toString("base64"));else if(z=="Object"){Y=Y.ele("dict");for(K in $)if($.hasOwnProperty(K)&&$[K]!==void 0)Y.ele("key").txt(K),JZ($[K],Y)}else if(z=="Number")Z=$%1===0?"integer":"real",Y.ele(Z).txt($.toString());else if(z=="Date")Y.ele("date").txt(zV(new Date($)));else if(z=="Boolean")Y.ele($?"true":"false");else if(z=="String")Y.ele("string").txt($);else if(z=="ArrayBuffer")Y.ele("data").raw(Rz.default.fromByteArray($));else if($&&$.buffer&&Pz($.buffer)=="ArrayBuffer")Y.ele("data").raw(Rz.default.fromByteArray(new Uint8Array($.buffer)))}});var jz=C((I0)=>{var VV=I0&&I0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(I0,"__esModule",{value:!0});I0.parse=void 0;var WV=S$(),k0=VV(_1("assert")),s$=3,Cz=4,qV=8;function KZ($){return $.nodeType===s$||$.nodeType===qV||$.nodeType===Cz}function f1($){return!$.childNodes||$.childNodes.length===0}function HV($){let Y=new WV.DOMParser({errorHandler(){}}).parseFromString($);k0.default(Y.documentElement.nodeName==="plist","malformed document. First element should be ");let Z=X0(Y.documentElement);if(Z.length==1)Z=Z[0];return Z}I0.parse=HV;function X0($){let Y,Z,J,K,z,Q;if(!$)return null;if($.nodeName==="plist"){if(K=[],f1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!KZ($.childNodes[Y]))K.push(X0($.childNodes[Y]));return K}else if($.nodeName==="dict"){if(Z={},J=null,Q=0,f1($))return Z;for(Y=0;Y<$.childNodes.length;Y++){if(KZ($.childNodes[Y]))continue;if(Q%2===0)k0.default($.childNodes[Y].nodeName==="key","Missing key while parsing ."),J=X0($.childNodes[Y]);else k0.default($.childNodes[Y].nodeName!=="key",'Unexpected key "'+X0($.childNodes[Y])+'" while parsing .'),Z[J]=X0($.childNodes[Y]);Q+=1}if(Q%2===1)throw Error('Missing value for "'+J+'" while parsing ');return Z}else if($.nodeName==="array"){if(K=[],f1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!KZ($.childNodes[Y])){if(z=X0($.childNodes[Y]),z!=null)K.push(z)}return K}else if($.nodeName==="#text");else if($.nodeName==="key"){if(f1($))return"";return $.childNodes[0].nodeValue}else if($.nodeName==="string"){if(z="",f1($))return z;for(Y=0;Y<$.childNodes.length;Y++){let W=$.childNodes[Y].nodeType;if(W===s$||W===Cz)z+=$.childNodes[Y].nodeValue}return z}else if($.nodeName==="integer")return k0.default(!f1($),'Cannot parse "" as integer.'),parseInt($.childNodes[0].nodeValue,10);else if($.nodeName==="real"){k0.default(!f1($),'Cannot parse "" as real.'),z="";for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue;return parseFloat(z)}else if($.nodeName==="data"){if(z="",f1($))return Buffer.from(z,"base64");for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue.replace(/\s+/g,"");return Buffer.from(z,"base64")}else if($.nodeName==="date")return k0.default(!f1($),'Cannot parse "" as Date.'),new Date($.childNodes[0].nodeValue);else if($.nodeName==="true")return!0;else if($.nodeName==="false")return!1}});var zZ=C((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});var BV=Ez(),FV=jz();kz.default={parse:FV.parse,build:BV.build}});var Iz=C((n1)=>{var OV=n1&&n1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(n1,"__esModule",{value:!0});n1.buildChecks=n1.parseChecks=void 0;var Xz=OV(zZ());function RV($){let Y=Xz.default.parse($),Z={};for(let[J,K]of Object.entries(Y))if(typeof K==="boolean")Z[J]=K;return Z}n1.parseChecks=RV;function PV($){let Y={};for(let[Z,J]of Object.entries($))if(typeof J==="boolean")Y[Z]=J;return Xz.default.build(Y)}n1.buildChecks=PV});var _z=C((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0})});var Tz=C((t)=>{var AV=t&&t.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),EV=t&&t.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))AV(Y,$,Z)};Object.defineProperty(t,"__esModule",{value:!0});t.buildChecks=t.parseChecks=t.build=t.parse=void 0;var CV=p4();Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return CV.parse}});var jV=n4();Object.defineProperty(t,"build",{enumerable:!0,get:function(){return jV.build}});var Dz=Iz();Object.defineProperty(t,"parseChecks",{enumerable:!0,get:function(){return Dz.parseChecks}});Object.defineProperty(t,"buildChecks",{enumerable:!0,get:function(){return Dz.buildChecks}});EV(_z(),t)});var xz=C((Mz)=>{Object.defineProperty(Mz,"__esModule",{value:!0});Mz.parse=void 0;var kV=S$();function XV($){let J=new kV.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Scheme")throw Error("Invalid xcscheme file: root element must be ");return IV(J)}Mz.parse=XV;function IV($){let Y={};Y.version=N($,"version"),Y.lastUpgradeVersion=N($,"LastUpgradeVersion");let Z=b($,"BuildAction");if(Z)Y.buildAction=wV(Z);let J=b($,"TestAction");if(J)Y.testAction=SV(J);let K=b($,"LaunchAction");if(K)Y.launchAction=xV(K);let z=b($,"ProfileAction");if(z)Y.profileAction=gV(z);let Q=b($,"AnalyzeAction");if(Q)Y.analyzeAction=fV(Q);let W=b($,"ArchiveAction");if(W)Y.archiveAction=hV(W);return Y}function wV($){let Y={};Y.parallelizeBuildables=v($,"parallelizeBuildables"),Y.buildImplicitDependencies=v($,"buildImplicitDependencies"),Y.runPostActionsOnFailure=v($,"runPostActionsOnFailure"),Y.buildArchitectures=N($,"buildArchitectures");let Z=b($,"BuildActionEntries");if(Z)Y.entries=a1(Z,"BuildActionEntry").map(_V);return Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function _V($){let Y={};Y.buildForRunning=v($,"buildForRunning"),Y.buildForTesting=v($,"buildForTesting"),Y.buildForProfiling=v($,"buildForProfiling"),Y.buildForArchiving=v($,"buildForArchiving"),Y.buildForAnalyzing=v($,"buildForAnalyzing");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function Z0($){return{buildableIdentifier:N($,"BuildableIdentifier")||"primary",blueprintIdentifier:N($,"BlueprintIdentifier")||"",buildableName:N($,"BuildableName")||"",blueprintName:N($,"BlueprintName")||"",referencedContainer:N($,"ReferencedContainer")||""}}function V1($,Y){let Z=b($,Y);if(!Z)return;let J=a1(Z,"ExecutionAction");if(J.length===0)return;return J.map(DV)}function DV($){let Y={};Y.actionType=N($,"ActionType");let Z=b($,"ActionContent");if(Z)Y.actionContent=TV(Z);return Y}function TV($){let Y={};Y.title=N($,"title"),Y.scriptText=N($,"scriptText"),Y.shellToInvoke=N($,"shellToInvoke");let Z=b($,"EnvironmentBuildable");if(Z){let J=b(Z,"BuildableReference");if(J)Y.environmentBuildable=Z0(J)}return Y}function SV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.shouldAutocreateTestPlan=v($,"shouldAutocreateTestPlan"),Y.preferredScreenCaptureFormat=N($,"preferredScreenCaptureFormat"),Y.codeCoverageEnabled=v($,"codeCoverageEnabled"),Y.onlyGenerateCoverageForSpecifiedTargets=v($,"onlyGenerateCoverageForSpecifiedTargets");let Z=b($,"Testables");if(Z)Y.testables=a1(Z,"TestableReference").map(MV);let J=b($,"TestPlans");if(J)Y.testPlans=a1(J,"TestPlanReference").map(LV);let K=b($,"MacroExpansion");if(K){let z=b(K,"BuildableReference");if(z)Y.macroExpansion=Z0(z)}return Y.commandLineArguments=QZ($),Y.environmentVariables=GZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function MV($){let Y={};Y.skipped=v($,"skipped"),Y.parallelizable=v($,"parallelizable"),Y.useTestSelectionWhitelist=v($,"useTestSelectionWhitelist");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);let J=b($,"SkippedTests");if(J)Y.skippedTests=a1(J,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));let K=b($,"SelectedTests");if(K)Y.selectedTests=a1(K,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));return Y}function LV($){return{reference:N($,"reference")||"",default:v($,"default")}}function xV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.launchStyle=N($,"launchStyle"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.customWorkingDirectory=N($,"customWorkingDirectory"),Y.ignoresPersistentStateOnLaunch=v($,"ignoresPersistentStateOnLaunch"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.debugServiceExtension=N($,"debugServiceExtension"),Y.allowLocationSimulation=v($,"allowLocationSimulation"),Y.customLaunchCommand=N($,"customLaunchCommand"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Sz(Z);let J=b($,"RemoteRunnable");if(J)Y.remoteRunnable=NV(J);let K=b($,"MacroExpansion");if(K){let W=b(K,"BuildableReference");if(W)Y.macroExpansion=Z0(W)}let z=b($,"LocationScenarioReference");if(z)Y.locationScenarioReference=yV(z);let Q=b($,"StoreKitConfigurationFileReference");if(Q)Y.storeKitConfigurationFileReference=bV(Q);return Y.commandLineArguments=QZ($),Y.environmentVariables=GZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function Sz($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function NV($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode"),Y.bundleIdentifier=N($,"BundleIdentifier"),Y.remotePath=N($,"RemotePath");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function yV($){return{identifier:N($,"identifier"),referenceType:N($,"referenceType")}}function bV($){return{identifier:N($,"identifier")}}function gV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.savedToolIdentifier=N($,"savedToolIdentifier"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Sz(Z);return Y.commandLineArguments=QZ($),Y.environmentVariables=GZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function fV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function hV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.customArchiveName=N($,"customArchiveName"),Y.revealArchiveInOrganizer=v($,"revealArchiveInOrganizer"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function QZ($){let Y=b($,"CommandLineArguments");if(!Y)return;let Z=a1(Y,"CommandLineArgument");if(Z.length===0)return;return Z.map((J)=>({argument:N(J,"argument")||"",isEnabled:v(J,"isEnabled")}))}function GZ($){let Y=b($,"EnvironmentVariables");if(!Y)return;let Z=a1(Y,"EnvironmentVariable");if(Z.length===0)return;return Z.map((J)=>({key:N(J,"key")||"",value:N(J,"value")||"",isEnabled:v(J,"isEnabled")}))}function N($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function v($,Y){let Z=$.getAttribute(Y);if(Z==="YES"||Z==="Yes")return!0;if(Z==="NO"||Z==="No")return!1;return}function b($,Y){let Z=$.childNodes;for(let J=0;J{Object.defineProperty(yz,"__esModule",{value:!0});yz.build=void 0;function vV($){let Y=[];Y.push(''),Y.push("` ${J}`)),Y[Y.length-1]+=">",$.buildAction)Y.push(...mV($.buildAction,1));if($.testAction)Y.push(...lV($.testAction,1));if($.launchAction)Y.push(...rV($.launchAction,1));if($.profileAction)Y.push(...tV($.profileAction,1));if($.analyzeAction)Y.push(...eV($.analyzeAction,1));if($.archiveAction)Y.push(...$W($.archiveAction,1));return Y.push(""),Y.join(` `)+` -`}oi.build=n2;function u2(t){let e=[];return t.lastUpgradeVersion!==void 0&&e.push(`LastUpgradeVersion = "${t.lastUpgradeVersion}"`),t.version!==void 0&&e.push(`version = "${t.version}"`),e}function o2(t,e){let r=[],i=_(e),s=[];t.parallelizeBuildables!==void 0&&s.push(`parallelizeBuildables = "${j(t.parallelizeBuildables)}"`),t.buildImplicitDependencies!==void 0&&s.push(`buildImplicitDependencies = "${j(t.buildImplicitDependencies)}"`),t.runPostActionsOnFailure!==void 0&&s.push(`runPostActionsOnFailure = "${j(t.runPostActionsOnFailure)}"`),t.buildArchitectures!==void 0&&s.push(`buildArchitectures = "${t.buildArchitectures}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.entries&&t.entries.length>0){r.push(`${_(e+1)}`);for(let n of t.entries)r.push(...a2(n,e+2));r.push(`${_(e+1)}`)}return r.push(`${i}`),r}function a2(t,e){let r=[],i=_(e),s=[];t.buildForTesting!==void 0&&s.push(`buildForTesting = "${j(t.buildForTesting)}"`),t.buildForRunning!==void 0&&s.push(`buildForRunning = "${j(t.buildForRunning)}"`),t.buildForProfiling!==void 0&&s.push(`buildForProfiling = "${j(t.buildForProfiling)}"`),t.buildForArchiving!==void 0&&s.push(`buildForArchiving = "${j(t.buildForArchiving)}"`),t.buildForAnalyzing!==void 0&&s.push(`buildForAnalyzing = "${j(t.buildForAnalyzing)}"`),r.push(`${i}`),r}function ut(t,e){let r=[],i=_(e);return r.push(`${i}`),r.push(`${i}`),r}function ce(t,e,r){let i=[],s=_(r);i.push(`${s}<${t}>`);for(let n of e)i.push(...l2(n,r+1));return i.push(`${s}`),i}function l2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",t.actionContent&&r.push(...c2(t.actionContent,e+1)),r.push(`${i}`),r}function c2(t,e){let r=[],i=_(e),s=[];t.title!==void 0&&s.push(`title = "${le(t.title)}"`),t.scriptText!==void 0&&s.push(`scriptText = "${le(t.scriptText)}"`),t.shellToInvoke!==void 0&&s.push(`shellToInvoke = "${t.shellToInvoke}"`),r.push(`${i}`),r.push(...ut(t.environmentBuildable,e+2)),r.push(`${_(e+1)}`),r.push(`${i}`)):(r[r.length-1]+=">",r.push(`${i}`)),r}function h2(t,e){let r=[],i=_(e),s=[];t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.selectedDebuggerIdentifier!==void 0&&s.push(`selectedDebuggerIdentifier = "${t.selectedDebuggerIdentifier}"`),t.selectedLauncherIdentifier!==void 0&&s.push(`selectedLauncherIdentifier = "${t.selectedLauncherIdentifier}"`),t.shouldUseLaunchSchemeArgsEnv!==void 0&&s.push(`shouldUseLaunchSchemeArgsEnv = "${j(t.shouldUseLaunchSchemeArgsEnv)}"`),t.shouldAutocreateTestPlan!==void 0&&s.push(`shouldAutocreateTestPlan = "${j(t.shouldAutocreateTestPlan)}"`),t.preferredScreenCaptureFormat!==void 0&&s.push(`preferredScreenCaptureFormat = "${t.preferredScreenCaptureFormat}"`),t.codeCoverageEnabled!==void 0&&s.push(`codeCoverageEnabled = "${j(t.codeCoverageEnabled)}"`),t.onlyGenerateCoverageForSpecifiedTargets!==void 0&&s.push(`onlyGenerateCoverageForSpecifiedTargets = "${j(t.onlyGenerateCoverageForSpecifiedTargets)}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.testPlans&&t.testPlans.length>0){r.push(`${_(e+1)}`);for(let n of t.testPlans)r.push(...f2(n,e+2));r.push(`${_(e+1)}`)}if(t.macroExpansion&&(r.push(`${_(e+1)}`),r.push(...ut(t.macroExpansion,e+2)),r.push(`${_(e+1)}`)),t.testables&&t.testables.length>0){r.push(`${_(e+1)}`);for(let n of t.testables)r.push(...d2(n,e+2));r.push(`${_(e+1)}`)}else t.testables!==void 0&&(r.push(`${_(e+1)}`),r.push(`${_(e+1)}`));return t.commandLineArguments&&t.commandLineArguments.length>0&&r.push(...un(t.commandLineArguments,e+1)),t.environmentVariables&&t.environmentVariables.length>0&&r.push(...on(t.environmentVariables,e+1)),r.push(`${i}`),r}function d2(t,e){let r=[],i=_(e),s=[];t.skipped!==void 0&&s.push(`skipped = "${j(t.skipped)}"`),t.parallelizable!==void 0&&s.push(`parallelizable = "${j(t.parallelizable)}"`),t.useTestSelectionWhitelist!==void 0&&s.push(`useTestSelectionWhitelist = "${j(t.useTestSelectionWhitelist)}"`),r.push(`${i}0){r.push(`${_(e+1)}`);for(let n of t.skippedTests)r.push(`${_(e+2)}`),r.push(`${_(e+2)}`);r.push(`${_(e+1)}`)}if(t.selectedTests&&t.selectedTests.length>0){r.push(`${_(e+1)}`);for(let n of t.selectedTests)r.push(`${_(e+2)}`),r.push(`${_(e+2)}`);r.push(`${_(e+1)}`)}return r.push(`${i}`),r}function f2(t,e){let r=[],i=_(e);return r.push(`${i}`),r.push(`${i}`),r}function p2(t,e){let r=[],i=_(e),s=[];t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.appClipInvocationURLString!==void 0&&s.push(`appClipInvocationURLString = "${le(t.appClipInvocationURLString)}"`),t.selectedDebuggerIdentifier!==void 0&&s.push(`selectedDebuggerIdentifier = "${t.selectedDebuggerIdentifier}"`),t.selectedLauncherIdentifier!==void 0&&s.push(`selectedLauncherIdentifier = "${t.selectedLauncherIdentifier}"`),t.launchStyle!==void 0&&s.push(`launchStyle = "${t.launchStyle}"`),t.askForAppToLaunch!==void 0&&s.push(`askForAppToLaunch = "${t.askForAppToLaunch?"Yes":"No"}"`),t.useCustomWorkingDirectory!==void 0&&s.push(`useCustomWorkingDirectory = "${j(t.useCustomWorkingDirectory)}"`),t.customWorkingDirectory!==void 0&&s.push(`customWorkingDirectory = "${t.customWorkingDirectory}"`),t.ignoresPersistentStateOnLaunch!==void 0&&s.push(`ignoresPersistentStateOnLaunch = "${j(t.ignoresPersistentStateOnLaunch)}"`),t.debugDocumentVersioning!==void 0&&s.push(`debugDocumentVersioning = "${j(t.debugDocumentVersioning)}"`),t.debugServiceExtension!==void 0&&s.push(`debugServiceExtension = "${t.debugServiceExtension}"`),t.allowLocationSimulation!==void 0&&s.push(`allowLocationSimulation = "${j(t.allowLocationSimulation)}"`),t.customLaunchCommand!==void 0&&s.push(`customLaunchCommand = "${le(t.customLaunchCommand)}"`),t.launchAutomaticallySubstyle!==void 0&&s.push(`launchAutomaticallySubstyle = "${t.launchAutomaticallySubstyle}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.buildableProductRunnable&&r.push(...Rh(t.buildableProductRunnable,e+1)),t.remoteRunnable&&r.push(...g2(t.remoteRunnable,e+1)),t.macroExpansion&&(r.push(`${_(e+1)}`),r.push(...ut(t.macroExpansion,e+2)),r.push(`${_(e+1)}`)),t.locationScenarioReference&&r.push(...m2(t.locationScenarioReference,e+1)),t.commandLineArguments&&t.commandLineArguments.length>0&&r.push(...un(t.commandLineArguments,e+1)),t.environmentVariables&&t.environmentVariables.length>0&&r.push(...on(t.environmentVariables,e+1)),t.storeKitConfigurationFileReference&&r.push(...b2(t.storeKitConfigurationFileReference,e+1)),r.push(`${i}`),r}function Rh(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",t.buildableReference&&r.push(...ut(t.buildableReference,e+1)),r.push(`${i}`),r}function g2(t,e){let r=[],i=_(e),s=[];t.runnableDebuggingMode!==void 0&&s.push(`runnableDebuggingMode = "${t.runnableDebuggingMode}"`),t.bundleIdentifier!==void 0&&s.push(`BundleIdentifier = "${t.bundleIdentifier}"`),t.remotePath!==void 0&&s.push(`RemotePath = "${t.remotePath}"`),r.push(`${i}`),r}function m2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",r.push(`${i}`),r}function b2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",r.push(`${i}`),r}function D2(t,e){let r=[],i=_(e),s=[];t.askForAppToLaunch!==void 0&&s.push(`askForAppToLaunch = "${t.askForAppToLaunch?"YES":"NO"}"`),t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.appClipInvocationURLString!==void 0&&s.push(`appClipInvocationURLString = "${le(t.appClipInvocationURLString)}"`),t.shouldUseLaunchSchemeArgsEnv!==void 0&&s.push(`shouldUseLaunchSchemeArgsEnv = "${j(t.shouldUseLaunchSchemeArgsEnv)}"`),t.savedToolIdentifier!==void 0&&s.push(`savedToolIdentifier = "${t.savedToolIdentifier}"`),t.useCustomWorkingDirectory!==void 0&&s.push(`useCustomWorkingDirectory = "${j(t.useCustomWorkingDirectory)}"`),t.debugDocumentVersioning!==void 0&&s.push(`debugDocumentVersioning = "${j(t.debugDocumentVersioning)}"`),t.launchAutomaticallySubstyle!==void 0&&s.push(`launchAutomaticallySubstyle = "${t.launchAutomaticallySubstyle}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),t.buildableProductRunnable&&r.push(...Rh(t.buildableProductRunnable,e+1)),t.commandLineArguments&&t.commandLineArguments.length>0&&r.push(...un(t.commandLineArguments,e+1)),t.environmentVariables&&t.environmentVariables.length>0&&r.push(...on(t.environmentVariables,e+1)),r.push(`${i}`),r}function y2(t,e){let r=[],i=_(e);return r.push(`${i}`):r[r.length-1]+=">",t.preActions&&t.preActions.length>0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),r.push(`${i}`),r}function A2(t,e){let r=[],i=_(e),s=[];t.buildConfiguration!==void 0&&s.push(`buildConfiguration = "${t.buildConfiguration}"`),t.customArchiveName!==void 0&&s.push(`customArchiveName = "${le(t.customArchiveName)}"`),t.revealArchiveInOrganizer!==void 0&&s.push(`revealArchiveInOrganizer = "${j(t.revealArchiveInOrganizer)}"`),r.push(`${i}0&&r.push(...ce("PreActions",t.preActions,e+1)),t.postActions&&t.postActions.length>0&&r.push(...ce("PostActions",t.postActions,e+1)),r.push(`${i}`),r}function un(t,e){let r=[],i=_(e);r.push(`${i}`);for(let s of t)r.push(`${_(e+1)}`):r[r.length-1]+=">",r.push(`${_(e+1)}`);return r.push(`${i}`),r}function on(t,e){let r=[],i=_(e);r.push(`${i}`);for(let s of t)r.push(`${_(e+1)}`):r[r.length-1]+=">",r.push(`${_(e+1)}`);return r.push(`${i}`),r}function _(t){return" ".repeat(t)}function j(t){return t?"YES":"NO"}function le(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var Mh=v(Qe=>{"use strict";var E2=Qe&&Qe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.buildManagement=Qe.parseManagement=void 0;var Bh=E2(rn());function w2(t){let e=Bh.default.parse(t),r={};if(e.SchemeUserState){r.SchemeUserState={};let i=e.SchemeUserState;for(let[s,n]of Object.entries(i))r.SchemeUserState[s]=v2(n)}if(e.SuppressBuildableAutocreation){r.SuppressBuildableAutocreation={};let i=e.SuppressBuildableAutocreation;for(let[s,n]of Object.entries(i))r.SuppressBuildableAutocreation[s]=C2(n)}return r}Qe.parseManagement=w2;function v2(t){let e={};return typeof t.isShown=="boolean"&&(e.isShown=t.isShown),typeof t.orderHint=="number"&&(e.orderHint=t.orderHint),e}function C2(t){let e={};return typeof t.primary=="boolean"&&(e.primary=t.primary),e}function x2(t){let e={};return t.SchemeUserState&&(e.SchemeUserState=t.SchemeUserState),t.SuppressBuildableAutocreation&&(e.SuppressBuildableAutocreation=t.SuppressBuildableAutocreation),Bh.default.build(e)}Qe.buildManagement=x2});var qh=v(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0})});var Uh=v(Q=>{"use strict";var T2=Q&&Q.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),S2=Q&&Q.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&T2(e,t,r)};Object.defineProperty(Q,"__esModule",{value:!0});Q.buildManagement=Q.parseManagement=Q.build=Q.parse=void 0;var N2=Ph();Object.defineProperty(Q,"parse",{enumerable:!0,get:function(){return N2.parse}});var O2=Lh();Object.defineProperty(Q,"build",{enumerable:!0,get:function(){return O2.build}});var $h=Mh();Object.defineProperty(Q,"parseManagement",{enumerable:!0,get:function(){return $h.parseManagement}});Object.defineProperty(Q,"buildManagement",{enumerable:!0,get:function(){return $h.buildManagement}});S2(qh(),Q)});var Ue=ar($a(),1);import{existsSync as Wh}from"node:fs";import{join as lt,resolve as H2,dirname as W2}from"node:path";import{fileURLToPath as z2}from"node:url";import{parseArgs as K2}from"node:util";var xr=class{rawTemplates;constructor(e){this.rawTemplates=new Map(Object.entries(e))}getAncestorChain(e){let r=new Set,i=[],s=n=>{if(r.has(n))return;r.add(n);let u=this.rawTemplates.get(n);if(u){for(let a of u.info.Ancestors||[])s(a);i.push(n)}};return s(e),i}resolve(e,r){let i=this.getAncestorChain(e),s=this.rawTemplates.get(e);if(!s)throw new Error(`Template not found: ${e}`);let n=[],u={},a={},o={},c={},g={},p={},m="com.apple.product-type.application",A=["Sources","Frameworks","Resources"],C={},S=[];for(let x of i){let B=this.rawTemplates.get(x);if(!B)continue;let f=B.info;if(f.Project&&(Object.assign(u,f.Project.SharedSettings||{}),f.Project.Configurations&&(Object.assign(a,f.Project.Configurations.Debug||{}),Object.assign(o,f.Project.Configurations.Release||{}))),f.Targets)for(let d of f.Targets)d.ProductType&&(m=d.ProductType),d.BuildPhases&&(A=d.BuildPhases.map(y=>y.Class||y)),Object.assign(c,d.SharedSettings||{}),d.Configurations&&(Object.assign(g,d.Configurations.Debug||{}),Object.assign(p,d.Configurations.Release||{}));if(f.Definitions&&Object.assign(C,f.Definitions),f.Nodes&&S.push(...f.Nodes),f.Options)for(let d of f.Options)this.mergeOption(n,d,r,C,S,c,g,p,u,a,o)}for(let x of n)x._override&&(r[x.identifier]=x._override);let T=this.resolveFiles(S,C,i,e);return{id:e,name:s.name,description:s.info.Description||"",platform:s.platform,category:s.category,options:n.filter(x=>!x.notPersisted||x.identifier==="productName"),productType:m,buildPhases:A,projectSharedSettings:u,projectDebugSettings:a,projectReleaseSettings:o,targetSharedSettings:c,targetDebugSettings:g,targetReleaseSettings:p,files:T,templateFilesDir:""}}mergeOption(e,r,i,s,n,u,a,o,c,g,p){let m=r.Identifier;if(!m)return;if(r.Override){let C=e.find(S=>S.identifier===m);if(C)C._override=r.Override;else{let S=this.parseOption(r);S._override=r.Override,e.push(S)}i[m]=r.Override}let A=e.find(C=>C.identifier===m);if(!A&&r.Type?e.push(this.parseOption(r)):!A&&r.Values&&e.push(this.parseOption({...r,Type:"popup"})),r.Units){let C=i[m];if(C&&r.Units[C]){let S=r.Units[C],T=Array.isArray(S)?S:[S];for(let x of T){if(x.RequiredOptions){let B=!0;for(let[f,d]of Object.entries(x.RequiredOptions))if(i[f]!==d){B=!1;break}if(!B)continue}if(x.Definitions&&Object.assign(s,x.Definitions),x.Nodes&&n.push(...x.Nodes),x.Targets)for(let B of x.Targets)Object.assign(u,B.SharedSettings||{}),B.Configurations&&(Object.assign(a,B.Configurations.Debug||{}),Object.assign(o,B.Configurations.Release||{}));x.Project&&(Object.assign(c,x.Project.SharedSettings||{}),x.Project.Configurations&&(Object.assign(g,x.Project.Configurations.Debug||{}),Object.assign(p,x.Project.Configurations.Release||{})))}}}}parseOption(e){return{identifier:e.Identifier,name:e.Name?.replace(/:$/,""),description:e.Description,type:(e.Type||"popup").toLowerCase(),default:e.Default,values:e.Values||e.ValueTitles,required:e.Required,notPersisted:e.NotPersisted}}resolveFiles(e,r,i,s){let n=new Map;for(let u of e){if(u.includes(":")&&!u.includes("___")&&u.split(":")[0].includes("."))continue;let a=r[u],o=u,c=50;a&&typeof a=="object"&&(o=a.Path||u,c=a.SortOrder??50);let g=s;for(let p of[...i].reverse()){let m=this.rawTemplates.get(p);if(m?.sourceFiles?.includes(o)){g=p;break}if(m?.sourceFiles?.some(A=>A===o||o.startsWith(A+"/"))){g=p;break}}n.set(u,{name:u,sourcePath:o,sortOrder:c,sourceTemplateId:g})}return[...n.values()].sort((u,a)=>u.sortOrder-a.sortOrder)}};function Tr(t,e){return t.replace(/___FILEHEADER___/g,og(e)).replace(/___PACKAGENAME:identifier___/g,Ut(e.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,Be(e.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,Ut(e.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,Be(e.productName)).replace(/___PACKAGENAMEASXML___/g,ag(e.productName)).replace(/___PACKAGENAME___/g,e.productName).replace(/___PROJECTNAME___/g,e.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,Be(e.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,e.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,Be(e.productName)).replace(/___VARIABLE_productName___/g,e.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,e.organizationName??"").replace(/___ORGANIZATIONNAME___/g,e.organizationName??"").replace(/___DATE___/g,e.date).replace(/___YEAR___/g,e.year).replace(/___FULLUSERNAME___/g,e.fullUserName).replace(/___COPYRIGHT___/g,e.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${Be(e.bundleIdentifierPrefix)}.${Be(e.productName)}`)}function og(t){return` +`}yz.build=vV;function uV($){let Y=[];if($.lastUpgradeVersion!==void 0)Y.push(`LastUpgradeVersion = "${$.lastUpgradeVersion}"`);if($.version!==void 0)Y.push(`version = "${$.version}"`);return Y}function mV($,Y){let Z=[],J=x(Y),K=[];if($.parallelizeBuildables!==void 0)K.push(`parallelizeBuildables = "${m($.parallelizeBuildables)}"`);if($.buildImplicitDependencies!==void 0)K.push(`buildImplicitDependencies = "${m($.buildImplicitDependencies)}"`);if($.runPostActionsOnFailure!==void 0)K.push(`runPostActionsOnFailure = "${m($.runPostActionsOnFailure)}"`);if($.buildArchitectures!==void 0)K.push(`buildArchitectures = "${$.buildArchitectures}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.entries&&$.entries.length>0){Z.push(`${x(Y+1)}`);for(let z of $.entries)Z.push(...cV(z,Y+2));Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function cV($,Y){let Z=[],J=x(Y),K=[];if($.buildForTesting!==void 0)K.push(`buildForTesting = "${m($.buildForTesting)}"`);if($.buildForRunning!==void 0)K.push(`buildForRunning = "${m($.buildForRunning)}"`);if($.buildForProfiling!==void 0)K.push(`buildForProfiling = "${m($.buildForProfiling)}"`);if($.buildForArchiving!==void 0)K.push(`buildForArchiving = "${m($.buildForArchiving)}"`);if($.buildForAnalyzing!==void 0)K.push(`buildForAnalyzing = "${m($.buildForAnalyzing)}"`);Z.push(`${J}`),Z}function J0($,Y){let Z=[],J=x(Y);return Z.push(`${J}`),Z.push(`${J}`),Z}function q1($,Y,Z){let J=[],K=x(Z);J.push(`${K}<${$}>`);for(let z of Y)J.push(...pV(z,Z+1));return J.push(`${K}`),J}function pV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.actionContent)Z.push(...dV($.actionContent,Y+1));return Z.push(`${J}`),Z}function dV($,Y){let Z=[],J=x(Y),K=[];if($.title!==void 0)K.push(`title = "${W1($.title)}"`);if($.scriptText!==void 0)K.push(`scriptText = "${W1($.scriptText)}"`);if($.shellToInvoke!==void 0)K.push(`shellToInvoke = "${$.shellToInvoke}"`);Z.push(`${J}`),Z.push(...J0($.environmentBuildable,Y+2)),Z.push(`${x(Y+1)}`),Z.push(`${J}`);else Z[Z.length-1]+=">",Z.push(`${J}`);return Z}function lV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.shouldAutocreateTestPlan!==void 0)K.push(`shouldAutocreateTestPlan = "${m($.shouldAutocreateTestPlan)}"`);if($.preferredScreenCaptureFormat!==void 0)K.push(`preferredScreenCaptureFormat = "${$.preferredScreenCaptureFormat}"`);if($.codeCoverageEnabled!==void 0)K.push(`codeCoverageEnabled = "${m($.codeCoverageEnabled)}"`);if($.onlyGenerateCoverageForSpecifiedTargets!==void 0)K.push(`onlyGenerateCoverageForSpecifiedTargets = "${m($.onlyGenerateCoverageForSpecifiedTargets)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.testPlans&&$.testPlans.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testPlans)Z.push(...iV(z,Y+2));Z.push(`${x(Y+1)}`)}if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.testables&&$.testables.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testables)Z.push(...sV(z,Y+2));Z.push(`${x(Y+1)}`)}else if($.testables!==void 0)Z.push(`${x(Y+1)}`),Z.push(`${x(Y+1)}`);if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...VZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...WZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function sV($,Y){let Z=[],J=x(Y),K=[];if($.skipped!==void 0)K.push(`skipped = "${m($.skipped)}"`);if($.parallelizable!==void 0)K.push(`parallelizable = "${m($.parallelizable)}"`);if($.useTestSelectionWhitelist!==void 0)K.push(`useTestSelectionWhitelist = "${m($.useTestSelectionWhitelist)}"`);Z.push(`${J}0){Z.push(`${x(Y+1)}`);for(let z of $.skippedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}if($.selectedTests&&$.selectedTests.length>0){Z.push(`${x(Y+1)}`);for(let z of $.selectedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function iV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`),Z.push(`${J}`),Z}function rV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.launchStyle!==void 0)K.push(`launchStyle = "${$.launchStyle}"`);if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"Yes":"No"}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.customWorkingDirectory!==void 0)K.push(`customWorkingDirectory = "${$.customWorkingDirectory}"`);if($.ignoresPersistentStateOnLaunch!==void 0)K.push(`ignoresPersistentStateOnLaunch = "${m($.ignoresPersistentStateOnLaunch)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.debugServiceExtension!==void 0)K.push(`debugServiceExtension = "${$.debugServiceExtension}"`);if($.allowLocationSimulation!==void 0)K.push(`allowLocationSimulation = "${m($.allowLocationSimulation)}"`);if($.customLaunchCommand!==void 0)K.push(`customLaunchCommand = "${W1($.customLaunchCommand)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...Nz($.buildableProductRunnable,Y+1));if($.remoteRunnable)Z.push(...nV($.remoteRunnable,Y+1));if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.locationScenarioReference)Z.push(...aV($.locationScenarioReference,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...VZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...WZ($.environmentVariables,Y+1));if($.storeKitConfigurationFileReference)Z.push(...oV($.storeKitConfigurationFileReference,Y+1));return Z.push(`${J}`),Z}function Nz($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.buildableReference)Z.push(...J0($.buildableReference,Y+1));return Z.push(`${J}`),Z}function nV($,Y){let Z=[],J=x(Y),K=[];if($.runnableDebuggingMode!==void 0)K.push(`runnableDebuggingMode = "${$.runnableDebuggingMode}"`);if($.bundleIdentifier!==void 0)K.push(`BundleIdentifier = "${$.bundleIdentifier}"`);if($.remotePath!==void 0)K.push(`RemotePath = "${$.remotePath}"`);Z.push(`${J}`),Z}function aV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function oV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function tV($,Y){let Z=[],J=x(Y),K=[];if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"YES":"NO"}"`);if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.savedToolIdentifier!==void 0)K.push(`savedToolIdentifier = "${$.savedToolIdentifier}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...Nz($.buildableProductRunnable,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...VZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...WZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function eV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.preActions&&$.preActions.length>0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function $W($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.customArchiveName!==void 0)K.push(`customArchiveName = "${W1($.customArchiveName)}"`);if($.revealArchiveInOrganizer!==void 0)K.push(`revealArchiveInOrganizer = "${m($.revealArchiveInOrganizer)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function VZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function WZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function x($){return" ".repeat($)}function m($){return $?"YES":"NO"}function W1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var hz=C((o1)=>{var YW=o1&&o1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o1,"__esModule",{value:!0});o1.buildManagement=o1.parseManagement=void 0;var fz=YW(zZ());function ZW($){let Y=fz.default.parse($),Z={};if(Y.SchemeUserState){Z.SchemeUserState={};let J=Y.SchemeUserState;for(let[K,z]of Object.entries(J))Z.SchemeUserState[K]=JW(z)}if(Y.SuppressBuildableAutocreation){Z.SuppressBuildableAutocreation={};let J=Y.SuppressBuildableAutocreation;for(let[K,z]of Object.entries(J))Z.SuppressBuildableAutocreation[K]=KW(z)}return Z}o1.parseManagement=ZW;function JW($){let Y={};if(typeof $.isShown==="boolean")Y.isShown=$.isShown;if(typeof $.orderHint==="number")Y.orderHint=$.orderHint;return Y}function KW($){let Y={};if(typeof $.primary==="boolean")Y.primary=$.primary;return Y}function zW($){let Y={};if($.SchemeUserState)Y.SchemeUserState=$.SchemeUserState;if($.SuppressBuildableAutocreation)Y.SuppressBuildableAutocreation=$.SuppressBuildableAutocreation;return fz.default.build(Y)}o1.buildManagement=zW});var uz=C((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0})});var cz=C((e)=>{var QW=e&&e.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),GW=e&&e.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))QW(Y,$,Z)};Object.defineProperty(e,"__esModule",{value:!0});e.buildManagement=e.parseManagement=e.build=e.parse=void 0;var VW=xz();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return VW.parse}});var WW=gz();Object.defineProperty(e,"build",{enumerable:!0,get:function(){return WW.build}});var mz=hz();Object.defineProperty(e,"parseManagement",{enumerable:!0,get:function(){return mz.parseManagement}});Object.defineProperty(e,"buildManagement",{enumerable:!0,get:function(){return mz.buildManagement}});GW(uz(),e)});var v1=Y$(k6(),1);import{existsSync as az}from"fs";import{join as Q0,resolve as SW,dirname as MW}from"path";import{fileURLToPath as LW}from"url";import{parseArgs as xW}from"util";class IY{rawTemplates;constructor($){this.rawTemplates=new Map(Object.entries($))}getAncestorChain($){let Y=new Set,Z=[],J=(K)=>{if(Y.has(K))return;Y.add(K);let z=this.rawTemplates.get(K);if(!z)return;for(let Q of z.info.Ancestors||[])J(Q);Z.push(K)};return J($),Z}resolve($,Y){let Z=this.getAncestorChain($),J=this.rawTemplates.get($);if(!J)throw Error(`Template not found: ${$}`);let K=[],z={},Q={},W={},G={},q={},H={},R="com.apple.product-type.application",P=["Sources","Frameworks","Resources"],j={},w=[];for(let I of Z){let D=this.rawTemplates.get(I);if(!D)continue;let y=D.info;if(y.Project){if(Object.assign(z,y.Project.SharedSettings||{}),y.Project.Configurations)Object.assign(Q,y.Project.Configurations.Debug||{}),Object.assign(W,y.Project.Configurations.Release||{})}if(y.Targets)for(let O of y.Targets){if(O.ProductType)R=O.ProductType;if(O.BuildPhases)P=O.BuildPhases.map((B)=>B.Class||B);if(Object.assign(G,O.SharedSettings||{}),O.Configurations)Object.assign(q,O.Configurations.Debug||{}),Object.assign(H,O.Configurations.Release||{})}if(y.Definitions)Object.assign(j,y.Definitions);if(y.Nodes)w.push(...y.Nodes);if(y.Options)for(let O of y.Options)this.mergeOption(K,O,Y,j,w,G,q,H,z,Q,W)}for(let I of K)if(I._override)Y[I.identifier]=I._override;let T=this.resolveFiles(w,j,Z,$);return{id:$,name:J.name,description:J.info.Description||"",platform:J.platform,category:J.category,options:K.filter((I)=>!I.notPersisted||I.identifier==="productName"),productType:R,buildPhases:P,projectSharedSettings:z,projectDebugSettings:Q,projectReleaseSettings:W,targetSharedSettings:G,targetDebugSettings:q,targetReleaseSettings:H,files:T,templateFilesDir:""}}mergeOption($,Y,Z,J,K,z,Q,W,G,q,H){let R=Y.Identifier;if(!R)return;if(Y.Override){let j=$.find((w)=>w.identifier===R);if(j)j._override=Y.Override;else{let w=this.parseOption(Y);w._override=Y.Override,$.push(w)}Z[R]=Y.Override}let P=$.find((j)=>j.identifier===R);if(!P&&Y.Type)$.push(this.parseOption(Y));else if(!P&&Y.Values)$.push(this.parseOption({...Y,Type:"popup"}));if(Y.Units){let j=Z[R];if(j&&Y.Units[j]){let w=Y.Units[j],T=Array.isArray(w)?w:[w];for(let I of T){if(I.RequiredOptions){let D=!0;for(let[y,O]of Object.entries(I.RequiredOptions))if(Z[y]!==O){D=!1;break}if(!D)continue}if(I.Definitions)Object.assign(J,I.Definitions);if(I.Nodes)K.push(...I.Nodes);if(I.Targets){for(let D of I.Targets)if(Object.assign(z,D.SharedSettings||{}),D.Configurations)Object.assign(Q,D.Configurations.Debug||{}),Object.assign(W,D.Configurations.Release||{})}if(I.Project){if(Object.assign(G,I.Project.SharedSettings||{}),I.Project.Configurations)Object.assign(q,I.Project.Configurations.Debug||{}),Object.assign(H,I.Project.Configurations.Release||{})}}}}}parseOption($){return{identifier:$.Identifier,name:$.Name?.replace(/:$/,""),description:$.Description,type:($.Type||"popup").toLowerCase(),default:$.Default,values:$.Values||$.ValueTitles,required:$.Required,notPersisted:$.NotPersisted}}resolveFiles($,Y,Z,J){let K=new Map;for(let z of $){if(z.includes(":")&&!z.includes("___")){if(z.split(":")[0].includes("."))continue}let Q=Y[z],W=z,G=50;if(Q&&typeof Q==="object")W=Q.Path||z,G=Q.SortOrder??50;let q=J;for(let H of[...Z].reverse()){let R=this.rawTemplates.get(H);if(R?.sourceFiles?.includes(W)){q=H;break}if(R?.sourceFiles?.some((P)=>P===W||W.startsWith(P+"/"))){q=H;break}}K.set(z,{name:z,sourcePath:W,sortOrder:G,sourceTemplateId:q})}return[...K.values()].sort((z,Q)=>z.sortOrder-Q.sortOrder)}}var dz=Y$(l6(),1),lz=Y$(Tz(),1),sz=Y$(cz(),1);import{existsSync as BW,mkdirSync as K0,statSync as FW,cpSync as UW,readFileSync as OW,writeFileSync as z0}from"node:fs";import{join as n,extname as t0,basename as pz}from"node:path";import{createHash as RW}from"node:crypto";import{execSync as PW}from"node:child_process";function i$($,Y){return $.replace(/___FILEHEADER___/g,qW(Y)).replace(/___PACKAGENAME:identifier___/g,o0(Y.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,h1(Y.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,o0(Y.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,h1(Y.productName)).replace(/___PACKAGENAMEASXML___/g,HW(Y.productName)).replace(/___PACKAGENAME___/g,Y.productName).replace(/___PROJECTNAME___/g,Y.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,h1(Y.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,Y.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,h1(Y.productName)).replace(/___VARIABLE_productName___/g,Y.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___DATE___/g,Y.date).replace(/___YEAR___/g,Y.year).replace(/___FULLUSERNAME___/g,Y.fullUserName).replace(/___COPYRIGHT___/g,Y.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${h1(Y.bundleIdentifierPrefix)}.${h1(Y.productName)}`)}function qW($){return` // ___FILENAME___ -// ${t.productName} +// ${$.productName} // -// Created by ${t.fullUserName} on ${t.date}. -// ${t.copyright} -//`}function Ut(t){let e=t.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(e)&&(e="_"+e),e}function Be(t){return t.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function ag(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var kh=ar(Za(),1),Xh=ar(Ih(),1),Vh=ar(Uh(),1);import{existsSync as I2,mkdirSync as ot,statSync as _2,cpSync as P2,readFileSync as R2,writeFileSync as at}from"node:fs";import{join as z,extname as nr,basename as jh}from"node:path";import{createHash as L2}from"node:crypto";import{execSync as B2}from"node:child_process";var M2={swift:"sourcecode.swift",m:"sourcecode.c.objc",mm:"sourcecode.cpp.objcpp",c:"sourcecode.c.c",cpp:"sourcecode.cpp.cpp",h:"sourcecode.c.h",hpp:"sourcecode.cpp.h",metal:"sourcecode.metal",storyboard:"file.storyboard",xib:"file.xib",plist:"text.plist.xml",entitlements:"text.plist.entitlements",xcassets:"folder.assetcatalog",xcdatamodeld:"wrapper.xcdatamodeld",xcdatamodel:"wrapper.xcdatamodel",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",json:"text.json",js:"sourcecode.javascript",png:"image.png",jpg:"image.jpeg",gif:"image.gif",pdf:"image.pdf",ttf:"file",otf:"file"};function F2(t){let e=nr(t).slice(1).toLowerCase();return M2[e]}function q2(t){let e=nr(t).slice(1).toLowerCase();return["swift","m","mm","c","cpp","metal"].includes(e)}function $2(t){let e=nr(t).slice(1).toLowerCase();return["xcassets","storyboard","xib","xcdatamodeld","strings","stringsdict","json","png","jpg","gif","pdf","ttf","otf","sks","scnassets","usdz"].includes(e)}function U2(t){return L2("md5").update(t).digest("hex").slice(0,24).toUpperCase()}var Gh=0;function K(t){return U2(`${t}_${Gh++}_${Date.now()}`)}function j2(){try{return B2("id -F",{encoding:"utf-8"}).trim()||"Unknown"}catch{return"Unknown"}}async function Yh(t){Gh=0;let{name:e,outputDir:r,organizationIdentifier:i,organizationName:s,config:n,templateFilesBase:u}=t,a=z(r,e),o=z(a,`${e}.xcodeproj`),c=z(a,e),g=z(o,"project.xcworkspace");ot(o,{recursive:!0}),ot(c,{recursive:!0}),ot(g,{recursive:!0});let p=new Date,m={productName:e,bundleIdentifierPrefix:i,organizationName:s||"",fullUserName:j2(),date:`${p.getMonth()+1}/${p.getDate()}/${p.getFullYear()%100}`,year:String(p.getFullYear()),copyright:s?`Copyright \xA9 ${p.getFullYear()} ${s}. All rights reserved.`:""},A=await k2(n,m,c,u),{pbxproj:C,targetUUID:S}=V2(e,n,m,A);at(z(o,"project.pbxproj"),C);let T=(0,Xh.build)({version:"1.0",children:[{type:"FileRef",location:"self:"}]});at(z(g,"contents.xcworkspacedata"),T);let x=z(o,"xcshareddata","xcschemes");ot(x,{recursive:!0});let B=Y2(e,n,S);return at(z(x,`${e}.xcscheme`),B),a}async function k2(t,e,r,i){let s=[];for(let o of t.files){let c=Tr(o.name,e),g=o.sourceTemplateId.replace(/\./g,"_"),p=z(i,g),m=z(p,o.sourcePath),A=z(r,c);if(I2(m))if(_2(m).isDirectory()){let S=Tr(o.sourcePath,e),T=z(r,c);P2(m,T,{recursive:!0}),s.push({relativePath:c,filename:c,isDirectory:!0})}else{let S=R2(m,"utf-8"),T=Tr(S,e);T=T.replace(/___FILENAME___/g,c),T=T.replace(/___FILEBASENAME___/g,jh(c,nr(c))),T=T.replace(/___FILEBASENAMEASIDENTIFIER___/g,Ut(jh(c,nr(c)))),at(A,T),s.push({relativePath:c,filename:c,isDirectory:!1})}}let n=z(r,"Assets.xcassets");ot(n,{recursive:!0}),at(z(n,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let u=z(n,"AppIcon.appiconset");ot(u,{recursive:!0}),at(z(u,"Contents.json"),JSON.stringify(X2(t.platform),null,2));let a=z(n,"AccentColor.colorset");return ot(a,{recursive:!0}),at(z(a,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),s.some(o=>o.filename==="Assets.xcassets")||s.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0}),s}function X2(t){let e={author:"xcode",version:1};switch(t){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:e};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:e};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:e};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:e};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:e};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:e}}}function V2(t,e,r,i){let s=Ut(t),n=`${Be(r.bundleIdentifierPrefix)}.${Be(t)}`,u=K("rootProject"),a=K("mainGroup"),o=K("sourcesGroup"),c=K("productsGroup"),g=K("productRef"),p=K("target"),m=K("projectConfigList"),A=K("targetConfigList"),C=K("projectDebugConfig"),S=K("projectReleaseConfig"),T=K("targetDebugConfig"),x=K("targetReleaseConfig"),B=K("sourcesBuildPhase"),f=K("frameworksBuildPhase"),d=K("resourcesBuildPhase"),y=G2(e.platform),l={},b={},E=[],h=[];for(let N of i){let k=K(`ref_${N.filename}`),je=K(`build_${N.filename}`);l[N.filename]=k,b[N.filename]=je,N.isDirectory||$2(N.filename)?h.push(N.filename):q2(N.filename)&&E.push(N.filename)}let D={...e.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},w={...e.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},O={...e.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},P={...y.targetSettings,...e.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:n,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:t,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor"};Object.assign(P,y.deploymentTarget);let R={...e.targetDebugSettings},G={...e.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},I={};I[C]={isa:"XCBuildConfiguration",buildSettings:{...D,...w},name:"Debug"},I[S]={isa:"XCBuildConfiguration",buildSettings:{...D,...O},name:"Release"},I[m]={isa:"XCConfigurationList",buildConfigurations:[C,S],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"},I[T]={isa:"XCBuildConfiguration",buildSettings:{...P,...R},name:"Debug"},I[x]={isa:"XCBuildConfiguration",buildSettings:{...P,...G},name:"Release"},I[A]={isa:"XCConfigurationList",buildConfigurations:[T,x],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"};for(let N of i){let k=l[N.filename],je=F2(N.filename);I[k]={isa:"PBXFileReference",lastKnownFileType:je,path:N.filename,sourceTree:""},N.filename.endsWith(".swift")&&(I[k].lastKnownFileType="sourcecode.swift")}I[g]={isa:"PBXFileReference",explicitFileType:"wrapper.application",includeInIndex:0,path:`${t}.app`,sourceTree:"BUILT_PRODUCTS_DIR"};for(let N of E)I[b[N]]={isa:"PBXBuildFile",fileRef:l[N]};for(let N of h)I[b[N]]={isa:"PBXBuildFile",fileRef:l[N]};return I[B]={isa:"PBXSourcesBuildPhase",buildActionMask:2147483647,files:E.map(N=>b[N]),runOnlyForDeploymentPostprocessing:0},I[f]={isa:"PBXFrameworksBuildPhase",buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},I[d]={isa:"PBXResourcesBuildPhase",buildActionMask:2147483647,files:h.map(N=>b[N]),runOnlyForDeploymentPostprocessing:0},I[o]={isa:"PBXGroup",children:i.map(N=>l[N.filename]),path:t,sourceTree:""},I[c]={isa:"PBXGroup",children:[g],name:"Products",sourceTree:""},I[a]={isa:"PBXGroup",children:[o,c],sourceTree:""},I[p]={isa:"PBXNativeTarget",buildConfigurationList:A,buildPhases:[B,f,d],buildRules:[],dependencies:[],name:t,productName:t,productReference:g,productType:e.productType},I[u]={isa:"PBXProject",attributes:{BuildIndependentTargetsInParallel:1,LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[p]:{CreatedOnToolsVersion:"16.2"}}},buildConfigurationList:m,compatibilityVersion:"Xcode 14.0",developmentRegion:"en",hasScannedForEncodings:0,knownRegions:["en","Base"],mainGroup:a,productRefGroup:c,projectDirPath:"",projectRoot:"",targets:[p]},{pbxproj:(0,kh.build)({archiveVersion:1,objectVersion:56,classes:{},objects:I,rootObject:u}),targetUUID:p}}function G2(t){switch(t){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function Y2(t,e,r){let i={buildableIdentifier:"primary",blueprintIdentifier:r,buildableName:`${t}.app`,blueprintName:t,referencedContainer:`container:${t}.xcodeproj`};return(0,Vh.build)({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:i}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:i}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:i}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var ai;function zh(){let t=[lt(W2(z2(import.meta.url)),"..","templates"),lt(process.argv[0]??".","..","templates"),lt(process.cwd(),"templates")];for(let e of t)if(Wh(lt(e,"manifest.json")))return e;throw new Error("Template manifest not found. Run `npx tsx scripts/extract-templates.ts` first.")}function Kh(){if(ai)return ai;let t=zh();return ai=JSON.parse(Se("fs").readFileSync(lt(t,"manifest.json"),"utf-8")),ai}function J2(){return lt(zh(),"files")}function Z2(){console.log(` +// Created by ${$.fullUserName} on ${$.date}. +// ${$.copyright} +//`}function o0($){let Y=$.replace(/[^a-zA-Z0-9_]/g,"_");if(/^[0-9]/.test(Y))Y="_"+Y;return Y}function h1($){return $.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function HW($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var AW={swift:"sourcecode.swift",m:"sourcecode.c.objc",mm:"sourcecode.cpp.objcpp",c:"sourcecode.c.c",cpp:"sourcecode.cpp.cpp",h:"sourcecode.c.h",hpp:"sourcecode.cpp.h",metal:"sourcecode.metal",storyboard:"file.storyboard",xib:"file.xib",plist:"text.plist.xml",entitlements:"text.plist.entitlements",xcassets:"folder.assetcatalog",xcdatamodeld:"wrapper.xcdatamodeld",xcdatamodel:"wrapper.xcdatamodel",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",json:"text.json",js:"sourcecode.javascript",png:"image.png",jpg:"image.jpeg",gif:"image.gif",pdf:"image.pdf",ttf:"file",otf:"file"};function EW($){let Y=t0($).slice(1).toLowerCase();return AW[Y]}function CW($){let Y=t0($).slice(1).toLowerCase();return["swift","m","mm","c","cpp","metal"].includes(Y)}function jW($){let Y=t0($).slice(1).toLowerCase();return["xcassets","storyboard","xib","xcdatamodeld","strings","stringsdict","json","png","jpg","gif","pdf","ttf","otf","sks","scnassets","usdz"].includes(Y)}function kW($){return RW("md5").update($).digest("hex").slice(0,24).toUpperCase()}var iz=0;function a($){return kW(`${$}_${iz++}_${Date.now()}`)}function XW(){try{return PW("id -F",{encoding:"utf-8"}).trim()||"Unknown"}catch{return"Unknown"}}async function rz($){iz=0;let{name:Y,outputDir:Z,organizationIdentifier:J,organizationName:K,config:z,templateFilesBase:Q}=$,W=n(Z,Y),G=n(W,`${Y}.xcodeproj`),q=n(W,Y),H=n(G,"project.xcworkspace");K0(G,{recursive:!0}),K0(q,{recursive:!0}),K0(H,{recursive:!0});let R=new Date,P={productName:Y,bundleIdentifierPrefix:J,organizationName:K||"",fullUserName:XW(),date:`${R.getMonth()+1}/${R.getDate()}/${R.getFullYear()%100}`,year:String(R.getFullYear()),copyright:K?`Copyright © ${R.getFullYear()} ${K}. All rights reserved.`:""},j=await IW(z,P,q,Q),{pbxproj:w,targetUUID:T}=_W(Y,z,P,j);z0(n(G,"project.pbxproj"),w);let I=lz.build({version:"1.0",children:[{type:"FileRef",location:"self:"}]});z0(n(H,"contents.xcworkspacedata"),I);let D=n(G,"xcshareddata","xcschemes");K0(D,{recursive:!0});let y=TW(Y,z,T);return z0(n(D,`${Y}.xcscheme`),y),W}async function IW($,Y,Z,J){let K=[];for(let G of $.files){let q=i$(G.name,Y),H=G.sourceTemplateId.replace(/\./g,"_"),R=n(J,H),P=n(R,G.sourcePath),j=n(Z,q);if(BW(P))if(FW(P).isDirectory()){let T=i$(G.sourcePath,Y),I=n(Z,q);UW(P,I,{recursive:!0}),K.push({relativePath:q,filename:q,isDirectory:!0})}else{let T=OW(P,"utf-8"),I=i$(T,Y);I=I.replace(/___FILENAME___/g,q),I=I.replace(/___FILEBASENAME___/g,pz(q,t0(q))),I=I.replace(/___FILEBASENAMEASIDENTIFIER___/g,o0(pz(q,t0(q)))),z0(j,I),K.push({relativePath:q,filename:q,isDirectory:!1})}}let z=n(Z,"Assets.xcassets");K0(z,{recursive:!0}),z0(n(z,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let Q=n(z,"AppIcon.appiconset");K0(Q,{recursive:!0}),z0(n(Q,"Contents.json"),JSON.stringify(wW($.platform),null,2));let W=n(z,"AccentColor.colorset");if(K0(W,{recursive:!0}),z0(n(W,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),!K.some((G)=>G.filename==="Assets.xcassets"))K.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0});return K}function wW($){let Y={author:"xcode",version:1};switch($){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:Y};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:Y};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:Y};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:Y};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y}}}function _W($,Y,Z,J){let K=o0($),z=`${h1(Z.bundleIdentifierPrefix)}.${h1($)}`,Q=a("rootProject"),W=a("mainGroup"),G=a("sourcesGroup"),q=a("productsGroup"),H=a("productRef"),R=a("target"),P=a("projectConfigList"),j=a("targetConfigList"),w=a("projectDebugConfig"),T=a("projectReleaseConfig"),I=a("targetDebugConfig"),D=a("targetReleaseConfig"),y=a("sourcesBuildPhase"),O=a("frameworksBuildPhase"),B=a("resourcesBuildPhase"),V=DW(Y.platform),U={},E={},X=[],F=[];for(let L of J){let p=a(`ref_${L.filename}`),u1=a(`build_${L.filename}`);if(U[L.filename]=p,E[L.filename]=u1,L.isDirectory||jW(L.filename))F.push(L.filename);else if(CW(L.filename))X.push(L.filename)}let A={...Y.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},k={...Y.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},S={...Y.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},M={...V.targetSettings,...Y.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:z,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:$,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor"};Object.assign(M,V.deploymentTarget);let h={...Y.targetDebugSettings},c={...Y.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},_={};_[w]={isa:"XCBuildConfiguration",buildSettings:{...A,...k},name:"Debug"},_[T]={isa:"XCBuildConfiguration",buildSettings:{...A,...S},name:"Release"},_[P]={isa:"XCConfigurationList",buildConfigurations:[w,T],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"},_[I]={isa:"XCBuildConfiguration",buildSettings:{...M,...h},name:"Debug"},_[D]={isa:"XCBuildConfiguration",buildSettings:{...M,...c},name:"Release"},_[j]={isa:"XCConfigurationList",buildConfigurations:[I,D],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"};for(let L of J){let p=U[L.filename],u1=EW(L.filename);if(_[p]={isa:"PBXFileReference",lastKnownFileType:u1,path:L.filename,sourceTree:""},L.filename.endsWith(".swift"))_[p].lastKnownFileType="sourcecode.swift"}_[H]={isa:"PBXFileReference",explicitFileType:"wrapper.application",includeInIndex:0,path:`${$}.app`,sourceTree:"BUILT_PRODUCTS_DIR"};for(let L of X)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};for(let L of F)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};return _[y]={isa:"PBXSourcesBuildPhase",buildActionMask:2147483647,files:X.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[O]={isa:"PBXFrameworksBuildPhase",buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},_[B]={isa:"PBXResourcesBuildPhase",buildActionMask:2147483647,files:F.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[G]={isa:"PBXGroup",children:J.map((L)=>U[L.filename]),path:$,sourceTree:""},_[q]={isa:"PBXGroup",children:[H],name:"Products",sourceTree:""},_[W]={isa:"PBXGroup",children:[G,q],sourceTree:""},_[R]={isa:"PBXNativeTarget",buildConfigurationList:j,buildPhases:[y,O,B],buildRules:[],dependencies:[],name:$,productName:$,productReference:H,productType:Y.productType},_[Q]={isa:"PBXProject",attributes:{BuildIndependentTargetsInParallel:1,LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[R]:{CreatedOnToolsVersion:"16.2"}}},buildConfigurationList:P,compatibilityVersion:"Xcode 14.0",developmentRegion:"en",hasScannedForEncodings:0,knownRegions:["en","Base"],mainGroup:W,productRefGroup:q,projectDirPath:"",projectRoot:"",targets:[R]},{pbxproj:dz.build({archiveVersion:1,objectVersion:56,classes:{},objects:_,rootObject:Q}),targetUUID:R}}function DW($){switch($){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function TW($,Y,Z){let J={buildableIdentifier:"primary",blueprintIdentifier:Z,buildableName:`${$}.app`,blueprintName:$,referencedContainer:`container:${$}.xcodeproj`};return sz.build({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:J}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var r$;function oz(){let $=[Q0(MW(LW(import.meta.url)),"..","templates"),Q0(process.argv[0]??".","..","templates"),Q0(process.cwd(),"templates")];for(let Y of $)if(az(Q0(Y,"manifest.json")))return Y;throw Error("Template manifest not found. Run `npx tsx scripts/extract-templates.ts` first.")}function tz(){if(r$)return r$;let $=oz();return r$=JSON.parse(_1("fs").readFileSync(Q0($,"manifest.json"),"utf-8")),r$}function NW(){return Q0(oz(),"files")}function yW(){console.log(` \x1B[1mcreate-xcode\x1B[0m - Create Xcode projects from the command line \x1B[1mUSAGE\x1B[0m @@ -142,9 +142,9 @@ ${r}`]}function zl(t,e){let r=[],i=Kl(e),s=[];t.location!==void 0&&s.p create-xcode MyApp -p ios --storage swiftdata --testing swift-testing create-xcode --list --platform ios create-xcode MyApp -y --org com.example -`.trim())}function Q2(t){let e=Kh(),r=e.templates.filter(n=>!t||n.platform===t);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${e.xcodeVersion}) -`);let i="",s="";for(let n of r)n.platform!==i&&(i=n.platform,console.log(`\x1B[1m\x1B[36m${i}\x1B[0m`),s=""),n.category!==s&&(s=n.category,console.log(` \x1B[33m${s}\x1B[0m`)),console.log(` ${n.name}\x1B[2m - ${n.description}\x1B[0m`),console.log(` \x1B[2mid: ${n.id}\x1B[0m`)}function Hh(t,e,r){let i=t.filter(u=>u.platform===e);if(!r||r==="app")return i.find(u=>u.category==="Application"&&(u.name==="App"||u.name.includes("SwiftUI App")||u.name===`${e} App`))||i.find(u=>u.category==="Application");let s=i.find(u=>u.id===r);if(s)return s;let n=r.toLowerCase();return i.find(u=>u.name.toLowerCase()===n)||i.find(u=>u.name.toLowerCase().includes(n))}function et(){process.exit(0)}async function e0(){let{values:t,positionals:e}=K2({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});t.help&&(Z2(),process.exit(0)),t.list&&(Q2(t.platform),process.exit(0));let r=t.yes||e.length>0&&!process.stdin.isTTY,i=Kh(),s=new xr(i.rawTemplates),n=t.platform||"ios";!t.platform&&!r&&(n=(await(0,Ue.default)({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map(l=>({title:l,value:l})),initial:0},{onCancel:et})).platform);let u=Hh(i.templates,n,t.template);if(!u&&!r){let d=i.templates.filter(l=>l.platform===n&&l.category==="Application");d.length===0&&(console.error(`No application templates found for platform: ${n}`),process.exit(1)),u=(await(0,Ue.default)({type:"select",name:"idx",message:"Template",choices:d.map(l=>({title:l.name,description:l.description,value:l})),initial:0},{onCancel:et})).idx}u||(u=Hh(i.templates,n,"app"),u||(console.error(`Template not found for platform "${n}". Use --list to see available templates.`),process.exit(1)));let a=(()=>{let d=process.cwd(),y=Se("path").basename(d);try{if(Se("fs").readdirSync(d).filter(b=>!b.startsWith(".")).length===0&&y&&y!=="/"&&y!==".")return y}catch{}return"MyApp"})(),o=e[0]??"";!o&&!r&&(o=(await(0,Ue.default)({type:"text",name:"name",message:"Project name",initial:a},{onCancel:et})).name??""),o||(o=a);let c=t.org??"";!c&&!r&&(c=(await(0,Ue.default)({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:et})).org??""),c||(c="com.example");let g=t["org-name"];!g&&!r&&(g=(await(0,Ue.default)({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:et})).orgName);let p=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],m="None";t.storage?m={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[t.storage.toLowerCase()]||t.storage:r||(m=(await(0,Ue.default)({type:"select",name:"storage",message:"Storage",choices:p,initial:0},{onCancel:et})).storage);let A=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],C="None";t.testing?C={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[t.testing.toLowerCase()]||t.testing:r||(C=(await(0,Ue.default)({type:"select",name:"testing",message:"Testing",choices:A,initial:0},{onCancel:et})).testing);let S=H2(t.output||"."),T={productName:o,bundleIdentifierPrefix:c,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:m,testingSystem:C};t.verbose&&(console.log(` -Template:`,u.name),console.log("ID:",u.id),console.log("Selections:",T));let x=s.resolve(u.id,T);t.verbose&&(console.log("Files to generate:",x.files.map(d=>d.name)),console.log("Product type:",x.productType));let B=lt(S,o);Wh(B)&&(r?(console.error(`Error: Directory "${o}" already exists.`),process.exit(1)):(await(0,Ue.default)({type:"confirm",name:"overwrite",message:`Directory "${o}" already exists. Overwrite?`,initial:!1},{onCancel:et})).overwrite||(console.log("Aborted."),process.exit(0))),console.log(` -Creating ${u.name} project "${o}" for ${n}...`);let f=await Yh({name:o,outputDir:S,organizationIdentifier:c,organizationName:g,config:x,templateFilesBase:J2()});console.log(` -\x1B[32mProject created at ${f}\x1B[0m`),console.log(` -To open in Xcode:`),console.log(` open ${f}/${o}.xcodeproj`)}e0().catch(t=>{console.error(`\x1B[31mError: ${t.message}\x1B[0m`),process.env.DEBUG&&console.error(t.stack),process.exit(1)}); +`.trim())}function bW($){let Y=tz(),Z=Y.templates.filter((z)=>!$||z.platform===$);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${Y.xcodeVersion}) +`);let J="",K="";for(let z of Z){if(z.platform!==J)J=z.platform,console.log(`\x1B[1m\x1B[36m${J}\x1B[0m`),K="";if(z.category!==K)K=z.category,console.log(` \x1B[33m${K}\x1B[0m`);console.log(` ${z.name}\x1B[2m - ${z.description}\x1B[0m`),console.log(` \x1B[2mid: ${z.id}\x1B[0m`)}}function nz($,Y,Z){let J=$.filter((Q)=>Q.platform===Y);if(!Z||Z==="app")return J.find((Q)=>Q.category==="Application"&&(Q.name==="App"||Q.name.includes("SwiftUI App")||Q.name===`${Y} App`))||J.find((Q)=>Q.category==="Application");let K=J.find((Q)=>Q.id===Z);if(K)return K;let z=Z.toLowerCase();return J.find((Q)=>Q.name.toLowerCase()===z)||J.find((Q)=>Q.name.toLowerCase().includes(z))}function t1(){process.exit(0)}async function gW(){let{values:$,positionals:Y}=xW({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});if($.help)yW(),process.exit(0);if($.list)bW($.platform),process.exit(0);let Z=$.yes||Y.length>0&&!process.stdin.isTTY,J=tz(),K=new IY(J.rawTemplates),z=$.platform||"ios";if(!$.platform&&!Z)z=(await v1.default({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map((U)=>({title:U,value:U})),initial:0},{onCancel:t1})).platform;let Q=nz(J.templates,z,$.template);if(!Q&&!Z){let B=J.templates.filter((U)=>U.platform===z&&U.category==="Application");if(B.length===0)console.error(`No application templates found for platform: ${z}`),process.exit(1);Q=(await v1.default({type:"select",name:"idx",message:"Template",choices:B.map((U)=>({title:U.name,description:U.description,value:U})),initial:0},{onCancel:t1})).idx}if(!Q){if(Q=nz(J.templates,z,"app"),!Q)console.error(`Template not found for platform "${z}". Use --list to see available templates.`),process.exit(1)}let W=(()=>{let B=process.cwd(),V=_1("path").basename(B);try{if(_1("fs").readdirSync(B).filter((E)=>!E.startsWith(".")).length===0&&V&&V!=="/"&&V!==".")return V}catch{}return"MyApp"})(),G=Y[0]??"";if(!G&&!Z)G=(await v1.default({type:"text",name:"name",message:"Project name",initial:W},{onCancel:t1})).name??"";if(!G)G=W;let q=$.org??"";if(!q&&!Z)q=(await v1.default({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:t1})).org??"";if(!q)q="com.example";let H=$["org-name"];if(!H&&!Z)H=(await v1.default({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:t1})).orgName;let R=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],P="None";if($.storage)P={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[$.storage.toLowerCase()]||$.storage;else if(!Z)P=(await v1.default({type:"select",name:"storage",message:"Storage",choices:R,initial:0},{onCancel:t1})).storage;let j=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],w="None";if($.testing)w={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[$.testing.toLowerCase()]||$.testing;else if(!Z)w=(await v1.default({type:"select",name:"testing",message:"Testing",choices:j,initial:0},{onCancel:t1})).testing;let T=SW($.output||"."),I={productName:G,bundleIdentifierPrefix:q,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:P,testingSystem:w};if($.verbose)console.log(` +Template:`,Q.name),console.log("ID:",Q.id),console.log("Selections:",I);let D=K.resolve(Q.id,I);if($.verbose)console.log("Files to generate:",D.files.map((B)=>B.name)),console.log("Product type:",D.productType);let y=Q0(T,G);if(az(y))if(!Z){if(!(await v1.default({type:"confirm",name:"overwrite",message:`Directory "${G}" already exists. Overwrite?`,initial:!1},{onCancel:t1})).overwrite)console.log("Aborted."),process.exit(0)}else console.error(`Error: Directory "${G}" already exists.`),process.exit(1);console.log(` +Creating ${Q.name} project "${G}" for ${z}...`);let O=await rz({name:G,outputDir:T,organizationIdentifier:q,organizationName:H,config:D,templateFilesBase:NW()});console.log(` +\x1B[32mProject created at ${O}\x1B[0m`),console.log(` +To open in Xcode:`),console.log(` open ${O}/${G}.xcodeproj`)}gW().catch(($)=>{if(console.error(`\x1B[31mError: ${$.message}\x1B[0m`),process.env.DEBUG)console.error($.stack);process.exit(1)}); diff --git a/bun.lock b/bun.lock index 7f96a47..d21651a 100644 --- a/bun.lock +++ b/bun.lock @@ -7,6 +7,7 @@ "devDependencies": { "@bacons/xcode": "^1.0.0-alpha.33", "@types/bun": "latest", + "@types/node": "^22", "@types/prompts": "^2.4.9", "prompts": "^2.4.2", }, @@ -22,7 +23,7 @@ "@types/bun": ["@types/bun@1.3.12", "", { "dependencies": { "bun-types": "1.3.12" } }, "sha512-DBv81elK+/VSwXHDlnH3Qduw+KxkTIWi7TXkAeh24zpi5l0B2kUg9Ga3tb4nJaPcOFswflgi/yAvMVBPrxMB+A=="], - "@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="], + "@types/node": ["@types/node@22.19.17", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q=="], "@types/prompts": ["@types/prompts@2.4.9", "", { "dependencies": { "@types/node": "*", "kleur": "^3.0.3" } }, "sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA=="], @@ -44,10 +45,18 @@ "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], - "undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="], + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], "uuid": ["uuid@8.3.2", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="], "xmlbuilder": ["xmlbuilder@14.0.0", "", {}, "sha512-ts+B2rSe4fIckR6iquDjsKbQFK2NlUk6iG5nf14mDEyldgoc2nEKZ3jZWMPTxGQwVgToSjt6VGIho1H8/fNFTg=="], + + "@types/prompts/@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="], + + "bun-types/@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="], + + "@types/prompts/@types/node/undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="], + + "bun-types/@types/node/undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="], } } diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index bd56ce8..0000000 --- a/package-lock.json +++ /dev/null @@ -1,1226 +0,0 @@ -{ - "name": "create-xcode", - "version": "0.1.2", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "create-xcode", - "version": "0.1.2", - "bin": { - "create-xcode": "build/cli.mjs" - }, - "devDependencies": { - "@bacons/xcode": "^1.0.0-alpha.33", - "@types/node": "^22", - "@types/prompts": "^2.4.9", - "esbuild": "^0.25", - "prompts": "^2.4.2", - "tsx": "^4" - }, - "peerDependencies": { - "typescript": "^5" - } - }, - "node_modules/@bacons/xcode": { - "version": "1.0.0-alpha.33", - "resolved": "https://registry.npmjs.org/@bacons/xcode/-/xcode-1.0.0-alpha.33.tgz", - "integrity": "sha512-+vwXK3mLnW8NOYSHNpCa7sAYR7qWmIHM3xBbBkLailN81F1CdSVsJBH1TAnTMHb+rDEh5ehsZ8AQRNVxvhWR/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@expo/plist": "^0.0.18", - "debug": "^4.3.4", - "uuid": "^8.3.2" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", - "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", - "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", - "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", - "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", - "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", - "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", - "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", - "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", - "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", - "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", - "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", - "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", - "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", - "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", - "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", - "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", - "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", - "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", - "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", - "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", - "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", - "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", - "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", - "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", - "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", - "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@expo/plist": { - "version": "0.0.18", - "resolved": "https://registry.npmjs.org/@expo/plist/-/plist-0.0.18.tgz", - "integrity": "sha512-+48gRqUiz65R21CZ/IXa7RNBXgAI/uPSdvJqoN9x1hfL44DNbUoWHgHiEXTx7XelcATpDwNTz6sHLfy0iNqf+w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@xmldom/xmldom": "~0.7.0", - "base64-js": "^1.2.3", - "xmlbuilder": "^14.0.0" - } - }, - "node_modules/@types/node": { - "version": "22.19.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz", - "integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@types/prompts": { - "version": "2.4.9", - "resolved": "https://registry.npmjs.org/@types/prompts/-/prompts-2.4.9.tgz", - "integrity": "sha512-qTxFi6Buiu8+50/+3DGIWLHM6QuWsEKugJnnP6iv2Mc4ncxE4A/OJkjuVOA+5X0X1S/nq5VJRa8Lu+nwcvbrKA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "kleur": "^3.0.3" - } - }, - "node_modules/@xmldom/xmldom": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.13.tgz", - "integrity": "sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g==", - "deprecated": "this version has critical issues, please update to the latest version", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/esbuild": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", - "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.12", - "@esbuild/android-arm": "0.25.12", - "@esbuild/android-arm64": "0.25.12", - "@esbuild/android-x64": "0.25.12", - "@esbuild/darwin-arm64": "0.25.12", - "@esbuild/darwin-x64": "0.25.12", - "@esbuild/freebsd-arm64": "0.25.12", - "@esbuild/freebsd-x64": "0.25.12", - "@esbuild/linux-arm": "0.25.12", - "@esbuild/linux-arm64": "0.25.12", - "@esbuild/linux-ia32": "0.25.12", - "@esbuild/linux-loong64": "0.25.12", - "@esbuild/linux-mips64el": "0.25.12", - "@esbuild/linux-ppc64": "0.25.12", - "@esbuild/linux-riscv64": "0.25.12", - "@esbuild/linux-s390x": "0.25.12", - "@esbuild/linux-x64": "0.25.12", - "@esbuild/netbsd-arm64": "0.25.12", - "@esbuild/netbsd-x64": "0.25.12", - "@esbuild/openbsd-arm64": "0.25.12", - "@esbuild/openbsd-x64": "0.25.12", - "@esbuild/openharmony-arm64": "0.25.12", - "@esbuild/sunos-x64": "0.25.12", - "@esbuild/win32-arm64": "0.25.12", - "@esbuild/win32-ia32": "0.25.12", - "@esbuild/win32-x64": "0.25.12" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-tsconfig": { - "version": "4.13.7", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.7.tgz", - "integrity": "sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true, - "license": "MIT" - }, - "node_modules/tsx": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", - "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.27.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, - "node_modules/tsx/node_modules/@esbuild/aix-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", - "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/android-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", - "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/android-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", - "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/android-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", - "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/darwin-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", - "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/darwin-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", - "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", - "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/freebsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", - "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", - "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", - "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", - "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-loong64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", - "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-mips64el": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", - "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", - "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-riscv64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", - "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-s390x": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", - "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/linux-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", - "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", - "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/netbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", - "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", - "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/openbsd-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", - "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", - "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/sunos-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", - "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-arm64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", - "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-ia32": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", - "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/@esbuild/win32-x64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", - "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/tsx/node_modules/esbuild": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", - "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.7", - "@esbuild/android-arm": "0.27.7", - "@esbuild/android-arm64": "0.27.7", - "@esbuild/android-x64": "0.27.7", - "@esbuild/darwin-arm64": "0.27.7", - "@esbuild/darwin-x64": "0.27.7", - "@esbuild/freebsd-arm64": "0.27.7", - "@esbuild/freebsd-x64": "0.27.7", - "@esbuild/linux-arm": "0.27.7", - "@esbuild/linux-arm64": "0.27.7", - "@esbuild/linux-ia32": "0.27.7", - "@esbuild/linux-loong64": "0.27.7", - "@esbuild/linux-mips64el": "0.27.7", - "@esbuild/linux-ppc64": "0.27.7", - "@esbuild/linux-riscv64": "0.27.7", - "@esbuild/linux-s390x": "0.27.7", - "@esbuild/linux-x64": "0.27.7", - "@esbuild/netbsd-arm64": "0.27.7", - "@esbuild/netbsd-x64": "0.27.7", - "@esbuild/openbsd-arm64": "0.27.7", - "@esbuild/openbsd-x64": "0.27.7", - "@esbuild/openharmony-arm64": "0.27.7", - "@esbuild/sunos-x64": "0.27.7", - "@esbuild/win32-arm64": "0.27.7", - "@esbuild/win32-ia32": "0.27.7", - "@esbuild/win32-x64": "0.27.7" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "license": "Apache-2.0", - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/xmlbuilder": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-14.0.0.tgz", - "integrity": "sha512-ts+B2rSe4fIckR6iquDjsKbQFK2NlUk6iG5nf14mDEyldgoc2nEKZ3jZWMPTxGQwVgToSjt6VGIho1H8/fNFTg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.0" - } - } - } -} diff --git a/package.json b/package.json index 90ba25f..cbb78f4 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ "create-xcode": "./build/cli.mjs" }, "scripts": { - "start": "tsx src/cli.ts", - "extract": "tsx scripts/extract-templates.ts", - "build": "tsx scripts/build.ts", - "test": "node --test" + "start": "bun src/cli.ts", + "extract": "bun scripts/extract-templates.ts", + "build": "bun scripts/build.ts", + "test": "bun test" }, "files": [ "build/cli.mjs", @@ -18,11 +18,10 @@ ], "devDependencies": { "@bacons/xcode": "^1.0.0-alpha.33", + "@types/bun": "latest", "@types/node": "^22", "@types/prompts": "^2.4.9", - "esbuild": "^0.25", - "prompts": "^2.4.2", - "tsx": "^4" + "prompts": "^2.4.2" }, "peerDependencies": { "typescript": "^5" diff --git a/scripts/build.ts b/scripts/build.ts index 4dc0826..fb19e54 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,20 +1,17 @@ -#!/usr/bin/env tsx +#!/usr/bin/env bun /** * Build script - bundles create-xcode into a single zero-dependency JS file. * - * Run: npx tsx scripts/build.ts + * Run: bun scripts/build.ts * * Outputs: * build/cli.mjs - Single bundled+minified JS file (the published bin entry) */ -import { rmSync, mkdirSync, readFileSync, writeFileSync, chmodSync, statSync } from "node:fs"; -import { join, dirname } from "node:path"; -import { fileURLToPath } from "node:url"; -import { build } from "esbuild"; +import { rmSync, mkdirSync } from "fs"; +import { join } from "path"; -const __dirname = dirname(fileURLToPath(import.meta.url)); -const rootDir = join(__dirname, ".."); +const rootDir = join(import.meta.dir, ".."); const buildDir = join(rootDir, "build"); async function main() { @@ -26,24 +23,35 @@ async function main() { // Bundle CLI + all dependencies into a single file console.log("Bundling..."); - await build({ - entryPoints: [join(rootDir, "src", "cli.ts")], - outfile: join(buildDir, "cli.mjs"), - bundle: true, + const result = await Bun.build({ + entrypoints: [join(rootDir, "src", "cli.ts")], + outdir: buildDir, + target: "node", minify: true, - platform: "node", - format: "esm", - target: "node18", - banner: { - js: '#!/usr/bin/env node', - }, + naming: "cli.mjs", + // Inline everything - no external deps at runtime + external: [], }); - // Make executable + if (!result.success) { + console.error("Bundle failed:"); + for (const log of result.logs) { + console.error(log); + } + process.exit(1); + } + + // Ensure node shebang for universal compatibility const outPath = join(buildDir, "cli.mjs"); + const bundled = await Bun.file(outPath).text(); + const withoutShebang = bundled.replace(/^#!.*\n/, ""); + await Bun.write(outPath, `#!/usr/bin/env node\n${withoutShebang}`); + + // Make executable + const { chmodSync } = require("fs"); chmodSync(outPath, 0o755); - const size = statSync(outPath).size / 1024; + const size = (await Bun.file(outPath).size) / 1024; console.log(`\n build/cli.mjs ${size.toFixed(0)} KB`); console.log("\nDone!"); } diff --git a/scripts/extract-templates.ts b/scripts/extract-templates.ts index 5f54a17..d161b78 100644 --- a/scripts/extract-templates.ts +++ b/scripts/extract-templates.ts @@ -1,20 +1,15 @@ -#!/usr/bin/env tsx +#!/usr/bin/env bun /** * Extracts Xcode project templates and outputs structured JSON + source files. * - * Run: npx tsx scripts/extract-templates.ts + * Run: bun scripts/extract-templates.ts * * This reads all project templates from the currently installed Xcode, * resolves inheritance chains, and outputs everything to templates/. */ -import { existsSync, mkdirSync, cpSync, readdirSync, statSync, writeFileSync } from "node:fs"; -import { join, basename, dirname, relative } from "node:path"; -import { fileURLToPath } from "node:url"; -import { execFile } from "node:child_process"; -import { promisify } from "node:util"; - -const execFileAsync = promisify(execFile); +import { existsSync, mkdirSync, cpSync, readdirSync, statSync } from "fs"; +import { join, basename, dirname, relative } from "path"; const XCODE_APP = "/Applications/Xcode.app/Contents/Developer"; @@ -42,13 +37,25 @@ interface RawTemplate { } async function parsePlist(path: string): Promise { - const { stdout } = await execFileAsync("plutil", ["-convert", "json", "-o", "-", path]); - return JSON.parse(stdout); + const proc = Bun.spawn(["plutil", "-convert", "json", "-o", "-", path], { + stdout: "pipe", + stderr: "pipe", + }); + const text = await new Response(proc.stdout).text(); + const exitCode = await proc.exited; + if (exitCode !== 0) { + throw new Error(`Failed to parse plist: ${path}`); + } + return JSON.parse(text); } async function getXcodeVersion(): Promise<{ version: string; build: string }> { - const { stdout } = await execFileAsync("xcodebuild", ["-version"]); - const lines = stdout.trim().split("\n"); + const proc = Bun.spawn(["xcodebuild", "-version"], { + stdout: "pipe", + stderr: "pipe", + }); + const text = await new Response(proc.stdout).text(); + const lines = text.trim().split("\n"); const version = lines[0]?.replace("Xcode ", "") ?? "unknown"; const build = lines[1]?.replace("Build version ", "") ?? "unknown"; return { version, build }; @@ -196,8 +203,7 @@ async function main() { console.log(`Found ${leafTemplates.length} user-facing project templates\n`); // Prepare output directory - const __dirname = dirname(fileURLToPath(import.meta.url)); - const outDir = join(__dirname, "..", "templates"); + const outDir = join(import.meta.dir, "..", "templates"); const filesDir = join(outDir, "files"); mkdirSync(outDir, { recursive: true }); mkdirSync(filesDir, { recursive: true }); @@ -285,7 +291,7 @@ async function main() { // Write manifest const manifestPath = join(outDir, "manifest.json"); - writeFileSync(manifestPath, JSON.stringify(manifest, null, 2)); + await Bun.write(manifestPath, JSON.stringify(manifest, null, 2)); console.log(`\nWritten to ${outDir}/`); console.log(` manifest.json: ${manifest.templates.length} templates`); diff --git a/src/cli.ts b/src/cli.ts index cbaebe5..95e1870 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/env bun /** * create-xcode CLI * From dc94e4fe927a7c0f9f1b675787011d024bdaa9c3 Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Sat, 11 Apr 2026 16:45:32 -0700 Subject: [PATCH 3/4] Fix error message to reference bun instead of npx tsx Co-Authored-By: Claude Opus 4.6 (1M context) --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 95e1870..5c7bda5 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -38,7 +38,7 @@ function findTemplatesDir(): string { } throw new Error( - "Template manifest not found. Run `npx tsx scripts/extract-templates.ts` first." + "Template manifest not found. Run `bun scripts/extract-templates.ts` first." ); } From dbfd7071dc5589d4524817941973faae115392ce Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Sat, 11 Apr 2026 16:58:39 -0700 Subject: [PATCH 4/4] Rebuild cli.mjs after rebase on main Co-Authored-By: Claude Opus 4.6 (1M context) --- build/cli.mjs | 171 ++++++++++++++++++++++++++------------------------ 1 file changed, 90 insertions(+), 81 deletions(-) diff --git a/build/cli.mjs b/build/cli.mjs index 3dd500f..8bd4544 100755 --- a/build/cli.mjs +++ b/build/cli.mjs @@ -1,118 +1,127 @@ #!/usr/bin/env node // @bun -import{createRequire as J7}from"node:module";var ez=Object.create;var{getPrototypeOf:$7,defineProperty:qZ,getOwnPropertyNames:Y7}=Object;var Z7=Object.prototype.hasOwnProperty;var Y$=($,Y,Z)=>{Z=$!=null?ez($7($)):{};let J=Y||!$||!$.__esModule?qZ(Z,"default",{value:$,enumerable:!0}):Z;for(let K of Y7($))if(!Z7.call(J,K))qZ(J,K,{get:()=>$[K],enumerable:!0});return J};var C=($,Y)=>()=>(Y||$((Y={exports:{}}).exports,Y),Y.exports);var _1=J7(import.meta.url);var d=C((vW,BZ)=>{var{FORCE_COLOR:K7,NODE_DISABLE_COLORS:z7,TERM:Q7}=process.env,g={enabled:!z7&&Q7!=="dumb"&&K7!=="0",reset:u(0,0),bold:u(1,22),dim:u(2,22),italic:u(3,23),underline:u(4,24),inverse:u(7,27),hidden:u(8,28),strikethrough:u(9,29),black:u(30,39),red:u(31,39),green:u(32,39),yellow:u(33,39),blue:u(34,39),magenta:u(35,39),cyan:u(36,39),white:u(37,39),gray:u(90,39),grey:u(90,39),bgBlack:u(40,49),bgRed:u(41,49),bgGreen:u(42,49),bgYellow:u(43,49),bgBlue:u(44,49),bgMagenta:u(45,49),bgCyan:u(46,49),bgWhite:u(47,49)};function HZ($,Y){let Z=0,J,K="",z="";for(;Z<$.length;Z++)if(J=$[Z],K+=J.open,z+=J.close,Y.includes(J.close))Y=Y.replace(J.rgx,J.close+J.open);return K+Y+z}function G7($,Y){let Z={has:$,keys:Y};return Z.reset=g.reset.bind(Z),Z.bold=g.bold.bind(Z),Z.dim=g.dim.bind(Z),Z.italic=g.italic.bind(Z),Z.underline=g.underline.bind(Z),Z.inverse=g.inverse.bind(Z),Z.hidden=g.hidden.bind(Z),Z.strikethrough=g.strikethrough.bind(Z),Z.black=g.black.bind(Z),Z.red=g.red.bind(Z),Z.green=g.green.bind(Z),Z.yellow=g.yellow.bind(Z),Z.blue=g.blue.bind(Z),Z.magenta=g.magenta.bind(Z),Z.cyan=g.cyan.bind(Z),Z.white=g.white.bind(Z),Z.gray=g.gray.bind(Z),Z.grey=g.grey.bind(Z),Z.bgBlack=g.bgBlack.bind(Z),Z.bgRed=g.bgRed.bind(Z),Z.bgGreen=g.bgGreen.bind(Z),Z.bgYellow=g.bgYellow.bind(Z),Z.bgBlue=g.bgBlue.bind(Z),Z.bgMagenta=g.bgMagenta.bind(Z),Z.bgCyan=g.bgCyan.bind(Z),Z.bgWhite=g.bgWhite.bind(Z),Z}function u($,Y){let Z={open:`\x1B[${$}m`,close:`\x1B[${Y}m`,rgx:new RegExp(`\\x1b\\[${Y}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return this.has.includes($)||(this.has.push($),this.keys.push(Z)),J===void 0?this:g.enabled?HZ(this.keys,J+""):J+"";return J===void 0?G7([$],[Z]):g.enabled?HZ([Z],J+""):J+""}}BZ.exports=g});var UZ=C((uW,FZ)=>{FZ.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var Z$=C((mW,OZ)=>{OZ.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var l=C((cW,RZ)=>{var t$={to($,Y){if(!Y)return`\x1B[${$+1}G`;return`\x1B[${Y+1};${$+1}H`},move($,Y){let Z="";if($<0)Z+=`\x1B[${-$}D`;else if($>0)Z+=`\x1B[${$}C`;if(Y<0)Z+=`\x1B[${-Y}A`;else if(Y>0)Z+=`\x1B[${Y}B`;return Z},up:($=1)=>`\x1B[${$}A`,down:($=1)=>`\x1B[${$}B`,forward:($=1)=>`\x1B[${$}C`,backward:($=1)=>`\x1B[${$}D`,nextLine:($=1)=>"\x1B[E".repeat($),prevLine:($=1)=>"\x1B[F".repeat($),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},V7={up:($=1)=>"\x1B[S".repeat($),down:($=1)=>"\x1B[T".repeat($)},W7={screen:"\x1B[2J",up:($=1)=>"\x1B[1J".repeat($),down:($=1)=>"\x1B[J".repeat($),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines($){let Y="";for(let Z=0;Z<$;Z++)Y+=this.line+(Z<$-1?t$.up():"");if($)Y+=t$.left;return Y}};RZ.exports={cursor:t$,scroll:V7,erase:W7,beep:"\x07"}});var jZ=C((pW,CZ)=>{function q7($,Y){var Z=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!Z){if(Array.isArray($)||(Z=H7($))||Y&&$&&typeof $.length==="number"){if(Z)$=Z;var J=0,K=function(){};return{s:K,n:function(){if(J>=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function H7($,Y){if(!$)return;if(typeof $==="string")return PZ($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return PZ($,Y)}function PZ($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z[...B7($)].length;CZ.exports=function($,Y){if(!Y)return AZ.line+F7.to(0);let Z=0,J=$.split(/\r?\n/);var K=q7(J),z;try{for(K.s();!(z=K.n()).done;){let Q=z.value;Z+=1+Math.floor(Math.max(U7(Q)-1,0)/Y)}}catch(Q){K.e(Q)}finally{K.f()}return AZ.lines(Z)}});var e$=C((dW,kZ)=>{var w0={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},O7={arrowUp:w0.arrowUp,arrowDown:w0.arrowDown,arrowLeft:w0.arrowLeft,arrowRight:w0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},R7=process.platform==="win32"?O7:w0;kZ.exports=R7});var IZ=C((lW,XZ)=>{var V0=d(),e1=e$(),$Y=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),P7=($)=>$Y[$]||$Y.default,_0=Object.freeze({aborted:V0.red(e1.cross),done:V0.green(e1.tick),exited:V0.yellow(e1.cross),default:V0.cyan("?")}),A7=($,Y,Z)=>Y?_0.aborted:Z?_0.exited:$?_0.done:_0.default,E7=($)=>V0.gray($?e1.ellipsis:e1.pointerSmall),C7=($,Y)=>V0.gray($?Y?e1.pointerSmall:"+":e1.line);XZ.exports={styles:$Y,render:P7,symbols:_0,symbol:A7,delimiter:E7,item:C7}});var _Z=C((sW,wZ)=>{var j7=Z$();wZ.exports=function($,Y){let Z=String(j7($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var TZ=C((iW,DZ)=>{DZ.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{Y=$!=null?sU(nU($)):{};let J=Z||!$||!$.__esModule?jJ(Y,"default",{value:$,enumerable:!0}):Y;for(let K of rU($))if(!aU.call(J,K))jJ(J,K,{get:()=>$[K],enumerable:!0});return J};var A=($,Z)=>()=>(Z||$((Z={exports:{}}).exports,Z),Z.exports);var k=oU(import.meta.url);var n=A((tA,_J)=>{var{FORCE_COLOR:tU,NODE_DISABLE_COLORS:eU,TERM:$q}=process.env,g={enabled:!eU&&$q!=="dumb"&&tU!=="0",reset:d(0,0),bold:d(1,22),dim:d(2,22),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),grey:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49)};function PJ($,Z){let Y=0,J,K="",z="";for(;Y<$.length;Y++)if(J=$[Y],K+=J.open,z+=J.close,Z.includes(J.close))Z=Z.replace(J.rgx,J.close+J.open);return K+Z+z}function Zq($,Z){let Y={has:$,keys:Z};return Y.reset=g.reset.bind(Y),Y.bold=g.bold.bind(Y),Y.dim=g.dim.bind(Y),Y.italic=g.italic.bind(Y),Y.underline=g.underline.bind(Y),Y.inverse=g.inverse.bind(Y),Y.hidden=g.hidden.bind(Y),Y.strikethrough=g.strikethrough.bind(Y),Y.black=g.black.bind(Y),Y.red=g.red.bind(Y),Y.green=g.green.bind(Y),Y.yellow=g.yellow.bind(Y),Y.blue=g.blue.bind(Y),Y.magenta=g.magenta.bind(Y),Y.cyan=g.cyan.bind(Y),Y.white=g.white.bind(Y),Y.gray=g.gray.bind(Y),Y.grey=g.grey.bind(Y),Y.bgBlack=g.bgBlack.bind(Y),Y.bgRed=g.bgRed.bind(Y),Y.bgGreen=g.bgGreen.bind(Y),Y.bgYellow=g.bgYellow.bind(Y),Y.bgBlue=g.bgBlue.bind(Y),Y.bgMagenta=g.bgMagenta.bind(Y),Y.bgCyan=g.bgCyan.bind(Y),Y.bgWhite=g.bgWhite.bind(Y),Y}function d($,Z){let Y={open:`\x1B[${$}m`,close:`\x1B[${Z}m`,rgx:new RegExp(`\\x1b\\[${Z}m`,"g")};return function(J){if(this!==void 0&&this.has!==void 0)return this.has.includes($)||(this.has.push($),this.keys.push(Y)),J===void 0?this:g.enabled?PJ(this.keys,J+""):J+"";return J===void 0?Zq([$],[Y]):g.enabled?PJ([Y],J+""):J+""}}_J.exports=g});var xJ=A((eA,yJ)=>{yJ.exports=($,Z)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Z){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var aZ=A(($w,kJ)=>{kJ.exports=($)=>{let Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Y=new RegExp(Z,"g");return typeof $==="string"?$.replace(Y,""):$}});var r=A((Zw,bJ)=>{var PY={to($,Z){if(!Z)return`\x1B[${$+1}G`;return`\x1B[${Z+1};${$+1}H`},move($,Z){let Y="";if($<0)Y+=`\x1B[${-$}D`;else if($>0)Y+=`\x1B[${$}C`;if(Z<0)Y+=`\x1B[${-Z}A`;else if(Z>0)Y+=`\x1B[${Z}B`;return Y},up:($=1)=>`\x1B[${$}A`,down:($=1)=>`\x1B[${$}B`,forward:($=1)=>`\x1B[${$}C`,backward:($=1)=>`\x1B[${$}D`,nextLine:($=1)=>"\x1B[E".repeat($),prevLine:($=1)=>"\x1B[F".repeat($),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Yq={up:($=1)=>"\x1B[S".repeat($),down:($=1)=>"\x1B[T".repeat($)},Jq={screen:"\x1B[2J",up:($=1)=>"\x1B[1J".repeat($),down:($=1)=>"\x1B[J".repeat($),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines($){let Z="";for(let Y=0;Y<$;Y++)Z+=this.line+(Y<$-1?PY.up():"");if($)Z+=PY.left;return Z}};bJ.exports={cursor:PY,scroll:Yq,erase:Jq,beep:"\x07"}});var uJ=A((Yw,hJ)=>{function Kq($,Z){var Y=typeof Symbol<"u"&&$[Symbol.iterator]||$["@@iterator"];if(!Y){if(Array.isArray($)||(Y=zq($))||Z&&$&&typeof $.length==="number"){if(Y)$=Y;var J=0,K=function(){};return{s:K,n:function(){if(J>=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(H){throw H},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,U;return{s:function(){Y=Y.call($)},n:function(){var H=Y.next();return z=H.done,H},e:function(H){Q=!0,U=H},f:function(){try{if(!z&&Y.return!=null)Y.return()}finally{if(Q)throw U}}}}function zq($,Z){if(!$)return;if(typeof $==="string")return fJ($,Z);var Y=Object.prototype.toString.call($).slice(8,-1);if(Y==="Object"&&$.constructor)Y=$.constructor.name;if(Y==="Map"||Y==="Set")return Array.from($);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return fJ($,Z)}function fJ($,Z){if(Z==null||Z>$.length)Z=$.length;for(var Y=0,J=Array(Z);Y[...Qq($)].length;hJ.exports=function($,Z){if(!Z)return vJ.line+Gq.to(0);let Y=0,J=$.split(/\r?\n/);var K=Kq(J),z;try{for(K.s();!(z=K.n()).done;){let Q=z.value;Y+=1+Math.floor(Math.max(Uq(Q)-1,0)/Z)}}catch(Q){K.e(Q)}finally{K.f()}return vJ.lines(Y)}});var _Y=A((Jw,mJ)=>{var i$={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},qq={arrowUp:i$.arrowUp,arrowDown:i$.arrowDown,arrowLeft:i$.arrowLeft,arrowRight:i$.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},Hq=process.platform==="win32"?qq:i$;mJ.exports=Hq});var pJ=A((Kw,cJ)=>{var q$=n(),a0=_Y(),yY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),Vq=($)=>yY[$]||yY.default,s$=Object.freeze({aborted:q$.red(a0.cross),done:q$.green(a0.tick),exited:q$.yellow(a0.cross),default:q$.cyan("?")}),Wq=($,Z,Y)=>Z?s$.aborted:Y?s$.exited:$?s$.done:s$.default,Fq=($)=>q$.gray($?a0.ellipsis:a0.pointerSmall),Oq=($,Z)=>q$.gray($?Z?a0.pointerSmall:"+":a0.line);cJ.exports={styles:yY,render:Vq,symbols:s$,symbol:Wq,delimiter:Fq,item:Oq}});var lJ=A((zw,dJ)=>{var Rq=aZ();dJ.exports=function($,Z){let Y=String(Rq($)||"").split(/\r?\n/);if(!Z)return Y.length;return Y.map((J)=>Math.ceil(J.length/Z)).reduce((J,K)=>J+K)}});var sJ=A((Qw,iJ)=>{iJ.exports=($,Z={})=>{let Y=Number.isSafeInteger(parseInt(Z.margin))?Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",J=Z.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Y.length>=J||z[z.length-1].length+Q.length+1{SZ.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var H1=C((nW,LZ)=>{LZ.exports={action:UZ(),clear:jZ(),style:IZ(),strip:Z$(),figures:e$(),lines:_Z(),wrap:TZ(),entriesToDisplay:MZ()}});var D1=C((aW,bZ)=>{var xZ=_1("readline"),k7=H1(),X7=k7.action,I7=_1("events"),NZ=l(),w7=NZ.beep,_7=NZ.cursor,D7=d();class yZ extends I7{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=xZ.createInterface({input:this.in,escapeCodeTimeout:50});if(xZ.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=X7(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(_7.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(w7)}render(){if(this.onRender(D7),this.firstRender)this.firstRender=!1}}bZ.exports=yZ});var mZ=C((oW,uZ)=>{function gZ($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function fZ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){gZ(z,J,K,Q,W,"next",G)}function W(G){gZ(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var J$=d(),T7=D1(),hZ=l(),S7=hZ.erase,D0=hZ.cursor,K$=H1(),YY=K$.style,ZY=K$.clear,M7=K$.lines,L7=K$.figures;class vZ extends T7{constructor($={}){super($);this.transform=YY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=ZY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=J$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return fZ(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return fZ(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(D0.down(M7(this.outputError,this.out.columns)-1)+ZY(this.outputError,this.out.columns));this.out.write(ZY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[YY.symbol(this.done,this.aborted),J$.bold(this.msg),YY.delimiter(this.done),this.red?J$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":L7.pointerSmall} ${J$.red().italic(Y)}`,"");this.out.write(S7.line+D0.to(0)+this.outputText+D0.save+this.outputError+D0.restore+D0.move(this.cursorOffset,0))}}uZ.exports=vZ});var sZ=C((tW,lZ)=>{var T1=d(),x7=D1(),T0=H1(),cZ=T0.style,pZ=T0.clear,z$=T0.figures,N7=T0.wrap,y7=T0.entriesToDisplay,b7=l(),g7=b7.cursor;class dZ extends x7{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=pZ("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`)}});var rJ=A((Gw,nJ)=>{nJ.exports=($,Z,Y)=>{Y=Y||Z;let J=Math.min(Z-Y,$-Math.floor(Y/2));if(J<0)J=0;let K=Math.min(J+Y,Z);return{startIndex:J,endIndex:K}}});var v1=A((Uw,aJ)=>{aJ.exports={action:xJ(),clear:uJ(),style:pJ(),strip:aZ(),figures:_Y(),lines:lJ(),wrap:sJ(),entriesToDisplay:rJ()}});var B0=A((qw,$6)=>{var oJ=k("readline"),Iq=v1(),Eq=Iq.action,Aq=k("events"),tJ=r(),wq=tJ.beep,Bq=tJ.cursor,Cq=n();class eJ extends Aq{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Z=oJ.createInterface({input:this.in,escapeCodeTimeout:50});if(oJ.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);let Y=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=Eq(z,Y);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(Bq.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(wq)}render(){if(this.onRender(Cq),this.firstRender)this.firstRender=!1}}$6.exports=eJ});var Q6=A((Hw,z6)=>{function Z6($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function Y6($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){Z6(z,J,K,Q,U,"next",G)}function U(G){Z6(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var oZ=n(),Dq=B0(),J6=r(),Mq=J6.erase,n$=J6.cursor,tZ=v1(),xY=tZ.style,kY=tZ.clear,Lq=tZ.lines,Tq=tZ.figures;class K6 extends Dq{constructor($={}){super($);this.transform=xY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=kY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=oZ.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return Y6(function*(){let Z=yield $.validator($.value);if(typeof Z==="string")$.errorMsg=Z,Z=!1;$.error=!Z})()}submit(){var $=this;return Y6(function*(){if($.value=$.value||$.initial,$.cursorOffset=0,$.cursor=$.rendered.length,yield $.validate(),$.error){$.red=!0,$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Z){let Y=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Y}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Y.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(n$.down(Lq(this.outputError,this.out.columns)-1)+kY(this.outputError,this.out.columns));this.out.write(kY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[xY.symbol(this.done,this.aborted),oZ.bold(this.msg),xY.delimiter(this.done),this.red?oZ.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":Tq.pointerSmall} ${oZ.red().italic(Z)}`,"");this.out.write(Mq.line+n$.to(0)+this.outputText+n$.save+this.outputError+n$.restore+n$.move(this.cursorOffset,0))}}z6.exports=K6});var V6=A((Vw,H6)=>{var C0=n(),Xq=B0(),r$=v1(),G6=r$.style,U6=r$.clear,eZ=r$.figures,Sq=r$.wrap,Nq=r$.entriesToDisplay,jq=r(),Pq=jq.cursor;class q6 extends Xq{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?Y:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=U6("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(g7.hide);else this.out.write(pZ(this.outputText,this.out.columns));super.render();let $=y7(this.cursor,this.choices.length,this.optionsPerPage),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[cZ.symbol(this.done,this.aborted),T1.bold(this.msg),cZ.delimiter(!1),this.done?this.selection.title:this.selection.disabled?T1.yellow(this.warn):T1.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let J=Y;J0)z=z$.arrowUp;else if(J===Z-1&&Z=this.out.columns||W.description.split(/\r?\n/).length>1)Q=` -`+N7(W.description,{margin:3,width:this.out.columns})}this.outputText+=`${z} ${K}${T1.gray(Q)} -`}}this.out.write(this.outputText)}}lZ.exports=dZ});var eZ=C((eW,tZ)=>{var Q$=d(),f7=D1(),nZ=H1(),iZ=nZ.style,h7=nZ.clear,aZ=l(),rZ=aZ.cursor,v7=aZ.erase;class oZ extends f7{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Z){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(Pq.hide);else this.out.write(U6(this.outputText,this.out.columns));super.render();let $=Nq(this.cursor,this.choices.length,this.optionsPerPage),Z=$.startIndex,Y=$.endIndex;if(this.outputText=[G6.symbol(this.done,this.aborted),C0.bold(this.msg),G6.delimiter(!1),this.done?this.selection.title:this.selection.disabled?C0.yellow(this.warn):C0.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let J=Z;J0)z=eZ.arrowUp;else if(J===Y-1&&Y=this.out.columns||U.description.split(/\r?\n/).length>1)Q=` +`+Sq(U.description,{margin:3,width:this.out.columns})}this.outputText+=`${z} ${K}${C0.gray(Q)} +`}}this.out.write(this.outputText)}}H6.exports=q6});var A6=A((Ww,E6)=>{var $9=n(),_q=B0(),O6=v1(),W6=O6.style,yq=O6.clear,R6=r(),F6=R6.cursor,xq=R6.erase;class I6 extends _q{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(rZ.hide);else this.out.write(h7(this.outputText,this.out.columns));super.render(),this.outputText=[iZ.symbol(this.done,this.aborted),Q$.bold(this.msg),iZ.delimiter(this.done),this.value?this.inactive:Q$.cyan().underline(this.inactive),Q$.gray("/"),this.value?Q$.cyan().underline(this.active):this.active].join(" "),this.out.write(v7.line+rZ.to(0)+this.outputText)}}tZ.exports=oZ});var O1=C(($q,$9)=>{class G${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof G$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof G$)}toString(){return String(this.date)}}$9.exports=G$});var J9=C((Yq,Z9)=>{var u7=O1();class Y9 extends u7{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}Z9.exports=Y9});var Q9=C((Zq,z9)=>{var m7=O1(),c7=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class K9 extends m7{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+c7($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}z9.exports=K9});var W9=C((Jq,V9)=>{var p7=O1();class G9 extends p7{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}V9.exports=G9});var B9=C((Kq,H9)=>{var d7=O1();class q9 extends d7{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}H9.exports=q9});var O9=C((zq,U9)=>{var l7=O1();class F9 extends l7{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}U9.exports=F9});var A9=C((Qq,P9)=>{var s7=O1();class R9 extends s7{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}P9.exports=R9});var j9=C((Gq,C9)=>{var i7=O1();class E9 extends i7{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}C9.exports=E9});var I9=C((Vq,X9)=>{var r7=O1();class k9 extends r7{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}X9.exports=k9});var _9=C((Wq,w9)=>{w9.exports={DatePart:O1(),Meridiem:J9(),Day:Q9(),Hours:W9(),Milliseconds:B9(),Minutes:O9(),Month:A9(),Seconds:j9(),Year:I9()}});var f9=C((qq,g9)=>{function D9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function T9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){D9(z,J,K,Q,W,"next",G)}function W(G){D9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var JY=d(),n7=D1(),KY=H1(),S9=KY.style,M9=KY.clear,a7=KY.figures,y9=l(),o7=y9.erase,L9=y9.cursor,S1=_9(),x9=S1.DatePart,t7=S1.Meridiem,e7=S1.Day,$Q=S1.Hours,YQ=S1.Milliseconds,ZQ=S1.Minutes,JQ=S1.Month,KQ=S1.Seconds,zQ=S1.Year,QQ=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,N9={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new e7($),3:($)=>new JQ($),4:($)=>new zQ($),5:($)=>new t7($),6:($)=>new $Q($),7:($)=>new ZQ($),8:($)=>new KQ($),9:($)=>new YQ($)},GQ={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class b9 extends n7{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(GQ,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=M9("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=QQ.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in N9?N9[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof x9)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return T9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return T9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof x9)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(L9.hide);else this.out.write(M9(this.outputText,this.out.columns));if(super.render(),this.outputText=[S9.symbol(this.done,this.aborted),JY.bold(this.msg),S9.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?JY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":a7.pointerSmall} ${JY.red().italic(Y)}`,"");this.out.write(o7.line+L9.to(0)+this.outputText)}}g9.exports=b9});var l9=C((Hq,d9)=>{function h9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function v9($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){h9(z,J,K,Q,W,"next",G)}function W(G){h9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var V$=d(),VQ=D1(),c9=l(),W$=c9.cursor,WQ=c9.erase,q$=H1(),zY=q$.style,qQ=q$.figures,u9=q$.clear,HQ=q$.lines,BQ=/[0-9]/,QY=($)=>$!==void 0,m9=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class p9 extends VQ{constructor($={}){super($);this.transform=zY.render($.style),this.msg=$.message,this.initial=QY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=QY($.min)?$.min:-1/0,this.max=QY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=V$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${m9($,this.round)}`),this._value=m9($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||BQ.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}validate(){var $=this;return v9(function*(){let Y=yield $.validator($.value);if(typeof Y==="string")$.errorMsg=Y,Y=!1;$.error=!Y})()}submit(){var $=this;return v9(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}let Y=$.value;$.value=Y!==""?Y:$.initial,$.done=!0,$.aborted=!1,$.error=!1,$.fire(),$.render(),$.out.write(` -`),$.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` -${Z?" ":qQ.pointerSmall} ${V$.red().italic(Y)}`,"");this.out.write(WQ.line+W$.to(0)+this.outputText+W$.save+this.outputError+W$.restore)}}d9.exports=p9});var GY=C((Bq,n9)=>{var R1=d(),FQ=l(),UQ=FQ.cursor,OQ=D1(),S0=H1(),s9=S0.clear,m1=S0.figures,i9=S0.style,RQ=S0.wrap,PQ=S0.entriesToDisplay;class r9 extends OQ{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=s9("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Z){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(F6.hide);else this.out.write(yq(this.outputText,this.out.columns));super.render(),this.outputText=[W6.symbol(this.done,this.aborted),$9.bold(this.msg),W6.delimiter(this.done),this.value?this.inactive:$9.cyan().underline(this.inactive),$9.gray("/"),this.value?$9.cyan().underline(this.active):this.active].join(" "),this.out.write(xq.line+F6.to(0)+this.outputText)}}E6.exports=I6});var l1=A((Fw,w6)=>{class Z9{constructor({token:$,date:Z,parts:Y,locales:J}){this.token=$,this.date=Z||new Date,this.parts=Y||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Z,Y)=>Y>$&&Z instanceof Z9)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Z=$.indexOf(this);return $.find((Y,J)=>J>Z&&Y instanceof Z9)}toString(){return String(this.date)}}w6.exports=Z9});var D6=A((Ow,C6)=>{var kq=l1();class B6 extends kq{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}C6.exports=B6});var T6=A((Rw,L6)=>{var bq=l1(),fq=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class M6 extends bq{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+fq($):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:$}}L6.exports=M6});var N6=A((Iw,S6)=>{var vq=l1();class X6 extends vq{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}S6.exports=X6});var _6=A((Ew,P6)=>{var gq=l1();class j6 extends gq{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}P6.exports=j6});var k6=A((Aw,x6)=>{var hq=l1();class y6 extends hq{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}x6.exports=y6});var v6=A((ww,f6)=>{var uq=l1();class b6 extends uq{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Z=this.token.length;return Z===2?String($+1).padStart(2,"0"):Z===3?this.locales.monthsShort[$]:Z===4?this.locales.months[$]:String($+1)}}f6.exports=b6});var u6=A((Bw,h6)=>{var mq=l1();class g6 extends mq{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}h6.exports=g6});var p6=A((Cw,c6)=>{var cq=l1();class m6 extends cq{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}c6.exports=m6});var l6=A((Dw,d6)=>{d6.exports={DatePart:l1(),Meridiem:D6(),Day:T6(),Hours:N6(),Milliseconds:_6(),Minutes:k6(),Month:v6(),Seconds:u6(),Year:p6()}});var Y4=A((Mw,Z4)=>{function i6($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function s6($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){i6(z,J,K,Q,U,"next",G)}function U(G){i6(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var bY=n(),pq=B0(),fY=v1(),n6=fY.style,r6=fY.clear,dq=fY.figures,e6=r(),lq=e6.erase,a6=e6.cursor,D0=l6(),o6=D0.DatePart,iq=D0.Meridiem,sq=D0.Day,nq=D0.Hours,rq=D0.Milliseconds,aq=D0.Minutes,oq=D0.Month,tq=D0.Seconds,eq=D0.Year,$H=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,t6={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new sq($),3:($)=>new oq($),4:($)=>new eq($),5:($)=>new iq($),6:($)=>new nq($),7:($)=>new aq($),8:($)=>new tq($),9:($)=>new rq($)},ZH={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class $4 extends pq{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(ZH,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=r6("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Z;this.parts=[];while(Z=$H.exec($)){let J=Z.shift(),K=Z.findIndex((z)=>z!=null);this.parts.push(K in t6?t6[K]({token:Z[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Z[K]||J)}let Y=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Y),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof o6)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return s6(function*(){let Z=yield $.validator($.value);if(typeof Z==="string")$.errorMsg=Z,Z=!1;$.error=!Z})()}submit(){var $=this;return s6(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}$.done=!0,$.aborted=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Z)=>Z instanceof o6)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a6.hide);else this.out.write(r6(this.outputText,this.out.columns));if(super.render(),this.outputText=[n6.symbol(this.done,this.aborted),bY.bold(this.msg),n6.delimiter(!1),this.parts.reduce(($,Z,Y)=>$.concat(Y===this.cursor&&!this.done?bY.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":dq.pointerSmall} ${bY.red().italic(Z)}`,"");this.out.write(lq.line+a6.to(0)+this.outputText)}}Z4.exports=$4});var H4=A((Lw,q4)=>{function J4($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function K4($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){J4(z,J,K,Q,U,"next",G)}function U(G){J4(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var Y9=n(),YH=B0(),G4=r(),J9=G4.cursor,JH=G4.erase,K9=v1(),vY=K9.style,KH=K9.figures,z4=K9.clear,zH=K9.lines,QH=/[0-9]/,gY=($)=>$!==void 0,Q4=($,Z)=>{let Y=Math.pow(10,Z);return Math.round($*Y)/Y};class U4 extends YH{constructor($={}){super($);this.transform=vY.render($.style),this.msg=$.message,this.initial=gY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=gY($.min)?$.min:-1/0,this.max=gY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=Y9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${Q4($,this.round)}`),this._value=Q4($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||QH.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}validate(){var $=this;return K4(function*(){let Z=yield $.validator($.value);if(typeof Z==="string")$.errorMsg=Z,Z=!1;$.error=!Z})()}submit(){var $=this;return K4(function*(){if(yield $.validate(),$.error){$.color="red",$.fire(),$.render();return}let Z=$.value;$.value=Z!==""?Z:$.initial,$.done=!0,$.aborted=!1,$.error=!1,$.fire(),$.render(),$.out.write(` +`),$.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Y,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` +${Y?" ":KH.pointerSmall} ${Y9.red().italic(Z)}`,"");this.out.write(JH.line+J9.to(0)+this.outputText+J9.save+this.outputError+J9.restore)}}q4.exports=U4});var hY=A((Tw,O4)=>{var i1=n(),GH=r(),UH=GH.cursor,qH=B0(),a$=v1(),V4=a$.clear,b0=a$.figures,W4=a$.style,HH=a$.wrap,VH=a$.entriesToDisplay;class F4 extends qH{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?Y:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=V4("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let $=this.value.filter((Z)=>Z.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=$),this.render()}_($,Z){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${m1.arrowUp}/${m1.arrowDown}: Highlight option - ${m1.arrowLeft}/${m1.arrowRight}/[space]: Toggle selection + ${b0.arrowUp}/${b0.arrowDown}: Highlight option + ${b0.arrowLeft}/${b0.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?R1.green(m1.radioOn):m1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?R1.gray().underline(Y.title):R1.strikethrough().gray(Y.title);else if(z=$===Z?R1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` -`+RQ(Y.description,{margin:K.length,width:this.out.columns})}return K+z+R1.gray(Q||"")}paginateOptions($){if($.length===0)return R1.red("No matches for this query.");let Y=PQ(this.cursor,$.length,this.optionsPerPage),Z=Y.startIndex,J=Y.endIndex,K,z=[];for(let Q=Z;Q0)K=m1.arrowUp;else if(Q===J-1&&J<$.length)K=m1.arrowDown;else K=" ";z.push(this.renderOption(this.cursor,$[Q],Q,K))}return` +`:"")+" enter/return: Complete answer"}return""}renderOption($,Z,Y,J){let K=(Z.selected?i1.green(b0.radioOn):b0.radioOff)+" "+J+" ",z,Q;if(Z.disabled)z=$===Y?i1.gray().underline(Z.title):i1.strikethrough().gray(Z.title);else if(z=$===Y?i1.cyan().underline(Z.title):Z.title,$===Y&&Z.description){if(Q=` - ${Z.description}`,K.length+z.length+Q.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Q=` +`+HH(Z.description,{margin:K.length,width:this.out.columns})}return K+z+i1.gray(Q||"")}paginateOptions($){if($.length===0)return i1.red("No matches for this query.");let Z=VH(this.cursor,$.length,this.optionsPerPage),Y=Z.startIndex,J=Z.endIndex,K,z=[];for(let Q=Y;Q0)K=b0.arrowUp;else if(Q===J-1&&J<$.length)K=b0.arrowDown;else K=" ";z.push(this.renderOption(this.cursor,$[Q],Q,K))}return` `+z.join(` -`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[R1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(R1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(UQ.hide);super.render();let $=[i9.symbol(this.done,this.aborted),R1.bold(this.msg),i9.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=R1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=s9($,this.out.columns)}}n9.exports=r9});var J8=C((Fq,Z8)=>{function a9($,Y,Z,J,K,z,Q){try{var W=$[z](Q),G=W.value}catch(q){Z(q);return}if(W.done)Y(G);else Promise.resolve(G).then(J,K)}function AQ($){return function(){var Y=this,Z=arguments;return new Promise(function(J,K){var z=$.apply(Y,Z);function Q(G){a9(z,J,K,Q,W,"next",G)}function W(G){a9(z,J,K,Q,W,"throw",G)}Q(void 0)})}}var M0=d(),EQ=D1(),$8=l(),CQ=$8.erase,o9=$8.cursor,L0=H1(),VY=L0.style,t9=L0.clear,WY=L0.figures,jQ=L0.wrap,kQ=L0.entriesToDisplay,e9=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),XQ=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),IQ=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class Y8 extends EQ{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:IQ($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=VY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=t9("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=e9(this.suggestions,$);else this.value=this.fallback.value;this.fire()}complete($){var Y=this;return AQ(function*(){let Z=Y.completing=Y.suggest(Y.input,Y.choices),J=yield Z;if(Y.completing!==Z)return;Y.suggestions=J.map((z,Q,W)=>({title:XQ(W,Q),value:e9(W,Q),description:z.description})),Y.completing=!1;let K=Math.max(J.length-1,0);Y.moveSelect(Math.min(K,Y.select)),$&&$()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[i1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(i1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(UH.hide);super.render();let $=[W4.symbol(this.done,this.aborted),i1.bold(this.msg),W4.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=i1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=V4($,this.out.columns)}}O4.exports=F4});var D4=A((Xw,C4)=>{function R4($,Z,Y,J,K,z,Q){try{var U=$[z](Q),G=U.value}catch(H){Y(H);return}if(U.done)Z(G);else Promise.resolve(G).then(J,K)}function WH($){return function(){var Z=this,Y=arguments;return new Promise(function(J,K){var z=$.apply(Z,Y);function Q(G){R4(z,J,K,Q,U,"next",G)}function U(G){R4(z,J,K,Q,U,"throw",G)}Q(void 0)})}}var o$=n(),FH=B0(),w4=r(),OH=w4.erase,I4=w4.cursor,t$=v1(),uY=t$.style,E4=t$.clear,mY=t$.figures,RH=t$.wrap,IH=t$.entriesToDisplay,A4=($,Z)=>$[Z]&&($[Z].value||$[Z].title||$[Z]),EH=($,Z)=>$[Z]&&($[Z].title||$[Z].value||$[Z]),AH=($,Z)=>{let Y=$.findIndex((J)=>J.value===Z||J.title===Z);return Y>-1?Y:void 0};class B4 extends FH{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:AH($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=uY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=E4("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=A4(this.suggestions,$);else this.value=this.fallback.value;this.fire()}complete($){var Z=this;return WH(function*(){let Y=Z.completing=Z.suggest(Z.input,Z.choices),J=yield Y;if(Z.completing!==Y)return;Z.suggestions=J.map((z,Q,U)=>({title:EH(U,Q),value:A4(U,Q),description:z.description})),Z.completing=!1;let K=Math.max(J.length-1,0);Z.moveSelect(Math.min(K,Z.select)),$&&$()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` `),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor);this.input=`${Z}${$}${J}`,this.cursor=Z.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let $=this.input.slice(0,this.cursor-1),Y=this.input.slice(this.cursor);this.input=`${$}${Y}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?WY.arrowUp:J?WY.arrowDown:" ",Q=Y?M0.cyan().underline($.title):$.title;if(z=(Y?M0.cyan(WY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` -`+jQ($.description,{margin:3,width:this.out.columns})}return z+" "+Q+M0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(o9.hide);else this.out.write(t9(this.outputText,this.out.columns));super.render();let $=kQ(this.select,this.choices.length,this.limit),Y=$.startIndex,Z=$.endIndex;if(this.outputText=[VY.symbol(this.done,this.aborted,this.exited),M0.bold(this.msg),VY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let J=this.suggestions.slice(Y,Z).map((K,z)=>this.renderOption(K,this.select===z+Y,z===0&&Y>0,z+Y===Z-1&&Z=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${$}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Z,Y,J){let K,z=Y?mY.arrowUp:J?mY.arrowDown:" ",Q=Z?o$.cyan().underline($.title):$.title;if(z=(Z?o$.cyan(mY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` +`+RH($.description,{margin:3,width:this.out.columns})}return z+" "+Q+o$.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(I4.hide);else this.out.write(E4(this.outputText,this.out.columns));super.render();let $=IH(this.select,this.choices.length,this.limit),Z=$.startIndex,Y=$.endIndex;if(this.outputText=[uY.symbol(this.done,this.aborted,this.exited),o$.bold(this.msg),uY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let J=this.suggestions.slice(Z,Y).map((K,z)=>this.renderOption(K,this.select===z+Z,z===0&&Z>0,z+Z===Y-1&&Y{var M1=d(),wQ=l(),_Q=wQ.cursor,DQ=GY(),qY=H1(),K8=qY.clear,z8=qY.style,W0=qY.figures;class Q8 extends DQ{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=K8("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`+(J||o$.gray(this.fallback.title))}this.out.write(OH.line+I4.to(0)+this.outputText)}}C4.exports=B4});var S4=A((Sw,X4)=>{var M0=n(),wH=r(),BH=wH.cursor,CH=hY(),cY=v1(),M4=cY.clear,L4=cY.style,H$=cY.figures;class T4 extends CH{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=M4("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Y)=>{if(this.inputValue){if(typeof Y.title==="string"){if(Y.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Y.value==="string"){if(Y.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Z=this.filteredOptions.findIndex((Y)=>Y===$);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Z){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${W0.arrowUp}/${W0.arrowDown}: Highlight option - ${W0.arrowLeft}/${W0.arrowRight}/[space]: Toggle selection + ${H$.arrowUp}/${H$.arrowDown}: Highlight option + ${H$.arrowLeft}/${H$.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer `}return""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:M1.gray("Enter something to filter")} -`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?M1.gray().underline(Y.title):M1.strikethrough().gray(Y.title);else J=$===Z?M1.cyan().underline(Y.title):Y.title;return(Y.selected?M1.green(W0.radioOn):W0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[M1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(M1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(_Q.hide);super.render();let $=[z8.symbol(this.done,this.aborted),M1.bold(this.msg),z8.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=M1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=K8($,this.out.columns)}}G8.exports=Q8});var R8=C((Oq,O8)=>{var W8=d(),TQ=D1(),B8=H1(),q8=B8.style,SQ=B8.clear,F8=l(),MQ=F8.erase,H8=F8.cursor;class U8 extends TQ{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +Filtered results for: ${this.inputValue?this.inputValue:M0.gray("Enter something to filter")} +`}renderOption($,Z,Y){let J;if(Z.disabled)J=$===Y?M0.gray().underline(Z.title):M0.strikethrough().gray(Z.title);else J=$===Y?M0.cyan().underline(Z.title):Z.title;return(Z.selected?M0.green(H$.radioOn):H$.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[M0.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(M0.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(BH.hide);super.render();let $=[L4.symbol(this.done,this.aborted),M0.bold(this.msg),L4.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=M0.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=M4($,this.out.columns)}}X4.exports=T4});var b4=A((Nw,k4)=>{var N4=n(),DH=B0(),_4=v1(),j4=_4.style,MH=_4.clear,y4=r(),LH=y4.erase,P4=y4.cursor;class x4 extends DH{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(H8.hide);else this.out.write(SQ(this.outputText,this.out.columns));super.render(),this.outputText=[q8.symbol(this.done,this.aborted),W8.bold(this.msg),q8.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:W8.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(MQ.line+H8.to(0)+this.outputText)}}O8.exports=U8});var A8=C((Rq,P8)=>{P8.exports={TextPrompt:mZ(),SelectPrompt:sZ(),TogglePrompt:eZ(),DatePrompt:f9(),NumberPrompt:l9(),MultiselectPrompt:GY(),AutocompletePrompt:J8(),AutocompleteMultiselectPrompt:V8(),ConfirmPrompt:R8()}});var C8=C((E8)=>{var $1=E8,LQ=A8(),H$=($)=>$;function P1($,Y,Z={}){return new Promise((J,K)=>{let z=new LQ[$](Y),Q=Z.onAbort||H$,W=Z.onSubmit||H$,G=Z.onExit||H$;z.on("state",Y.onState||H$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}$1.text=($)=>P1("TextPrompt",$);$1.password=($)=>{return $.style="password",$1.text($)};$1.invisible=($)=>{return $.style="invisible",$1.text($)};$1.number=($)=>P1("NumberPrompt",$);$1.date=($)=>P1("DatePrompt",$);$1.confirm=($)=>P1("ConfirmPrompt",$);$1.list=($)=>{let Y=$.separator||",";return P1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};$1.toggle=($)=>P1("TogglePrompt",$);$1.select=($)=>P1("SelectPrompt",$);$1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};$1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return P1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var xQ=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));$1.autocomplete=($)=>{return $.suggest=$.suggest||xQ,$.choices=[].concat($.choices||[]),P1("AutocompletePrompt",$)}});var T8=C((Aq,D8)=>{function j8($,Y){var Z=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);if(Y)J=J.filter(function(K){return Object.getOwnPropertyDescriptor($,K).enumerable});Z.push.apply(Z,J)}return Z}function k8($){for(var Y=1;Y=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(q){throw q},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,W;return{s:function(){Z=Z.call($)},n:function(){var q=Z.next();return z=q.done,q},e:function(q){Q=!0,W=q},f:function(){try{if(!z&&Z.return!=null)Z.return()}finally{if(Q)throw W}}}}function bQ($,Y){if(!$)return;if(typeof $==="string")return X8($,Y);var Z=Object.prototype.toString.call($).slice(8,-1);if(Z==="Object"&&$.constructor)Z=$.constructor.name;if(Z==="Map"||Z==="Set")return Array.from($);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return X8($,Y)}function X8($,Y){if(Y==null||Y>$.length)Y=$.length;for(var Z=0,J=Array(Y);Z{};function c1(){return BY.apply(this,arguments)}function BY(){return BY=w8(function*($=[],{onSubmit:Y=_8,onCancel:Z=_8}={}){let J={},K=c1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=function(){var I=w8(function*(D,y,O=!1){if(!O&&D.validate&&D.validate(y)!==!0)return;return D.format?yield D.format(y,J):y});return function(y,O){return I.apply(this,arguments)}}();var P=yQ($),j;try{for(P.s();!(j=P.n()).done;){Q=j.value;var w=Q;if(G=w.name,q=w.type,typeof q==="function")q=yield q(z,k8({},J),Q),Q.type=q;if(!q)continue;for(let I in Q){if(gQ.includes(I))continue;let D=Q[I];Q[I]=typeof D==="function"?yield D(z,k8({},J),H):D}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");var T=Q;if(G=T.name,q=T.type,HY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=yield R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=c1._injected?fQ(c1._injected,Q.initial):yield HY[q](Q),J[G]=z=yield R(Q,z,!0),W=yield Y(Q,z,J)}catch(I){W=!(yield Z(Q,J))}if(W)return J}}catch(I){P.e(I)}finally{P.f()}return J}),BY.apply(this,arguments)}function fQ($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function hQ($){c1._injected=(c1._injected||[]).concat($)}function vQ($){c1._override=Object.assign({},$)}D8.exports=Object.assign(c1,{prompt:c1,prompts:HY,inject:hQ,override:vQ})});var M8=C((Eq,S8)=>{S8.exports=($,Y)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Y){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var B$=C((Cq,L8)=>{L8.exports=($)=>{let Y=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Z=new RegExp(Y,"g");return typeof $==="string"?$.replace(Z,""):$}});var y8=C((jq,N8)=>{var uQ=B$(),{erase:x8,cursor:mQ}=l(),cQ=($)=>[...uQ($)].length;N8.exports=function($,Y){if(!Y)return x8.line+mQ.to(0);let Z=0,J=$.split(/\r?\n/);for(let K of J)Z+=1+Math.floor(Math.max(cQ(K)-1,0)/Y);return x8.lines(Z)}});var FY=C((kq,b8)=>{var x0={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},pQ={arrowUp:x0.arrowUp,arrowDown:x0.arrowDown,arrowLeft:x0.arrowLeft,arrowRight:x0.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},dQ=process.platform==="win32"?pQ:x0;b8.exports=dQ});var f8=C((Xq,g8)=>{var q0=d(),$0=FY(),UY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),lQ=($)=>UY[$]||UY.default,N0=Object.freeze({aborted:q0.red($0.cross),done:q0.green($0.tick),exited:q0.yellow($0.cross),default:q0.cyan("?")}),sQ=($,Y,Z)=>Y?N0.aborted:Z?N0.exited:$?N0.done:N0.default,iQ=($)=>q0.gray($?$0.ellipsis:$0.pointerSmall),rQ=($,Y)=>q0.gray($?Y?$0.pointerSmall:"+":$0.line);g8.exports={styles:UY,render:lQ,symbols:N0,symbol:sQ,delimiter:iQ,item:rQ}});var v8=C((Iq,h8)=>{var nQ=B$();h8.exports=function($,Y){let Z=String(nQ($)||"").split(/\r?\n/);if(!Y)return Z.length;return Z.map((J)=>Math.ceil(J.length/Y)).reduce((J,K)=>J+K)}});var m8=C((wq,u8)=>{u8.exports=($,Y={})=>{let Z=Number.isSafeInteger(parseInt(Y.margin))?Array(parseInt(Y.margin)).fill(" ").join(""):Y.margin||"",J=Y.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Z.length>=J||z[z.length-1].length+Q.length+1{f4.exports={TextPrompt:Q6(),SelectPrompt:V6(),TogglePrompt:A6(),DatePrompt:Y4(),NumberPrompt:H4(),MultiselectPrompt:hY(),AutocompletePrompt:D4(),AutocompleteMultiselectPrompt:S4(),ConfirmPrompt:b4()}});var h4=A((g4)=>{var V1=g4,TH=v4(),z9=($)=>$;function s1($,Z,Y={}){return new Promise((J,K)=>{let z=new TH[$](Z),Q=Y.onAbort||z9,U=Y.onSubmit||z9,G=Y.onExit||z9;z.on("state",Z.onState||z9),z.on("submit",(H)=>J(U(H))),z.on("exit",(H)=>J(G(H))),z.on("abort",(H)=>K(Q(H)))})}V1.text=($)=>s1("TextPrompt",$);V1.password=($)=>{return $.style="password",V1.text($)};V1.invisible=($)=>{return $.style="invisible",V1.text($)};V1.number=($)=>s1("NumberPrompt",$);V1.date=($)=>s1("DatePrompt",$);V1.confirm=($)=>s1("ConfirmPrompt",$);V1.list=($)=>{let Z=$.separator||",";return s1("TextPrompt",$,{onSubmit:(Y)=>Y.split(Z).map((J)=>J.trim())})};V1.toggle=($)=>s1("TogglePrompt",$);V1.select=($)=>s1("SelectPrompt",$);V1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return s1("MultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};V1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return s1("AutocompleteMultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};var XH=($,Z)=>Promise.resolve(Z.filter((Y)=>Y.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));V1.autocomplete=($)=>{return $.suggest=$.suggest||XH,$.choices=[].concat($.choices||[]),s1("AutocompletePrompt",$)}});var s4=A((_w,i4)=>{function u4($,Z){var Y=Object.keys($);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols($);if(Z)J=J.filter(function(K){return Object.getOwnPropertyDescriptor($,K).enumerable});Y.push.apply(Y,J)}return Y}function m4($){for(var Z=1;Z=$.length)return{done:!0};return{done:!1,value:$[J++]}},e:function(H){throw H},f:K}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,Q=!1,U;return{s:function(){Y=Y.call($)},n:function(){var H=Y.next();return z=H.done,H},e:function(H){Q=!0,U=H},f:function(){try{if(!z&&Y.return!=null)Y.return()}finally{if(Q)throw U}}}}function jH($,Z){if(!$)return;if(typeof $==="string")return c4($,Z);var Y=Object.prototype.toString.call($).slice(8,-1);if(Y==="Object"&&$.constructor)Y=$.constructor.name;if(Y==="Map"||Y==="Set")return Array.from($);if(Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return c4($,Z)}function c4($,Z){if(Z==null||Z>$.length)Z=$.length;for(var Y=0,J=Array(Z);Y{};function f0(){return dY.apply(this,arguments)}function dY(){return dY=d4(function*($=[],{onSubmit:Z=l4,onCancel:Y=l4}={}){let J={},K=f0._override||{};$=[].concat($);let z,Q,U,G,H,V,I=function(){var D=d4(function*(S,P,R=!1){if(!R&&S.validate&&S.validate(P)!==!0)return;return S.format?yield S.format(P,J):P});return function(P,R){return D.apply(this,arguments)}}();var E=NH($),w;try{for(E.s();!(w=E.n()).done;){Q=w.value;var T=Q;if(G=T.name,H=T.type,typeof H==="function")H=yield H(z,m4({},J),Q),Q.type=H;if(!H)continue;for(let D in Q){if(PH.includes(D))continue;let S=Q[D];Q[D]=typeof S==="function"?yield S(z,m4({},J),V):S}if(V=Q,typeof Q.message!=="string")throw Error("prompt message is required");var X=Q;if(G=X.name,H=X.type,pY[H]===void 0)throw Error(`prompt type (${H}) is not defined`);if(K[Q.name]!==void 0){if(z=yield I(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=f0._injected?_H(f0._injected,Q.initial):yield pY[H](Q),J[G]=z=yield I(Q,z,!0),U=yield Z(Q,z,J)}catch(D){U=!(yield Y(Q,J))}if(U)return J}}catch(D){E.e(D)}finally{E.f()}return J}),dY.apply(this,arguments)}function _H($,Z){let Y=$.shift();if(Y instanceof Error)throw Y;return Y===void 0?Z:Y}function yH($){f0._injected=(f0._injected||[]).concat($)}function xH($){f0._override=Object.assign({},$)}i4.exports=Object.assign(f0,{prompt:f0,prompts:pY,inject:yH,override:xH})});var r4=A((yw,n4)=>{n4.exports=($,Z)=>{if($.meta&&$.name!=="escape")return;if($.ctrl){if($.name==="a")return"first";if($.name==="c")return"abort";if($.name==="d")return"abort";if($.name==="e")return"last";if($.name==="g")return"reset"}if(Z){if($.name==="j")return"down";if($.name==="k")return"up"}if($.name==="return")return"submit";if($.name==="enter")return"submit";if($.name==="backspace")return"delete";if($.name==="delete")return"deleteForward";if($.name==="abort")return"abort";if($.name==="escape")return"exit";if($.name==="tab")return"next";if($.name==="pagedown")return"nextPage";if($.name==="pageup")return"prevPage";if($.name==="home")return"home";if($.name==="end")return"end";if($.name==="up")return"up";if($.name==="down")return"down";if($.name==="right")return"right";if($.name==="left")return"left";return!1}});var Q9=A((xw,a4)=>{a4.exports=($)=>{let Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),Y=new RegExp(Z,"g");return typeof $==="string"?$.replace(Y,""):$}});var e4=A((kw,t4)=>{var kH=Q9(),{erase:o4,cursor:bH}=r(),fH=($)=>[...kH($)].length;t4.exports=function($,Z){if(!Z)return o4.line+bH.to(0);let Y=0,J=$.split(/\r?\n/);for(let K of J)Y+=1+Math.floor(Math.max(fH(K)-1,0)/Z);return o4.lines(Y)}});var lY=A((bw,$K)=>{var e$={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"},vH={arrowUp:e$.arrowUp,arrowDown:e$.arrowDown,arrowLeft:e$.arrowLeft,arrowRight:e$.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"},gH=process.platform==="win32"?vH:e$;$K.exports=gH});var YK=A((fw,ZK)=>{var V$=n(),o0=lY(),iY=Object.freeze({password:{scale:1,render:($)=>"*".repeat($.length)},emoji:{scale:2,render:($)=>"\uD83D\uDE03".repeat($.length)},invisible:{scale:0,render:($)=>""},default:{scale:1,render:($)=>`${$}`}}),hH=($)=>iY[$]||iY.default,$Z=Object.freeze({aborted:V$.red(o0.cross),done:V$.green(o0.tick),exited:V$.yellow(o0.cross),default:V$.cyan("?")}),uH=($,Z,Y)=>Z?$Z.aborted:Y?$Z.exited:$?$Z.done:$Z.default,mH=($)=>V$.gray($?o0.ellipsis:o0.pointerSmall),cH=($,Z)=>V$.gray($?Z?o0.pointerSmall:"+":o0.line);ZK.exports={styles:iY,render:hH,symbols:$Z,symbol:uH,delimiter:mH,item:cH}});var KK=A((vw,JK)=>{var pH=Q9();JK.exports=function($,Z){let Y=String(pH($)||"").split(/\r?\n/);if(!Z)return Y.length;return Y.map((J)=>Math.ceil(J.length/Z)).reduce((J,K)=>J+K)}});var QK=A((gw,zK)=>{zK.exports=($,Z={})=>{let Y=Number.isSafeInteger(parseInt(Z.margin))?Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",J=Z.width;return($||"").split(/\r?\n/g).map((K)=>K.split(/\s+/g).reduce((z,Q)=>{if(Q.length+Y.length>=J||z[z.length-1].length+Q.length+1{c8.exports=($,Y,Z)=>{Z=Z||Y;let J=Math.min(Y-Z,$-Math.floor(Z/2));if(J<0)J=0;let K=Math.min(J+Z,Y);return{startIndex:J,endIndex:K}}});var B1=C((Dq,d8)=>{d8.exports={action:M8(),clear:y8(),style:f8(),strip:B$(),figures:FY(),lines:v8(),wrap:m8(),entriesToDisplay:p8()}});var L1=C((Tq,i8)=>{var l8=_1("readline"),{action:aQ}=B1(),oQ=_1("events"),{beep:tQ,cursor:eQ}=l(),$5=d();class s8 extends oQ{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Y=l8.createInterface({input:this.in,escapeCodeTimeout:50});if(l8.emitKeypressEvents(this.in,Y),this.in.isTTY)this.in.setRawMode(!0);let Z=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=aQ(z,Z);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(eQ.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Y.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(tQ)}render(){if(this.onRender($5),this.firstRender)this.firstRender=!1}}i8.exports=s8});var a8=C((Sq,n8)=>{var F$=d(),Y5=L1(),{erase:Z5,cursor:y0}=l(),{style:OY,clear:RY,lines:J5,figures:K5}=B1();class r8 extends Y5{constructor($={}){super($);this.transform=OY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=RY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=F$.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` +`)}});var UK=A((hw,GK)=>{GK.exports=($,Z,Y)=>{Y=Y||Z;let J=Math.min(Z-Y,$-Math.floor(Y/2));if(J<0)J=0;let K=Math.min(J+Y,Z);return{startIndex:J,endIndex:K}}});var g1=A((uw,qK)=>{qK.exports={action:r4(),clear:e4(),style:YK(),strip:Q9(),figures:lY(),lines:KK(),wrap:QK(),entriesToDisplay:UK()}});var L0=A((mw,WK)=>{var HK=k("readline"),{action:dH}=g1(),lH=k("events"),{beep:iH,cursor:sH}=r(),nH=n();class VK extends lH{constructor($={}){super();this.firstRender=!0,this.in=$.stdin||process.stdin,this.out=$.stdout||process.stdout,this.onRender=($.onRender||(()=>{return})).bind(this);let Z=HK.createInterface({input:this.in,escapeCodeTimeout:50});if(HK.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);let Y=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,J=(K,z)=>{let Q=dH(z,Y);if(Q===!1)this._&&this._(K,z);else if(typeof this[Q]==="function")this[Q](z);else this.bell()};this.close=()=>{if(this.out.write(sH.show),this.in.removeListener("keypress",J),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",J)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(iH)}render(){if(this.onRender(nH),this.firstRender)this.firstRender=!1}}WK.exports=VK});var RK=A((cw,OK)=>{var G9=n(),rH=L0(),{erase:aH,cursor:ZZ}=r(),{style:sY,clear:nY,lines:oH,figures:tH}=g1();class FK extends rH{constructor($={}){super($);this.transform=sY.render($.style),this.scale=this.transform.scale,this.msg=$.message,this.initial=$.initial||"",this.validator=$.validate||(()=>!0),this.value="",this.errorMsg=$.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=nY("",this.out.columns),this.render()}set value($){if(!$&&this.initial)this.placeholder=!0,this.rendered=G9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render($);this._value=$,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(` `),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Y){let Z=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Z}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Z.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Y=this.value.slice(this.cursor);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Y=this.value.slice(this.cursor+1);if(this.value=`${$}${Y}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(y0.down(J5(this.outputError,this.out.columns)-1)+RY(this.outputError,this.out.columns));this.out.write(RY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[OY.symbol(this.done,this.aborted),F$.bold(this.msg),OY.delimiter(this.done),this.red?F$.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":K5.pointerSmall} ${F$.red().italic(Y)}`,"");this.out.write(Z5.line+y0.to(0)+this.outputText+y0.save+this.outputError+y0.restore+y0.move(this.cursorOffset,0))}}n8.exports=r8});var YJ=C((Mq,$J)=>{var x1=d(),z5=L1(),{style:o8,clear:t8,figures:U$,wrap:Q5,entriesToDisplay:G5}=B1(),{cursor:V5}=l();class e8 extends z5{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),value:Y&&(Y.value===void 0?Z:Y.value),description:Y&&Y.description,selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=t8("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor($){if(this.placeholder)return;this.cursor=this.cursor+$,this.cursorOffset+=$}_($,Z){let Y=this.value.slice(0,this.cursor),J=this.value.slice(this.cursor);this.value=`${Y}${$}${J}`,this.red=!1,this.cursor=this.placeholder?0:Y.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let $=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let $=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${$}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ZZ.down(oH(this.outputError,this.out.columns)-1)+nY(this.outputError,this.out.columns));this.out.write(nY(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[sY.symbol(this.done,this.aborted),G9.bold(this.msg),sY.delimiter(this.done),this.red?G9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":tH.pointerSmall} ${G9.red().italic(Z)}`,"");this.out.write(aH.line+ZZ.to(0)+this.outputText+ZZ.save+this.outputError+ZZ.restore+ZZ.move(this.cursorOffset,0))}}OK.exports=FK});var BK=A((pw,wK)=>{var T0=n(),eH=L0(),{style:IK,clear:EK,figures:U9,wrap:$V,entriesToDisplay:ZV}=g1(),{cursor:YV}=r();class AK extends eH{constructor($={}){super($);this.msg=$.message,this.hint=$.hint||"- Use arrow-keys. Return to submit.",this.warn=$.warn||"- This option is disabled",this.cursor=$.initial||0,this.choices=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?Y:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=$.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=EK("",this.out.columns),this.render()}moveCursor($){this.cursor=$,this.value=this.choices[$].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Y){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(V5.hide);else this.out.write(t8(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=G5(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[o8.symbol(this.done,this.aborted),x1.bold(this.msg),o8.delimiter(!1),this.done?this.selection.title:this.selection.disabled?x1.yellow(this.warn):x1.gray(this.hint)].join(" "),!this.done){this.outputText+=` -`;for(let Z=$;Z0)K=U$.arrowUp;else if(Z===Y-1&&Y=this.out.columns||Q.description.split(/\r?\n/).length>1)z=` -`+Q5(Q.description,{margin:3,width:this.out.columns})}this.outputText+=`${K} ${J}${x1.gray(z)} -`}}this.out.write(this.outputText)}}$J.exports=e8});var QJ=C((Lq,zJ)=>{var O$=d(),W5=L1(),{style:ZJ,clear:q5}=B1(),{cursor:JJ,erase:H5}=l();class KJ extends W5{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_($,Z){if($===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(YV.hide);else this.out.write(EK(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Z}=ZV(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[IK.symbol(this.done,this.aborted),T0.bold(this.msg),IK.delimiter(!1),this.done?this.selection.title:this.selection.disabled?T0.yellow(this.warn):T0.gray(this.hint)].join(" "),!this.done){this.outputText+=` +`;for(let Y=$;Y0)K=U9.arrowUp;else if(Y===Z-1&&Z=this.out.columns||Q.description.split(/\r?\n/).length>1)z=` +`+$V(Q.description,{margin:3,width:this.out.columns})}this.outputText+=`${K} ${J}${T0.gray(z)} +`}}this.out.write(this.outputText)}}wK.exports=AK});var TK=A((dw,LK)=>{var q9=n(),JV=L0(),{style:CK,clear:KV}=g1(),{cursor:DK,erase:zV}=r();class MK extends JV{constructor($={}){super($);this.msg=$.message,this.value=!!$.initial,this.active=$.active||"on",this.inactive=$.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Y){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(JJ.hide);else this.out.write(q5(this.outputText,this.out.columns));super.render(),this.outputText=[ZJ.symbol(this.done,this.aborted),O$.bold(this.msg),ZJ.delimiter(this.done),this.value?this.inactive:O$.cyan().underline(this.inactive),O$.gray("/"),this.value?O$.cyan().underline(this.active):this.active].join(" "),this.out.write(H5.line+JJ.to(0)+this.outputText)}}zJ.exports=KJ});var A1=C((xq,GJ)=>{class R${constructor({token:$,date:Y,parts:Z,locales:J}){this.token=$,this.date=Y||new Date,this.parts=Z||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Y,Z)=>Z>$&&Y instanceof R$)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Y=$.indexOf(this);return $.find((Z,J)=>J>Y&&Z instanceof R$)}toString(){return String(this.date)}}GJ.exports=R$});var qJ=C((Nq,WJ)=>{var B5=A1();class VJ extends B5{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}WJ.exports=VJ});var FJ=C((yq,BJ)=>{var F5=A1(),U5=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class HJ extends F5{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Y=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+U5($):this.token==="d"?Y+1:this.token==="ddd"?this.locales.weekdaysShort[Y]:this.token==="dddd"?this.locales.weekdays[Y]:$}}BJ.exports=HJ});var RJ=C((bq,OJ)=>{var O5=A1();class UJ extends O5{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}OJ.exports=UJ});var EJ=C((gq,AJ)=>{var R5=A1();class PJ extends R5{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}AJ.exports=PJ});var kJ=C((fq,jJ)=>{var P5=A1();class CJ extends P5{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}jJ.exports=CJ});var wJ=C((hq,IJ)=>{var A5=A1();class XJ extends A5{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Y=this.token.length;return Y===2?String($+1).padStart(2,"0"):Y===3?this.locales.monthsShort[$]:Y===4?this.locales.months[$]:String($+1)}}IJ.exports=XJ});var TJ=C((vq,DJ)=>{var E5=A1();class _J extends E5{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}DJ.exports=_J});var LJ=C((uq,MJ)=>{var C5=A1();class SJ extends C5{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}MJ.exports=SJ});var NJ=C((mq,xJ)=>{xJ.exports={DatePart:A1(),Meridiem:qJ(),Day:FJ(),Hours:RJ(),Milliseconds:EJ(),Minutes:kJ(),Month:wJ(),Seconds:TJ(),Year:LJ()}});var mJ=C((cq,uJ)=>{var PY=d(),j5=L1(),{style:yJ,clear:bJ,figures:k5}=B1(),{erase:X5,cursor:gJ}=l(),{DatePart:fJ,Meridiem:I5,Day:w5,Hours:_5,Milliseconds:D5,Minutes:T5,Month:S5,Seconds:M5,Year:L5}=NJ(),x5=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,hJ={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new w5($),3:($)=>new S5($),4:($)=>new L5($),5:($)=>new I5($),6:($)=>new _5($),7:($)=>new T5($),8:($)=>new M5($),9:($)=>new D5($)},N5={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class vJ extends j5{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(N5,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=bJ("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Y;this.parts=[];while(Y=x5.exec($)){let J=Y.shift(),K=Y.findIndex((z)=>z!=null);this.parts.push(K in hJ?hJ[K]({token:Y[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Y[K]||J)}let Z=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Z),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof fJ)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_($,Z){if($===" ")this.value=!this.value;else if($==="1")this.value=!0;else if($==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(DK.hide);else this.out.write(KV(this.outputText,this.out.columns));super.render(),this.outputText=[CK.symbol(this.done,this.aborted),q9.bold(this.msg),CK.delimiter(this.done),this.value?this.inactive:q9.cyan().underline(this.inactive),q9.gray("/"),this.value?q9.cyan().underline(this.active):this.active].join(" "),this.out.write(zV.line+DK.to(0)+this.outputText)}}LK.exports=MK});var n1=A((lw,XK)=>{class H9{constructor({token:$,date:Z,parts:Y,locales:J}){this.token=$,this.date=Z||new Date,this.parts=Y||[this],this.locales=J||{}}up(){}down(){}next(){let $=this.parts.indexOf(this);return this.parts.find((Z,Y)=>Y>$&&Z instanceof H9)}setTo($){}prev(){let $=[].concat(this.parts).reverse(),Z=$.indexOf(this);return $.find((Y,J)=>J>Z&&Y instanceof H9)}toString(){return String(this.date)}}XK.exports=H9});var jK=A((iw,NK)=>{var QV=n1();class SK extends QV{constructor($={}){super($)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let $=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?$.toUpperCase():$}}NK.exports=SK});var yK=A((sw,_K)=>{var GV=n1(),UV=($)=>{return $=$%10,$===1?"st":$===2?"nd":$===3?"rd":"th"};class PK extends GV{constructor($={}){super($)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo($){this.date.setDate(parseInt($.substr(-2)))}toString(){let $=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String($).padStart(2,"0"):this.token==="Do"?$+UV($):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:$}}_K.exports=PK});var bK=A((nw,kK)=>{var qV=n1();class xK extends qV{constructor($={}){super($)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo($){this.date.setHours(parseInt($.substr(-2)))}toString(){let $=this.date.getHours();if(/h/.test(this.token))$=$%12||12;return this.token.length>1?String($).padStart(2,"0"):$}}kK.exports=xK});var gK=A((rw,vK)=>{var HV=n1();class fK extends HV{constructor($={}){super($)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo($){this.date.setMilliseconds(parseInt($.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}vK.exports=fK});var mK=A((aw,uK)=>{var VV=n1();class hK extends VV{constructor($={}){super($)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo($){this.date.setMinutes(parseInt($.substr(-2)))}toString(){let $=this.date.getMinutes();return this.token.length>1?String($).padStart(2,"0"):$}}uK.exports=hK});var dK=A((ow,pK)=>{var WV=n1();class cK extends WV{constructor($={}){super($)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo($){$=parseInt($.substr(-2))-1,this.date.setMonth($<0?0:$)}toString(){let $=this.date.getMonth(),Z=this.token.length;return Z===2?String($+1).padStart(2,"0"):Z===3?this.locales.monthsShort[$]:Z===4?this.locales.months[$]:String($+1)}}pK.exports=cK});var sK=A((tw,iK)=>{var FV=n1();class lK extends FV{constructor($={}){super($)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo($){this.date.setSeconds(parseInt($.substr(-2)))}toString(){let $=this.date.getSeconds();return this.token.length>1?String($).padStart(2,"0"):$}}iK.exports=lK});var aK=A((ew,rK)=>{var OV=n1();class nK extends OV{constructor($={}){super($)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo($){this.date.setFullYear($.substr(-4))}toString(){let $=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?$.substr(-2):$}}rK.exports=nK});var tK=A(($B,oK)=>{oK.exports={DatePart:n1(),Meridiem:jK(),Day:yK(),Hours:bK(),Milliseconds:gK(),Minutes:mK(),Month:dK(),Seconds:sK(),Year:aK()}});var Q7=A((ZB,z7)=>{var rY=n(),RV=L0(),{style:eK,clear:$7,figures:IV}=g1(),{erase:EV,cursor:Z7}=r(),{DatePart:Y7,Meridiem:AV,Day:wV,Hours:BV,Milliseconds:CV,Minutes:DV,Month:MV,Seconds:LV,Year:TV}=tK(),XV=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,J7={1:({token:$})=>$.replace(/\\(.)/g,"$1"),2:($)=>new wV($),3:($)=>new MV($),4:($)=>new TV($),5:($)=>new AV($),6:($)=>new BV($),7:($)=>new DV($),8:($)=>new LV($),9:($)=>new CV($)},SV={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class K7 extends RV{constructor($={}){super($);this.msg=$.message,this.cursor=0,this.typed="",this.locales=Object.assign(SV,$.locales),this._date=$.initial||new Date,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.mask=$.mask||"YYYY-MM-DD HH:mm:ss",this.clear=$7("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date($){if($)this._date.setTime($.getTime())}set mask($){let Z;this.parts=[];while(Z=XV.exec($)){let J=Z.shift(),K=Z.findIndex((z)=>z!=null);this.parts.push(K in J7?J7[K]({token:Z[K]||J,date:this.date,parts:this.parts,locales:this.locales}):Z[K]||J)}let Y=this.parts.reduce((J,K)=>{if(typeof K==="string"&&typeof J[J.length-1]==="string")J[J.length-1]+=K;else J.push(K);return J},[]);this.parts.splice(0),this.parts.push(...Y),this.reset()}moveCursor($){this.typed="",this.cursor=$,this.fire()}reset(){this.moveCursor(this.parts.findIndex(($)=>$ instanceof Y7)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` `),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Y)=>Y instanceof fJ)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(gJ.hide);else this.out.write(bJ(this.outputText,this.out.columns));if(super.render(),this.outputText=[yJ.symbol(this.done,this.aborted),PY.bold(this.msg),yJ.delimiter(!1),this.parts.reduce(($,Y,Z)=>$.concat(Z===this.cursor&&!this.done?PY.cyan().underline(Y.toString()):Y),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` -`).reduce(($,Y,Z)=>$+` -${Z?" ":k5.pointerSmall} ${PY.red().italic(Y)}`,"");this.out.write(X5.line+gJ.to(0)+this.outputText)}}uJ.exports=vJ});var sJ=C((pq,lJ)=>{var P$=d(),y5=L1(),{cursor:A$,erase:b5}=l(),{style:AY,figures:g5,clear:cJ,lines:f5}=B1(),h5=/[0-9]/,EY=($)=>$!==void 0,pJ=($,Y)=>{let Z=Math.pow(10,Y);return Math.round($*Z)/Z};class dJ extends y5{constructor($={}){super($);this.transform=AY.render($.style),this.msg=$.message,this.initial=EY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=EY($.min)?$.min:-1/0,this.max=EY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=P$.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${pJ($,this.round)}`),this._value=pJ($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||h5.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` +`),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let $=this.parts[this.cursor].prev();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}right(){let $=this.parts[this.cursor].next();if($==null)return this.bell();this.moveCursor(this.parts.indexOf($)),this.render()}next(){let $=this.parts[this.cursor].next();this.moveCursor($?this.parts.indexOf($):this.parts.findIndex((Z)=>Z instanceof Y7)),this.render()}_($){if(/\d/.test($))this.typed+=$,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Z7.hide);else this.out.write($7(this.outputText,this.out.columns));if(super.render(),this.outputText=[eK.symbol(this.done,this.aborted),rY.bold(this.msg),eK.delimiter(!1),this.parts.reduce(($,Z,Y)=>$.concat(Y===this.cursor&&!this.done?rY.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split(` +`).reduce(($,Z,Y)=>$+` +${Y?" ":IV.pointerSmall} ${rY.red().italic(Z)}`,"");this.out.write(EV.line+Z7.to(0)+this.outputText)}}z7.exports=K7});var V7=A((YB,H7)=>{var V9=n(),NV=L0(),{cursor:W9,erase:jV}=r(),{style:aY,figures:PV,clear:G7,lines:_V}=g1(),yV=/[0-9]/,oY=($)=>$!==void 0,U7=($,Z)=>{let Y=Math.pow(10,Z);return Math.round($*Y)/Y};class q7 extends NV{constructor($={}){super($);this.transform=aY.render($.style),this.msg=$.message,this.initial=oY($.initial)?$.initial:"",this.float=!!$.float,this.round=$.round||2,this.inc=$.increment||1,this.min=oY($.min)?$.min:-1/0,this.max=oY($.max)?$.max:1/0,this.errorMsg=$.error||"Please Enter A Valid Value",this.validator=$.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value($){if(!$&&$!==0)this.placeholder=!0,this.rendered=V9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${U7($,this.round)}`),this._value=U7($,this.round);this.fire()}get value(){return this._value}parse($){return this.float?parseFloat($):parseInt($)}valid($){return $==="-"||$==="."&&this.float||yV.test($)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let $=this.value;this.value=$!==""?$:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write(` `),this.close()}async validate(){let $=await this.validator(this.value);if(typeof $==="string")this.errorMsg=$,$=!1;this.error=!$}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let $=this.value;this.value=$!==""?$:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Z,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` -${Z?" ":g5.pointerSmall} ${P$.red().italic(Y)}`,"");this.out.write(b5.line+A$.to(0)+this.outputText+A$.save+this.outputError+A$.restore)}}lJ.exports=dJ});var CY=C((dq,aJ)=>{var E1=d(),{cursor:v5}=l(),u5=L1(),{clear:iJ,figures:p1,style:rJ,wrap:m5,entriesToDisplay:c5}=B1();class nJ extends u5{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Y,Z)=>{if(typeof Y==="string")Y={title:Y,value:Z};return{title:Y&&(Y.title||Y.value||Y),description:Y&&Y.description,value:Y&&(Y.value===void 0?Z:Y.value),selected:Y&&Y.selected,disabled:Y&&Y.disabled}}),this.clear=iJ("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` -`),this.close()}submit(){let $=this.value.filter((Y)=>Y.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Y)=>!Y.disabled).forEach((Y)=>Y.selected=$),this.render()}_($,Y){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let $=this.value.toString();if($.length===0)return this.bell();if(this.value=this.parse($=$.slice(0,-1))||"",this.value!==""&&this.value1000)this.typed="";if(this.typed+=$,this.lastHit=Y,this.color="cyan",$===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value$+` +${Y?" ":PV.pointerSmall} ${V9.red().italic(Z)}`,"");this.out.write(jV.line+W9.to(0)+this.outputText+W9.save+this.outputError+W9.restore)}}H7.exports=q7});var tY=A((JB,R7)=>{var r1=n(),{cursor:xV}=r(),kV=L0(),{clear:W7,figures:v0,style:F7,wrap:bV,entriesToDisplay:fV}=g1();class O7 extends kV{constructor($={}){super($);if(this.msg=$.message,this.cursor=$.cursor||0,this.scrollIndex=$.cursor||0,this.hint=$.hint||"",this.warn=$.warn||"- This option is disabled -",this.minSelected=$.min,this.showMinError=!1,this.maxChoices=$.max,this.instructions=$.instructions,this.optionsPerPage=$.optionsPerPage||10,this.value=$.choices.map((Z,Y)=>{if(typeof Z==="string")Z={title:Z,value:Y};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?Y:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=W7("",this.out.columns),!$.overrideRender)this.render()}reset(){this.value.map(($)=>!$.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter(($)=>$.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +`),this.close()}submit(){let $=this.value.filter((Z)=>Z.selected);if(this.minSelected&&$.length$.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){let $=this.value[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();let $=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=$),this.render()}_($,Z){if($===" ")this.handleSpaceToggle();else if($==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${p1.arrowUp}/${p1.arrowDown}: Highlight option - ${p1.arrowLeft}/${p1.arrowRight}/[space]: Toggle selection + ${v0.arrowUp}/${v0.arrowDown}: Highlight option + ${v0.arrowLeft}/${v0.arrowRight}/[space]: Toggle selection `+(this.maxChoices===void 0?` a: Toggle all -`:"")+" enter/return: Complete answer"}return""}renderOption($,Y,Z,J){let K=(Y.selected?E1.green(p1.radioOn):p1.radioOff)+" "+J+" ",z,Q;if(Y.disabled)z=$===Z?E1.gray().underline(Y.title):E1.strikethrough().gray(Y.title);else if(z=$===Z?E1.cyan().underline(Y.title):Y.title,$===Z&&Y.description){if(Q=` - ${Y.description}`,K.length+z.length+Q.length>=this.out.columns||Y.description.split(/\r?\n/).length>1)Q=` -`+m5(Y.description,{margin:K.length,width:this.out.columns})}return K+z+E1.gray(Q||"")}paginateOptions($){if($.length===0)return E1.red("No matches for this query.");let{startIndex:Y,endIndex:Z}=c5(this.cursor,$.length,this.optionsPerPage),J,K=[];for(let z=Y;z0)J=p1.arrowUp;else if(z===Z-1&&Z<$.length)J=p1.arrowDown;else J=" ";K.push(this.renderOption(this.cursor,$[z],z,J))}return` +`:"")+" enter/return: Complete answer"}return""}renderOption($,Z,Y,J){let K=(Z.selected?r1.green(v0.radioOn):v0.radioOff)+" "+J+" ",z,Q;if(Z.disabled)z=$===Y?r1.gray().underline(Z.title):r1.strikethrough().gray(Z.title);else if(z=$===Y?r1.cyan().underline(Z.title):Z.title,$===Y&&Z.description){if(Q=` - ${Z.description}`,K.length+z.length+Q.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)Q=` +`+bV(Z.description,{margin:K.length,width:this.out.columns})}return K+z+r1.gray(Q||"")}paginateOptions($){if($.length===0)return r1.red("No matches for this query.");let{startIndex:Z,endIndex:Y}=fV(this.cursor,$.length,this.optionsPerPage),J,K=[];for(let z=Z;z0)J=v0.arrowUp;else if(z===Y-1&&Y<$.length)J=v0.arrowDown;else J=" ";K.push(this.renderOption(this.cursor,$[z],z,J))}return` `+K.join(` -`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[E1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(E1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(v5.hide);super.render();let $=[rJ.symbol(this.done,this.aborted),E1.bold(this.msg),rJ.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=E1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=iJ($,this.out.columns)}}aJ.exports=nJ});var Z6=C((lq,Y6)=>{var b0=d(),p5=L1(),{erase:d5,cursor:oJ}=l(),{style:jY,clear:tJ,figures:kY,wrap:l5,entriesToDisplay:s5}=B1(),eJ=($,Y)=>$[Y]&&($[Y].value||$[Y].title||$[Y]),i5=($,Y)=>$[Y]&&($[Y].title||$[Y].value||$[Y]),r5=($,Y)=>{let Z=$.findIndex((J)=>J.value===Y||J.title===Y);return Z>-1?Z:void 0};class $6 extends p5{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:r5($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=jY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=tJ("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=eJ(this.suggestions,$);else this.value=this.fallback.value;this.fire()}async complete($){let Y=this.completing=this.suggest(this.input,this.choices),Z=await Y;if(this.completing!==Y)return;this.suggestions=Z.map((K,z,Q)=>({title:i5(Q,z),value:eJ(Q,z),description:K.description})),this.completing=!1;let J=Math.max(Z.length-1,0);this.moveSelect(Math.min(J,this.select)),$&&$()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` +`)}renderOptions($){if(!this.done)return this.paginateOptions($);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[r1.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)$.push(r1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(xV.hide);super.render();let $=[F7.symbol(this.done,this.aborted),r1.bold(this.msg),F7.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=r1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.value),this.out.write(this.clear+$),this.clear=W7($,this.out.columns)}}R7.exports=O7});var C7=A((KB,B7)=>{var YZ=n(),vV=L0(),{erase:gV,cursor:I7}=r(),{style:eY,clear:E7,figures:$8,wrap:hV,entriesToDisplay:uV}=g1(),A7=($,Z)=>$[Z]&&($[Z].value||$[Z].title||$[Z]),mV=($,Z)=>$[Z]&&($[Z].title||$[Z].value||$[Z]),cV=($,Z)=>{let Y=$.findIndex((J)=>J.value===Z||J.title===Z);return Y>-1?Y:void 0};class w7 extends vV{constructor($={}){super($);this.msg=$.message,this.suggest=$.suggest,this.choices=$.choices,this.initial=typeof $.initial==="number"?$.initial:cV($.choices,$.initial),this.select=this.initial||$.cursor||0,this.i18n={noMatches:$.noMatches||"no matches found"},this.fallback=$.fallback||this.initial,this.clearFirst=$.clearFirst||!1,this.suggestions=[],this.input="",this.limit=$.limit||10,this.cursor=0,this.transform=eY.render($.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=E7("",this.out.columns),this.complete(this.render),this.render()}set fallback($){this._fb=Number.isSafeInteger(parseInt($))?parseInt($):$}get fallback(){let $;if(typeof this._fb==="number")$=this.choices[this._fb];else if(typeof this._fb==="string")$={title:this._fb};return $||this._fb||{title:this.i18n.noMatches}}moveSelect($){if(this.select=$,this.suggestions.length>0)this.value=A7(this.suggestions,$);else this.value=this.fallback.value;this.fire()}async complete($){let Z=this.completing=this.suggest(this.input,this.choices),Y=await Z;if(this.completing!==Z)return;this.suggestions=Y.map((K,z,Q)=>({title:mV(Q,z),value:A7(Q,z),description:K.description})),this.completing=!1;let J=Math.max(Y.length-1,0);this.moveSelect(Math.min(J,this.select)),$&&$()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` `),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){let Z=this.input.slice(0,this.cursor),J=this.input.slice(this.cursor);this.input=`${Z}${$}${J}`,this.cursor=Z.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let $=this.input.slice(0,this.cursor-1),Y=this.input.slice(this.cursor);this.input=`${$}${Y}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Y=this.input.slice(this.cursor+1);this.input=`${$}${Y}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Y,Z,J){let K,z=Z?kY.arrowUp:J?kY.arrowDown:" ",Q=Y?b0.cyan().underline($.title):$.title;if(z=(Y?b0.cyan(kY.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` -`+l5($.description,{margin:3,width:this.out.columns})}return z+" "+Q+b0.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(oJ.hide);else this.out.write(tJ(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Y}=s5(this.select,this.choices.length,this.limit);if(this.outputText=[jY.symbol(this.done,this.aborted,this.exited),b0.bold(this.msg),jY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let Z=this.suggestions.slice($,Y).map((J,K)=>this.renderOption(J,this.select===K+$,K===0&&$>0,K+$===Y-1&&Y=this.rendered.length)return this.bell();let $=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${$}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption($,Z,Y,J){let K,z=Y?$8.arrowUp:J?$8.arrowDown:" ",Q=Z?YZ.cyan().underline($.title):$.title;if(z=(Z?YZ.cyan($8.pointer)+" ":" ")+z,$.description){if(K=` - ${$.description}`,z.length+Q.length+K.length>=this.out.columns||$.description.split(/\r?\n/).length>1)K=` +`+hV($.description,{margin:3,width:this.out.columns})}return z+" "+Q+YZ.gray(K||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(I7.hide);else this.out.write(E7(this.outputText,this.out.columns));super.render();let{startIndex:$,endIndex:Z}=uV(this.select,this.choices.length,this.limit);if(this.outputText=[eY.symbol(this.done,this.aborted,this.exited),YZ.bold(this.msg),eY.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){let Y=this.suggestions.slice($,Z).map((J,K)=>this.renderOption(J,this.select===K+$,K===0&&$>0,K+$===Z-1&&Z{var N1=d(),{cursor:n5}=l(),a5=CY(),{clear:J6,style:K6,figures:H0}=B1();class z6 extends a5{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=J6("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Z)=>{if(this.inputValue){if(typeof Z.title==="string"){if(Z.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Z.value==="string"){if(Z.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Y=this.filteredOptions.findIndex((Z)=>Z===$);this.cursor=Y<0?0:Y,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Y)=>Y.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Y){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` +`+(Y||YZ.gray(this.fallback.title))}this.out.write(gV.line+I7.to(0)+this.outputText)}}B7.exports=w7});var X7=A((zB,T7)=>{var X0=n(),{cursor:pV}=r(),dV=tY(),{clear:D7,style:M7,figures:W$}=g1();class L7 extends dV{constructor($={}){$.overrideRender=!0;super($);this.inputValue="",this.clear=D7("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter(($)=>$.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){let $=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((Y)=>{if(this.inputValue){if(typeof Y.title==="string"){if(Y.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof Y.value==="string"){if(Y.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});let Z=this.filteredOptions.findIndex((Y)=>Y===$);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){let $=this.filteredOptions[this.cursor];if($.selected)$.selected=!1,this.render();else if($.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else $.selected=!0,this.render()}handleInputChange($){this.inputValue=this.inputValue+$,this.updateFilteredOptions()}_($,Z){if($===" ")this.handleSpaceToggle();else this.handleInputChange($)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return` Instructions: - ${H0.arrowUp}/${H0.arrowDown}: Highlight option - ${H0.arrowLeft}/${H0.arrowRight}/[space]: Toggle selection + ${W$.arrowUp}/${W$.arrowDown}: Highlight option + ${W$.arrowLeft}/${W$.arrowRight}/[space]: Toggle selection [a,b,c]/delete: Filter choices enter/return: Complete answer `}return""}renderCurrentInput(){return` -Filtered results for: ${this.inputValue?this.inputValue:N1.gray("Enter something to filter")} -`}renderOption($,Y,Z){let J;if(Y.disabled)J=$===Z?N1.gray().underline(Y.title):N1.strikethrough().gray(Y.title);else J=$===Z?N1.cyan().underline(Y.title):Y.title;return(Y.selected?N1.green(H0.radioOn):H0.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Y)=>Y.selected).map((Y)=>Y.title).join(", ");let $=[N1.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(N1.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n5.hide);super.render();let $=[K6.symbol(this.done,this.aborted),N1.bold(this.msg),K6.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=N1.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=J6($,this.out.columns)}}Q6.exports=z6});var F6=C((iq,B6)=>{var V6=d(),o5=L1(),{style:W6,clear:t5}=B1(),{erase:e5,cursor:q6}=l();class H6 extends o5{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` +Filtered results for: ${this.inputValue?this.inputValue:X0.gray("Enter something to filter")} +`}renderOption($,Z,Y){let J;if(Z.disabled)J=$===Y?X0.gray().underline(Z.title):X0.strikethrough().gray(Z.title);else J=$===Y?X0.cyan().underline(Z.title):Z.title;return(Z.selected?X0.green(W$.radioOn):W$.radioOff)+" "+J}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");let $=[X0.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)$.push(X0.yellow(this.warn));return $.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(pV.hide);super.render();let $=[M7.symbol(this.done,this.aborted),X0.bold(this.msg),M7.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)$+=X0.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;$+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+$),this.clear=D7($,this.out.columns)}}T7.exports=L7});var y7=A((QB,_7)=>{var S7=n(),lV=L0(),{style:N7,clear:iV}=g1(),{erase:sV,cursor:j7}=r();class P7 extends lV{constructor($={}){super($);this.msg=$.message,this.value=$.initial,this.initialValue=!!$.initial,this.yesMsg=$.yes||"yes",this.yesOption=$.yesOption||"(Y/n)",this.noMsg=$.no||"no",this.noOption=$.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write(` `),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write(` -`),this.close()}_($,Y){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(q6.hide);else this.out.write(t5(this.outputText,this.out.columns));super.render(),this.outputText=[W6.symbol(this.done,this.aborted),V6.bold(this.msg),W6.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:V6.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(e5.line+q6.to(0)+this.outputText)}}B6.exports=H6});var O6=C((rq,U6)=>{U6.exports={TextPrompt:a8(),SelectPrompt:YJ(),TogglePrompt:QJ(),DatePrompt:mJ(),NumberPrompt:sJ(),MultiselectPrompt:CY(),AutocompletePrompt:Z6(),AutocompleteMultiselectPrompt:G6(),ConfirmPrompt:F6()}});var P6=C((R6)=>{var Y1=R6,$G=O6(),E$=($)=>$;function C1($,Y,Z={}){return new Promise((J,K)=>{let z=new $G[$](Y),Q=Z.onAbort||E$,W=Z.onSubmit||E$,G=Z.onExit||E$;z.on("state",Y.onState||E$),z.on("submit",(q)=>J(W(q))),z.on("exit",(q)=>J(G(q))),z.on("abort",(q)=>K(Q(q)))})}Y1.text=($)=>C1("TextPrompt",$);Y1.password=($)=>{return $.style="password",Y1.text($)};Y1.invisible=($)=>{return $.style="invisible",Y1.text($)};Y1.number=($)=>C1("NumberPrompt",$);Y1.date=($)=>C1("DatePrompt",$);Y1.confirm=($)=>C1("ConfirmPrompt",$);Y1.list=($)=>{let Y=$.separator||",";return C1("TextPrompt",$,{onSubmit:(Z)=>Z.split(Y).map((J)=>J.trim())})};Y1.toggle=($)=>C1("TogglePrompt",$);Y1.select=($)=>C1("SelectPrompt",$);Y1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("MultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};Y1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Y=(Z)=>Z.filter((J)=>J.selected).map((J)=>J.value);return C1("AutocompleteMultiselectPrompt",$,{onAbort:Y,onSubmit:Y})};var YG=($,Y)=>Promise.resolve(Y.filter((Z)=>Z.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));Y1.autocomplete=($)=>{return $.suggest=$.suggest||YG,$.choices=[].concat($.choices||[]),C1("AutocompletePrompt",$)}});var C6=C((aq,E6)=>{var XY=P6(),ZG=["suggest","format","onState","validate","onRender","type"],A6=()=>{};async function d1($=[],{onSubmit:Y=A6,onCancel:Z=A6}={}){let J={},K=d1._override||{};$=[].concat($);let z,Q,W,G,q,H,R=async(P,j,w=!1)=>{if(!w&&P.validate&&P.validate(j)!==!0)return;return P.format?await P.format(j,J):j};for(Q of $){if({name:G,type:q}=Q,typeof q==="function")q=await q(z,{...J},Q),Q.type=q;if(!q)continue;for(let P in Q){if(ZG.includes(P))continue;let j=Q[P];Q[P]=typeof j==="function"?await j(z,{...J},H):j}if(H=Q,typeof Q.message!=="string")throw Error("prompt message is required");if({name:G,type:q}=Q,XY[q]===void 0)throw Error(`prompt type (${q}) is not defined`);if(K[Q.name]!==void 0){if(z=await R(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=d1._injected?JG(d1._injected,Q.initial):await XY[q](Q),J[G]=z=await R(Q,z,!0),W=await Y(Q,z,J)}catch(P){W=!await Z(Q,J)}if(W)return J}return J}function JG($,Y){let Z=$.shift();if(Z instanceof Error)throw Z;return Z===void 0?Y:Z}function KG($){d1._injected=(d1._injected||[]).concat($)}function zG($){d1._override=Object.assign({},$)}E6.exports=Object.assign(d1,{prompt:d1,prompts:XY,inject:KG,override:zG})});var k6=C((oq,j6)=>{function QG($){$=(Array.isArray($)?$:$.split(".")).map(Number);let Y=0,Z=process.versions.node.split(".").map(Number);for(;Y<$.length;Y++){if(Z[Y]>$[Y])return!1;if($[Y]>Z[Y])return!0}return!1}j6.exports=QG("8.6.0")?T8():C6()});var D6=C((w6)=>{Object.defineProperty(w6,"__esModule",{value:!0});w6.isPBXFileReference=w6.isPBXBuildFile=w6.createReferenceList=void 0;function GG($){let Z=$?.objects??{},J={};function K(G){for(let[q,H]of Object.entries(Z))if(H.buildConfigurationList===G){let R=H.name??H.path??H.productName;if(!R){if(R=Z[H.targets?.[0]]?.productName??Z[H.targets?.[0]]?.name,!R)R=Object.values(Z).find((j)=>j.isa==="PBXContainerItemProxy"&&j.containerPortal===q)?.remoteInfo}return`Build configuration list for ${H.isa} "${R}"`}return"Build configuration list for [unknown]"}function z(G){let q=Object.values(Z).find((H)=>H.files?.includes(G));return q?X6(q):null}function Q(G,q){let H=z(G)??"[missing build phase]",R=q.fileRef??q.productRef;if(!R)return`[unknown] in ${H}`;return`${W(R,Z[R])} in ${H}`}function W(G,q){if(!q?.isa)return null;if(G in J)return J[G];if(I6(q))J[G]=Q(G,q);else if(FG(q))J[G]=K(G);else if(HG(q))if(q.repositoryURL)J[G]=`${q.isa} "${VG(q.repositoryURL)}"`;else J[G]=q.isa;else if(BG(q))if(q.relativePath)J[G]=`${q.isa} "${q.relativePath}"`;else J[G]=q.isa;else if(WG(q))J[G]="Project object";else if(q.isa?.endsWith("BuildPhase"))J[G]=X6(q)??"";else if(q.isa==="PBXGroup"&&q.name===void 0&&q.path===void 0)J[G]="";else J[G]=q.name??q.productName??q.path??q.isa??null;return J[G]??null}return Object.entries(Z).forEach(([G,q])=>{if(!W(G,q));}),J}w6.createReferenceList=GG;function VG($){try{let Y=new URL($);if(Y.hostname==="github.com")return Y.pathname.split("/").pop()}catch{}return $}function WG($){return $?.isa==="PBXProject"}function I6($){return $?.isa==="PBXBuildFile"}w6.isPBXBuildFile=I6;function qG($){return $?.isa==="PBXFileReference"}w6.isPBXFileReference=qG;function HG($){return $?.isa==="XCRemoteSwiftPackageReference"}function BG($){return $?.isa==="XCLocalSwiftPackageReference"}function FG($){return $?.isa==="XCConfigurationList"}function X6($){return $.name??UG($.isa)}function UG($){return $.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var L6=C((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.Writer=void 0;var wY=D6(),PG={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':"\\\"","\\":"\\\\","\x00":"\\U0000","\x01":"\\U0001","\x02":"\\U0002","\x03":"\\U0003","\x04":"\\U0004","\x05":"\\U0005","\x06":"\\U0006","\x0E":"\\U000e","\x0F":"\\U000f","\x10":"\\U0010","\x11":"\\U0011","\x12":"\\U0012","\x13":"\\U0013","\x14":"\\U0014","\x15":"\\U0015","\x16":"\\U0016","\x17":"\\U0017","\x18":"\\U0018","\x19":"\\U0019","\x1A":"\\U001a","\x1B":"\\U001b","\x1C":"\\U001c","\x1D":"\\U001d","\x1E":"\\U001e","\x1F":"\\U001f"},AG=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function EG($){return String($).replace(AG,(Y)=>PG[Y]||Y)}var g0=` -`;try{g0=_1("os").EOL}catch{}function _Y($){return typeof $==="object"&&$!==null&&!($ instanceof Buffer)}function z1($){if($=EG($),/^[\w_$/:.]+$/.test($))return $;return`"${$}"`}function DY($){return`<${$.toString("hex").toUpperCase()}>`}function CG($){let Y={};return Object.entries($).forEach(([Z,J])=>{if(!Y[J.isa])Y[J.isa]=[];Y[J.isa].push([Z,J])}),Object.entries(Y).sort()}class T6{pad($){let Y=this.options.tab??"\t";return $>0?Y+this.pad($-1):""}constructor($,Y={}){this.project=$,this.options=Y,this.indent=0,this.contents="",this.comments={},this.comments=(0,wY.createReferenceList)($),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println($){this.contents+=this.pad(this.indent),this.contents+=$,this.contents+=g0}write($){this.contents+=this.pad(this.indent),this.contents+=$}printAssignLn($,Y){return this.println($+" = "+Y+";")}flush($){let Y=this.indent;this.indent=0,this.write($),this.indent=Y}writeShebang(){let $=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${$}`)}formatId($,Y=this.comments[$]){if(Y)return`${$} /* ${Y} */`;return z1($)}writeProject(){if(this.println("{"),this.project)this.indent++,this.writeObject(this.project,!0),this.indent--;this.println("}")}keyHasFloatValue($){return $===$.toUpperCase()&&($.endsWith("SWIFT_VERSION")||$.endsWith("MARKETING_VERSION")||$.endsWith("_DEPLOYMENT_TARGET"))}writeObject($,Y){Object.entries($).sort(([Z],[J])=>{if(Z==="isa")return-1;if(J==="isa")return 1;return ZJ?1:0}).forEach(([Z,J])=>{if(this.options.skipNullishValues&&J==null)return;else if(J instanceof Buffer)this.printAssignLn(z1(Z),DY(J));else if(Array.isArray(J))this.writeArray(Z,J);else if(_Y(J)){if(!Y&&!Object.keys(J).length){this.println(z1(Z)+" = {};");return}if(this.println(z1(Z)+" = {"),this.indent++,Y&&Z==="objects")this.writePbxObjects(J);else this.writeObject(J,Y);this.indent--,this.println("};")}else if(typeof J==="number"){let K=this.keyHasFloatValue(Z)&&Number.isInteger(J)?`${J}.0`:J;this.printAssignLn(z1(Z),z1(K))}else this.printAssignLn(z1(Z),Z==="remoteGlobalIDString"||Z==="TestTargetID"?z1(J):this.formatId(J))})}writePbxObjects($){CG($).forEach(([Y,Z])=>{this.flush(g0),this.flush(`/* Begin ${Y} section */`+g0),Z.sort(([J],[K])=>J.localeCompare(K)).forEach(([J,K])=>this.writeObjectInclusive(J,K)),this.flush(`/* End ${Y} section */`+g0)})}writeArray($,Y){this.println(z1($)+" = ("),this.indent++,Y.forEach((Z)=>{if(Z instanceof Buffer)this.println(DY(Z)+",");else if(Z==null)return;else if(_Y(Z)){if(this.println("{"),Z)this.indent++,this.writeObject(Z),this.indent--;this.println("},")}else this.println(this.formatId(String(Z))+",")}),this.indent--,this.println(");")}writeObjectInclusive($,Y){if((0,wY.isPBXBuildFile)(Y)||(0,wY.isPBXFileReference)(Y))return this.writeObjectWithoutIndent($,Y);this.println(this.formatId($)+" = {"),this.indent++,this.writeObject(Y),this.indent--,this.println("};")}writeObjectWithoutIndent($,Y){let Z=[],J=(K,z)=>{Z.push(this.formatId(K)+" = {"),Object.entries(z).sort(([Q],[W])=>{if(Q==="isa")return-1;if(W==="isa")return 1;return QW?1:0}).forEach(([Q,W])=>{if(this.options.skipNullishValues&&W==null)return;else if(W instanceof Buffer)Z.push(z1(Q)+" = "+DY(W)+"; ");else if(Array.isArray(W))Z.push(z1(Q)+" = ("),W.forEach((G)=>Z.push(z1(G)+", ")),Z.push("); ");else if(_Y(W))J(Q,W);else Z.push(z1(Q)+" = "+this.formatId(W)+"; ")}),Z.push("}; ")};J($,Y),this.println(Z.join("").trim())}}S6.Writer=T6});var u6=C((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.parse=h6.Parser=void 0;var jG={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},kG=32,XG=9,SY=10,IG=13,x6=123,wG=125,N6=40,_G=41,DG=59,TG=44,SG=61,y6=34,b6=39,g6=92,TY=47,f6=42,MG=60,LG=62,xG={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},B0=new Uint8Array(256);B0[kG]=1;B0[XG]=1;B0[SY]=1;B0[IG]=1;var j1=new Uint8Array(256);for(let $=65;$<=90;$++)j1[$]=1;for(let $=97;$<=122;$++)j1[$]=1;for(let $=48;$<=57;$++)j1[$]=1;j1[95]=1;j1[36]=1;j1[47]=1;j1[58]=1;j1[46]=1;j1[45]=1;var f0=new Uint8Array(256);for(let $=48;$<=57;$++)f0[$]=1;for(let $=65;$<=70;$++)f0[$]=1;for(let $=97;$<=102;$++)f0[$]=1;var MY=new Uint8Array(256);for(let $=48;$<=55;$++)MY[$]=1;var C$=new Uint8Array(256);for(let $=48;$<=57;$++)C$[$]=1;class LY{constructor($){this.pos=0,this.text=$,this.len=$.length}parse(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===x6)return this.parseObject();else if($===N6)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){while(this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===wG)return this.pos++,$;let Z=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==SG)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),$[Z]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==DG)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let $=[];while(!0){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===_G)return this.pos++,$;if($.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===TG)this.pos++}}parseValue(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===x6)return this.parseObject();if($===N6)return this.parseArray();if($===MG)return this.parseDataLiteral();if($===y6||$===b6)return this.parseQuotedString();return this.parseStringLiteral()}parseIdentifierAsString(){let $=this.text.charCodeAt(this.pos);if($===y6||$===b6)return this.parseQuotedString();return this.parseStringLiteralRaw()}parseStringLiteralRaw(){let $=this.pos;while(this.pos1)return $;let W=parseInt($,10);if(Number.isSafeInteger(W))return W;return $}let K=!1,z=!0,Q=!1;for(let W=0;W=this.len)throw this.error("Unterminated string");let J=this.text.slice(Y,this.pos);return this.pos++,this.unescapeString(J)}unescapeString($){let Y=[],Z=0,J=$.length;while(Z=128?jG[q]||q:q;Y.push(String.fromCharCode(H)),Z=G;continue}Y.push($[Z],$[Z+1]),Z+=2}else Y.push($[Z]),Z++;return Y.join("")}isHexString($){if($.length!==4)return!1;for(let Y=0;Y<4;Y++)if(!f0[$.charCodeAt(Y)])return!1;return!0}parseDataLiteral(){this.pos++;let $=[];while(this.pos{Object.defineProperty(p6,"__esModule",{value:!0});p6.SubFolder=p6.ProxyType=p6.ISA=void 0;var bG;(function($){$.PBXBuildFile="PBXBuildFile",$.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",$.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",$.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",$.PBXHeadersBuildPhase="PBXHeadersBuildPhase",$.PBXResourcesBuildPhase="PBXResourcesBuildPhase",$.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",$.PBXSourcesBuildPhase="PBXSourcesBuildPhase",$.PBXRezBuildPhase="PBXRezBuildPhase",$.PBXContainerItemProxy="PBXContainerItemProxy",$.PBXFileReference="PBXFileReference",$.PBXGroup="PBXGroup",$.PBXVariantGroup="PBXVariantGroup",$.XCVersionGroup="XCVersionGroup",$.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",$.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",$.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",$.PBXNativeTarget="PBXNativeTarget",$.PBXAggregateTarget="PBXAggregateTarget",$.PBXLegacyTarget="PBXLegacyTarget",$.PBXProject="PBXProject",$.PBXTargetDependency="PBXTargetDependency",$.XCBuildConfiguration="XCBuildConfiguration",$.XCConfigurationList="XCConfigurationList",$.PBXBuildRule="PBXBuildRule",$.PBXReferenceProxy="PBXReferenceProxy",$.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",$.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",$.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(bG=p6.ISA||(p6.ISA={}));var gG;(function($){$[$.targetReference=1]="targetReference",$[$.reference=2]="reference"})(gG=p6.ProxyType||(p6.ProxyType={}));var fG;(function($){$[$.absolutePath=0]="absolutePath",$[$.productsDirectory=16]="productsDirectory",$[$.wrapper=1]="wrapper",$[$.executables=6]="executables",$[$.resources=7]="resources",$[$.javaResources=15]="javaResources",$[$.frameworks=10]="frameworks",$[$.sharedFrameworks=11]="sharedFrameworks",$[$.sharedSupport=12]="sharedSupport",$[$.plugins=13]="plugins"})(fG=p6.SubFolder||(p6.SubFolder={}))});var l6=C((F1)=>{var hG=F1&&F1.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),vG=F1&&F1.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))hG(Y,$,Z)};Object.defineProperty(F1,"__esModule",{value:!0});F1.build=F1.parse=void 0;var uG=L6(),mG=u6();Object.defineProperty(F1,"parse",{enumerable:!0,get:function(){return mG.parse}});function cG($){return new uG.Writer($).getResults()}F1.build=cG;vG(d6(),F1)});var h0=C((dG)=>{function pG($,Y,Z){if(Z===void 0)Z=Array.prototype;if($&&typeof Z.find==="function")return Z.find.call($,Y);for(var J=0;J<$.length;J++)if(Object.prototype.hasOwnProperty.call($,J)){var K=$[J];if(Y.call(void 0,K,J,$))return K}}function NY($,Y){if(Y===void 0)Y=Object;return Y&&typeof Y.freeze==="function"?Y.freeze($):$}var s6=NY({HTML:"text/html",isHTML:function($){return $===s6.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),i6=NY({HTML:"http://www.w3.org/1999/xhtml",isHTML:function($){return $===i6.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});dG.find=pG;dG.freeze=NY;dG.MIME_TYPE=s6;dG.NAMESPACE=i6});var dY=C((V2)=>{var Y4=h0(),k1=Y4.find,v0=Y4.NAMESPACE;function nG($){return $!==""}function aG($){return $?$.split(/[\t\n\f\r ]+/).filter(nG):[]}function oG($,Y){if(!$.hasOwnProperty(Y))$[Y]=!0;return $}function r6($){if(!$)return[];var Y=aG($);return Object.keys(Y.reduce(oG,{}))}function tG($){return function(Y){return $&&$.indexOf(Y)!==-1}}function m0($,Y){for(var Z in $)if(Object.prototype.hasOwnProperty.call($,Z))Y[Z]=$[Z]}function J1($,Y){var Z=$.prototype;if(!(Z instanceof Y)){let K=function(){};var J=K;K.prototype=Y.prototype,K=new K,m0(Z,K),$.prototype=Z=K}if(Z.constructor!=$){if(typeof $!="function")console.error("unknown Class:"+$);Z.constructor=$}}var K1={},U1=K1.ELEMENT_NODE=1,U0=K1.ATTRIBUTE_NODE=2,j$=K1.TEXT_NODE=3,Z4=K1.CDATA_SECTION_NODE=4,J4=K1.ENTITY_REFERENCE_NODE=5,eG=K1.ENTITY_NODE=6,K4=K1.PROCESSING_INSTRUCTION_NODE=7,z4=K1.COMMENT_NODE=8,Q4=K1.DOCUMENT_NODE=9,G4=K1.DOCUMENT_TYPE_NODE=10,b1=K1.DOCUMENT_FRAGMENT_NODE=11,$2=K1.NOTATION_NODE=12,o={},r={},zH=o.INDEX_SIZE_ERR=(r[1]="Index size error",1),QH=o.DOMSTRING_SIZE_ERR=(r[2]="DOMString size error",2),Z1=o.HIERARCHY_REQUEST_ERR=(r[3]="Hierarchy request error",3),GH=o.WRONG_DOCUMENT_ERR=(r[4]="Wrong document",4),VH=o.INVALID_CHARACTER_ERR=(r[5]="Invalid character",5),WH=o.NO_DATA_ALLOWED_ERR=(r[6]="No data allowed",6),qH=o.NO_MODIFICATION_ALLOWED_ERR=(r[7]="No modification allowed",7),V4=o.NOT_FOUND_ERR=(r[8]="Not found",8),HH=o.NOT_SUPPORTED_ERR=(r[9]="Not supported",9),n6=o.INUSE_ATTRIBUTE_ERR=(r[10]="Attribute in use",10),BH=o.INVALID_STATE_ERR=(r[11]="Invalid state",11),FH=o.SYNTAX_ERR=(r[12]="Syntax error",12),UH=o.INVALID_MODIFICATION_ERR=(r[13]="Invalid modification",13),OH=o.NAMESPACE_ERR=(r[14]="Invalid namespace",14),RH=o.INVALID_ACCESS_ERR=(r[15]="Invalid access",15);function s($,Y){if(Y instanceof Error)var Z=Y;else if(Z=this,Error.call(this,r[$]),this.message=r[$],Error.captureStackTrace)Error.captureStackTrace(this,s);if(Z.code=$,Y)this.message=this.message+": "+Y;return Z}s.prototype=Error.prototype;m0(o,s);function y1(){}y1.prototype={length:0,item:function($){return $>=0&&$=0){var K=Y.length-1;while(J0},lookupPrefix:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){for(var J in Z)if(Object.prototype.hasOwnProperty.call(Z,J)&&Z[J]===$)return J}Y=Y.nodeType==U0?Y.ownerDocument:Y.parentNode}return null},lookupNamespaceURI:function($){var Y=this;while(Y){var Z=Y._nsMap;if(Z){if($ in Z){if(Object.prototype.hasOwnProperty.call(Z,$))return Z[$]}}Y=Y.nodeType==U0?Y.ownerDocument:Y.parentNode}return null},isDefaultNamespace:function($){var Y=this.lookupPrefix($);return Y==null}};function H4($){return $=="<"&&"<"||$==">"&&">"||$=="&"&&"&"||$=='"'&&"""||"&#"+$.charCodeAt()+";"}m0(K1,f);m0(K1,f.prototype);function u0($,Y){if(Y($))return!0;if($=$.firstChild)do if(u0($,Y))return!0;while($=$.nextSibling)}function c0(){this.ownerDocument=this}function Y2($,Y,Z){$&&$._inc++;var J=Z.namespaceURI;if(J===v0.XMLNS)Y._nsMap[Z.prefix?Z.localName:""]=Z.value}function B4($,Y,Z,J){$&&$._inc++;var K=Z.namespaceURI;if(K===v0.XMLNS)delete Y._nsMap[Z.prefix?Z.localName:""]}function fY($,Y,Z){if($&&$._inc){$._inc++;var J=Y.childNodes;if(Z)J[J.length++]=Z;else{var K=Y.firstChild,z=0;while(K)J[z++]=K,K=K.nextSibling;J.length=z,delete J[J.length]}}}function F4($,Y){var{previousSibling:Z,nextSibling:J}=Y;if(Z)Z.nextSibling=J;else $.firstChild=J;if(J)J.previousSibling=Z;else $.lastChild=Z;return Y.parentNode=null,Y.previousSibling=null,Y.nextSibling=null,fY($.ownerDocument,$),Y}function Z2($){return $&&($.nodeType===f.DOCUMENT_NODE||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.ELEMENT_NODE)}function J2($){return $&&(X1($)||hY($)||g1($)||$.nodeType===f.DOCUMENT_FRAGMENT_NODE||$.nodeType===f.COMMENT_NODE||$.nodeType===f.PROCESSING_INSTRUCTION_NODE)}function g1($){return $&&$.nodeType===f.DOCUMENT_TYPE_NODE}function X1($){return $&&$.nodeType===f.ELEMENT_NODE}function hY($){return $&&$.nodeType===f.TEXT_NODE}function t6($,Y){var Z=$.childNodes||[];if(k1(Z,X1)||g1(Y))return!1;var J=k1(Z,g1);return!(Y&&J&&Z.indexOf(J)>Z.indexOf(Y))}function e6($,Y){var Z=$.childNodes||[];function J(z){return X1(z)&&z!==Y}if(k1(Z,J))return!1;var K=k1(Z,g1);return!(Y&&K&&Z.indexOf(K)>Z.indexOf(Y))}function K2($,Y,Z){if(!Z2($))throw new s(Z1,"Unexpected parent node type "+$.nodeType);if(Z&&Z.parentNode!==$)throw new s(V4,"child not in parent");if(!J2(Y)||g1(Y)&&$.nodeType!==f.DOCUMENT_NODE)throw new s(Z1,"Unexpected node type "+Y.nodeType+" for parent node type "+$.nodeType)}function z2($,Y,Z){var J=$.childNodes||[],K=Y.childNodes||[];if(Y.nodeType===f.DOCUMENT_FRAGMENT_NODE){var z=K.filter(X1);if(z.length>1||k1(K,hY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!t6($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(X1(Y)){if(!t6($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(g1(Y)){if(k1(J,g1))throw new s(Z1,"Only one doctype is allowed");var Q=k1(J,X1);if(Z&&J.indexOf(Q)1||k1(K,hY))throw new s(Z1,"More than one element or text in fragment");if(z.length===1&&!e6($,Z))throw new s(Z1,"Element in fragment can not be inserted before doctype")}if(X1(Y)){if(!e6($,Z))throw new s(Z1,"Only one element can be added and only after doctype")}if(g1(Y)){let G=function(q){return g1(q)&&q!==Z};var W=G;if(k1(J,G))throw new s(Z1,"Only one doctype is allowed");var Q=k1(J,X1);if(Z&&J.indexOf(Q)0)u0(Z.documentElement,function(K){if(K!==Z&&K.nodeType===U1){var z=K.getAttribute("class");if(z){var Q=$===z;if(!Q){var W=r6(z);Q=Y.every(tG(W))}if(Q)J.push(K)}}});return J})},createElement:function($){var Y=new Y0;Y.ownerDocument=this,Y.nodeName=$,Y.tagName=$,Y.localName=$,Y.childNodes=new y1;var Z=Y.attributes=new k$;return Z._ownerElement=Y,Y},createDocumentFragment:function(){var $=new _$;return $.ownerDocument=this,$.childNodes=new y1,$},createTextNode:function($){var Y=new vY;return Y.ownerDocument=this,Y.appendData($),Y},createComment:function($){var Y=new uY;return Y.ownerDocument=this,Y.appendData($),Y},createCDATASection:function($){var Y=new mY;return Y.ownerDocument=this,Y.appendData($),Y},createProcessingInstruction:function($,Y){var Z=new pY;return Z.ownerDocument=this,Z.tagName=Z.nodeName=Z.target=$,Z.nodeValue=Z.data=Y,Z},createAttribute:function($){var Y=new I$;return Y.ownerDocument=this,Y.name=$,Y.nodeName=$,Y.localName=$,Y.specified=!0,Y},createEntityReference:function($){var Y=new cY;return Y.ownerDocument=this,Y.nodeName=$,Y},createElementNS:function($,Y){var Z=new Y0,J=Y.split(":"),K=Z.attributes=new k$;if(Z.childNodes=new y1,Z.ownerDocument=this,Z.nodeName=Y,Z.tagName=Y,Z.namespaceURI=$,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return K._ownerElement=Z,Z},createAttributeNS:function($,Y){var Z=new I$,J=Y.split(":");if(Z.ownerDocument=this,Z.nodeName=Y,Z.name=Y,Z.namespaceURI=$,Z.specified=!0,J.length==2)Z.prefix=J[0],Z.localName=J[1];else Z.localName=Y;return Z}};J1(c0,f);function Y0(){this._nsMap={}}Y0.prototype={nodeType:U1,hasAttribute:function($){return this.getAttributeNode($)!=null},getAttribute:function($){var Y=this.getAttributeNode($);return Y&&Y.value||""},getAttributeNode:function($){return this.attributes.getNamedItem($)},setAttribute:function($,Y){var Z=this.ownerDocument.createAttribute($);Z.value=Z.nodeValue=""+Y,this.setAttributeNode(Z)},removeAttribute:function($){var Y=this.getAttributeNode($);Y&&this.removeAttributeNode(Y)},appendChild:function($){if($.nodeType===b1)return this.insertBefore($,null);else return Q2(this,$)},setAttributeNode:function($){return this.attributes.setNamedItem($)},setAttributeNodeNS:function($){return this.attributes.setNamedItemNS($)},removeAttributeNode:function($){return this.attributes.removeNamedItem($.nodeName)},removeAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);Z&&this.removeAttributeNode(Z)},hasAttributeNS:function($,Y){return this.getAttributeNodeNS($,Y)!=null},getAttributeNS:function($,Y){var Z=this.getAttributeNodeNS($,Y);return Z&&Z.value||""},setAttributeNS:function($,Y,Z){var J=this.ownerDocument.createAttributeNS($,Y);J.value=J.nodeValue=""+Z,this.setAttributeNode(J)},getAttributeNodeNS:function($,Y){return this.attributes.getNamedItemNS($,Y)},getElementsByTagName:function($){return new O0(this,function(Y){var Z=[];return u0(Y,function(J){if(J!==Y&&J.nodeType==U1&&($==="*"||J.tagName==$))Z.push(J)}),Z})},getElementsByTagNameNS:function($,Y){return new O0(this,function(Z){var J=[];return u0(Z,function(K){if(K!==Z&&K.nodeType===U1&&($==="*"||K.namespaceURI===$)&&(Y==="*"||K.localName==Y))J.push(K)}),J})}};c0.prototype.getElementsByTagName=Y0.prototype.getElementsByTagName;c0.prototype.getElementsByTagNameNS=Y0.prototype.getElementsByTagNameNS;J1(Y0,f);function I$(){}I$.prototype.nodeType=U0;J1(I$,f);function p0(){}p0.prototype={data:"",substringData:function($,Y){return this.data.substring($,$+Y)},appendData:function($){$=this.data+$,this.nodeValue=this.data=$,this.length=$.length},insertData:function($,Y){this.replaceData($,0,Y)},appendChild:function($){throw Error(r[Z1])},deleteData:function($,Y){this.replaceData($,Y,"")},replaceData:function($,Y,Z){var J=this.data.substring(0,$),K=this.data.substring($+Y);Z=J+Z+K,this.nodeValue=this.data=Z,this.length=Z.length}};J1(p0,f);function vY(){}vY.prototype={nodeName:"#text",nodeType:j$,splitText:function($){var Y=this.data,Z=Y.substring($);Y=Y.substring(0,$),this.data=this.nodeValue=Y,this.length=Y.length;var J=this.ownerDocument.createTextNode(Z);if(this.parentNode)this.parentNode.insertBefore(J,this.nextSibling);return J}};J1(vY,p0);function uY(){}uY.prototype={nodeName:"#comment",nodeType:z4};J1(uY,p0);function mY(){}mY.prototype={nodeName:"#cdata-section",nodeType:Z4};J1(mY,p0);function w$(){}w$.prototype.nodeType=G4;J1(w$,f);function O4(){}O4.prototype.nodeType=$2;J1(O4,f);function R4(){}R4.prototype.nodeType=eG;J1(R4,f);function cY(){}cY.prototype.nodeType=J4;J1(cY,f);function _$(){}_$.prototype.nodeName="#document-fragment";_$.prototype.nodeType=b1;J1(_$,f);function pY(){}pY.prototype.nodeType=K4;J1(pY,f);function P4(){}P4.prototype.serializeToString=function($,Y,Z){return A4.call($,Y,Z)};f.prototype.toString=A4;function A4($,Y){var Z=[],J=this.nodeType==9&&this.documentElement||this,K=J.prefix,z=J.namespaceURI;if(z&&K==null){var K=J.lookupPrefix(z);if(K==null)var Q=[{namespace:z,prefix:null}]}return F0(this,Z,$,Y,Q),Z.join("")}function $4($,Y,Z){var J=$.prefix||"",K=$.namespaceURI;if(!K)return!1;if(J==="xml"&&K===v0.XML||K===v0.XMLNS)return!1;var z=Z.length;while(z--){var Q=Z[z];if(Q.prefix===J)return Q.namespace!==K}return!0}function yY($,Y,Z){$.push(" ",Y,'="',Z.replace(/[<&"]/g,H4),'"')}function F0($,Y,Z,J,K){if(!K)K=[];if(J)if($=J($),$){if(typeof $=="string"){Y.push($);return}}else return;switch($.nodeType){case U1:var z=$.attributes,Q=z.length,D=$.firstChild,W=$.tagName;Z=v0.isHTML($.namespaceURI)||Z;var G=W;if(!Z&&!$.prefix&&$.namespaceURI){var q;for(var H=0;H=0;R--){var P=K[R];if(P.prefix===""&&P.namespace===$.namespaceURI){q=P.namespace;break}}if(q!==$.namespaceURI)for(var R=K.length-1;R>=0;R--){var P=K[R];if(P.namespace===$.namespaceURI){if(P.prefix)G=P.prefix+":"+W;break}}}Y.push("<",G);for(var j=0;j"),Z&&/^script$/i.test(W))while(D){if(D.data)Y.push(D.data);else F0(D,Y,Z,J,K.slice());D=D.nextSibling}else while(D)F0(D,Y,Z,J,K.slice()),D=D.nextSibling;Y.push("")}else Y.push("/>");return;case Q4:case b1:var D=$.firstChild;while(D)F0(D,Y,Z,J,K.slice()),D=D.nextSibling;return;case U0:return yY(Y,$.name,$.value);case j$:return Y.push($.data.replace(/[<&]/g,H4).replace(/]]>/g,"]]>"));case Z4:return Y.push("");case z4:return Y.push("");case G4:var{publicId:y,systemId:O}=$;if(Y.push("")}else if(O&&O!=".")Y.push(" SYSTEM ",O,">");else{var B=$.internalSubset;if(B)Y.push(" [",B,"]");Y.push(">")}return;case K4:return Y.push("");case J4:return Y.push("&",$.nodeName,";");default:Y.push("??",$.nodeName)}}function E4($,Y,Z){var J;switch(Y.nodeType){case U1:J=Y.cloneNode(!1),J.ownerDocument=$;case b1:break;case U0:Z=!0;break}if(!J)J=Y.cloneNode(!1);if(J.ownerDocument=$,J.parentNode=null,Z){var K=Y.firstChild;while(K)J.appendChild(E4($,K,Z)),K=K.nextSibling}return J}function bY($,Y,Z){var J=new Y.constructor;for(var K in Y)if(Object.prototype.hasOwnProperty.call(Y,K)){var z=Y[K];if(typeof z!="object"){if(z!=J[K])J[K]=z}}if(Y.childNodes)J.childNodes=new y1;switch(J.ownerDocument=$,J.nodeType){case U1:var Q=Y.attributes,W=J.attributes=new k$,G=Q.length;W._ownerElement=J;for(var q=0;q{var j4=h0().freeze;R2.XML_ENTITIES=j4({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});R2.HTML_ENTITIES=j4({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` -`,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"});R2.entityMap=R2.HTML_ENTITIES});var L4=C((_2)=>{var i0=h0().NAMESPACE,lY=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I4=new RegExp("[\\-\\.0-9"+lY.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),w4=new RegExp("^"+lY.source+I4.source+"*(?::"+lY.source+I4.source+"*)?$"),d0=0,l1=1,R0=2,l0=3,P0=4,A0=5,s0=6,D$=7;function E0($,Y){if(this.message=$,this.locator=Y,Error.captureStackTrace)Error.captureStackTrace(this,E0)}E0.prototype=Error();E0.prototype.name=E0.name;function T4(){}T4.prototype={parse:function($,Y,Z){var J=this.domBuilder;J.startDocument(),S4(Y,Y={}),E2($,Y,Z,J,this.errorHandler),J.endDocument()}};function E2($,Y,Z,J,K){function z(_){if(_>65535){_-=65536;var L=55296+(_>>10),p=56320+(_&1023);return String.fromCharCode(L,p)}else return String.fromCharCode(_)}function Q(_){var L=_.slice(1,-1);if(L in Z)return Z[L];else if(L.charAt(0)==="#")return z(parseInt(L.substr(1).replace("x","0x")));else return K.error("entity not found:"+_),_}function W(_){if(_>T){var L=$.substring(T,_).replace(/&#?\w+;/g,Q);P&&G(T),J.characters(L,0,_-T),T=_}}function G(_,L){while(_>=H&&(L=R.exec($)))q=L.index,H=q+L[0].length,P.lineNumber++;P.columnNumber=_-q+1}var q=0,H=0,R=/.*(?:\r\n?|\n)|.*$/g,P=J.locator,j=[{currentNSMap:Y}],w={},T=0;while(!0){try{var I=$.indexOf("<",T);if(I<0){if(!$.substr(T).match(/^\s*$/)){var D=J.doc,y=D.createTextNode($.substr(T));D.appendChild(y),J.currentElement=y}return}if(I>T)W(I);switch($.charAt(I+1)){case"/":var k=$.indexOf(">",I+3),O=$.substring(I+2,k).replace(/[ \t\n\r]+$/g,""),B=j.pop();if(k<0)O=$.substring(I+2).replace(/[\s<].*/,""),K.error("end tag name: "+O+" is not complete:"+B.tagName),k=I+1+O.length;else if(O.match(/\sT)T=k;else W(Math.max(I,T)+1)}}function _4($,Y){return Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber,Y}function C2($,Y,Z,J,K,z){function Q(j,w,T){if(Z.attributeNames.hasOwnProperty(j))z.fatalError("Attribute "+j+" redefined");Z.addValue(j,w,T)}var W,G,q=++Y,H=d0;while(!0){var R=$.charAt(q);switch(R){case"=":if(H===l1)W=$.slice(Y,q),H=l0;else if(H===R0)H=l0;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(H===l0||H===l1){if(H===l1)z.warning('attribute value must after "="'),W=$.slice(Y,q);if(Y=q+1,q=$.indexOf(R,Y),q>0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y-1),H=A0;else throw Error("attribute value no end '"+R+"' match")}else if(H==P0)G=$.slice(Y,q).replace(/&#?\w+;/g,K),Q(W,G,Y),z.warning('attribute "'+W+'" missed start quot('+R+")!!"),Y=q+1,H=A0;else throw Error('attribute value must after "="');break;case"/":switch(H){case d0:Z.setTagName($.slice(Y,q));case A0:case s0:case D$:H=D$,Z.closed=!0;case P0:case l1:break;case R0:Z.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(z.error("unexpected end of input"),H==d0)Z.setTagName($.slice(Y,q));return q;case">":switch(H){case d0:Z.setTagName($.slice(Y,q));case A0:case s0:case D$:break;case P0:case l1:if(G=$.slice(Y,q),G.slice(-1)==="/")Z.closed=!0,G=G.slice(0,-1);case R0:if(H===R0)G=W;if(H==P0)z.warning('attribute "'+G+'" missed quot(")!'),Q(W,G.replace(/&#?\w+;/g,K),Y);else{if(!i0.isHTML(J[""])||!G.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');Q(G,G,Y)}break;case l0:throw Error("attribute value missed!!")}return q;case"€":R=" ";default:if(R<=" ")switch(H){case d0:Z.setTagName($.slice(Y,q)),H=s0;break;case l1:W=$.slice(Y,q),H=R0;break;case P0:var G=$.slice(Y,q).replace(/&#?\w+;/g,K);z.warning('attribute "'+G+'" missed quot(")!!'),Q(W,G,Y);case A0:H=s0;break}else switch(H){case R0:var P=Z.tagName;if(!i0.isHTML(J[""])||!W.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+W+'" missed value!! "'+W+'" instead2!!');Q(W,W,Y),Y=q,H=l1;break;case A0:z.warning('attribute space is required"'+W+'"!!');case s0:H=l1,Y=q;break;case l0:H=P0,Y=q;break;case D$:throw Error("elements closed character '/' and '>' must be connected to")}}q++}}function D4($,Y,Z){var J=$.tagName,K=null,R=$.length;while(R--){var z=$[R],Q=z.qName,W=z.value,P=Q.indexOf(":");if(P>0)var G=z.prefix=Q.slice(0,P),q=Q.slice(P+1),H=G==="xmlns"&&q;else q=Q,G=null,H=Q==="xmlns"&&"";if(z.localName=q,H!==!1){if(K==null)K={},S4(Z,Z={});Z[H]=K[H]=W,z.uri=i0.XMLNS,Y.startPrefixMapping(H,W)}}var R=$.length;while(R--){z=$[R];var G=z.prefix;if(G){if(G==="xml")z.uri=i0.XML;if(G!=="xmlns")z.uri=Z[G||""]}}var P=J.indexOf(":");if(P>0)G=$.prefix=J.slice(0,P),q=$.localName=J.slice(P+1);else G=null,q=$.localName=J;var j=$.uri=Z[G||""];if(Y.startElement(j,q,J,$),$.closed){if(Y.endElement(j,q,J),K){for(G in K)if(Object.prototype.hasOwnProperty.call(K,G))Y.endPrefixMapping(G)}}else return $.currentNSMap=Z,$.localNSMap=K,!0}function j2($,Y,Z,J,K){if(/^(?:script|textarea)$/i.test(Z)){var z=$.indexOf("",Y),Q=$.substring(Y+1,z);if(/[&<]/.test(Q)){if(/^script$/i.test(Z))return K.characters(Q,0,Q.length),z;return Q=Q.replace(/&#?\w+;/g,J),K.characters(Q,0,Q.length),z}}return Y+1}function k2($,Y,Z,J){var K=J[Z];if(K==null){if(K=$.lastIndexOf(""),K",Y+4);if(z>Y)return Z.comment($,Y+4,z-Y-4),z+3;else return J.error("Unclosed comment"),-1}else return-1;default:if($.substr(Y+3,6)=="CDATA["){var z=$.indexOf("]]>",Y+9);return Z.startCDATA(),Z.characters($,Y+9,z-Y-9),Z.endCDATA(),z+3}var Q=w2($,Y),W=Q.length;if(W>1&&/!doctype/i.test(Q[0][0])){var G=Q[1][0],q=!1,H=!1;if(W>3){if(/^public$/i.test(Q[2][0]))q=Q[3][0],H=W>4&&Q[4][0];else if(/^system$/i.test(Q[2][0]))H=Q[3][0]}var R=Q[W-1];return Z.startDTD(G,q,H),Z.endDTD(),R.index+R[0].length}}return-1}function I2($,Y,Z){var J=$.indexOf("?>",Y);if(J){var K=$.substring(Y,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(K){var z=K[0].length;return Z.processingInstruction(K[1],K[2]),J+2}else return-1}return-1}function M4(){this.attributeNames={}}M4.prototype={setTagName:function($){if(!w4.test($))throw Error("invalid tagName:"+$);this.tagName=$},addValue:function($,Y,Z){if(!w4.test($))throw Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:Y,offset:Z}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function w2($,Y){var Z,J=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;K.lastIndex=Y,K.exec($);while(Z=K.exec($))if(J.push(Z),Z[1])return J}_2.XMLReader=T4;_2.ParseError=E0});var f4=C((y2)=>{var S2=h0(),iY=dY(),x4=X4(),b4=L4(),M2=iY.DOMImplementation,N4=S2.NAMESPACE,L2=b4.ParseError,x2=b4.XMLReader;function g4($){this.options=$||{locator:{}}}g4.prototype.parseFromString=function($,Y){var Z=this.options,J=new x2,K=Z.domBuilder||new r0,z=Z.errorHandler,Q=Z.locator,W=Z.xmlns||{},G=/\/x?html?$/.test(Y),q=G?x4.HTML_ENTITIES:x4.XML_ENTITIES;if(Q)K.setDocumentLocator(Q);if(J.errorHandler=N2(z,K,Q),J.domBuilder=Z.domBuilder||K,G)W[""]=N4.HTML;if(W.xml=W.xml||N4.XML,$&&typeof $==="string")J.parse($,W,q);else J.errorHandler.error("invalid doc source");return K.doc};function N2($,Y,Z){if(!$){if(Y instanceof r0)return Y;$=Y}var J={},K=$ instanceof Function;Z=Z||{};function z(Q){var W=$[Q];if(!W&&K)W=$.length==2?function(G){$(Q,G)}:$;J[Q]=W&&function(G){W("[xmldom "+Q+"]\t"+G+sY(Z))}||function(){}}return z("warning"),z("error"),z("fatalError"),J}function r0(){this.cdata=!1}function C0($,Y){Y.lineNumber=$.lineNumber,Y.columnNumber=$.columnNumber}r0.prototype={startDocument:function(){if(this.doc=new M2().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function($,Y,Z,J){var K=this.doc,z=K.createElementNS($,Z||Y),Q=J.length;T$(this,z),this.currentElement=z,this.locator&&C0(this.locator,z);for(var W=0;W=Y+Z||Y)return new java.lang.String($,Y,Z)+"";return $}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function($){r0.prototype[$]=function(){return null}});function T$($,Y){if(!$.currentElement)$.doc.appendChild(Y);else $.currentElement.appendChild(Y)}y2.__DOMHandler=r0;y2.DOMParser=g4;y2.DOMImplementation=iY.DOMImplementation;y2.XMLSerializer=iY.XMLSerializer});var S$=C((v2)=>{var h4=dY();v2.DOMImplementation=h4.DOMImplementation;v2.XMLSerializer=h4.XMLSerializer;v2.DOMParser=f4().DOMParser});var p4=C((m4)=>{Object.defineProperty(m4,"__esModule",{value:!0});m4.parse=void 0;var p2=S$();function d2($){let J=new p2.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Workspace")throw Error("Invalid xcworkspacedata file: root element must be ");return l2(J)}m4.parse=d2;function l2($){let Y={};Y.version=M$($,"version");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(v4);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(u4);return Y}function v4($){return{location:M$($,"location")||""}}function u4($){let Y={};Y.location=M$($,"location"),Y.name=M$($,"name");let Z=L$($,"FileRef");if(Z.length>0)Y.fileRefs=Z.map(v4);let J=L$($,"Group");if(J.length>0)Y.groups=J.map(u4);return Y}function M$($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function L$($,Y){let Z=[],J=$.childNodes;for(let K=0;K{Object.defineProperty(i4,"__esModule",{value:!0});i4.build=void 0;function s2($){let Y=[];Y.push('');let Z=[];if($.version!==void 0)Z.push(`version = "${$.version}"`);if(Z.length>0){Y.push("");if($.fileRefs)for(let J of $.fileRefs)Y.push(...d4(J,1));if($.groups)for(let J of $.groups)Y.push(...l4(J,1));return Y.push(""),Y.join(` +`),this.close()}_($,Z){if($.toLowerCase()==="y")return this.value=!0,this.submit();if($.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(j7.hide);else this.out.write(iV(this.outputText,this.out.columns));super.render(),this.outputText=[N7.symbol(this.done,this.aborted),S7.bold(this.msg),N7.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:S7.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(sV.line+j7.to(0)+this.outputText)}}_7.exports=P7});var k7=A((GB,x7)=>{x7.exports={TextPrompt:RK(),SelectPrompt:BK(),TogglePrompt:TK(),DatePrompt:Q7(),NumberPrompt:V7(),MultiselectPrompt:tY(),AutocompletePrompt:C7(),AutocompleteMultiselectPrompt:X7(),ConfirmPrompt:y7()}});var f7=A((b7)=>{var W1=b7,nV=k7(),F9=($)=>$;function a1($,Z,Y={}){return new Promise((J,K)=>{let z=new nV[$](Z),Q=Y.onAbort||F9,U=Y.onSubmit||F9,G=Y.onExit||F9;z.on("state",Z.onState||F9),z.on("submit",(H)=>J(U(H))),z.on("exit",(H)=>J(G(H))),z.on("abort",(H)=>K(Q(H)))})}W1.text=($)=>a1("TextPrompt",$);W1.password=($)=>{return $.style="password",W1.text($)};W1.invisible=($)=>{return $.style="invisible",W1.text($)};W1.number=($)=>a1("NumberPrompt",$);W1.date=($)=>a1("DatePrompt",$);W1.confirm=($)=>a1("ConfirmPrompt",$);W1.list=($)=>{let Z=$.separator||",";return a1("TextPrompt",$,{onSubmit:(Y)=>Y.split(Z).map((J)=>J.trim())})};W1.toggle=($)=>a1("TogglePrompt",$);W1.select=($)=>a1("SelectPrompt",$);W1.multiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return a1("MultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};W1.autocompleteMultiselect=($)=>{$.choices=[].concat($.choices||[]);let Z=(Y)=>Y.filter((J)=>J.selected).map((J)=>J.value);return a1("AutocompleteMultiselectPrompt",$,{onAbort:Z,onSubmit:Z})};var rV=($,Z)=>Promise.resolve(Z.filter((Y)=>Y.title.slice(0,$.length).toLowerCase()===$.toLowerCase()));W1.autocomplete=($)=>{return $.suggest=$.suggest||rV,$.choices=[].concat($.choices||[]),a1("AutocompletePrompt",$)}});var h7=A((qB,g7)=>{var Z8=f7(),aV=["suggest","format","onState","validate","onRender","type"],v7=()=>{};async function g0($=[],{onSubmit:Z=v7,onCancel:Y=v7}={}){let J={},K=g0._override||{};$=[].concat($);let z,Q,U,G,H,V,I=async(E,w,T=!1)=>{if(!T&&E.validate&&E.validate(w)!==!0)return;return E.format?await E.format(w,J):w};for(Q of $){if({name:G,type:H}=Q,typeof H==="function")H=await H(z,{...J},Q),Q.type=H;if(!H)continue;for(let E in Q){if(aV.includes(E))continue;let w=Q[E];Q[E]=typeof w==="function"?await w(z,{...J},V):w}if(V=Q,typeof Q.message!=="string")throw Error("prompt message is required");if({name:G,type:H}=Q,Z8[H]===void 0)throw Error(`prompt type (${H}) is not defined`);if(K[Q.name]!==void 0){if(z=await I(Q,K[Q.name]),z!==void 0){J[G]=z;continue}}try{z=g0._injected?oV(g0._injected,Q.initial):await Z8[H](Q),J[G]=z=await I(Q,z,!0),U=await Z(Q,z,J)}catch(E){U=!await Y(Q,J)}if(U)return J}return J}function oV($,Z){let Y=$.shift();if(Y instanceof Error)throw Y;return Y===void 0?Z:Y}function tV($){g0._injected=(g0._injected||[]).concat($)}function eV($){g0._override=Object.assign({},$)}g7.exports=Object.assign(g0,{prompt:g0,prompts:Z8,inject:tV,override:eV})});var m7=A((HB,u7)=>{function $W($){$=(Array.isArray($)?$:$.split(".")).map(Number);let Z=0,Y=process.versions.node.split(".").map(Number);for(;Z<$.length;Z++){if(Y[Z]>$[Z])return!1;if($[Z]>Y[Z])return!0}return!1}u7.exports=$W("8.6.0")?s4():h7()});var i7=A((d7)=>{Object.defineProperty(d7,"__esModule",{value:!0});d7.isPBXFileReference=d7.isPBXBuildFile=d7.createReferenceList=void 0;function ZW($){let Y=$?.objects??{},J={};function K(G){for(let[H,V]of Object.entries(Y))if(V.buildConfigurationList===G){let I=V.name??V.path??V.productName;if(!I){if(I=Y[V.targets?.[0]]?.productName??Y[V.targets?.[0]]?.name,!I)I=Object.values(Y).find((w)=>w.isa==="PBXContainerItemProxy"&&w.containerPortal===H)?.remoteInfo}return`Build configuration list for ${V.isa} "${I}"`}return"Build configuration list for [unknown]"}function z(G){let H=Object.values(Y).find((V)=>V.files?.includes(G));return H?c7(H):null}function Q(G,H){let V=z(G)??"[missing build phase]",I=H.fileRef??H.productRef;if(!I)return`[unknown] in ${V}`;return`${U(I,Y[I])} in ${V}`}function U(G,H){if(!H?.isa)return null;if(G in J)return J[G];if(p7(H))J[G]=Q(G,H);else if(GW(H))J[G]=K(G);else if(zW(H))if(H.repositoryURL)J[G]=`${H.isa} "${YW(H.repositoryURL)}"`;else J[G]=H.isa;else if(QW(H))if(H.relativePath)J[G]=`${H.isa} "${H.relativePath}"`;else J[G]=H.isa;else if(JW(H))J[G]="Project object";else if(H.isa?.endsWith("BuildPhase"))J[G]=c7(H)??"";else if(H.isa==="PBXGroup"&&H.name===void 0&&H.path===void 0)J[G]="";else J[G]=H.name??H.productName??H.path??H.isa??null;return J[G]??null}return Object.entries(Y).forEach(([G,H])=>{if(!U(G,H));}),J}d7.createReferenceList=ZW;function YW($){try{let Z=new URL($);if(Z.hostname==="github.com")return Z.pathname.split("/").pop()}catch{}return $}function JW($){return $?.isa==="PBXProject"}function p7($){return $?.isa==="PBXBuildFile"}d7.isPBXBuildFile=p7;function KW($){return $?.isa==="PBXFileReference"}d7.isPBXFileReference=KW;function zW($){return $?.isa==="XCRemoteSwiftPackageReference"}function QW($){return $?.isa==="XCLocalSwiftPackageReference"}function GW($){return $?.isa==="XCConfigurationList"}function c7($){return $.name??UW($.isa)}function UW($){return $.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}});var a7=A((n7)=>{Object.defineProperty(n7,"__esModule",{value:!0});n7.Writer=void 0;var J8=i7(),VW={"\x07":"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':"\\\"","\\":"\\\\","\x00":"\\U0000","\x01":"\\U0001","\x02":"\\U0002","\x03":"\\U0003","\x04":"\\U0004","\x05":"\\U0005","\x06":"\\U0006","\x0E":"\\U000e","\x0F":"\\U000f","\x10":"\\U0010","\x11":"\\U0011","\x12":"\\U0012","\x13":"\\U0013","\x14":"\\U0014","\x15":"\\U0015","\x16":"\\U0016","\x17":"\\U0017","\x18":"\\U0018","\x19":"\\U0019","\x1A":"\\U001a","\x1B":"\\U001b","\x1C":"\\U001c","\x1D":"\\U001d","\x1E":"\\U001e","\x1F":"\\U001f"},WW=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function FW($){return String($).replace(WW,(Z)=>VW[Z]||Z)}var JZ=` +`;try{JZ=k("os").EOL}catch{}function K8($){return typeof $==="object"&&$!==null&&!($ instanceof Buffer)}function D1($){if($=FW($),/^[\w_$/:.]+$/.test($))return $;return`"${$}"`}function z8($){return`<${$.toString("hex").toUpperCase()}>`}function OW($){let Z={};return Object.entries($).forEach(([Y,J])=>{if(!Z[J.isa])Z[J.isa]=[];Z[J.isa].push([Y,J])}),Object.entries(Z).sort()}class s7{pad($){let Z=this.options.tab??"\t";return $>0?Z+this.pad($-1):""}constructor($,Z={}){this.project=$,this.options=Z,this.indent=0,this.contents="",this.comments={},this.comments=(0,J8.createReferenceList)($),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println($){this.contents+=this.pad(this.indent),this.contents+=$,this.contents+=JZ}write($){this.contents+=this.pad(this.indent),this.contents+=$}printAssignLn($,Z){return this.println($+" = "+Z+";")}flush($){let Z=this.indent;this.indent=0,this.write($),this.indent=Z}writeShebang(){let $=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${$}`)}formatId($,Z=this.comments[$]){if(Z)return`${$} /* ${Z} */`;return D1($)}writeProject(){if(this.println("{"),this.project)this.indent++,this.writeObject(this.project,!0),this.indent--;this.println("}")}keyHasFloatValue($){return $===$.toUpperCase()&&($.endsWith("SWIFT_VERSION")||$.endsWith("MARKETING_VERSION")||$.endsWith("_DEPLOYMENT_TARGET"))}writeObject($,Z){Object.entries($).sort(([Y],[J])=>{if(Y==="isa")return-1;if(J==="isa")return 1;return YJ?1:0}).forEach(([Y,J])=>{if(this.options.skipNullishValues&&J==null)return;else if(J instanceof Buffer)this.printAssignLn(D1(Y),z8(J));else if(Array.isArray(J))this.writeArray(Y,J);else if(K8(J)){if(!Z&&!Object.keys(J).length){this.println(D1(Y)+" = {};");return}if(this.println(D1(Y)+" = {"),this.indent++,Z&&Y==="objects")this.writePbxObjects(J);else this.writeObject(J,Z);this.indent--,this.println("};")}else if(typeof J==="number"){let K=this.keyHasFloatValue(Y)&&Number.isInteger(J)?`${J}.0`:J;this.printAssignLn(D1(Y),D1(K))}else this.printAssignLn(D1(Y),Y==="remoteGlobalIDString"||Y==="TestTargetID"?D1(J):this.formatId(J))})}writePbxObjects($){OW($).forEach(([Z,Y])=>{this.flush(JZ),this.flush(`/* Begin ${Z} section */`+JZ),Y.sort(([J],[K])=>J.localeCompare(K)).forEach(([J,K])=>this.writeObjectInclusive(J,K)),this.flush(`/* End ${Z} section */`+JZ)})}writeArray($,Z){this.println(D1($)+" = ("),this.indent++,Z.forEach((Y)=>{if(Y instanceof Buffer)this.println(z8(Y)+",");else if(Y==null)return;else if(K8(Y)){if(this.println("{"),Y)this.indent++,this.writeObject(Y),this.indent--;this.println("},")}else this.println(this.formatId(String(Y))+",")}),this.indent--,this.println(");")}writeObjectInclusive($,Z){if((0,J8.isPBXBuildFile)(Z)||(0,J8.isPBXFileReference)(Z))return this.writeObjectWithoutIndent($,Z);this.println(this.formatId($)+" = {"),this.indent++,this.writeObject(Z),this.indent--,this.println("};")}writeObjectWithoutIndent($,Z){let Y=[],J=(K,z)=>{Y.push(this.formatId(K)+" = {"),Object.entries(z).sort(([Q],[U])=>{if(Q==="isa")return-1;if(U==="isa")return 1;return QU?1:0}).forEach(([Q,U])=>{if(this.options.skipNullishValues&&U==null)return;else if(U instanceof Buffer)Y.push(D1(Q)+" = "+z8(U)+"; ");else if(Array.isArray(U))Y.push(D1(Q)+" = ("),U.forEach((G)=>Y.push(D1(G)+", ")),Y.push("); ");else if(K8(U))J(Q,U);else Y.push(D1(Q)+" = "+this.formatId(U)+"; ")}),Y.push("}; ")};J($,Z),this.println(Y.join("").trim())}}n7.Writer=s7});var zz=A((Jz)=>{Object.defineProperty(Jz,"__esModule",{value:!0});Jz.parse=Jz.Parser=void 0;var RW={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},IW=32,EW=9,G8=10,AW=13,o7=123,wW=125,t7=40,BW=41,CW=59,DW=44,MW=61,e7=34,$z=39,Zz=92,Q8=47,Yz=42,LW=60,TW=62,XW={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},F$=new Uint8Array(256);F$[IW]=1;F$[EW]=1;F$[G8]=1;F$[AW]=1;var o1=new Uint8Array(256);for(let $=65;$<=90;$++)o1[$]=1;for(let $=97;$<=122;$++)o1[$]=1;for(let $=48;$<=57;$++)o1[$]=1;o1[95]=1;o1[36]=1;o1[47]=1;o1[58]=1;o1[46]=1;o1[45]=1;var KZ=new Uint8Array(256);for(let $=48;$<=57;$++)KZ[$]=1;for(let $=65;$<=70;$++)KZ[$]=1;for(let $=97;$<=102;$++)KZ[$]=1;var U8=new Uint8Array(256);for(let $=48;$<=55;$++)U8[$]=1;var O9=new Uint8Array(256);for(let $=48;$<=57;$++)O9[$]=1;class q8{constructor($){this.pos=0,this.text=$,this.len=$.length}parse(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===o7)return this.parseObject();else if($===t7)return this.parseArray();throw this.error("Expected '{' or '('")}skipWhitespaceAndComments(){while(this.pos=this.len)throw this.error("Unexpected end of input in object");if(this.text.charCodeAt(this.pos)===wW)return this.pos++,$;let Y=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==MW)throw this.error("Expected '='");if(this.pos++,this.skipWhitespaceAndComments(),$[Y]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==CW)throw this.error("Expected ';'");this.pos++}}parseArray(){this.pos++;let $=[];while(!0){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error("Unexpected end of input in array");if(this.text.charCodeAt(this.pos)===BW)return this.pos++,$;if($.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===DW)this.pos++}}parseValue(){this.skipWhitespaceAndComments();let $=this.text.charCodeAt(this.pos);if($===o7)return this.parseObject();if($===t7)return this.parseArray();if($===LW)return this.parseDataLiteral();if($===e7||$===$z)return this.parseQuotedString();return this.parseStringLiteral()}parseIdentifierAsString(){let $=this.text.charCodeAt(this.pos);if($===e7||$===$z)return this.parseQuotedString();return this.parseStringLiteralRaw()}parseStringLiteralRaw(){let $=this.pos;while(this.pos1)return $;let U=parseInt($,10);if(Number.isSafeInteger(U))return U;return $}let K=!1,z=!0,Q=!1;for(let U=0;U=this.len)throw this.error("Unterminated string");let J=this.text.slice(Z,this.pos);return this.pos++,this.unescapeString(J)}unescapeString($){let Z=[],Y=0,J=$.length;while(Y=128?RW[H]||H:H;Z.push(String.fromCharCode(V)),Y=G;continue}Z.push($[Y],$[Y+1]),Y+=2}else Z.push($[Y]),Y++;return Z.join("")}isHexString($){if($.length!==4)return!1;for(let Z=0;Z<4;Z++)if(!KZ[$.charCodeAt(Z)])return!1;return!0}parseDataLiteral(){this.pos++;let $=[];while(this.pos{Object.defineProperty(Uz,"__esModule",{value:!0});Uz.SubFolder=Uz.ProxyType=Uz.ISA=void 0;var jW;(function($){$.PBXBuildFile="PBXBuildFile",$.PBXAppleScriptBuildPhase="PBXAppleScriptBuildPhase",$.PBXCopyFilesBuildPhase="PBXCopyFilesBuildPhase",$.PBXFrameworksBuildPhase="PBXFrameworksBuildPhase",$.PBXHeadersBuildPhase="PBXHeadersBuildPhase",$.PBXResourcesBuildPhase="PBXResourcesBuildPhase",$.PBXShellScriptBuildPhase="PBXShellScriptBuildPhase",$.PBXSourcesBuildPhase="PBXSourcesBuildPhase",$.PBXRezBuildPhase="PBXRezBuildPhase",$.PBXContainerItemProxy="PBXContainerItemProxy",$.PBXFileReference="PBXFileReference",$.PBXGroup="PBXGroup",$.PBXVariantGroup="PBXVariantGroup",$.XCVersionGroup="XCVersionGroup",$.PBXFileSystemSynchronizedRootGroup="PBXFileSystemSynchronizedRootGroup",$.PBXFileSystemSynchronizedBuildFileExceptionSet="PBXFileSystemSynchronizedBuildFileExceptionSet",$.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet="PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",$.PBXNativeTarget="PBXNativeTarget",$.PBXAggregateTarget="PBXAggregateTarget",$.PBXLegacyTarget="PBXLegacyTarget",$.PBXProject="PBXProject",$.PBXTargetDependency="PBXTargetDependency",$.XCBuildConfiguration="XCBuildConfiguration",$.XCConfigurationList="XCConfigurationList",$.PBXBuildRule="PBXBuildRule",$.PBXReferenceProxy="PBXReferenceProxy",$.XCSwiftPackageProductDependency="XCSwiftPackageProductDependency",$.XCRemoteSwiftPackageReference="XCRemoteSwiftPackageReference",$.XCLocalSwiftPackageReference="XCLocalSwiftPackageReference"})(jW=Uz.ISA||(Uz.ISA={}));var PW;(function($){$[$.targetReference=1]="targetReference",$[$.reference=2]="reference"})(PW=Uz.ProxyType||(Uz.ProxyType={}));var _W;(function($){$[$.absolutePath=0]="absolutePath",$[$.productsDirectory=16]="productsDirectory",$[$.wrapper=1]="wrapper",$[$.executables=6]="executables",$[$.resources=7]="resources",$[$.javaResources=15]="javaResources",$[$.frameworks=10]="frameworks",$[$.sharedFrameworks=11]="sharedFrameworks",$[$.sharedSupport=12]="sharedSupport",$[$.plugins=13]="plugins"})(_W=Uz.SubFolder||(Uz.SubFolder={}))});var V8=A((h1)=>{var yW=h1&&h1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),xW=h1&&h1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))yW(Z,$,Y)};Object.defineProperty(h1,"__esModule",{value:!0});h1.build=h1.parse=void 0;var kW=a7(),bW=zz();Object.defineProperty(h1,"parse",{enumerable:!0,get:function(){return bW.parse}});function fW($){return new kW.Writer($).getResults()}h1.build=fW;xW(l(),h1)});var zZ=A((gW)=>{function vW($,Z,Y){if(Y===void 0)Y=Array.prototype;if($&&typeof Y.find==="function")return Y.find.call($,Z);for(var J=0;J<$.length;J++)if(Object.prototype.hasOwnProperty.call($,J)){var K=$[J];if(Z.call(void 0,K,J,$))return K}}function W8($,Z){if(Z===void 0)Z=Object;return Z&&typeof Z.freeze==="function"?Z.freeze($):$}var qz=W8({HTML:"text/html",isHTML:function($){return $===qz.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Hz=W8({HTML:"http://www.w3.org/1999/xhtml",isHTML:function($){return $===Hz.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});gW.find=vW;gW.freeze=W8;gW.MIME_TYPE=qz;gW.NAMESPACE=Hz});var M8=A((YF)=>{var Az=zZ(),t1=Az.find,QZ=Az.NAMESPACE;function pW($){return $!==""}function dW($){return $?$.split(/[\t\n\f\r ]+/).filter(pW):[]}function lW($,Z){if(!$.hasOwnProperty(Z))$[Z]=!0;return $}function Vz($){if(!$)return[];var Z=dW($);return Object.keys(Z.reduce(lW,{}))}function iW($){return function(Z){return $&&$.indexOf(Z)!==-1}}function UZ($,Z){for(var Y in $)if(Object.prototype.hasOwnProperty.call($,Y))Z[Y]=$[Y]}function O1($,Z){var Y=$.prototype;if(!(Y instanceof Z)){let K=function(){};var J=K;K.prototype=Z.prototype,K=new K,UZ(Y,K),$.prototype=Y=K}if(Y.constructor!=$){if(typeof $!="function")console.error("unknown Class:"+$);Y.constructor=$}}var R1={},u1=R1.ELEMENT_NODE=1,R$=R1.ATTRIBUTE_NODE=2,R9=R1.TEXT_NODE=3,wz=R1.CDATA_SECTION_NODE=4,Bz=R1.ENTITY_REFERENCE_NODE=5,sW=R1.ENTITY_NODE=6,Cz=R1.PROCESSING_INSTRUCTION_NODE=7,Dz=R1.COMMENT_NODE=8,Mz=R1.DOCUMENT_NODE=9,Lz=R1.DOCUMENT_TYPE_NODE=10,N0=R1.DOCUMENT_FRAGMENT_NODE=11,nW=R1.NOTATION_NODE=12,G1={},J1={},AB=G1.INDEX_SIZE_ERR=(J1[1]="Index size error",1),wB=G1.DOMSTRING_SIZE_ERR=(J1[2]="DOMString size error",2),F1=G1.HIERARCHY_REQUEST_ERR=(J1[3]="Hierarchy request error",3),BB=G1.WRONG_DOCUMENT_ERR=(J1[4]="Wrong document",4),CB=G1.INVALID_CHARACTER_ERR=(J1[5]="Invalid character",5),DB=G1.NO_DATA_ALLOWED_ERR=(J1[6]="No data allowed",6),MB=G1.NO_MODIFICATION_ALLOWED_ERR=(J1[7]="No modification allowed",7),Tz=G1.NOT_FOUND_ERR=(J1[8]="Not found",8),LB=G1.NOT_SUPPORTED_ERR=(J1[9]="Not supported",9),Wz=G1.INUSE_ATTRIBUTE_ERR=(J1[10]="Attribute in use",10),TB=G1.INVALID_STATE_ERR=(J1[11]="Invalid state",11),XB=G1.SYNTAX_ERR=(J1[12]="Syntax error",12),SB=G1.INVALID_MODIFICATION_ERR=(J1[13]="Invalid modification",13),NB=G1.NAMESPACE_ERR=(J1[14]="Invalid namespace",14),jB=G1.INVALID_ACCESS_ERR=(J1[15]="Invalid access",15);function e($,Z){if(Z instanceof Error)var Y=Z;else if(Y=this,Error.call(this,J1[$]),this.message=J1[$],Error.captureStackTrace)Error.captureStackTrace(this,e);if(Y.code=$,Z)this.message=this.message+": "+Z;return Y}e.prototype=Error.prototype;UZ(G1,e);function S0(){}S0.prototype={length:0,item:function($){return $>=0&&$=0){var K=Z.length-1;while(J0},lookupPrefix:function($){var Z=this;while(Z){var Y=Z._nsMap;if(Y){for(var J in Y)if(Object.prototype.hasOwnProperty.call(Y,J)&&Y[J]===$)return J}Z=Z.nodeType==R$?Z.ownerDocument:Z.parentNode}return null},lookupNamespaceURI:function($){var Z=this;while(Z){var Y=Z._nsMap;if(Y){if($ in Y){if(Object.prototype.hasOwnProperty.call(Y,$))return Y[$]}}Z=Z.nodeType==R$?Z.ownerDocument:Z.parentNode}return null},isDefaultNamespace:function($){var Z=this.lookupPrefix($);return Z==null}};function Nz($){return $=="<"&&"<"||$==">"&&">"||$=="&"&&"&"||$=='"'&&"""||"&#"+$.charCodeAt()+";"}UZ(R1,h);UZ(R1,h.prototype);function GZ($,Z){if(Z($))return!0;if($=$.firstChild)do if(GZ($,Z))return!0;while($=$.nextSibling)}function qZ(){this.ownerDocument=this}function rW($,Z,Y){$&&$._inc++;var J=Y.namespaceURI;if(J===QZ.XMLNS)Z._nsMap[Y.prefix?Y.localName:""]=Y.value}function jz($,Z,Y,J){$&&$._inc++;var K=Y.namespaceURI;if(K===QZ.XMLNS)delete Z._nsMap[Y.prefix?Y.localName:""]}function I8($,Z,Y){if($&&$._inc){$._inc++;var J=Z.childNodes;if(Y)J[J.length++]=Y;else{var K=Z.firstChild,z=0;while(K)J[z++]=K,K=K.nextSibling;J.length=z,delete J[J.length]}}}function Pz($,Z){var{previousSibling:Y,nextSibling:J}=Z;if(Y)Y.nextSibling=J;else $.firstChild=J;if(J)J.previousSibling=Y;else $.lastChild=Y;return Z.parentNode=null,Z.previousSibling=null,Z.nextSibling=null,I8($.ownerDocument,$),Z}function aW($){return $&&($.nodeType===h.DOCUMENT_NODE||$.nodeType===h.DOCUMENT_FRAGMENT_NODE||$.nodeType===h.ELEMENT_NODE)}function oW($){return $&&(e1($)||E8($)||j0($)||$.nodeType===h.DOCUMENT_FRAGMENT_NODE||$.nodeType===h.COMMENT_NODE||$.nodeType===h.PROCESSING_INSTRUCTION_NODE)}function j0($){return $&&$.nodeType===h.DOCUMENT_TYPE_NODE}function e1($){return $&&$.nodeType===h.ELEMENT_NODE}function E8($){return $&&$.nodeType===h.TEXT_NODE}function Rz($,Z){var Y=$.childNodes||[];if(t1(Y,e1)||j0(Z))return!1;var J=t1(Y,j0);return!(Z&&J&&Y.indexOf(J)>Y.indexOf(Z))}function Iz($,Z){var Y=$.childNodes||[];function J(z){return e1(z)&&z!==Z}if(t1(Y,J))return!1;var K=t1(Y,j0);return!(Z&&K&&Y.indexOf(K)>Y.indexOf(Z))}function tW($,Z,Y){if(!aW($))throw new e(F1,"Unexpected parent node type "+$.nodeType);if(Y&&Y.parentNode!==$)throw new e(Tz,"child not in parent");if(!oW(Z)||j0(Z)&&$.nodeType!==h.DOCUMENT_NODE)throw new e(F1,"Unexpected node type "+Z.nodeType+" for parent node type "+$.nodeType)}function eW($,Z,Y){var J=$.childNodes||[],K=Z.childNodes||[];if(Z.nodeType===h.DOCUMENT_FRAGMENT_NODE){var z=K.filter(e1);if(z.length>1||t1(K,E8))throw new e(F1,"More than one element or text in fragment");if(z.length===1&&!Rz($,Y))throw new e(F1,"Element in fragment can not be inserted before doctype")}if(e1(Z)){if(!Rz($,Y))throw new e(F1,"Only one element can be added and only after doctype")}if(j0(Z)){if(t1(J,j0))throw new e(F1,"Only one doctype is allowed");var Q=t1(J,e1);if(Y&&J.indexOf(Q)1||t1(K,E8))throw new e(F1,"More than one element or text in fragment");if(z.length===1&&!Iz($,Y))throw new e(F1,"Element in fragment can not be inserted before doctype")}if(e1(Z)){if(!Iz($,Y))throw new e(F1,"Only one element can be added and only after doctype")}if(j0(Z)){let G=function(H){return j0(H)&&H!==Y};var U=G;if(t1(J,G))throw new e(F1,"Only one doctype is allowed");var Q=t1(J,e1);if(Y&&J.indexOf(Q)0)GZ(Y.documentElement,function(K){if(K!==Y&&K.nodeType===u1){var z=K.getAttribute("class");if(z){var Q=$===z;if(!Q){var U=Vz(z);Q=Z.every(iW(U))}if(Q)J.push(K)}}});return J})},createElement:function($){var Z=new t0;Z.ownerDocument=this,Z.nodeName=$,Z.tagName=$,Z.localName=$,Z.childNodes=new S0;var Y=Z.attributes=new I9;return Y._ownerElement=Z,Z},createDocumentFragment:function(){var $=new B9;return $.ownerDocument=this,$.childNodes=new S0,$},createTextNode:function($){var Z=new A8;return Z.ownerDocument=this,Z.appendData($),Z},createComment:function($){var Z=new w8;return Z.ownerDocument=this,Z.appendData($),Z},createCDATASection:function($){var Z=new B8;return Z.ownerDocument=this,Z.appendData($),Z},createProcessingInstruction:function($,Z){var Y=new D8;return Y.ownerDocument=this,Y.tagName=Y.nodeName=Y.target=$,Y.nodeValue=Y.data=Z,Y},createAttribute:function($){var Z=new A9;return Z.ownerDocument=this,Z.name=$,Z.nodeName=$,Z.localName=$,Z.specified=!0,Z},createEntityReference:function($){var Z=new C8;return Z.ownerDocument=this,Z.nodeName=$,Z},createElementNS:function($,Z){var Y=new t0,J=Z.split(":"),K=Y.attributes=new I9;if(Y.childNodes=new S0,Y.ownerDocument=this,Y.nodeName=Z,Y.tagName=Z,Y.namespaceURI=$,J.length==2)Y.prefix=J[0],Y.localName=J[1];else Y.localName=Z;return K._ownerElement=Y,Y},createAttributeNS:function($,Z){var Y=new A9,J=Z.split(":");if(Y.ownerDocument=this,Y.nodeName=Z,Y.name=Z,Y.namespaceURI=$,Y.specified=!0,J.length==2)Y.prefix=J[0],Y.localName=J[1];else Y.localName=Z;return Y}};O1(qZ,h);function t0(){this._nsMap={}}t0.prototype={nodeType:u1,hasAttribute:function($){return this.getAttributeNode($)!=null},getAttribute:function($){var Z=this.getAttributeNode($);return Z&&Z.value||""},getAttributeNode:function($){return this.attributes.getNamedItem($)},setAttribute:function($,Z){var Y=this.ownerDocument.createAttribute($);Y.value=Y.nodeValue=""+Z,this.setAttributeNode(Y)},removeAttribute:function($){var Z=this.getAttributeNode($);Z&&this.removeAttributeNode(Z)},appendChild:function($){if($.nodeType===N0)return this.insertBefore($,null);else return $F(this,$)},setAttributeNode:function($){return this.attributes.setNamedItem($)},setAttributeNodeNS:function($){return this.attributes.setNamedItemNS($)},removeAttributeNode:function($){return this.attributes.removeNamedItem($.nodeName)},removeAttributeNS:function($,Z){var Y=this.getAttributeNodeNS($,Z);Y&&this.removeAttributeNode(Y)},hasAttributeNS:function($,Z){return this.getAttributeNodeNS($,Z)!=null},getAttributeNS:function($,Z){var Y=this.getAttributeNodeNS($,Z);return Y&&Y.value||""},setAttributeNS:function($,Z,Y){var J=this.ownerDocument.createAttributeNS($,Z);J.value=J.nodeValue=""+Y,this.setAttributeNode(J)},getAttributeNodeNS:function($,Z){return this.attributes.getNamedItemNS($,Z)},getElementsByTagName:function($){return new I$(this,function(Z){var Y=[];return GZ(Z,function(J){if(J!==Z&&J.nodeType==u1&&($==="*"||J.tagName==$))Y.push(J)}),Y})},getElementsByTagNameNS:function($,Z){return new I$(this,function(Y){var J=[];return GZ(Y,function(K){if(K!==Y&&K.nodeType===u1&&($==="*"||K.namespaceURI===$)&&(Z==="*"||K.localName==Z))J.push(K)}),J})}};qZ.prototype.getElementsByTagName=t0.prototype.getElementsByTagName;qZ.prototype.getElementsByTagNameNS=t0.prototype.getElementsByTagNameNS;O1(t0,h);function A9(){}A9.prototype.nodeType=R$;O1(A9,h);function HZ(){}HZ.prototype={data:"",substringData:function($,Z){return this.data.substring($,$+Z)},appendData:function($){$=this.data+$,this.nodeValue=this.data=$,this.length=$.length},insertData:function($,Z){this.replaceData($,0,Z)},appendChild:function($){throw Error(J1[F1])},deleteData:function($,Z){this.replaceData($,Z,"")},replaceData:function($,Z,Y){var J=this.data.substring(0,$),K=this.data.substring($+Z);Y=J+Y+K,this.nodeValue=this.data=Y,this.length=Y.length}};O1(HZ,h);function A8(){}A8.prototype={nodeName:"#text",nodeType:R9,splitText:function($){var Z=this.data,Y=Z.substring($);Z=Z.substring(0,$),this.data=this.nodeValue=Z,this.length=Z.length;var J=this.ownerDocument.createTextNode(Y);if(this.parentNode)this.parentNode.insertBefore(J,this.nextSibling);return J}};O1(A8,HZ);function w8(){}w8.prototype={nodeName:"#comment",nodeType:Dz};O1(w8,HZ);function B8(){}B8.prototype={nodeName:"#cdata-section",nodeType:wz};O1(B8,HZ);function w9(){}w9.prototype.nodeType=Lz;O1(w9,h);function yz(){}yz.prototype.nodeType=nW;O1(yz,h);function xz(){}xz.prototype.nodeType=sW;O1(xz,h);function C8(){}C8.prototype.nodeType=Bz;O1(C8,h);function B9(){}B9.prototype.nodeName="#document-fragment";B9.prototype.nodeType=N0;O1(B9,h);function D8(){}D8.prototype.nodeType=Cz;O1(D8,h);function kz(){}kz.prototype.serializeToString=function($,Z,Y){return bz.call($,Z,Y)};h.prototype.toString=bz;function bz($,Z){var Y=[],J=this.nodeType==9&&this.documentElement||this,K=J.prefix,z=J.namespaceURI;if(z&&K==null){var K=J.lookupPrefix(z);if(K==null)var Q=[{namespace:z,prefix:null}]}return O$(this,Y,$,Z,Q),Y.join("")}function Ez($,Z,Y){var J=$.prefix||"",K=$.namespaceURI;if(!K)return!1;if(J==="xml"&&K===QZ.XML||K===QZ.XMLNS)return!1;var z=Y.length;while(z--){var Q=Y[z];if(Q.prefix===J)return Q.namespace!==K}return!0}function F8($,Z,Y){$.push(" ",Z,'="',Y.replace(/[<&"]/g,Nz),'"')}function O$($,Z,Y,J,K){if(!K)K=[];if(J)if($=J($),$){if(typeof $=="string"){Z.push($);return}}else return;switch($.nodeType){case u1:var z=$.attributes,Q=z.length,S=$.firstChild,U=$.tagName;Y=QZ.isHTML($.namespaceURI)||Y;var G=U;if(!Y&&!$.prefix&&$.namespaceURI){var H;for(var V=0;V=0;I--){var E=K[I];if(E.prefix===""&&E.namespace===$.namespaceURI){H=E.namespace;break}}if(H!==$.namespaceURI)for(var I=K.length-1;I>=0;I--){var E=K[I];if(E.namespace===$.namespaceURI){if(E.prefix)G=E.prefix+":"+U;break}}}Z.push("<",G);for(var w=0;w"),Y&&/^script$/i.test(U))while(S){if(S.data)Z.push(S.data);else O$(S,Z,Y,J,K.slice());S=S.nextSibling}else while(S)O$(S,Z,Y,J,K.slice()),S=S.nextSibling;Z.push("")}else Z.push("/>");return;case Mz:case N0:var S=$.firstChild;while(S)O$(S,Z,Y,J,K.slice()),S=S.nextSibling;return;case R$:return F8(Z,$.name,$.value);case R9:return Z.push($.data.replace(/[<&]/g,Nz).replace(/]]>/g,"]]>"));case wz:return Z.push("");case Dz:return Z.push("");case Lz:var{publicId:P,systemId:R}=$;if(Z.push("")}else if(R&&R!=".")Z.push(" SYSTEM ",R,">");else{var W=$.internalSubset;if(W)Z.push(" [",W,"]");Z.push(">")}return;case Cz:return Z.push("");case Bz:return Z.push("&",$.nodeName,";");default:Z.push("??",$.nodeName)}}function fz($,Z,Y){var J;switch(Z.nodeType){case u1:J=Z.cloneNode(!1),J.ownerDocument=$;case N0:break;case R$:Y=!0;break}if(!J)J=Z.cloneNode(!1);if(J.ownerDocument=$,J.parentNode=null,Y){var K=Z.firstChild;while(K)J.appendChild(fz($,K,Y)),K=K.nextSibling}return J}function O8($,Z,Y){var J=new Z.constructor;for(var K in Z)if(Object.prototype.hasOwnProperty.call(Z,K)){var z=Z[K];if(typeof z!="object"){if(z!=J[K])J[K]=z}}if(Z.childNodes)J.childNodes=new S0;switch(J.ownerDocument=$,J.nodeType){case u1:var Q=Z.attributes,U=J.attributes=new I9,G=Q.length;U._ownerElement=J;for(var H=0;H{var gz=zZ().freeze;HF.XML_ENTITIES=gz({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});HF.HTML_ENTITIES=gz({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"});HF.entityMap=HF.HTML_ENTITIES});var nz=A((BF)=>{var OZ=zZ().NAMESPACE,L8=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,mz=new RegExp("[\\-\\.0-9"+L8.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),cz=new RegExp("^"+L8.source+mz.source+"*(?::"+L8.source+mz.source+"*)?$"),VZ=0,h0=1,E$=2,WZ=3,A$=4,w$=5,FZ=6,C9=7;function B$($,Z){if(this.message=$,this.locator=Z,Error.captureStackTrace)Error.captureStackTrace(this,B$)}B$.prototype=Error();B$.prototype.name=B$.name;function lz(){}lz.prototype={parse:function($,Z,Y){var J=this.domBuilder;J.startDocument(),iz(Z,Z={}),FF($,Z,Y,J,this.errorHandler),J.endDocument()}};function FF($,Z,Y,J,K){function z(j){if(j>65535){j-=65536;var p=55296+(j>>10),Y1=56320+(j&1023);return String.fromCharCode(p,Y1)}else return String.fromCharCode(j)}function Q(j){var p=j.slice(1,-1);if(p in Y)return Y[p];else if(p.charAt(0)==="#")return z(parseInt(p.substr(1).replace("x","0x")));else return K.error("entity not found:"+j),j}function U(j){if(j>X){var p=$.substring(X,j).replace(/&#?\w+;/g,Q);E&&G(X),J.characters(p,0,j-X),X=j}}function G(j,p){while(j>=V&&(p=I.exec($)))H=p.index,V=H+p[0].length,E.lineNumber++;E.columnNumber=j-H+1}var H=0,V=0,I=/.*(?:\r\n?|\n)|.*$/g,E=J.locator,w=[{currentNSMap:Z}],T={},X=0;while(!0){try{var D=$.indexOf("<",X);if(D<0){if(!$.substr(X).match(/^\s*$/)){var S=J.doc,P=S.createTextNode($.substr(X));S.appendChild(P),J.currentElement=P}return}if(D>X)U(D);switch($.charAt(D+1)){case"/":var M=$.indexOf(">",D+3),R=$.substring(D+2,M).replace(/[ \t\n\r]+$/g,""),W=w.pop();if(M<0)R=$.substring(D+2).replace(/[\s<].*/,""),K.error("end tag name: "+R+" is not complete:"+W.tagName),M=D+1+R.length;else if(R.match(/\sX)X=M;else U(Math.max(D,X)+1)}}function pz($,Z){return Z.lineNumber=$.lineNumber,Z.columnNumber=$.columnNumber,Z}function OF($,Z,Y,J,K,z){function Q(w,T,X){if(Y.attributeNames.hasOwnProperty(w))z.fatalError("Attribute "+w+" redefined");Y.addValue(w,T,X)}var U,G,H=++Z,V=VZ;while(!0){var I=$.charAt(H);switch(I){case"=":if(V===h0)U=$.slice(Z,H),V=WZ;else if(V===E$)V=WZ;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(V===WZ||V===h0){if(V===h0)z.warning('attribute value must after "="'),U=$.slice(Z,H);if(Z=H+1,H=$.indexOf(I,Z),H>0)G=$.slice(Z,H).replace(/&#?\w+;/g,K),Q(U,G,Z-1),V=w$;else throw Error("attribute value no end '"+I+"' match")}else if(V==A$)G=$.slice(Z,H).replace(/&#?\w+;/g,K),Q(U,G,Z),z.warning('attribute "'+U+'" missed start quot('+I+")!!"),Z=H+1,V=w$;else throw Error('attribute value must after "="');break;case"/":switch(V){case VZ:Y.setTagName($.slice(Z,H));case w$:case FZ:case C9:V=C9,Y.closed=!0;case A$:case h0:break;case E$:Y.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(z.error("unexpected end of input"),V==VZ)Y.setTagName($.slice(Z,H));return H;case">":switch(V){case VZ:Y.setTagName($.slice(Z,H));case w$:case FZ:case C9:break;case A$:case h0:if(G=$.slice(Z,H),G.slice(-1)==="/")Y.closed=!0,G=G.slice(0,-1);case E$:if(V===E$)G=U;if(V==A$)z.warning('attribute "'+G+'" missed quot(")!'),Q(U,G.replace(/&#?\w+;/g,K),Z);else{if(!OZ.isHTML(J[""])||!G.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!');Q(G,G,Z)}break;case WZ:throw Error("attribute value missed!!")}return H;case"€":I=" ";default:if(I<=" ")switch(V){case VZ:Y.setTagName($.slice(Z,H)),V=FZ;break;case h0:U=$.slice(Z,H),V=E$;break;case A$:var G=$.slice(Z,H).replace(/&#?\w+;/g,K);z.warning('attribute "'+G+'" missed quot(")!!'),Q(U,G,Z);case w$:V=FZ;break}else switch(V){case E$:var E=Y.tagName;if(!OZ.isHTML(J[""])||!U.match(/^(?:disabled|checked|selected)$/i))z.warning('attribute "'+U+'" missed value!! "'+U+'" instead2!!');Q(U,U,Z),Z=H,V=h0;break;case w$:z.warning('attribute space is required"'+U+'"!!');case FZ:V=h0,Z=H;break;case WZ:V=A$,Z=H;break;case C9:throw Error("elements closed character '/' and '>' must be connected to")}}H++}}function dz($,Z,Y){var J=$.tagName,K=null,I=$.length;while(I--){var z=$[I],Q=z.qName,U=z.value,E=Q.indexOf(":");if(E>0)var G=z.prefix=Q.slice(0,E),H=Q.slice(E+1),V=G==="xmlns"&&H;else H=Q,G=null,V=Q==="xmlns"&&"";if(z.localName=H,V!==!1){if(K==null)K={},iz(Y,Y={});Y[V]=K[V]=U,z.uri=OZ.XMLNS,Z.startPrefixMapping(V,U)}}var I=$.length;while(I--){z=$[I];var G=z.prefix;if(G){if(G==="xml")z.uri=OZ.XML;if(G!=="xmlns")z.uri=Y[G||""]}}var E=J.indexOf(":");if(E>0)G=$.prefix=J.slice(0,E),H=$.localName=J.slice(E+1);else G=null,H=$.localName=J;var w=$.uri=Y[G||""];if(Z.startElement(w,H,J,$),$.closed){if(Z.endElement(w,H,J),K){for(G in K)if(Object.prototype.hasOwnProperty.call(K,G))Z.endPrefixMapping(G)}}else return $.currentNSMap=Y,$.localNSMap=K,!0}function RF($,Z,Y,J,K){if(/^(?:script|textarea)$/i.test(Y)){var z=$.indexOf("",Z),Q=$.substring(Z+1,z);if(/[&<]/.test(Q)){if(/^script$/i.test(Y))return K.characters(Q,0,Q.length),z;return Q=Q.replace(/&#?\w+;/g,J),K.characters(Q,0,Q.length),z}}return Z+1}function IF($,Z,Y,J){var K=J[Y];if(K==null){if(K=$.lastIndexOf(""),K",Z+4);if(z>Z)return Y.comment($,Z+4,z-Z-4),z+3;else return J.error("Unclosed comment"),-1}else return-1;default:if($.substr(Z+3,6)=="CDATA["){var z=$.indexOf("]]>",Z+9);return Y.startCDATA(),Y.characters($,Z+9,z-Z-9),Y.endCDATA(),z+3}var Q=wF($,Z),U=Q.length;if(U>1&&/!doctype/i.test(Q[0][0])){var G=Q[1][0],H=!1,V=!1;if(U>3){if(/^public$/i.test(Q[2][0]))H=Q[3][0],V=U>4&&Q[4][0];else if(/^system$/i.test(Q[2][0]))V=Q[3][0]}var I=Q[U-1];return Y.startDTD(G,H,V),Y.endDTD(),I.index+I[0].length}}return-1}function AF($,Z,Y){var J=$.indexOf("?>",Z);if(J){var K=$.substring(Z,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(K){var z=K[0].length;return Y.processingInstruction(K[1],K[2]),J+2}else return-1}return-1}function sz(){this.attributeNames={}}sz.prototype={setTagName:function($){if(!cz.test($))throw Error("invalid tagName:"+$);this.tagName=$},addValue:function($,Z,Y){if(!cz.test($))throw Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:Z,offset:Y}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function wF($,Z){var Y,J=[],K=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;K.lastIndex=Z,K.exec($);while(Y=K.exec($))if(J.push(Y),Y[1])return J}BF.XMLReader=lz;BF.ParseError=B$});var $Q=A((NF)=>{var MF=zZ(),X8=M8(),rz=uz(),tz=nz(),LF=X8.DOMImplementation,az=MF.NAMESPACE,TF=tz.ParseError,XF=tz.XMLReader;function ez($){this.options=$||{locator:{}}}ez.prototype.parseFromString=function($,Z){var Y=this.options,J=new XF,K=Y.domBuilder||new RZ,z=Y.errorHandler,Q=Y.locator,U=Y.xmlns||{},G=/\/x?html?$/.test(Z),H=G?rz.HTML_ENTITIES:rz.XML_ENTITIES;if(Q)K.setDocumentLocator(Q);if(J.errorHandler=SF(z,K,Q),J.domBuilder=Y.domBuilder||K,G)U[""]=az.HTML;if(U.xml=U.xml||az.XML,$&&typeof $==="string")J.parse($,U,H);else J.errorHandler.error("invalid doc source");return K.doc};function SF($,Z,Y){if(!$){if(Z instanceof RZ)return Z;$=Z}var J={},K=$ instanceof Function;Y=Y||{};function z(Q){var U=$[Q];if(!U&&K)U=$.length==2?function(G){$(Q,G)}:$;J[Q]=U&&function(G){U("[xmldom "+Q+"]\t"+G+T8(Y))}||function(){}}return z("warning"),z("error"),z("fatalError"),J}function RZ(){this.cdata=!1}function C$($,Z){Z.lineNumber=$.lineNumber,Z.columnNumber=$.columnNumber}RZ.prototype={startDocument:function(){if(this.doc=new LF().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function($,Z,Y,J){var K=this.doc,z=K.createElementNS($,Y||Z),Q=J.length;D9(this,z),this.currentElement=z,this.locator&&C$(this.locator,z);for(var U=0;U=Z+Y||Z)return new java.lang.String($,Z,Y)+"";return $}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function($){RZ.prototype[$]=function(){return null}});function D9($,Z){if(!$.currentElement)$.doc.appendChild(Z);else $.currentElement.appendChild(Z)}NF.__DOMHandler=RZ;NF.DOMParser=ez;NF.DOMImplementation=X8.DOMImplementation;NF.XMLSerializer=X8.XMLSerializer});var IZ=A((xF)=>{var ZQ=M8();xF.DOMImplementation=ZQ.DOMImplementation;xF.XMLSerializer=ZQ.XMLSerializer;xF.DOMParser=$Q().DOMParser});var QQ=A((KQ)=>{Object.defineProperty(KQ,"__esModule",{value:!0});KQ.parse=void 0;var vF=IZ();function gF($){let J=new vF.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Workspace")throw Error("Invalid xcworkspacedata file: root element must be ");return hF(J)}KQ.parse=gF;function hF($){let Z={};Z.version=M9($,"version");let Y=L9($,"FileRef");if(Y.length>0)Z.fileRefs=Y.map(YQ);let J=L9($,"Group");if(J.length>0)Z.groups=J.map(JQ);return Z}function YQ($){return{location:M9($,"location")||""}}function JQ($){let Z={};Z.location=M9($,"location"),Z.name=M9($,"name");let Y=L9($,"FileRef");if(Y.length>0)Z.fileRefs=Y.map(YQ);let J=L9($,"Group");if(J.length>0)Z.groups=J.map(JQ);return Z}function M9($,Z){if(!$.hasAttribute(Z))return;return $.getAttribute(Z)??void 0}function L9($,Z){let Y=[],J=$.childNodes;for(let K=0;K{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.build=void 0;function uF($){let Z=[];Z.push('');let Y=[];if($.version!==void 0)Y.push(`version = "${$.version}"`);if(Y.length>0){Z.push("");if($.fileRefs)for(let J of $.fileRefs)Z.push(...GQ(J,1));if($.groups)for(let J of $.groups)Z.push(...UQ(J,1));return Z.push(""),Z.join(` `)+` -`}i4.build=s2;function d4($,Y){let Z=s4(Y);return[`${Z} -${Z}`]}function l4($,Y){let Z=[],J=s4(Y),K=[];if($.location!==void 0)K.push(`location = "${rY($.location)}"`);if($.name!==void 0)K.push(`name = "${rY($.name)}"`);Z.push(`${J}`),Z}function s4($){return" ".repeat($)}function rY($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var o4=C(($V)=>{$V.byteLength=r2;$V.toByteArray=a2;$V.fromByteArray=e2;var I1=[],G1=[],i2=typeof Uint8Array<"u"?Uint8Array:Array,nY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s1=0,aY=nY.length;s10)throw Error("Invalid string. Length must be a multiple of 4");var Z=$.indexOf("=");if(Z===-1)Z=Y;var J=Z===Y?0:4-Z%4;return[Z,J]}function r2($){var Y=a4($),Z=Y[0],J=Y[1];return(Z+J)*3/4-J}function n2($,Y,Z){return(Y+Z)*3/4-Z}function a2($){var Y,Z=a4($),J=Z[0],K=Z[1],z=new i2(n2($,J,K)),Q=0,W=K>0?J-4:J,G;for(G=0;G>16&255,z[Q++]=Y>>8&255,z[Q++]=Y&255;if(K===2)Y=G1[$.charCodeAt(G)]<<2|G1[$.charCodeAt(G+1)]>>4,z[Q++]=Y&255;if(K===1)Y=G1[$.charCodeAt(G)]<<10|G1[$.charCodeAt(G+1)]<<4|G1[$.charCodeAt(G+2)]>>2,z[Q++]=Y>>8&255,z[Q++]=Y&255;return z}function o2($){return I1[$>>18&63]+I1[$>>12&63]+I1[$>>6&63]+I1[$&63]}function t2($,Y,Z){var J,K=[];for(var z=Y;zW?W:Q+z));if(J===1)Y=$[Z-1],K.push(I1[Y>>2]+I1[Y<<4&63]+"==");else if(J===2)Y=($[Z-2]<<8)+$[Z-1],K.push(I1[Y>>10]+I1[Y>>4&63]+I1[Y<<2&63]+"=");return K.join("")}});var w1=C((t4,i1)=>{(function(){var $,Y,Z,J,K,z,Q,W={}.hasOwnProperty;$=function(G,...q){var H,R,P,j;if(K(Object.assign))Object.assign.apply(null,arguments);else for(H=0,P=q.length;H{(function(){var $;$K.exports=$=class{hasFeature(Z,J){return!0}createDocumentType(Z,J,K){throw Error("This DOM method is not implemented.")}createDocument(Z,J,K){throw Error("This DOM method is not implemented.")}createHTMLDocument(Z){throw Error("This DOM method is not implemented.")}getFeature(Z,J){throw Error("This DOM method is not implemented.")}}}).call(e4)});var JK=C((YK,ZK)=>{(function(){var $;ZK.exports=$=class{constructor(){}handleError(Z){throw Error(Z)}}}).call(YK)});var QK=C((KK,zK)=>{(function(){var $;zK.exports=$=function(){class Y{constructor(Z){this.arr=Z||[]}item(Z){return this.arr[Z]||null}contains(Z){return this.arr.indexOf(Z)!==-1}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.arr.length}}),Y}.call(this)}).call(KK)});var WK=C((GK,VK)=>{(function(){var $,Y,Z;Y=JK(),Z=QK(),VK.exports=$=function(){class J{constructor(){var K;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Y,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=K=Object.create(this.defaultParams)}getParameter(K){if(this.params.hasOwnProperty(K))return this.params[K];else return null}canSetParameter(K,z){return!0}setParameter(K,z){if(z!=null)return this.params[K]=z;else return delete this.params[K]}}return Object.defineProperty(J.prototype,"parameterNames",{get:function(){return new Z(Object.keys(this.defaultParams))}}),J}.call(this)}).call(GK)});var i=C((qK,HK)=>{(function(){HK.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(qK)});var tY=C((BK,FK)=>{(function(){var $,Y,Z;$=i(),Z=Q1(),FK.exports=Y=function(){class J{constructor(K,z,Q){if(this.parent=K,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(z==null)throw Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(Q),this.type=$.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(K){return this.options.writer.attribute(this,this.options.writer.filterOptions(K))}debugInfo(K){if(K=K||this.name,K==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+K+"}, parent: <"+this.parent.name+">"}isEqualNode(K){if(K.namespaceURI!==this.namespaceURI)return!1;if(K.prefix!==this.prefix)return!1;if(K.localName!==this.localName)return!1;if(K.value!==this.value)return!1;return!0}}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(J.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(J.prototype,"textContent",{get:function(){return this.value},set:function(K){return this.value=K||""}}),Object.defineProperty(J.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(J.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(J.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(J.prototype,"specified",{get:function(){return!0}}),J}.call(this)}).call(BK)});var x$=C((UK,OK)=>{(function(){var $;OK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}getNamedItem(Z){return this.nodes[Z]}setNamedItem(Z){var J=this.nodes[Z.nodeName];return this.nodes[Z.nodeName]=Z,J||null}removeNamedItem(Z){var J=this.nodes[Z];return delete this.nodes[Z],J||null}item(Z){return this.nodes[Object.keys(this.nodes)[Z]]||null}getNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}setNamedItemNS(Z){throw Error("This DOM method is not implemented.")}removeNamedItemNS(Z,J){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(Y.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Y}.call(this)}).call(UK)});var N$=C((RK,PK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G={}.hasOwnProperty;({isObject:W,isFunction:Q,getValue:z}=w1()),K=Q1(),$=i(),Y=tY(),J=x$(),PK.exports=Z=function(){class q extends K{constructor(H,R,P){var j,w,T,I;super(H);if(R==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(R),this.type=$.Element,this.attribs={},this.schemaTypeInfo=null,P!=null)this.attribute(P);if(H.type===$.Document){if(this.isRoot=!0,this.documentObject=H,H.rootObject=this,H.children){I=H.children;for(w=0,T=I.length;w=j;R=0<=j?++P:--P)if(!this.attribs[R].isEqualNode(H.attribs[R]))return!1;return!0}}return Object.defineProperty(q.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(q.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(q.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(q.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(q.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes)this.attributeMap=new J(this.attribs);return this.attributeMap}}),q}.call(this)}).call(RK)});var n0=C((AK,EK)=>{(function(){var $,Y;Y=Q1(),EK.exports=$=function(){class Z extends Y{constructor(J){super(J);this.value=""}clone(){return Object.create(this)}substringData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(J){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(J,K,z){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(J){if(!super.isEqualNode(J))return!1;if(J.data!==this.data)return!1;return!0}}return Object.defineProperty(Z.prototype,"data",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Object.defineProperty(Z.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Z}.call(this)}).call(AK)});var y$=C((CK,jK)=>{(function(){var $,Y,Z;$=i(),Z=n0(),jK.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=$.CData,this.value=this.stringify.cdata(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.cdata(this,this.options.writer.filterOptions(K))}}}).call(CK)});var b$=C((kK,XK)=>{(function(){var $,Y,Z;$=i(),Y=n0(),XK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=$.Comment,this.value=this.stringify.comment(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.comment(this,this.options.writer.filterOptions(K))}}}).call(kK)});var g$=C((IK,wK)=>{(function(){var $,Y,Z,J;({isObject:J}=w1()),Z=Q1(),$=i(),wK.exports=Y=class extends Z{constructor(z,Q,W,G){super(z);if(J(Q))({version:Q,encoding:W,standalone:G}=Q);if(!Q)Q="1.0";if(this.type=$.Declaration,this.version=this.stringify.xmlVersion(Q),W!=null)this.encoding=this.stringify.xmlEncoding(W);if(G!=null)this.standalone=this.stringify.xmlStandalone(G)}toString(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))}}}).call(IK)});var f$=C((_K,DK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),DK.exports=Y=class extends Z{constructor(K,z,Q,W,G,q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(Q==null)throw Error("Missing DTD attribute name. "+this.debugInfo(z));if(!W)throw Error("Missing DTD attribute type. "+this.debugInfo(z));if(!G)throw Error("Missing DTD attribute default. "+this.debugInfo(z));if(G.indexOf("#")!==0)G="#"+G;if(!G.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(q&&!G.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));if(this.elementName=this.stringify.name(z),this.type=$.AttributeDeclaration,this.attributeName=this.stringify.name(Q),this.attributeType=this.stringify.dtdAttType(W),q)this.defaultValue=this.stringify.dtdAttDefault(q);this.defaultValueType=G}toString(K){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(K))}}}).call(_K)});var h$=C((TK,SK)=>{(function(){var $,Y,Z,J;({isObject:J}=w1()),Z=Q1(),$=i(),SK.exports=Y=function(){class K extends Z{constructor(z,Q,W,G){super(z);if(W==null)throw Error("Missing DTD entity name. "+this.debugInfo(W));if(G==null)throw Error("Missing DTD entity value. "+this.debugInfo(W));if(this.pe=!!Q,this.name=this.stringify.name(W),this.type=$.EntityDeclaration,!J(G))this.value=this.stringify.dtdEntityValue(G),this.internal=!0;else{if(!G.pubID&&!G.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(W));if(G.pubID&&!G.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(W));if(this.internal=!1,G.pubID!=null)this.pubID=this.stringify.dtdPubID(G.pubID);if(G.sysID!=null)this.sysID=this.stringify.dtdSysID(G.sysID);if(G.nData!=null)this.nData=this.stringify.dtdNData(G.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(W))}}toString(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))}}return Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(K.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlVersion",{get:function(){return null}}),K}.call(this)}).call(TK)});var v$=C((MK,LK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),LK.exports=Y=class extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!Q)Q="(#PCDATA)";if(Array.isArray(Q))Q="("+Q.join(",")+")";this.name=this.stringify.name(z),this.type=$.ElementDeclaration,this.value=this.stringify.dtdElementValue(Q)}toString(K){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(K))}}}).call(MK)});var u$=C((xK,NK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),NK.exports=Y=function(){class J extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD notation name. "+this.debugInfo(z));if(!Q.pubID&&!Q.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));if(this.name=this.stringify.name(z),this.type=$.NotationDeclaration,Q.pubID!=null)this.pubID=this.stringify.dtdPubID(Q.pubID);if(Q.sysID!=null)this.sysID=this.stringify.dtdSysID(Q.sysID)}toString(K){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(K))}}return Object.defineProperty(J.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(J.prototype,"systemId",{get:function(){return this.sysID}}),J}.call(this)}).call(xK)});var m$=C((yK,bK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({isObject:G}=w1()),W=Q1(),$=i(),Y=f$(),J=h$(),Z=v$(),K=u$(),Q=x$(),bK.exports=z=function(){class q extends W{constructor(H,R,P){var j,w,T,I;super(H);if(this.type=$.DocType,H.children){I=H.children;for(w=0,T=I.length;w{(function(){var $,Y,Z;$=i(),Y=Q1(),fK.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing raw text. "+this.debugInfo());this.type=$.Raw,this.value=this.stringify.raw(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.raw(this,this.options.writer.filterOptions(K))}}}).call(gK)});var p$=C((hK,vK)=>{(function(){var $,Y,Z;$=i(),Y=n0(),vK.exports=Z=function(){class J extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=$.Text,this.value=this.stringify.text(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.text(this,this.options.writer.filterOptions(K))}splitText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(J.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(J.prototype,"wholeText",{get:function(){var K,z,Q;Q="",z=this.previousSibling;while(z)Q=z.data+Q,z=z.previousSibling;Q+=this.data,K=this.nextSibling;while(K)Q=Q+K.data,K=K.nextSibling;return Q}}),J}.call(this)}).call(hK)});var d$=C((uK,mK)=>{(function(){var $,Y,Z;$=i(),Y=n0(),mK.exports=Z=class extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.type=$.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,Q)this.value=this.stringify.insValue(Q)}clone(){return Object.create(this)}toString(K){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(K))}isEqualNode(K){if(!super.isEqualNode(K))return!1;if(K.target!==this.target)return!1;return!0}}}).call(uK)});var eY=C((cK,pK)=>{(function(){var $,Y,Z;Z=Q1(),$=i(),pK.exports=Y=class extends Z{constructor(K){super(K);this.type=$.Dummy}clone(){return Object.create(this)}toString(K){return""}}}).call(cK)});var sK=C((dK,lK)=>{(function(){var $;lK.exports=$=function(){class Y{constructor(Z){this.nodes=Z}clone(){return this.nodes=null}item(Z){return this.nodes[Z]||null}}return Object.defineProperty(Y.prototype,"length",{get:function(){return this.nodes.length||0}}),Y}.call(this)}).call(dK)});var nK=C((iK,rK)=>{(function(){rK.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(iK)});var Q1=C((aK,oK)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,j,w,T,I,D,y={}.hasOwnProperty,O=[].splice;({isObject:D,isFunction:I,isEmpty:T,getValue:w}=w1()),W=null,Z=null,J=null,K=null,z=null,P=null,j=null,R=null,Q=null,Y=null,H=null,G=null,$=null,oK.exports=q=function(){class B{constructor(V){if(this.parent=V,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.value=null,this.children=[],this.baseURI=null,!W)W=N$(),Z=y$(),J=b$(),K=g$(),z=m$(),P=c$(),j=p$(),R=d$(),Q=eY(),Y=i(),H=sK(),G=x$(),$=nK()}setParent(V){var U,E,X,F,A;if(this.parent=V,V)this.options=V.options,this.stringify=V.stringify;F=this.children,A=[];for(E=0,X=F.length;E";else if(!((E=this.parent)!=null?E.name:void 0))return"node: <"+V+">";else return"node: <"+V+">, parent: <"+this.parent.name+">"}ele(V,U,E){return this.element(V,U,E)}nod(V,U,E){return this.node(V,U,E)}txt(V){return this.text(V)}dat(V){return this.cdata(V)}com(V){return this.comment(V)}ins(V,U){return this.instruction(V,U)}doc(){return this.document()}dec(V,U,E){return this.declaration(V,U,E)}e(V,U,E){return this.element(V,U,E)}n(V,U,E){return this.node(V,U,E)}t(V){return this.text(V)}d(V){return this.cdata(V)}c(V){return this.comment(V)}r(V){return this.raw(V)}i(V,U){return this.instruction(V,U)}u(){return this.up()}importXMLBuilder(V){return this.importDocument(V)}attribute(V,U){throw Error("attribute() applies to element nodes only.")}att(V,U){return this.attribute(V,U)}a(V,U){return this.attribute(V,U)}removeAttribute(V){throw Error("attribute() applies to element nodes only.")}replaceChild(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(V){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(V,U){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(V){var U,E;if(U=this,U===V)return 0;else if(this.document()!==V.document()){if(E=$.Disconnected|$.ImplementationSpecific,Math.random()<0.5)E|=$.Preceding;else E|=$.Following;return E}else if(U.isAncestor(V))return $.Contains|$.Preceding;else if(U.isDescendant(V))return $.Contains|$.Following;else if(U.isPreceding(V))return $.Preceding;else return $.Following}isSameNode(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(V){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(V){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(V){var U,E,X;if(V.nodeType!==this.nodeType)return!1;if(V.children.length!==this.children.length)return!1;for(U=E=0,X=this.children.length-1;0<=X?E<=X:E>=X;U=0<=X?++E:--E)if(!this.children[U].isEqualNode(V.children[U]))return!1;return!0}getFeature(V,U){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(V,U,E){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(V){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(V){if(!V)return!1;return V===this||this.isDescendant(V)}isDescendant(V){var U,E,X,F,A;A=this.children;for(X=0,F=A.length;XE}treePosition(V){var U,E;if(E=0,U=!1,this.foreachTreeNode(this.document(),function(X){if(E++,!U&&X===V)return U=!0}),U)return E;else return-1}foreachTreeNode(V,U){var E,X,F,A,k;V||(V=this.document()),A=V.children;for(X=0,F=A.length;X{(function(){var $,Y={}.hasOwnProperty;eK.exports=$=function(){class Z{constructor(J){var K,z,Q;if(this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),J||(J={}),this.options=J,!this.options.version)this.options.version="1.0";z=J.stringify||{};for(K in z){if(!Y.call(z,K))continue;Q=z[K],this[K]=Q}}name(J){if(this.options.noValidation)return J;return this.assertLegalName(""+J||"")}text(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.textEscape(""+J||""))}cdata(J){if(this.options.noValidation)return J;return J=""+J||"",J=J.replace("]]>","]]]]>"),this.assertLegalChar(J)}comment(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/--/))throw Error("Comment text cannot contain double-hypen: "+J);return this.assertLegalChar(J)}raw(J){if(this.options.noValidation)return J;return""+J||""}attValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.attEscape(J=""+J||""))}insTarget(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}insValue(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/\?>/))throw Error("Invalid processing instruction value: "+J);return this.assertLegalChar(J)}xmlVersion(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/1\.[0-9]+/))throw Error("Invalid version number: "+J);return J}xmlEncoding(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+J);return this.assertLegalChar(J)}xmlStandalone(J){if(this.options.noValidation)return J;if(J)return"yes";else return"no"}dtdPubID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdSysID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdElementValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttType(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttDefault(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdEntityValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdNData(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}assertLegalChar(J){var K,z;if(this.options.noValidation)return J;if(K="",this.options.version==="1.0"){if(K=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}else if(this.options.version==="1.1"){if(K=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}return J}assertLegalName(J){var K;if(this.options.noValidation)return J;if(this.assertLegalChar(J),K=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!J.match(K))throw Error("Invalid character in name");return J}textEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(//g,">").replace(/\r/g," ")}attEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(/{(function(){Yz.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call($z)});var YZ=C((Zz,Jz)=>{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,j,w,T,I,D={}.hasOwnProperty;({assign:I}=w1()),$=i(),G=g$(),q=m$(),Z=y$(),J=b$(),R=N$(),j=c$(),w=p$(),P=d$(),H=eY(),K=f$(),z=v$(),Q=h$(),W=u$(),Y=a0(),Jz.exports=T=class{constructor(O){var B,V,U;O||(O={}),this.options=O,V=O.writer||{};for(B in V){if(!D.call(V,B))continue;U=V[B],this["_"+B]=this[B],this[B]=U}}filterOptions(O){var B,V,U,E,X,F,A,k,S;if(O||(O={}),O=I({},this.options,O),B={writer:this},B.pretty=O.pretty||!1,B.allowEmpty=O.allowEmpty||!1,B.indent=(V=O.indent)!=null?V:" ",B.newline=(U=O.newline)!=null?U:` -`,B.offset=(E=O.offset)!=null?E:0,B.width=(X=O.width)!=null?X:0,B.dontPrettyTextNodes=(F=(A=O.dontPrettyTextNodes)!=null?A:O.dontprettytextnodes)!=null?F:0,B.spaceBeforeSlash=(k=(S=O.spaceBeforeSlash)!=null?S:O.spacebeforeslash)!=null?k:"",B.spaceBeforeSlash===!0)B.spaceBeforeSlash=" ";return B.suppressPrettyCount=0,B.user={},B.state=Y.None,B}indent(O,B,V){var U;if(!B.pretty||B.suppressPrettyCount)return"";else if(B.pretty){if(U=(V||0)+B.offset+1,U>0)return Array(U).join(B.indent)}return""}endline(O,B,V){if(!B.pretty||B.suppressPrettyCount)return"";else return B.newline}attribute(O,B,V){var U;if(this.openAttribute(O,B,V),B.pretty&&B.width>0)U=O.name+'="'+O.value+'"';else U=" "+O.name+'="'+O.value+'"';return this.closeAttribute(O,B,V),U}cdata(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}comment(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}declaration(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}docType(O,B,V){var U,E,X,F,A;if(V||(V=0),this.openNode(O,B,V),B.state=Y.OpenTag,F=this.indent(O,B,V),F+="0){F+=" [",F+=this.endline(O,B,V),B.state=Y.InsideTag,A=O.children;for(E=0,X=A.length;E",F+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),F}element(O,B,V){var U,E,X,F,A,k,S,M,h,c,_,L,p,u1,e0,$$,n$,a$,G0;if(V||(V=0),L=!1,this.openNode(O,B,V),B.state=Y.OpenTag,p=this.indent(O,B,V)+"<"+O.name,B.pretty&&B.width>0){M=p.length,e0=O.attribs;for(_ in e0){if(!D.call(e0,_))continue;if(U=e0[_],u1=this.attribute(U,B,V),E=u1.length,M+E>B.width)G0=this.indent(O,B,V+1)+u1,p+=this.endline(O,B,V)+G0,M=G0.length;else G0=" "+u1,p+=G0,M+=G0.length}}else{$$=O.attribs;for(_ in $$){if(!D.call($$,_))continue;U=$$[_],p+=this.attribute(U,B,V)}}if(F=O.children.length,A=F===0?null:O.children[0],F===0||O.children.every(function(o$){return(o$.type===$.Text||o$.type===$.Raw)&&o$.value===""}))if(B.allowEmpty)p+=">",B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else B.state=Y.CloseTag,p+=B.spaceBeforeSlash+"/>"+this.endline(O,B,V);else if(B.pretty&&F===1&&(A.type===$.Text||A.type===$.Raw)&&A.value!=null)p+=">",B.state=Y.InsideTag,B.suppressPrettyCount++,L=!0,p+=this.writeChildNode(A,B,V+1),B.suppressPrettyCount--,L=!1,B.state=Y.CloseTag,p+=""+this.endline(O,B,V);else{if(B.dontPrettyTextNodes){n$=O.children;for(k=0,h=n$.length;k"+this.endline(O,B,V),B.state=Y.InsideTag,a$=O.children;for(S=0,c=a$.length;S",L)B.suppressPrettyCount--;p+=this.endline(O,B,V),B.state=Y.None}return this.closeNode(O,B,V),p}writeChildNode(O,B,V){switch(O.type){case $.CData:return this.cdata(O,B,V);case $.Comment:return this.comment(O,B,V);case $.Element:return this.element(O,B,V);case $.Raw:return this.raw(O,B,V);case $.Text:return this.text(O,B,V);case $.ProcessingInstruction:return this.processingInstruction(O,B,V);case $.Dummy:return"";case $.Declaration:return this.declaration(O,B,V);case $.DocType:return this.docType(O,B,V);case $.AttributeDeclaration:return this.dtdAttList(O,B,V);case $.ElementDeclaration:return this.dtdElement(O,B,V);case $.EntityDeclaration:return this.dtdEntity(O,B,V);case $.NotationDeclaration:return this.dtdNotation(O,B,V);default:throw Error("Unknown XML node type: "+O.constructor.name)}}processingInstruction(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+"",U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}raw(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}text(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V),B.state=Y.InsideTag,U+=O.value,B.state=Y.CloseTag,U+=this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdAttList(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdElement(O,B,V){var U;return this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdEntity(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}dtdNotation(O,B,V){var U;if(this.openNode(O,B,V),B.state=Y.OpenTag,U=this.indent(O,B,V)+""+this.endline(O,B,V),B.state=Y.None,this.closeNode(O,B,V),U}openNode(O,B,V){}closeNode(O,B,V){}openAttribute(O,B,V){}closeAttribute(O,B,V){}}}).call(Zz)});var l$=C((Kz,zz)=>{(function(){var $,Y;Y=YZ(),zz.exports=$=class extends Y{constructor(J){super(J)}document(J,K){var z,Q,W,G,q;K=this.filterOptions(K),G="",q=J.children;for(Q=0,W=q.length;Q{(function(){var $,Y,Z,J,K,z,Q,W;({isPlainObject:W}=w1()),Z=oY(),Y=WK(),K=Q1(),$=i(),Q=$Z(),z=l$(),Gz.exports=J=function(){class G extends K{constructor(q){super(null);if(this.name="#document",this.type=$.Document,this.documentURI=null,this.domConfig=new Y,q||(q={}),!q.writer)q.writer=new z;this.options=q,this.stringify=new Q(q)}end(q){var H={};if(!q)q=this.options.writer;else if(W(q))H=q,q=this.options.writer;return q.document(this,q.filterOptions(H))}toString(q){return this.options.writer.document(this,this.options.writer.filterOptions(q))}createElement(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(q){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(q,H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(q){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(q){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(q,H,R){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(G.prototype,"implementation",{value:new Z}),Object.defineProperty(G.prototype,"doctype",{get:function(){var q,H,R,P;P=this.children;for(H=0,R=P.length;H{(function(){var $,Y,Z,J,K,z,Q,W,G,q,H,R,P,j,w,T,I,D,y,O,B,V,U,E={}.hasOwnProperty;({isObject:V,isFunction:B,isPlainObject:U,getValue:O}=w1()),$=i(),R=ZZ(),j=N$(),J=y$(),K=b$(),T=c$(),y=p$(),w=d$(),q=g$(),H=m$(),z=f$(),W=h$(),Q=v$(),G=u$(),Z=tY(),D=$Z(),I=l$(),Y=a0(),Wz.exports=P=class{constructor(F,A,k){var S;if(this.name="?xml",this.type=$.Document,F||(F={}),S={},!F.writer)F.writer=new I;else if(U(F.writer))S=F.writer,F.writer=new I;this.options=F,this.writer=F.writer,this.writerOptions=this.writer.filterOptions(S),this.stringify=new D(F),this.onDataCallback=A||function(){},this.onEndCallback=k||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(F){var A,k,S,M,h,c,_,L;switch(F.type){case $.CData:this.cdata(F.value);break;case $.Comment:this.comment(F.value);break;case $.Element:S={},_=F.attribs;for(k in _){if(!E.call(_,k))continue;A=_[k],S[k]=A.value}this.node(F.name,S);break;case $.Dummy:this.dummy();break;case $.Raw:this.raw(F.value);break;case $.Text:this.text(F.value);break;case $.ProcessingInstruction:this.instruction(F.target,F.value);break;default:throw Error("This XML node type is not supported in a JS object: "+F.constructor.name)}L=F.children;for(h=0,c=L.length;h=0)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(F){var A,k,S,M;if(!F.isOpen){if(!this.root&&this.currentLevel===0&&F.type===$.Element)this.root=F;if(k="",F.type===$.Element){this.writerOptions.state=Y.OpenTag,k=this.writer.indent(F,this.writerOptions,this.currentLevel)+"<"+F.name,M=F.attribs;for(S in M){if(!E.call(M,S))continue;A=M[S],k+=this.writer.attribute(A,this.writerOptions,this.currentLevel)}k+=(F.children?">":"/>")+this.writer.endline(F,this.writerOptions,this.currentLevel),this.writerOptions.state=Y.InsideTag}else{if(this.writerOptions.state=Y.OpenTag,k=this.writer.indent(F,this.writerOptions,this.currentLevel)+"";k+=this.writer.endline(F,this.writerOptions,this.currentLevel)}return this.onData(k,this.currentLevel),F.isOpen=!0}}closeNode(F){var A;if(!F.isClosed){if(A="",this.writerOptions.state=Y.CloseTag,F.type===$.Element)A=this.writer.indent(F,this.writerOptions,this.currentLevel)+""+this.writer.endline(F,this.writerOptions,this.currentLevel);else A=this.writer.indent(F,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(F,this.writerOptions,this.currentLevel);return this.writerOptions.state=Y.None,this.onData(A,this.currentLevel),F.isClosed=!0}}onData(F,A){return this.documentStarted=!0,this.onDataCallback(F,A+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(F){if(F==null)return"";else return"node: <"+F+">"}ele(){return this.element(...arguments)}nod(F,A,k){return this.node(F,A,k)}txt(F){return this.text(F)}dat(F){return this.cdata(F)}com(F){return this.comment(F)}ins(F,A){return this.instruction(F,A)}dec(F,A,k){return this.declaration(F,A,k)}dtd(F,A,k){return this.doctype(F,A,k)}e(F,A,k){return this.element(F,A,k)}n(F,A,k){return this.node(F,A,k)}t(F){return this.text(F)}d(F){return this.cdata(F)}c(F){return this.comment(F)}r(F){return this.raw(F)}i(F,A){return this.instruction(F,A)}att(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}a(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}ent(F,A){return this.entity(F,A)}pent(F,A){return this.pEntity(F,A)}not(F,A){return this.notation(F,A)}}}).call(Vz)});var Fz=C((Hz,Bz)=>{(function(){var $,Y,Z,J,K={}.hasOwnProperty;$=i(),J=YZ(),Y=a0(),Bz.exports=Z=class extends J{constructor(Q,W){super(W);this.stream=Q}endline(Q,W,G){if(Q.isLastRootNode&&W.state===Y.CloseTag)return"";else return super.endline(Q,W,G)}document(Q,W){var G,q,H,R,P,j,w,T,I;w=Q.children;for(q=H=0,P=w.length;H0){this.stream.write(" ["),this.stream.write(this.endline(Q,W,G)),W.state=Y.InsideTag,P=Q.children;for(H=0,R=P.length;H"),this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}element(Q,W,G){var q,H,R,P,j,w,T,I,D,y,O,B,V,U,E,X;if(G||(G=0),this.openNode(Q,W,G),W.state=Y.OpenTag,O=this.indent(Q,W,G)+"<"+Q.name,W.pretty&&W.width>0){T=O.length,V=Q.attribs;for(D in V){if(!K.call(V,D))continue;if(q=V[D],B=this.attribute(q,W,G),H=B.length,T+H>W.width)X=this.indent(Q,W,G+1)+B,O+=this.endline(Q,W,G)+X,T=X.length;else X=" "+B,O+=X,T+=X.length}}else{U=Q.attribs;for(D in U){if(!K.call(U,D))continue;q=U[D],O+=this.attribute(q,W,G)}}if(this.stream.write(O),P=Q.children.length,j=P===0?null:Q.children[0],P===0||Q.children.every(function(F){return(F.type===$.Text||F.type===$.Raw)&&F.value===""}))if(W.allowEmpty)this.stream.write(">"),W.state=Y.CloseTag,this.stream.write("");else W.state=Y.CloseTag,this.stream.write(W.spaceBeforeSlash+"/>");else if(W.pretty&&P===1&&(j.type===$.Text||j.type===$.Raw)&&j.value!=null)this.stream.write(">"),W.state=Y.InsideTag,W.suppressPrettyCount++,y=!0,this.writeChildNode(j,W,G+1),W.suppressPrettyCount--,y=!1,W.state=Y.CloseTag,this.stream.write("");else{this.stream.write(">"+this.endline(Q,W,G)),W.state=Y.InsideTag,E=Q.children;for(w=0,I=E.length;w")}return this.stream.write(this.endline(Q,W,G)),W.state=Y.None,this.closeNode(Q,W,G)}processingInstruction(Q,W,G){return this.stream.write(super.processingInstruction(Q,W,G))}raw(Q,W,G){return this.stream.write(super.raw(Q,W,G))}text(Q,W,G){return this.stream.write(super.text(Q,W,G))}dtdAttList(Q,W,G){return this.stream.write(super.dtdAttList(Q,W,G))}dtdElement(Q,W,G){return this.stream.write(super.dtdElement(Q,W,G))}dtdEntity(Q,W,G){return this.stream.write(super.dtdEntity(Q,W,G))}dtdNotation(Q,W,G){return this.stream.write(super.dtdNotation(Q,W,G))}}}).call(Hz)});var Oz=C((Uz,r1)=>{(function(){var $,Y,Z,J,K,z,Q,W,G;({assign:W,isFunction:G}=w1()),Z=oY(),J=ZZ(),K=qz(),Q=l$(),z=Fz(),$=i(),Y=a0(),Uz.create=function(q,H,R,P){var j,w;if(q==null)throw Error("Root element needs a name.");if(P=W({},H,R,P),j=new J(P),w=j.element(q),!P.headless){if(j.declaration(P),P.pubID!=null||P.sysID!=null)j.dtd(P)}return w},Uz.begin=function(q,H,R){if(G(q))[H,R]=[q,H],q={};if(H)return new K(q,H,R);else return new J(q)},Uz.stringWriter=function(q){return new Q(q)},Uz.streamWriter=function(q,H){return new z(q,H)},Uz.implementation=new Z,Uz.nodeType=$,Uz.writerState=Y}).call(Uz)});var Ez=C((j0)=>{var Az=j0&&j0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(j0,"__esModule",{value:!0});j0.build=void 0;var Rz=Az(o4()),KV=Az(Oz());function zV($){function Y(Z){return Z<10?"0"+Z:Z}return $.getUTCFullYear()+"-"+Y($.getUTCMonth()+1)+"-"+Y($.getUTCDate())+"T"+Y($.getUTCHours())+":"+Y($.getUTCMinutes())+":"+Y($.getUTCSeconds())+"Z"}var QV=Object.prototype.toString;function Pz($){let Y=QV.call($).match(/\[object (.*)\]/);return Y?Y[1]:Y}function GV($,Y){let Z={version:"1.0",encoding:"UTF-8"},J={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},K=KV.default.create("plist");if(K.dec(Z.version,Z.encoding,Z.standalone),K.dtd(J.pubid,J.sysid),K.att("version","1.0"),JZ($,K),!Y)Y={};return Y.pretty=Y.pretty!==!1,K.end(Y)}j0.build=GV;function JZ($,Y){let Z,J,K,z=Pz($);if(z=="Undefined");else if(Array.isArray($)){Y=Y.ele("array");for(J=0;J<$.length;J++)JZ($[J],Y)}else if(Buffer.isBuffer($))Y.ele("data").raw($.toString("base64"));else if(z=="Object"){Y=Y.ele("dict");for(K in $)if($.hasOwnProperty(K)&&$[K]!==void 0)Y.ele("key").txt(K),JZ($[K],Y)}else if(z=="Number")Z=$%1===0?"integer":"real",Y.ele(Z).txt($.toString());else if(z=="Date")Y.ele("date").txt(zV(new Date($)));else if(z=="Boolean")Y.ele($?"true":"false");else if(z=="String")Y.ele("string").txt($);else if(z=="ArrayBuffer")Y.ele("data").raw(Rz.default.fromByteArray($));else if($&&$.buffer&&Pz($.buffer)=="ArrayBuffer")Y.ele("data").raw(Rz.default.fromByteArray(new Uint8Array($.buffer)))}});var jz=C((I0)=>{var VV=I0&&I0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(I0,"__esModule",{value:!0});I0.parse=void 0;var WV=S$(),k0=VV(_1("assert")),s$=3,Cz=4,qV=8;function KZ($){return $.nodeType===s$||$.nodeType===qV||$.nodeType===Cz}function f1($){return!$.childNodes||$.childNodes.length===0}function HV($){let Y=new WV.DOMParser({errorHandler(){}}).parseFromString($);k0.default(Y.documentElement.nodeName==="plist","malformed document. First element should be ");let Z=X0(Y.documentElement);if(Z.length==1)Z=Z[0];return Z}I0.parse=HV;function X0($){let Y,Z,J,K,z,Q;if(!$)return null;if($.nodeName==="plist"){if(K=[],f1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!KZ($.childNodes[Y]))K.push(X0($.childNodes[Y]));return K}else if($.nodeName==="dict"){if(Z={},J=null,Q=0,f1($))return Z;for(Y=0;Y<$.childNodes.length;Y++){if(KZ($.childNodes[Y]))continue;if(Q%2===0)k0.default($.childNodes[Y].nodeName==="key","Missing key while parsing ."),J=X0($.childNodes[Y]);else k0.default($.childNodes[Y].nodeName!=="key",'Unexpected key "'+X0($.childNodes[Y])+'" while parsing .'),Z[J]=X0($.childNodes[Y]);Q+=1}if(Q%2===1)throw Error('Missing value for "'+J+'" while parsing ');return Z}else if($.nodeName==="array"){if(K=[],f1($))return K;for(Y=0;Y<$.childNodes.length;Y++)if(!KZ($.childNodes[Y])){if(z=X0($.childNodes[Y]),z!=null)K.push(z)}return K}else if($.nodeName==="#text");else if($.nodeName==="key"){if(f1($))return"";return $.childNodes[0].nodeValue}else if($.nodeName==="string"){if(z="",f1($))return z;for(Y=0;Y<$.childNodes.length;Y++){let W=$.childNodes[Y].nodeType;if(W===s$||W===Cz)z+=$.childNodes[Y].nodeValue}return z}else if($.nodeName==="integer")return k0.default(!f1($),'Cannot parse "" as integer.'),parseInt($.childNodes[0].nodeValue,10);else if($.nodeName==="real"){k0.default(!f1($),'Cannot parse "" as real.'),z="";for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue;return parseFloat(z)}else if($.nodeName==="data"){if(z="",f1($))return Buffer.from(z,"base64");for(Y=0;Y<$.childNodes.length;Y++)if($.childNodes[Y].nodeType===s$)z+=$.childNodes[Y].nodeValue.replace(/\s+/g,"");return Buffer.from(z,"base64")}else if($.nodeName==="date")return k0.default(!f1($),'Cannot parse "" as Date.'),new Date($.childNodes[0].nodeValue);else if($.nodeName==="true")return!0;else if($.nodeName==="false")return!1}});var zZ=C((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});var BV=Ez(),FV=jz();kz.default={parse:FV.parse,build:BV.build}});var Iz=C((n1)=>{var OV=n1&&n1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(n1,"__esModule",{value:!0});n1.buildChecks=n1.parseChecks=void 0;var Xz=OV(zZ());function RV($){let Y=Xz.default.parse($),Z={};for(let[J,K]of Object.entries(Y))if(typeof K==="boolean")Z[J]=K;return Z}n1.parseChecks=RV;function PV($){let Y={};for(let[Z,J]of Object.entries($))if(typeof J==="boolean")Y[Z]=J;return Xz.default.build(Y)}n1.buildChecks=PV});var _z=C((wz)=>{Object.defineProperty(wz,"__esModule",{value:!0})});var Tz=C((t)=>{var AV=t&&t.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),EV=t&&t.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))AV(Y,$,Z)};Object.defineProperty(t,"__esModule",{value:!0});t.buildChecks=t.parseChecks=t.build=t.parse=void 0;var CV=p4();Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return CV.parse}});var jV=n4();Object.defineProperty(t,"build",{enumerable:!0,get:function(){return jV.build}});var Dz=Iz();Object.defineProperty(t,"parseChecks",{enumerable:!0,get:function(){return Dz.parseChecks}});Object.defineProperty(t,"buildChecks",{enumerable:!0,get:function(){return Dz.buildChecks}});EV(_z(),t)});var xz=C((Mz)=>{Object.defineProperty(Mz,"__esModule",{value:!0});Mz.parse=void 0;var kV=S$();function XV($){let J=new kV.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Scheme")throw Error("Invalid xcscheme file: root element must be ");return IV(J)}Mz.parse=XV;function IV($){let Y={};Y.version=N($,"version"),Y.lastUpgradeVersion=N($,"LastUpgradeVersion");let Z=b($,"BuildAction");if(Z)Y.buildAction=wV(Z);let J=b($,"TestAction");if(J)Y.testAction=SV(J);let K=b($,"LaunchAction");if(K)Y.launchAction=xV(K);let z=b($,"ProfileAction");if(z)Y.profileAction=gV(z);let Q=b($,"AnalyzeAction");if(Q)Y.analyzeAction=fV(Q);let W=b($,"ArchiveAction");if(W)Y.archiveAction=hV(W);return Y}function wV($){let Y={};Y.parallelizeBuildables=v($,"parallelizeBuildables"),Y.buildImplicitDependencies=v($,"buildImplicitDependencies"),Y.runPostActionsOnFailure=v($,"runPostActionsOnFailure"),Y.buildArchitectures=N($,"buildArchitectures");let Z=b($,"BuildActionEntries");if(Z)Y.entries=a1(Z,"BuildActionEntry").map(_V);return Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function _V($){let Y={};Y.buildForRunning=v($,"buildForRunning"),Y.buildForTesting=v($,"buildForTesting"),Y.buildForProfiling=v($,"buildForProfiling"),Y.buildForArchiving=v($,"buildForArchiving"),Y.buildForAnalyzing=v($,"buildForAnalyzing");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function Z0($){return{buildableIdentifier:N($,"BuildableIdentifier")||"primary",blueprintIdentifier:N($,"BlueprintIdentifier")||"",buildableName:N($,"BuildableName")||"",blueprintName:N($,"BlueprintName")||"",referencedContainer:N($,"ReferencedContainer")||""}}function V1($,Y){let Z=b($,Y);if(!Z)return;let J=a1(Z,"ExecutionAction");if(J.length===0)return;return J.map(DV)}function DV($){let Y={};Y.actionType=N($,"ActionType");let Z=b($,"ActionContent");if(Z)Y.actionContent=TV(Z);return Y}function TV($){let Y={};Y.title=N($,"title"),Y.scriptText=N($,"scriptText"),Y.shellToInvoke=N($,"shellToInvoke");let Z=b($,"EnvironmentBuildable");if(Z){let J=b(Z,"BuildableReference");if(J)Y.environmentBuildable=Z0(J)}return Y}function SV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.shouldAutocreateTestPlan=v($,"shouldAutocreateTestPlan"),Y.preferredScreenCaptureFormat=N($,"preferredScreenCaptureFormat"),Y.codeCoverageEnabled=v($,"codeCoverageEnabled"),Y.onlyGenerateCoverageForSpecifiedTargets=v($,"onlyGenerateCoverageForSpecifiedTargets");let Z=b($,"Testables");if(Z)Y.testables=a1(Z,"TestableReference").map(MV);let J=b($,"TestPlans");if(J)Y.testPlans=a1(J,"TestPlanReference").map(LV);let K=b($,"MacroExpansion");if(K){let z=b(K,"BuildableReference");if(z)Y.macroExpansion=Z0(z)}return Y.commandLineArguments=QZ($),Y.environmentVariables=GZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function MV($){let Y={};Y.skipped=v($,"skipped"),Y.parallelizable=v($,"parallelizable"),Y.useTestSelectionWhitelist=v($,"useTestSelectionWhitelist");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);let J=b($,"SkippedTests");if(J)Y.skippedTests=a1(J,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));let K=b($,"SelectedTests");if(K)Y.selectedTests=a1(K,"Test").map((z)=>({identifier:N(z,"Identifier")||""}));return Y}function LV($){return{reference:N($,"reference")||"",default:v($,"default")}}function xV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.selectedDebuggerIdentifier=N($,"selectedDebuggerIdentifier"),Y.selectedLauncherIdentifier=N($,"selectedLauncherIdentifier"),Y.launchStyle=N($,"launchStyle"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.customWorkingDirectory=N($,"customWorkingDirectory"),Y.ignoresPersistentStateOnLaunch=v($,"ignoresPersistentStateOnLaunch"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.debugServiceExtension=N($,"debugServiceExtension"),Y.allowLocationSimulation=v($,"allowLocationSimulation"),Y.customLaunchCommand=N($,"customLaunchCommand"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Sz(Z);let J=b($,"RemoteRunnable");if(J)Y.remoteRunnable=NV(J);let K=b($,"MacroExpansion");if(K){let W=b(K,"BuildableReference");if(W)Y.macroExpansion=Z0(W)}let z=b($,"LocationScenarioReference");if(z)Y.locationScenarioReference=yV(z);let Q=b($,"StoreKitConfigurationFileReference");if(Q)Y.storeKitConfigurationFileReference=bV(Q);return Y.commandLineArguments=QZ($),Y.environmentVariables=GZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function Sz($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function NV($){let Y={};Y.runnableDebuggingMode=N($,"runnableDebuggingMode"),Y.bundleIdentifier=N($,"BundleIdentifier"),Y.remotePath=N($,"RemotePath");let Z=b($,"BuildableReference");if(Z)Y.buildableReference=Z0(Z);return Y}function yV($){return{identifier:N($,"identifier"),referenceType:N($,"referenceType")}}function bV($){return{identifier:N($,"identifier")}}function gV($){let Y={};Y.buildConfiguration=N($,"buildConfiguration"),Y.shouldUseLaunchSchemeArgsEnv=v($,"shouldUseLaunchSchemeArgsEnv"),Y.savedToolIdentifier=N($,"savedToolIdentifier"),Y.useCustomWorkingDirectory=v($,"useCustomWorkingDirectory"),Y.debugDocumentVersioning=v($,"debugDocumentVersioning"),Y.askForAppToLaunch=v($,"askForAppToLaunch"),Y.launchAutomaticallySubstyle=N($,"launchAutomaticallySubstyle"),Y.appClipInvocationURLString=N($,"appClipInvocationURLString");let Z=b($,"BuildableProductRunnable");if(Z)Y.buildableProductRunnable=Sz(Z);return Y.commandLineArguments=QZ($),Y.environmentVariables=GZ($),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function fV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function hV($){let Y={};return Y.buildConfiguration=N($,"buildConfiguration"),Y.customArchiveName=N($,"customArchiveName"),Y.revealArchiveInOrganizer=v($,"revealArchiveInOrganizer"),Y.preActions=V1($,"PreActions"),Y.postActions=V1($,"PostActions"),Y}function QZ($){let Y=b($,"CommandLineArguments");if(!Y)return;let Z=a1(Y,"CommandLineArgument");if(Z.length===0)return;return Z.map((J)=>({argument:N(J,"argument")||"",isEnabled:v(J,"isEnabled")}))}function GZ($){let Y=b($,"EnvironmentVariables");if(!Y)return;let Z=a1(Y,"EnvironmentVariable");if(Z.length===0)return;return Z.map((J)=>({key:N(J,"key")||"",value:N(J,"value")||"",isEnabled:v(J,"isEnabled")}))}function N($,Y){if(!$.hasAttribute(Y))return;return $.getAttribute(Y)??void 0}function v($,Y){let Z=$.getAttribute(Y);if(Z==="YES"||Z==="Yes")return!0;if(Z==="NO"||Z==="No")return!1;return}function b($,Y){let Z=$.childNodes;for(let J=0;J{Object.defineProperty(yz,"__esModule",{value:!0});yz.build=void 0;function vV($){let Y=[];Y.push(''),Y.push("` ${J}`)),Y[Y.length-1]+=">",$.buildAction)Y.push(...mV($.buildAction,1));if($.testAction)Y.push(...lV($.testAction,1));if($.launchAction)Y.push(...rV($.launchAction,1));if($.profileAction)Y.push(...tV($.profileAction,1));if($.analyzeAction)Y.push(...eV($.analyzeAction,1));if($.archiveAction)Y.push(...$W($.archiveAction,1));return Y.push(""),Y.join(` +`}HQ.build=uF;function GQ($,Z){let Y=qQ(Z);return[`${Y} +${Y}`]}function UQ($,Z){let Y=[],J=qQ(Z),K=[];if($.location!==void 0)K.push(`location = "${S8($.location)}"`);if($.name!==void 0)K.push(`name = "${S8($.name)}"`);Y.push(`${J}`),Y}function qQ($){return" ".repeat($)}function S8($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var OQ=A((nF)=>{nF.byteLength=cF;nF.toByteArray=dF;nF.fromByteArray=sF;var $0=[],T1=[],mF=typeof Uint8Array<"u"?Uint8Array:Array,N8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(u0=0,j8=N8.length;u00)throw Error("Invalid string. Length must be a multiple of 4");var Y=$.indexOf("=");if(Y===-1)Y=Z;var J=Y===Z?0:4-Y%4;return[Y,J]}function cF($){var Z=FQ($),Y=Z[0],J=Z[1];return(Y+J)*3/4-J}function pF($,Z,Y){return(Z+Y)*3/4-Y}function dF($){var Z,Y=FQ($),J=Y[0],K=Y[1],z=new mF(pF($,J,K)),Q=0,U=K>0?J-4:J,G;for(G=0;G>16&255,z[Q++]=Z>>8&255,z[Q++]=Z&255;if(K===2)Z=T1[$.charCodeAt(G)]<<2|T1[$.charCodeAt(G+1)]>>4,z[Q++]=Z&255;if(K===1)Z=T1[$.charCodeAt(G)]<<10|T1[$.charCodeAt(G+1)]<<4|T1[$.charCodeAt(G+2)]>>2,z[Q++]=Z>>8&255,z[Q++]=Z&255;return z}function lF($){return $0[$>>18&63]+$0[$>>12&63]+$0[$>>6&63]+$0[$&63]}function iF($,Z,Y){var J,K=[];for(var z=Z;zU?U:Q+z));if(J===1)Z=$[Y-1],K.push($0[Z>>2]+$0[Z<<4&63]+"==");else if(J===2)Z=($[Y-2]<<8)+$[Y-1],K.push($0[Z>>10]+$0[Z>>4&63]+$0[Z<<2&63]+"=");return K.join("")}});var Z0=A((RQ,m0)=>{(function(){var $,Z,Y,J,K,z,Q,U={}.hasOwnProperty;$=function(G,...H){var V,I,E,w;if(K(Object.assign))Object.assign.apply(null,arguments);else for(V=0,E=H.length;V{(function(){var $;EQ.exports=$=class{hasFeature(Y,J){return!0}createDocumentType(Y,J,K){throw Error("This DOM method is not implemented.")}createDocument(Y,J,K){throw Error("This DOM method is not implemented.")}createHTMLDocument(Y){throw Error("This DOM method is not implemented.")}getFeature(Y,J){throw Error("This DOM method is not implemented.")}}}).call(IQ)});var BQ=A((AQ,wQ)=>{(function(){var $;wQ.exports=$=class{constructor(){}handleError(Y){throw Error(Y)}}}).call(AQ)});var MQ=A((CQ,DQ)=>{(function(){var $;DQ.exports=$=function(){class Z{constructor(Y){this.arr=Y||[]}item(Y){return this.arr[Y]||null}contains(Y){return this.arr.indexOf(Y)!==-1}}return Object.defineProperty(Z.prototype,"length",{get:function(){return this.arr.length}}),Z}.call(this)}).call(CQ)});var XQ=A((LQ,TQ)=>{(function(){var $,Z,Y;Z=BQ(),Y=MQ(),TQ.exports=$=function(){class J{constructor(){var K;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=K=Object.create(this.defaultParams)}getParameter(K){if(this.params.hasOwnProperty(K))return this.params[K];else return null}canSetParameter(K,z){return!0}setParameter(K,z){if(z!=null)return this.params[K]=z;else return delete this.params[K]}}return Object.defineProperty(J.prototype,"parameterNames",{get:function(){return new Y(Object.keys(this.defaultParams))}}),J}.call(this)}).call(LQ)});var $1=A((SQ,NQ)=>{(function(){NQ.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(SQ)});var _8=A((jQ,PQ)=>{(function(){var $,Z,Y;$=$1(),Y=M1(),PQ.exports=Z=function(){class J{constructor(K,z,Q){if(this.parent=K,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(z==null)throw Error("Missing attribute name. "+this.debugInfo(z));this.name=this.stringify.name(z),this.value=this.stringify.attValue(Q),this.type=$.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(K){return this.options.writer.attribute(this,this.options.writer.filterOptions(K))}debugInfo(K){if(K=K||this.name,K==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+K+"}, parent: <"+this.parent.name+">"}isEqualNode(K){if(K.namespaceURI!==this.namespaceURI)return!1;if(K.prefix!==this.prefix)return!1;if(K.localName!==this.localName)return!1;if(K.value!==this.value)return!1;return!0}}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(J.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(J.prototype,"textContent",{get:function(){return this.value},set:function(K){return this.value=K||""}}),Object.defineProperty(J.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(J.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(J.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(J.prototype,"specified",{get:function(){return!0}}),J}.call(this)}).call(jQ)});var T9=A((_Q,yQ)=>{(function(){var $;yQ.exports=$=function(){class Z{constructor(Y){this.nodes=Y}clone(){return this.nodes=null}getNamedItem(Y){return this.nodes[Y]}setNamedItem(Y){var J=this.nodes[Y.nodeName];return this.nodes[Y.nodeName]=Y,J||null}removeNamedItem(Y){var J=this.nodes[Y];return delete this.nodes[Y],J||null}item(Y){return this.nodes[Object.keys(this.nodes)[Y]]||null}getNamedItemNS(Y,J){throw Error("This DOM method is not implemented.")}setNamedItemNS(Y){throw Error("This DOM method is not implemented.")}removeNamedItemNS(Y,J){throw Error("This DOM method is not implemented.")}}return Object.defineProperty(Z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),Z}.call(this)}).call(_Q)});var X9=A((xQ,kQ)=>{(function(){var $,Z,Y,J,K,z,Q,U,G={}.hasOwnProperty;({isObject:U,isFunction:Q,getValue:z}=Z0()),K=M1(),$=$1(),Z=_8(),J=T9(),kQ.exports=Y=function(){class H extends K{constructor(V,I,E){var w,T,X,D;super(V);if(I==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(I),this.type=$.Element,this.attribs={},this.schemaTypeInfo=null,E!=null)this.attribute(E);if(V.type===$.Document){if(this.isRoot=!0,this.documentObject=V,V.rootObject=this,V.children){D=V.children;for(T=0,X=D.length;T=w;I=0<=w?++E:--E)if(!this.attribs[I].isEqualNode(V.attribs[I]))return!1;return!0}}return Object.defineProperty(H.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(H.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(H.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(H.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(H.prototype,"id",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(H.prototype,"className",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(H.prototype,"classList",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(H.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes)this.attributeMap=new J(this.attribs);return this.attributeMap}}),H}.call(this)}).call(xQ)});var EZ=A((bQ,fQ)=>{(function(){var $,Z;Z=M1(),fQ.exports=$=function(){class Y extends Z{constructor(J){super(J);this.value=""}clone(){return Object.create(this)}substringData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}appendData(J){throw Error("This DOM method is not implemented."+this.debugInfo())}insertData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}deleteData(J,K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceData(J,K,z){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(J){if(!super.isEqualNode(J))return!1;if(J.data!==this.data)return!1;return!0}}return Object.defineProperty(Y.prototype,"data",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Object.defineProperty(Y.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(Y.prototype,"textContent",{get:function(){return this.value},set:function(J){return this.value=J||""}}),Y}.call(this)}).call(bQ)});var S9=A((vQ,gQ)=>{(function(){var $,Z,Y;$=$1(),Y=EZ(),gQ.exports=Z=class extends Y{constructor(K,z){super(K);if(z==null)throw Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=$.CData,this.value=this.stringify.cdata(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.cdata(this,this.options.writer.filterOptions(K))}}}).call(vQ)});var N9=A((hQ,uQ)=>{(function(){var $,Z,Y;$=$1(),Z=EZ(),uQ.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=$.Comment,this.value=this.stringify.comment(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.comment(this,this.options.writer.filterOptions(K))}}}).call(hQ)});var j9=A((mQ,cQ)=>{(function(){var $,Z,Y,J;({isObject:J}=Z0()),Y=M1(),$=$1(),cQ.exports=Z=class extends Y{constructor(z,Q,U,G){super(z);if(J(Q))({version:Q,encoding:U,standalone:G}=Q);if(!Q)Q="1.0";if(this.type=$.Declaration,this.version=this.stringify.xmlVersion(Q),U!=null)this.encoding=this.stringify.xmlEncoding(U);if(G!=null)this.standalone=this.stringify.xmlStandalone(G)}toString(z){return this.options.writer.declaration(this,this.options.writer.filterOptions(z))}}}).call(mQ)});var P9=A((pQ,dQ)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),dQ.exports=Z=class extends Y{constructor(K,z,Q,U,G,H){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(Q==null)throw Error("Missing DTD attribute name. "+this.debugInfo(z));if(!U)throw Error("Missing DTD attribute type. "+this.debugInfo(z));if(!G)throw Error("Missing DTD attribute default. "+this.debugInfo(z));if(G.indexOf("#")!==0)G="#"+G;if(!G.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(z));if(H&&!G.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(z));if(this.elementName=this.stringify.name(z),this.type=$.AttributeDeclaration,this.attributeName=this.stringify.name(Q),this.attributeType=this.stringify.dtdAttType(U),H)this.defaultValue=this.stringify.dtdAttDefault(H);this.defaultValueType=G}toString(K){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(K))}}}).call(pQ)});var _9=A((lQ,iQ)=>{(function(){var $,Z,Y,J;({isObject:J}=Z0()),Y=M1(),$=$1(),iQ.exports=Z=function(){class K extends Y{constructor(z,Q,U,G){super(z);if(U==null)throw Error("Missing DTD entity name. "+this.debugInfo(U));if(G==null)throw Error("Missing DTD entity value. "+this.debugInfo(U));if(this.pe=!!Q,this.name=this.stringify.name(U),this.type=$.EntityDeclaration,!J(G))this.value=this.stringify.dtdEntityValue(G),this.internal=!0;else{if(!G.pubID&&!G.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(U));if(G.pubID&&!G.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(U));if(this.internal=!1,G.pubID!=null)this.pubID=this.stringify.dtdPubID(G.pubID);if(G.sysID!=null)this.sysID=this.stringify.dtdSysID(G.sysID);if(G.nData!=null)this.nData=this.stringify.dtdNData(G.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(U))}}toString(z){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(z))}}return Object.defineProperty(K.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(K.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(K.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(K.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(K.prototype,"xmlVersion",{get:function(){return null}}),K}.call(this)}).call(lQ)});var y9=A((sQ,nQ)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),nQ.exports=Z=class extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!Q)Q="(#PCDATA)";if(Array.isArray(Q))Q="("+Q.join(",")+")";this.name=this.stringify.name(z),this.type=$.ElementDeclaration,this.value=this.stringify.dtdElementValue(Q)}toString(K){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(K))}}}).call(sQ)});var x9=A((rQ,aQ)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),aQ.exports=Z=function(){class J extends Y{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing DTD notation name. "+this.debugInfo(z));if(!Q.pubID&&!Q.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(z));if(this.name=this.stringify.name(z),this.type=$.NotationDeclaration,Q.pubID!=null)this.pubID=this.stringify.dtdPubID(Q.pubID);if(Q.sysID!=null)this.sysID=this.stringify.dtdSysID(Q.sysID)}toString(K){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(K))}}return Object.defineProperty(J.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(J.prototype,"systemId",{get:function(){return this.sysID}}),J}.call(this)}).call(rQ)});var k9=A((oQ,tQ)=>{(function(){var $,Z,Y,J,K,z,Q,U,G;({isObject:G}=Z0()),U=M1(),$=$1(),Z=P9(),J=_9(),Y=y9(),K=x9(),Q=T9(),tQ.exports=z=function(){class H extends U{constructor(V,I,E){var w,T,X,D;super(V);if(this.type=$.DocType,V.children){D=V.children;for(T=0,X=D.length;T{(function(){var $,Z,Y;$=$1(),Z=M1(),$5.exports=Y=class extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing raw text. "+this.debugInfo());this.type=$.Raw,this.value=this.stringify.raw(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.raw(this,this.options.writer.filterOptions(K))}}}).call(eQ)});var f9=A((Z5,Y5)=>{(function(){var $,Z,Y;$=$1(),Z=EZ(),Y5.exports=Y=function(){class J extends Z{constructor(K,z){super(K);if(z==null)throw Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=$.Text,this.value=this.stringify.text(z)}clone(){return Object.create(this)}toString(K){return this.options.writer.text(this,this.options.writer.filterOptions(K))}splitText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(K){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(J.prototype,"isElementContentWhitespace",{get:function(){throw Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(J.prototype,"wholeText",{get:function(){var K,z,Q;Q="",z=this.previousSibling;while(z)Q=z.data+Q,z=z.previousSibling;Q+=this.data,K=this.nextSibling;while(K)Q=Q+K.data,K=K.nextSibling;return Q}}),J}.call(this)}).call(Z5)});var v9=A((J5,K5)=>{(function(){var $,Z,Y;$=$1(),Z=EZ(),K5.exports=Y=class extends Z{constructor(K,z,Q){super(K);if(z==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.type=$.ProcessingInstruction,this.target=this.stringify.insTarget(z),this.name=this.target,Q)this.value=this.stringify.insValue(Q)}clone(){return Object.create(this)}toString(K){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(K))}isEqualNode(K){if(!super.isEqualNode(K))return!1;if(K.target!==this.target)return!1;return!0}}}).call(J5)});var y8=A((z5,Q5)=>{(function(){var $,Z,Y;Y=M1(),$=$1(),Q5.exports=Z=class extends Y{constructor(K){super(K);this.type=$.Dummy}clone(){return Object.create(this)}toString(K){return""}}}).call(z5)});var q5=A((G5,U5)=>{(function(){var $;U5.exports=$=function(){class Z{constructor(Y){this.nodes=Y}clone(){return this.nodes=null}item(Y){return this.nodes[Y]||null}}return Object.defineProperty(Z.prototype,"length",{get:function(){return this.nodes.length||0}}),Z}.call(this)}).call(G5)});var W5=A((H5,V5)=>{(function(){V5.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(H5)});var M1=A((F5,O5)=>{(function(){var $,Z,Y,J,K,z,Q,U,G,H,V,I,E,w,T,X,D,S,P={}.hasOwnProperty,R=[].splice;({isObject:S,isFunction:D,isEmpty:X,getValue:T}=Z0()),U=null,Y=null,J=null,K=null,z=null,E=null,w=null,I=null,Q=null,Z=null,V=null,G=null,$=null,O5.exports=H=function(){class W{constructor(q){if(this.parent=q,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.value=null,this.children=[],this.baseURI=null,!U)U=X9(),Y=S9(),J=N9(),K=j9(),z=k9(),E=b9(),w=f9(),I=v9(),Q=y8(),Z=$1(),V=q5(),G=T9(),$=W5()}setParent(q){var O,C,L,F,B;if(this.parent=q,q)this.options=q.options,this.stringify=q.stringify;F=this.children,B=[];for(C=0,L=F.length;C";else if(!((C=this.parent)!=null?C.name:void 0))return"node: <"+q+">";else return"node: <"+q+">, parent: <"+this.parent.name+">"}ele(q,O,C){return this.element(q,O,C)}nod(q,O,C){return this.node(q,O,C)}txt(q){return this.text(q)}dat(q){return this.cdata(q)}com(q){return this.comment(q)}ins(q,O){return this.instruction(q,O)}doc(){return this.document()}dec(q,O,C){return this.declaration(q,O,C)}e(q,O,C){return this.element(q,O,C)}n(q,O,C){return this.node(q,O,C)}t(q){return this.text(q)}d(q){return this.cdata(q)}c(q){return this.comment(q)}r(q){return this.raw(q)}i(q,O){return this.instruction(q,O)}u(){return this.up()}importXMLBuilder(q){return this.importDocument(q)}attribute(q,O){throw Error("attribute() applies to element nodes only.")}att(q,O){return this.attribute(q,O)}a(q,O){return this.attribute(q,O)}removeAttribute(q){throw Error("attribute() applies to element nodes only.")}replaceChild(q,O){throw Error("This DOM method is not implemented."+this.debugInfo())}removeChild(q){throw Error("This DOM method is not implemented."+this.debugInfo())}appendChild(q){throw Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw Error("This DOM method is not implemented."+this.debugInfo())}isSupported(q,O){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(q){var O,C;if(O=this,O===q)return 0;else if(this.document()!==q.document()){if(C=$.Disconnected|$.ImplementationSpecific,Math.random()<0.5)C|=$.Preceding;else C|=$.Following;return C}else if(O.isAncestor(q))return $.Contains|$.Preceding;else if(O.isDescendant(q))return $.Contains|$.Following;else if(O.isPreceding(q))return $.Preceding;else return $.Following}isSameNode(q){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(q){throw Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(q){throw Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(q){throw Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(q){var O,C,L;if(q.nodeType!==this.nodeType)return!1;if(q.children.length!==this.children.length)return!1;for(O=C=0,L=this.children.length-1;0<=L?C<=L:C>=L;O=0<=L?++C:--C)if(!this.children[O].isEqualNode(q.children[O]))return!1;return!0}getFeature(q,O){throw Error("This DOM method is not implemented."+this.debugInfo())}setUserData(q,O,C){throw Error("This DOM method is not implemented."+this.debugInfo())}getUserData(q){throw Error("This DOM method is not implemented."+this.debugInfo())}contains(q){if(!q)return!1;return q===this||this.isDescendant(q)}isDescendant(q){var O,C,L,F,B;B=this.children;for(L=0,F=B.length;LC}treePosition(q){var O,C;if(C=0,O=!1,this.foreachTreeNode(this.document(),function(L){if(C++,!O&&L===q)return O=!0}),O)return C;else return-1}foreachTreeNode(q,O){var C,L,F,B,M;q||(q=this.document()),B=q.children;for(L=0,F=B.length;L{(function(){var $,Z={}.hasOwnProperty;I5.exports=$=function(){class Y{constructor(J){var K,z,Q;if(this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),J||(J={}),this.options=J,!this.options.version)this.options.version="1.0";z=J.stringify||{};for(K in z){if(!Z.call(z,K))continue;Q=z[K],this[K]=Q}}name(J){if(this.options.noValidation)return J;return this.assertLegalName(""+J||"")}text(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.textEscape(""+J||""))}cdata(J){if(this.options.noValidation)return J;return J=""+J||"",J=J.replace("]]>","]]]]>"),this.assertLegalChar(J)}comment(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/--/))throw Error("Comment text cannot contain double-hypen: "+J);return this.assertLegalChar(J)}raw(J){if(this.options.noValidation)return J;return""+J||""}attValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(this.attEscape(J=""+J||""))}insTarget(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}insValue(J){if(this.options.noValidation)return J;if(J=""+J||"",J.match(/\?>/))throw Error("Invalid processing instruction value: "+J);return this.assertLegalChar(J)}xmlVersion(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/1\.[0-9]+/))throw Error("Invalid version number: "+J);return J}xmlEncoding(J){if(this.options.noValidation)return J;if(J=""+J||"",!J.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+J);return this.assertLegalChar(J)}xmlStandalone(J){if(this.options.noValidation)return J;if(J)return"yes";else return"no"}dtdPubID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdSysID(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdElementValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttType(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdAttDefault(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdEntityValue(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}dtdNData(J){if(this.options.noValidation)return J;return this.assertLegalChar(""+J||"")}assertLegalChar(J){var K,z;if(this.options.noValidation)return J;if(K="",this.options.version==="1.0"){if(K=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}else if(this.options.version==="1.1"){if(K=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z=J.match(K))throw Error(`Invalid character in string: ${J} at index ${z.index}`)}return J}assertLegalName(J){var K;if(this.options.noValidation)return J;if(this.assertLegalChar(J),K=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!J.match(K))throw Error("Invalid character in name");return J}textEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(//g,">").replace(/\r/g," ")}attEscape(J){var K;if(this.options.noValidation)return J;return K=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,J.replace(K,"&").replace(/{(function(){A5.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(E5)});var k8=A((w5,B5)=>{(function(){var $,Z,Y,J,K,z,Q,U,G,H,V,I,E,w,T,X,D,S={}.hasOwnProperty;({assign:D}=Z0()),$=$1(),G=j9(),H=k9(),Y=S9(),J=N9(),I=X9(),w=b9(),T=f9(),E=v9(),V=y8(),K=P9(),z=y9(),Q=_9(),U=x9(),Z=AZ(),B5.exports=X=class{constructor(R){var W,q,O;R||(R={}),this.options=R,q=R.writer||{};for(W in q){if(!S.call(q,W))continue;O=q[W],this["_"+W]=this[W],this[W]=O}}filterOptions(R){var W,q,O,C,L,F,B,M,N;if(R||(R={}),R=D({},this.options,R),W={writer:this},W.pretty=R.pretty||!1,W.allowEmpty=R.allowEmpty||!1,W.indent=(q=R.indent)!=null?q:" ",W.newline=(O=R.newline)!=null?O:` +`,W.offset=(C=R.offset)!=null?C:0,W.width=(L=R.width)!=null?L:0,W.dontPrettyTextNodes=(F=(B=R.dontPrettyTextNodes)!=null?B:R.dontprettytextnodes)!=null?F:0,W.spaceBeforeSlash=(M=(N=R.spaceBeforeSlash)!=null?N:R.spacebeforeslash)!=null?M:"",W.spaceBeforeSlash===!0)W.spaceBeforeSlash=" ";return W.suppressPrettyCount=0,W.user={},W.state=Z.None,W}indent(R,W,q){var O;if(!W.pretty||W.suppressPrettyCount)return"";else if(W.pretty){if(O=(q||0)+W.offset+1,O>0)return Array(O).join(W.indent)}return""}endline(R,W,q){if(!W.pretty||W.suppressPrettyCount)return"";else return W.newline}attribute(R,W,q){var O;if(this.openAttribute(R,W,q),W.pretty&&W.width>0)O=R.name+'="'+R.value+'"';else O=" "+R.name+'="'+R.value+'"';return this.closeAttribute(R,W,q),O}cdata(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}comment(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}declaration(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+"",O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}docType(R,W,q){var O,C,L,F,B;if(q||(q=0),this.openNode(R,W,q),W.state=Z.OpenTag,F=this.indent(R,W,q),F+="0){F+=" [",F+=this.endline(R,W,q),W.state=Z.InsideTag,B=R.children;for(C=0,L=B.length;C",F+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),F}element(R,W,q){var O,C,L,F,B,M,N,y,c,t,j,p,Y1,sZ,nZ,rZ,SY,NY,U$;if(q||(q=0),p=!1,this.openNode(R,W,q),W.state=Z.OpenTag,Y1=this.indent(R,W,q)+"<"+R.name,W.pretty&&W.width>0){y=Y1.length,nZ=R.attribs;for(j in nZ){if(!S.call(nZ,j))continue;if(O=nZ[j],sZ=this.attribute(O,W,q),C=sZ.length,y+C>W.width)U$=this.indent(R,W,q+1)+sZ,Y1+=this.endline(R,W,q)+U$,y=U$.length;else U$=" "+sZ,Y1+=U$,y+=U$.length}}else{rZ=R.attribs;for(j in rZ){if(!S.call(rZ,j))continue;O=rZ[j],Y1+=this.attribute(O,W,q)}}if(F=R.children.length,B=F===0?null:R.children[0],F===0||R.children.every(function(jY){return(jY.type===$.Text||jY.type===$.Raw)&&jY.value===""}))if(W.allowEmpty)Y1+=">",W.state=Z.CloseTag,Y1+=""+this.endline(R,W,q);else W.state=Z.CloseTag,Y1+=W.spaceBeforeSlash+"/>"+this.endline(R,W,q);else if(W.pretty&&F===1&&(B.type===$.Text||B.type===$.Raw)&&B.value!=null)Y1+=">",W.state=Z.InsideTag,W.suppressPrettyCount++,p=!0,Y1+=this.writeChildNode(B,W,q+1),W.suppressPrettyCount--,p=!1,W.state=Z.CloseTag,Y1+=""+this.endline(R,W,q);else{if(W.dontPrettyTextNodes){SY=R.children;for(M=0,c=SY.length;M"+this.endline(R,W,q),W.state=Z.InsideTag,NY=R.children;for(N=0,t=NY.length;N",p)W.suppressPrettyCount--;Y1+=this.endline(R,W,q),W.state=Z.None}return this.closeNode(R,W,q),Y1}writeChildNode(R,W,q){switch(R.type){case $.CData:return this.cdata(R,W,q);case $.Comment:return this.comment(R,W,q);case $.Element:return this.element(R,W,q);case $.Raw:return this.raw(R,W,q);case $.Text:return this.text(R,W,q);case $.ProcessingInstruction:return this.processingInstruction(R,W,q);case $.Dummy:return"";case $.Declaration:return this.declaration(R,W,q);case $.DocType:return this.docType(R,W,q);case $.AttributeDeclaration:return this.dtdAttList(R,W,q);case $.ElementDeclaration:return this.dtdElement(R,W,q);case $.EntityDeclaration:return this.dtdEntity(R,W,q);case $.NotationDeclaration:return this.dtdNotation(R,W,q);default:throw Error("Unknown XML node type: "+R.constructor.name)}}processingInstruction(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+"",O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}raw(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q),W.state=Z.InsideTag,O+=R.value,W.state=Z.CloseTag,O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}text(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q),W.state=Z.InsideTag,O+=R.value,W.state=Z.CloseTag,O+=this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdAttList(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdElement(R,W,q){var O;return this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdEntity(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}dtdNotation(R,W,q){var O;if(this.openNode(R,W,q),W.state=Z.OpenTag,O=this.indent(R,W,q)+""+this.endline(R,W,q),W.state=Z.None,this.closeNode(R,W,q),O}openNode(R,W,q){}closeNode(R,W,q){}openAttribute(R,W,q){}closeAttribute(R,W,q){}}}).call(w5)});var g9=A((C5,D5)=>{(function(){var $,Z;Z=k8(),D5.exports=$=class extends Z{constructor(J){super(J)}document(J,K){var z,Q,U,G,H;K=this.filterOptions(K),G="",H=J.children;for(Q=0,U=H.length;Q{(function(){var $,Z,Y,J,K,z,Q,U;({isPlainObject:U}=Z0()),Y=P8(),Z=XQ(),K=M1(),$=$1(),Q=x8(),z=g9(),L5.exports=J=function(){class G extends K{constructor(H){super(null);if(this.name="#document",this.type=$.Document,this.documentURI=null,this.domConfig=new Z,H||(H={}),!H.writer)H.writer=new z;this.options=H,this.stringify=new Q(H)}end(H){var V={};if(!H)H=this.options.writer;else if(U(H))V=H,H=this.options.writer;return H.document(this,H.filterOptions(V))}toString(H){return this.options.writer.document(this,this.options.writer.filterOptions(H))}createElement(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createComment(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(H){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(H){throw Error("This DOM method is not implemented."+this.debugInfo())}importNode(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(H,V){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementById(H){throw Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(H){throw Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw Error("This DOM method is not implemented."+this.debugInfo())}renameNode(H,V,I){throw Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createEvent(H){throw Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(H,V,I){throw Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(H,V,I){throw Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(G.prototype,"implementation",{value:new Y}),Object.defineProperty(G.prototype,"doctype",{get:function(){var H,V,I,E;E=this.children;for(V=0,I=E.length;V{(function(){var $,Z,Y,J,K,z,Q,U,G,H,V,I,E,w,T,X,D,S,P,R,W,q,O,C={}.hasOwnProperty;({isObject:q,isFunction:W,isPlainObject:O,getValue:R}=Z0()),$=$1(),I=b8(),w=X9(),J=S9(),K=N9(),X=b9(),P=f9(),T=v9(),H=j9(),V=k9(),z=P9(),U=_9(),Q=y9(),G=x9(),Y=_8(),S=x8(),D=g9(),Z=AZ(),X5.exports=E=class{constructor(F,B,M){var N;if(this.name="?xml",this.type=$.Document,F||(F={}),N={},!F.writer)F.writer=new D;else if(O(F.writer))N=F.writer,F.writer=new D;this.options=F,this.writer=F.writer,this.writerOptions=this.writer.filterOptions(N),this.stringify=new S(F),this.onDataCallback=B||function(){},this.onEndCallback=M||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(F){var B,M,N,y,c,t,j,p;switch(F.type){case $.CData:this.cdata(F.value);break;case $.Comment:this.comment(F.value);break;case $.Element:N={},j=F.attribs;for(M in j){if(!C.call(j,M))continue;B=j[M],N[M]=B.value}this.node(F.name,N);break;case $.Dummy:this.dummy();break;case $.Raw:this.raw(F.value);break;case $.Text:this.text(F.value);break;case $.ProcessingInstruction:this.instruction(F.target,F.value);break;default:throw Error("This XML node type is not supported in a JS object: "+F.constructor.name)}p=F.children;for(c=0,t=p.length;c=0)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(F){var B,M,N,y;if(!F.isOpen){if(!this.root&&this.currentLevel===0&&F.type===$.Element)this.root=F;if(M="",F.type===$.Element){this.writerOptions.state=Z.OpenTag,M=this.writer.indent(F,this.writerOptions,this.currentLevel)+"<"+F.name,y=F.attribs;for(N in y){if(!C.call(y,N))continue;B=y[N],M+=this.writer.attribute(B,this.writerOptions,this.currentLevel)}M+=(F.children?">":"/>")+this.writer.endline(F,this.writerOptions,this.currentLevel),this.writerOptions.state=Z.InsideTag}else{if(this.writerOptions.state=Z.OpenTag,M=this.writer.indent(F,this.writerOptions,this.currentLevel)+"";M+=this.writer.endline(F,this.writerOptions,this.currentLevel)}return this.onData(M,this.currentLevel),F.isOpen=!0}}closeNode(F){var B;if(!F.isClosed){if(B="",this.writerOptions.state=Z.CloseTag,F.type===$.Element)B=this.writer.indent(F,this.writerOptions,this.currentLevel)+""+this.writer.endline(F,this.writerOptions,this.currentLevel);else B=this.writer.indent(F,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(F,this.writerOptions,this.currentLevel);return this.writerOptions.state=Z.None,this.onData(B,this.currentLevel),F.isClosed=!0}}onData(F,B){return this.documentStarted=!0,this.onDataCallback(F,B+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(F){if(F==null)return"";else return"node: <"+F+">"}ele(){return this.element(...arguments)}nod(F,B,M){return this.node(F,B,M)}txt(F){return this.text(F)}dat(F){return this.cdata(F)}com(F){return this.comment(F)}ins(F,B){return this.instruction(F,B)}dec(F,B,M){return this.declaration(F,B,M)}dtd(F,B,M){return this.doctype(F,B,M)}e(F,B,M){return this.element(F,B,M)}n(F,B,M){return this.node(F,B,M)}t(F){return this.text(F)}d(F){return this.cdata(F)}c(F){return this.comment(F)}r(F){return this.raw(F)}i(F,B){return this.instruction(F,B)}att(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}a(){if(this.currentNode&&this.currentNode.type===$.DocType)return this.attList(...arguments);else return this.attribute(...arguments)}ent(F,B){return this.entity(F,B)}pent(F,B){return this.pEntity(F,B)}not(F,B){return this.notation(F,B)}}}).call(T5)});var P5=A((N5,j5)=>{(function(){var $,Z,Y,J,K={}.hasOwnProperty;$=$1(),J=k8(),Z=AZ(),j5.exports=Y=class extends J{constructor(Q,U){super(U);this.stream=Q}endline(Q,U,G){if(Q.isLastRootNode&&U.state===Z.CloseTag)return"";else return super.endline(Q,U,G)}document(Q,U){var G,H,V,I,E,w,T,X,D;T=Q.children;for(H=V=0,E=T.length;V0){this.stream.write(" ["),this.stream.write(this.endline(Q,U,G)),U.state=Z.InsideTag,E=Q.children;for(V=0,I=E.length;V"),this.stream.write(this.endline(Q,U,G)),U.state=Z.None,this.closeNode(Q,U,G)}element(Q,U,G){var H,V,I,E,w,T,X,D,S,P,R,W,q,O,C,L;if(G||(G=0),this.openNode(Q,U,G),U.state=Z.OpenTag,R=this.indent(Q,U,G)+"<"+Q.name,U.pretty&&U.width>0){X=R.length,q=Q.attribs;for(S in q){if(!K.call(q,S))continue;if(H=q[S],W=this.attribute(H,U,G),V=W.length,X+V>U.width)L=this.indent(Q,U,G+1)+W,R+=this.endline(Q,U,G)+L,X=L.length;else L=" "+W,R+=L,X+=L.length}}else{O=Q.attribs;for(S in O){if(!K.call(O,S))continue;H=O[S],R+=this.attribute(H,U,G)}}if(this.stream.write(R),E=Q.children.length,w=E===0?null:Q.children[0],E===0||Q.children.every(function(F){return(F.type===$.Text||F.type===$.Raw)&&F.value===""}))if(U.allowEmpty)this.stream.write(">"),U.state=Z.CloseTag,this.stream.write("");else U.state=Z.CloseTag,this.stream.write(U.spaceBeforeSlash+"/>");else if(U.pretty&&E===1&&(w.type===$.Text||w.type===$.Raw)&&w.value!=null)this.stream.write(">"),U.state=Z.InsideTag,U.suppressPrettyCount++,P=!0,this.writeChildNode(w,U,G+1),U.suppressPrettyCount--,P=!1,U.state=Z.CloseTag,this.stream.write("");else{this.stream.write(">"+this.endline(Q,U,G)),U.state=Z.InsideTag,C=Q.children;for(T=0,D=C.length;T")}return this.stream.write(this.endline(Q,U,G)),U.state=Z.None,this.closeNode(Q,U,G)}processingInstruction(Q,U,G){return this.stream.write(super.processingInstruction(Q,U,G))}raw(Q,U,G){return this.stream.write(super.raw(Q,U,G))}text(Q,U,G){return this.stream.write(super.text(Q,U,G))}dtdAttList(Q,U,G){return this.stream.write(super.dtdAttList(Q,U,G))}dtdElement(Q,U,G){return this.stream.write(super.dtdElement(Q,U,G))}dtdEntity(Q,U,G){return this.stream.write(super.dtdEntity(Q,U,G))}dtdNotation(Q,U,G){return this.stream.write(super.dtdNotation(Q,U,G))}}}).call(N5)});var y5=A((_5,c0)=>{(function(){var $,Z,Y,J,K,z,Q,U,G;({assign:U,isFunction:G}=Z0()),Y=P8(),J=b8(),K=S5(),Q=g9(),z=P5(),$=$1(),Z=AZ(),_5.create=function(H,V,I,E){var w,T;if(H==null)throw Error("Root element needs a name.");if(E=U({},V,I,E),w=new J(E),T=w.element(H),!E.headless){if(w.declaration(E),E.pubID!=null||E.sysID!=null)w.dtd(E)}return T},_5.begin=function(H,V,I){if(G(H))[V,I]=[H,V],H={};if(V)return new K(H,V,I);else return new J(H)},_5.stringWriter=function(H){return new Q(H)},_5.streamWriter=function(H,V){return new z(H,V)},_5.implementation=new Y,_5.nodeType=$,_5.writerState=Z}).call(_5)});var f5=A((D$)=>{var b5=D$&&D$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(D$,"__esModule",{value:!0});D$.build=void 0;var x5=b5(OQ()),tF=b5(y5());function eF($){function Z(Y){return Y<10?"0"+Y:Y}return $.getUTCFullYear()+"-"+Z($.getUTCMonth()+1)+"-"+Z($.getUTCDate())+"T"+Z($.getUTCHours())+":"+Z($.getUTCMinutes())+":"+Z($.getUTCSeconds())+"Z"}var $O=Object.prototype.toString;function k5($){let Z=$O.call($).match(/\[object (.*)\]/);return Z?Z[1]:Z}function ZO($,Z){let Y={version:"1.0",encoding:"UTF-8"},J={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},K=tF.default.create("plist");if(K.dec(Y.version,Y.encoding,Y.standalone),K.dtd(J.pubid,J.sysid),K.att("version","1.0"),f8($,K),!Z)Z={};return Z.pretty=Z.pretty!==!1,K.end(Z)}D$.build=ZO;function f8($,Z){let Y,J,K,z=k5($);if(z=="Undefined");else if(Array.isArray($)){Z=Z.ele("array");for(J=0;J<$.length;J++)f8($[J],Z)}else if(Buffer.isBuffer($))Z.ele("data").raw($.toString("base64"));else if(z=="Object"){Z=Z.ele("dict");for(K in $)if($.hasOwnProperty(K)&&$[K]!==void 0)Z.ele("key").txt(K),f8($[K],Z)}else if(z=="Number")Y=$%1===0?"integer":"real",Z.ele(Y).txt($.toString());else if(z=="Date")Z.ele("date").txt(eF(new Date($)));else if(z=="Boolean")Z.ele($?"true":"false");else if(z=="String")Z.ele("string").txt($);else if(z=="ArrayBuffer")Z.ele("data").raw(x5.default.fromByteArray($));else if($&&$.buffer&&k5($.buffer)=="ArrayBuffer")Z.ele("data").raw(x5.default.fromByteArray(new Uint8Array($.buffer)))}});var g5=A((T$)=>{var YO=T$&&T$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(T$,"__esModule",{value:!0});T$.parse=void 0;var JO=IZ(),M$=YO(k("assert")),h9=3,v5=4,KO=8;function v8($){return $.nodeType===h9||$.nodeType===KO||$.nodeType===v5}function P0($){return!$.childNodes||$.childNodes.length===0}function zO($){let Z=new JO.DOMParser({errorHandler(){}}).parseFromString($);M$.default(Z.documentElement.nodeName==="plist","malformed document. First element should be ");let Y=L$(Z.documentElement);if(Y.length==1)Y=Y[0];return Y}T$.parse=zO;function L$($){let Z,Y,J,K,z,Q;if(!$)return null;if($.nodeName==="plist"){if(K=[],P0($))return K;for(Z=0;Z<$.childNodes.length;Z++)if(!v8($.childNodes[Z]))K.push(L$($.childNodes[Z]));return K}else if($.nodeName==="dict"){if(Y={},J=null,Q=0,P0($))return Y;for(Z=0;Z<$.childNodes.length;Z++){if(v8($.childNodes[Z]))continue;if(Q%2===0)M$.default($.childNodes[Z].nodeName==="key","Missing key while parsing ."),J=L$($.childNodes[Z]);else M$.default($.childNodes[Z].nodeName!=="key",'Unexpected key "'+L$($.childNodes[Z])+'" while parsing .'),Y[J]=L$($.childNodes[Z]);Q+=1}if(Q%2===1)throw Error('Missing value for "'+J+'" while parsing ');return Y}else if($.nodeName==="array"){if(K=[],P0($))return K;for(Z=0;Z<$.childNodes.length;Z++)if(!v8($.childNodes[Z])){if(z=L$($.childNodes[Z]),z!=null)K.push(z)}return K}else if($.nodeName==="#text");else if($.nodeName==="key"){if(P0($))return"";return $.childNodes[0].nodeValue}else if($.nodeName==="string"){if(z="",P0($))return z;for(Z=0;Z<$.childNodes.length;Z++){let U=$.childNodes[Z].nodeType;if(U===h9||U===v5)z+=$.childNodes[Z].nodeValue}return z}else if($.nodeName==="integer")return M$.default(!P0($),'Cannot parse "" as integer.'),parseInt($.childNodes[0].nodeValue,10);else if($.nodeName==="real"){M$.default(!P0($),'Cannot parse "" as real.'),z="";for(Z=0;Z<$.childNodes.length;Z++)if($.childNodes[Z].nodeType===h9)z+=$.childNodes[Z].nodeValue;return parseFloat(z)}else if($.nodeName==="data"){if(z="",P0($))return Buffer.from(z,"base64");for(Z=0;Z<$.childNodes.length;Z++)if($.childNodes[Z].nodeType===h9)z+=$.childNodes[Z].nodeValue.replace(/\s+/g,"");return Buffer.from(z,"base64")}else if($.nodeName==="date")return M$.default(!P0($),'Cannot parse "" as Date.'),new Date($.childNodes[0].nodeValue);else if($.nodeName==="true")return!0;else if($.nodeName==="false")return!1}});var X$=A((h5)=>{Object.defineProperty(h5,"__esModule",{value:!0});var QO=f5(),GO=g5();h5.default={parse:GO.parse,build:QO.build}});var g8=A((p0)=>{var qO=p0&&p0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p0,"__esModule",{value:!0});p0.buildChecks=p0.parseChecks=void 0;var u5=qO(X$());function HO($){let Z=u5.default.parse($),Y={};for(let[J,K]of Object.entries(Z))if(typeof K==="boolean")Y[J]=K;return Y}p0.parseChecks=HO;function VO($){let Z={};for(let[Y,J]of Object.entries($))if(typeof J==="boolean")Z[Y]=J;return u5.default.build(Z)}p0.buildChecks=VO});var c5=A((m5)=>{Object.defineProperty(m5,"__esModule",{value:!0})});var h8=A((U1)=>{var WO=U1&&U1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),FO=U1&&U1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))WO(Z,$,Y)};Object.defineProperty(U1,"__esModule",{value:!0});U1.buildChecks=U1.parseChecks=U1.build=U1.parse=void 0;var OO=QQ();Object.defineProperty(U1,"parse",{enumerable:!0,get:function(){return OO.parse}});var RO=WQ();Object.defineProperty(U1,"build",{enumerable:!0,get:function(){return RO.build}});var p5=g8();Object.defineProperty(U1,"parseChecks",{enumerable:!0,get:function(){return p5.parseChecks}});Object.defineProperty(U1,"buildChecks",{enumerable:!0,get:function(){return p5.buildChecks}});FO(c5(),U1)});var s5=A((l5)=>{Object.defineProperty(l5,"__esModule",{value:!0});l5.parse=void 0;var IO=IZ();function EO($){let J=new IO.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Scheme")throw Error("Invalid xcscheme file: root element must be ");return AO(J)}l5.parse=EO;function AO($){let Z={};Z.version=x($,"version"),Z.lastUpgradeVersion=x($,"LastUpgradeVersion");let Y=v($,"BuildAction");if(Y)Z.buildAction=wO(Y);let J=v($,"TestAction");if(J)Z.testAction=MO(J);let K=v($,"LaunchAction");if(K)Z.launchAction=XO(K);let z=v($,"ProfileAction");if(z)Z.profileAction=PO(z);let Q=v($,"AnalyzeAction");if(Q)Z.analyzeAction=_O(Q);let U=v($,"ArchiveAction");if(U)Z.archiveAction=yO(U);return Z}function wO($){let Z={};Z.parallelizeBuildables=m($,"parallelizeBuildables"),Z.buildImplicitDependencies=m($,"buildImplicitDependencies"),Z.runPostActionsOnFailure=m($,"runPostActionsOnFailure"),Z.buildArchitectures=x($,"buildArchitectures");let Y=v($,"BuildActionEntries");if(Y)Z.entries=d0(Y,"BuildActionEntry").map(BO);return Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function BO($){let Z={};Z.buildForRunning=m($,"buildForRunning"),Z.buildForTesting=m($,"buildForTesting"),Z.buildForProfiling=m($,"buildForProfiling"),Z.buildForArchiving=m($,"buildForArchiving"),Z.buildForAnalyzing=m($,"buildForAnalyzing");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);return Z}function e0($){return{buildableIdentifier:x($,"BuildableIdentifier")||"primary",blueprintIdentifier:x($,"BlueprintIdentifier")||"",buildableName:x($,"BuildableName")||"",blueprintName:x($,"BlueprintName")||"",referencedContainer:x($,"ReferencedContainer")||""}}function X1($,Z){let Y=v($,Z);if(!Y)return;let J=d0(Y,"ExecutionAction");if(J.length===0)return;return J.map(CO)}function CO($){let Z={};Z.actionType=x($,"ActionType");let Y=v($,"ActionContent");if(Y)Z.actionContent=DO(Y);return Z}function DO($){let Z={};Z.title=x($,"title"),Z.scriptText=x($,"scriptText"),Z.shellToInvoke=x($,"shellToInvoke");let Y=v($,"EnvironmentBuildable");if(Y){let J=v(Y,"BuildableReference");if(J)Z.environmentBuildable=e0(J)}return Z}function MO($){let Z={};Z.buildConfiguration=x($,"buildConfiguration"),Z.selectedDebuggerIdentifier=x($,"selectedDebuggerIdentifier"),Z.selectedLauncherIdentifier=x($,"selectedLauncherIdentifier"),Z.shouldUseLaunchSchemeArgsEnv=m($,"shouldUseLaunchSchemeArgsEnv"),Z.shouldAutocreateTestPlan=m($,"shouldAutocreateTestPlan"),Z.preferredScreenCaptureFormat=x($,"preferredScreenCaptureFormat"),Z.codeCoverageEnabled=m($,"codeCoverageEnabled"),Z.onlyGenerateCoverageForSpecifiedTargets=m($,"onlyGenerateCoverageForSpecifiedTargets");let Y=v($,"Testables");if(Y)Z.testables=d0(Y,"TestableReference").map(LO);let J=v($,"TestPlans");if(J)Z.testPlans=d0(J,"TestPlanReference").map(TO);let K=v($,"MacroExpansion");if(K){let z=v(K,"BuildableReference");if(z)Z.macroExpansion=e0(z)}return Z.commandLineArguments=u8($),Z.environmentVariables=m8($),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function LO($){let Z={};Z.skipped=m($,"skipped"),Z.parallelizable=m($,"parallelizable"),Z.useTestSelectionWhitelist=m($,"useTestSelectionWhitelist");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);let J=v($,"SkippedTests");if(J)Z.skippedTests=d0(J,"Test").map((z)=>({identifier:x(z,"Identifier")||""}));let K=v($,"SelectedTests");if(K)Z.selectedTests=d0(K,"Test").map((z)=>({identifier:x(z,"Identifier")||""}));return Z}function TO($){return{reference:x($,"reference")||"",default:m($,"default")}}function XO($){let Z={};Z.buildConfiguration=x($,"buildConfiguration"),Z.selectedDebuggerIdentifier=x($,"selectedDebuggerIdentifier"),Z.selectedLauncherIdentifier=x($,"selectedLauncherIdentifier"),Z.launchStyle=x($,"launchStyle"),Z.useCustomWorkingDirectory=m($,"useCustomWorkingDirectory"),Z.customWorkingDirectory=x($,"customWorkingDirectory"),Z.ignoresPersistentStateOnLaunch=m($,"ignoresPersistentStateOnLaunch"),Z.debugDocumentVersioning=m($,"debugDocumentVersioning"),Z.debugServiceExtension=x($,"debugServiceExtension"),Z.allowLocationSimulation=m($,"allowLocationSimulation"),Z.customLaunchCommand=x($,"customLaunchCommand"),Z.appClipInvocationURLString=x($,"appClipInvocationURLString"),Z.askForAppToLaunch=m($,"askForAppToLaunch"),Z.launchAutomaticallySubstyle=x($,"launchAutomaticallySubstyle");let Y=v($,"BuildableProductRunnable");if(Y)Z.buildableProductRunnable=d5(Y);let J=v($,"RemoteRunnable");if(J)Z.remoteRunnable=SO(J);let K=v($,"MacroExpansion");if(K){let U=v(K,"BuildableReference");if(U)Z.macroExpansion=e0(U)}let z=v($,"LocationScenarioReference");if(z)Z.locationScenarioReference=NO(z);let Q=v($,"StoreKitConfigurationFileReference");if(Q)Z.storeKitConfigurationFileReference=jO(Q);return Z.commandLineArguments=u8($),Z.environmentVariables=m8($),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function d5($){let Z={};Z.runnableDebuggingMode=x($,"runnableDebuggingMode");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);return Z}function SO($){let Z={};Z.runnableDebuggingMode=x($,"runnableDebuggingMode"),Z.bundleIdentifier=x($,"BundleIdentifier"),Z.remotePath=x($,"RemotePath");let Y=v($,"BuildableReference");if(Y)Z.buildableReference=e0(Y);return Z}function NO($){return{identifier:x($,"identifier"),referenceType:x($,"referenceType")}}function jO($){return{identifier:x($,"identifier")}}function PO($){let Z={};Z.buildConfiguration=x($,"buildConfiguration"),Z.shouldUseLaunchSchemeArgsEnv=m($,"shouldUseLaunchSchemeArgsEnv"),Z.savedToolIdentifier=x($,"savedToolIdentifier"),Z.useCustomWorkingDirectory=m($,"useCustomWorkingDirectory"),Z.debugDocumentVersioning=m($,"debugDocumentVersioning"),Z.askForAppToLaunch=m($,"askForAppToLaunch"),Z.launchAutomaticallySubstyle=x($,"launchAutomaticallySubstyle"),Z.appClipInvocationURLString=x($,"appClipInvocationURLString");let Y=v($,"BuildableProductRunnable");if(Y)Z.buildableProductRunnable=d5(Y);return Z.commandLineArguments=u8($),Z.environmentVariables=m8($),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function _O($){let Z={};return Z.buildConfiguration=x($,"buildConfiguration"),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function yO($){let Z={};return Z.buildConfiguration=x($,"buildConfiguration"),Z.customArchiveName=x($,"customArchiveName"),Z.revealArchiveInOrganizer=m($,"revealArchiveInOrganizer"),Z.preActions=X1($,"PreActions"),Z.postActions=X1($,"PostActions"),Z}function u8($){let Z=v($,"CommandLineArguments");if(!Z)return;let Y=d0(Z,"CommandLineArgument");if(Y.length===0)return;return Y.map((J)=>({argument:x(J,"argument")||"",isEnabled:m(J,"isEnabled")}))}function m8($){let Z=v($,"EnvironmentVariables");if(!Z)return;let Y=d0(Z,"EnvironmentVariable");if(Y.length===0)return;return Y.map((J)=>({key:x(J,"key")||"",value:x(J,"value")||"",isEnabled:m(J,"isEnabled")}))}function x($,Z){if(!$.hasAttribute(Z))return;return $.getAttribute(Z)??void 0}function m($,Z){let Y=$.getAttribute(Z);if(Y==="YES"||Y==="Yes")return!0;if(Y==="NO"||Y==="No")return!1;return}function v($,Z){let Y=$.childNodes;for(let J=0;J{Object.defineProperty(r5,"__esModule",{value:!0});r5.build=void 0;function xO($){let Z=[];Z.push(''),Z.push("` ${J}`)),Z[Z.length-1]+=">",$.buildAction)Z.push(...bO($.buildAction,1));if($.testAction)Z.push(...hO($.testAction,1));if($.launchAction)Z.push(...cO($.launchAction,1));if($.profileAction)Z.push(...iO($.profileAction,1));if($.analyzeAction)Z.push(...sO($.analyzeAction,1));if($.archiveAction)Z.push(...nO($.archiveAction,1));return Z.push(""),Z.join(` `)+` -`}yz.build=vV;function uV($){let Y=[];if($.lastUpgradeVersion!==void 0)Y.push(`LastUpgradeVersion = "${$.lastUpgradeVersion}"`);if($.version!==void 0)Y.push(`version = "${$.version}"`);return Y}function mV($,Y){let Z=[],J=x(Y),K=[];if($.parallelizeBuildables!==void 0)K.push(`parallelizeBuildables = "${m($.parallelizeBuildables)}"`);if($.buildImplicitDependencies!==void 0)K.push(`buildImplicitDependencies = "${m($.buildImplicitDependencies)}"`);if($.runPostActionsOnFailure!==void 0)K.push(`runPostActionsOnFailure = "${m($.runPostActionsOnFailure)}"`);if($.buildArchitectures!==void 0)K.push(`buildArchitectures = "${$.buildArchitectures}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.entries&&$.entries.length>0){Z.push(`${x(Y+1)}`);for(let z of $.entries)Z.push(...cV(z,Y+2));Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function cV($,Y){let Z=[],J=x(Y),K=[];if($.buildForTesting!==void 0)K.push(`buildForTesting = "${m($.buildForTesting)}"`);if($.buildForRunning!==void 0)K.push(`buildForRunning = "${m($.buildForRunning)}"`);if($.buildForProfiling!==void 0)K.push(`buildForProfiling = "${m($.buildForProfiling)}"`);if($.buildForArchiving!==void 0)K.push(`buildForArchiving = "${m($.buildForArchiving)}"`);if($.buildForAnalyzing!==void 0)K.push(`buildForAnalyzing = "${m($.buildForAnalyzing)}"`);Z.push(`${J}`),Z}function J0($,Y){let Z=[],J=x(Y);return Z.push(`${J}`),Z.push(`${J}`),Z}function q1($,Y,Z){let J=[],K=x(Z);J.push(`${K}<${$}>`);for(let z of Y)J.push(...pV(z,Z+1));return J.push(`${K}`),J}function pV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.actionContent)Z.push(...dV($.actionContent,Y+1));return Z.push(`${J}`),Z}function dV($,Y){let Z=[],J=x(Y),K=[];if($.title!==void 0)K.push(`title = "${W1($.title)}"`);if($.scriptText!==void 0)K.push(`scriptText = "${W1($.scriptText)}"`);if($.shellToInvoke!==void 0)K.push(`shellToInvoke = "${$.shellToInvoke}"`);Z.push(`${J}`),Z.push(...J0($.environmentBuildable,Y+2)),Z.push(`${x(Y+1)}`),Z.push(`${J}`);else Z[Z.length-1]+=">",Z.push(`${J}`);return Z}function lV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.shouldAutocreateTestPlan!==void 0)K.push(`shouldAutocreateTestPlan = "${m($.shouldAutocreateTestPlan)}"`);if($.preferredScreenCaptureFormat!==void 0)K.push(`preferredScreenCaptureFormat = "${$.preferredScreenCaptureFormat}"`);if($.codeCoverageEnabled!==void 0)K.push(`codeCoverageEnabled = "${m($.codeCoverageEnabled)}"`);if($.onlyGenerateCoverageForSpecifiedTargets!==void 0)K.push(`onlyGenerateCoverageForSpecifiedTargets = "${m($.onlyGenerateCoverageForSpecifiedTargets)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.testPlans&&$.testPlans.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testPlans)Z.push(...iV(z,Y+2));Z.push(`${x(Y+1)}`)}if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.testables&&$.testables.length>0){Z.push(`${x(Y+1)}`);for(let z of $.testables)Z.push(...sV(z,Y+2));Z.push(`${x(Y+1)}`)}else if($.testables!==void 0)Z.push(`${x(Y+1)}`),Z.push(`${x(Y+1)}`);if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...VZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...WZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function sV($,Y){let Z=[],J=x(Y),K=[];if($.skipped!==void 0)K.push(`skipped = "${m($.skipped)}"`);if($.parallelizable!==void 0)K.push(`parallelizable = "${m($.parallelizable)}"`);if($.useTestSelectionWhitelist!==void 0)K.push(`useTestSelectionWhitelist = "${m($.useTestSelectionWhitelist)}"`);Z.push(`${J}0){Z.push(`${x(Y+1)}`);for(let z of $.skippedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}if($.selectedTests&&$.selectedTests.length>0){Z.push(`${x(Y+1)}`);for(let z of $.selectedTests)Z.push(`${x(Y+2)}`),Z.push(`${x(Y+2)}`);Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function iV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`),Z.push(`${J}`),Z}function rV($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.launchStyle!==void 0)K.push(`launchStyle = "${$.launchStyle}"`);if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"Yes":"No"}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.customWorkingDirectory!==void 0)K.push(`customWorkingDirectory = "${$.customWorkingDirectory}"`);if($.ignoresPersistentStateOnLaunch!==void 0)K.push(`ignoresPersistentStateOnLaunch = "${m($.ignoresPersistentStateOnLaunch)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.debugServiceExtension!==void 0)K.push(`debugServiceExtension = "${$.debugServiceExtension}"`);if($.allowLocationSimulation!==void 0)K.push(`allowLocationSimulation = "${m($.allowLocationSimulation)}"`);if($.customLaunchCommand!==void 0)K.push(`customLaunchCommand = "${W1($.customLaunchCommand)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...Nz($.buildableProductRunnable,Y+1));if($.remoteRunnable)Z.push(...nV($.remoteRunnable,Y+1));if($.macroExpansion)Z.push(`${x(Y+1)}`),Z.push(...J0($.macroExpansion,Y+2)),Z.push(`${x(Y+1)}`);if($.locationScenarioReference)Z.push(...aV($.locationScenarioReference,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...VZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...WZ($.environmentVariables,Y+1));if($.storeKitConfigurationFileReference)Z.push(...oV($.storeKitConfigurationFileReference,Y+1));return Z.push(`${J}`),Z}function Nz($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.buildableReference)Z.push(...J0($.buildableReference,Y+1));return Z.push(`${J}`),Z}function nV($,Y){let Z=[],J=x(Y),K=[];if($.runnableDebuggingMode!==void 0)K.push(`runnableDebuggingMode = "${$.runnableDebuggingMode}"`);if($.bundleIdentifier!==void 0)K.push(`BundleIdentifier = "${$.bundleIdentifier}"`);if($.remotePath!==void 0)K.push(`RemotePath = "${$.remotePath}"`);Z.push(`${J}`),Z}function aV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function oV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";return Z.push(`${J}`),Z}function tV($,Y){let Z=[],J=x(Y),K=[];if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"YES":"NO"}"`);if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${W1($.appClipInvocationURLString)}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${m($.shouldUseLaunchSchemeArgsEnv)}"`);if($.savedToolIdentifier!==void 0)K.push(`savedToolIdentifier = "${$.savedToolIdentifier}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${m($.useCustomWorkingDirectory)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${m($.debugDocumentVersioning)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));if($.buildableProductRunnable)Z.push(...Nz($.buildableProductRunnable,Y+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Z.push(...VZ($.commandLineArguments,Y+1));if($.environmentVariables&&$.environmentVariables.length>0)Z.push(...WZ($.environmentVariables,Y+1));return Z.push(`${J}`),Z}function eV($,Y){let Z=[],J=x(Y);if(Z.push(`${J}`);else Z[Z.length-1]+=">";if($.preActions&&$.preActions.length>0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function $W($,Y){let Z=[],J=x(Y),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.customArchiveName!==void 0)K.push(`customArchiveName = "${W1($.customArchiveName)}"`);if($.revealArchiveInOrganizer!==void 0)K.push(`revealArchiveInOrganizer = "${m($.revealArchiveInOrganizer)}"`);Z.push(`${J}0)Z.push(...q1("PreActions",$.preActions,Y+1));if($.postActions&&$.postActions.length>0)Z.push(...q1("PostActions",$.postActions,Y+1));return Z.push(`${J}`),Z}function VZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function WZ($,Y){let Z=[],J=x(Y);Z.push(`${J}`);for(let K of $){if(Z.push(`${x(Y+1)}`);else Z[Z.length-1]+=">";Z.push(`${x(Y+1)}`)}return Z.push(`${J}`),Z}function x($){return" ".repeat($)}function m($){return $?"YES":"NO"}function W1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var hz=C((o1)=>{var YW=o1&&o1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o1,"__esModule",{value:!0});o1.buildManagement=o1.parseManagement=void 0;var fz=YW(zZ());function ZW($){let Y=fz.default.parse($),Z={};if(Y.SchemeUserState){Z.SchemeUserState={};let J=Y.SchemeUserState;for(let[K,z]of Object.entries(J))Z.SchemeUserState[K]=JW(z)}if(Y.SuppressBuildableAutocreation){Z.SuppressBuildableAutocreation={};let J=Y.SuppressBuildableAutocreation;for(let[K,z]of Object.entries(J))Z.SuppressBuildableAutocreation[K]=KW(z)}return Z}o1.parseManagement=ZW;function JW($){let Y={};if(typeof $.isShown==="boolean")Y.isShown=$.isShown;if(typeof $.orderHint==="number")Y.orderHint=$.orderHint;return Y}function KW($){let Y={};if(typeof $.primary==="boolean")Y.primary=$.primary;return Y}function zW($){let Y={};if($.SchemeUserState)Y.SchemeUserState=$.SchemeUserState;if($.SuppressBuildableAutocreation)Y.SuppressBuildableAutocreation=$.SuppressBuildableAutocreation;return fz.default.build(Y)}o1.buildManagement=zW});var uz=C((vz)=>{Object.defineProperty(vz,"__esModule",{value:!0})});var cz=C((e)=>{var QW=e&&e.__createBinding||(Object.create?function($,Y,Z,J){if(J===void 0)J=Z;var K=Object.getOwnPropertyDescriptor(Y,Z);if(!K||("get"in K?!Y.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Y[Z]}};Object.defineProperty($,J,K)}:function($,Y,Z,J){if(J===void 0)J=Z;$[J]=Y[Z]}),GW=e&&e.__exportStar||function($,Y){for(var Z in $)if(Z!=="default"&&!Object.prototype.hasOwnProperty.call(Y,Z))QW(Y,$,Z)};Object.defineProperty(e,"__esModule",{value:!0});e.buildManagement=e.parseManagement=e.build=e.parse=void 0;var VW=xz();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return VW.parse}});var WW=gz();Object.defineProperty(e,"build",{enumerable:!0,get:function(){return WW.build}});var mz=hz();Object.defineProperty(e,"parseManagement",{enumerable:!0,get:function(){return mz.parseManagement}});Object.defineProperty(e,"buildManagement",{enumerable:!0,get:function(){return mz.buildManagement}});GW(uz(),e)});var v1=Y$(k6(),1);import{existsSync as az}from"fs";import{join as Q0,resolve as SW,dirname as MW}from"path";import{fileURLToPath as LW}from"url";import{parseArgs as xW}from"util";class IY{rawTemplates;constructor($){this.rawTemplates=new Map(Object.entries($))}getAncestorChain($){let Y=new Set,Z=[],J=(K)=>{if(Y.has(K))return;Y.add(K);let z=this.rawTemplates.get(K);if(!z)return;for(let Q of z.info.Ancestors||[])J(Q);Z.push(K)};return J($),Z}resolve($,Y){let Z=this.getAncestorChain($),J=this.rawTemplates.get($);if(!J)throw Error(`Template not found: ${$}`);let K=[],z={},Q={},W={},G={},q={},H={},R="com.apple.product-type.application",P=["Sources","Frameworks","Resources"],j={},w=[];for(let I of Z){let D=this.rawTemplates.get(I);if(!D)continue;let y=D.info;if(y.Project){if(Object.assign(z,y.Project.SharedSettings||{}),y.Project.Configurations)Object.assign(Q,y.Project.Configurations.Debug||{}),Object.assign(W,y.Project.Configurations.Release||{})}if(y.Targets)for(let O of y.Targets){if(O.ProductType)R=O.ProductType;if(O.BuildPhases)P=O.BuildPhases.map((B)=>B.Class||B);if(Object.assign(G,O.SharedSettings||{}),O.Configurations)Object.assign(q,O.Configurations.Debug||{}),Object.assign(H,O.Configurations.Release||{})}if(y.Definitions)Object.assign(j,y.Definitions);if(y.Nodes)w.push(...y.Nodes);if(y.Options)for(let O of y.Options)this.mergeOption(K,O,Y,j,w,G,q,H,z,Q,W)}for(let I of K)if(I._override)Y[I.identifier]=I._override;let T=this.resolveFiles(w,j,Z,$);return{id:$,name:J.name,description:J.info.Description||"",platform:J.platform,category:J.category,options:K.filter((I)=>!I.notPersisted||I.identifier==="productName"),productType:R,buildPhases:P,projectSharedSettings:z,projectDebugSettings:Q,projectReleaseSettings:W,targetSharedSettings:G,targetDebugSettings:q,targetReleaseSettings:H,files:T,templateFilesDir:""}}mergeOption($,Y,Z,J,K,z,Q,W,G,q,H){let R=Y.Identifier;if(!R)return;if(Y.Override){let j=$.find((w)=>w.identifier===R);if(j)j._override=Y.Override;else{let w=this.parseOption(Y);w._override=Y.Override,$.push(w)}Z[R]=Y.Override}let P=$.find((j)=>j.identifier===R);if(!P&&Y.Type)$.push(this.parseOption(Y));else if(!P&&Y.Values)$.push(this.parseOption({...Y,Type:"popup"}));if(Y.Units){let j=Z[R];if(j&&Y.Units[j]){let w=Y.Units[j],T=Array.isArray(w)?w:[w];for(let I of T){if(I.RequiredOptions){let D=!0;for(let[y,O]of Object.entries(I.RequiredOptions))if(Z[y]!==O){D=!1;break}if(!D)continue}if(I.Definitions)Object.assign(J,I.Definitions);if(I.Nodes)K.push(...I.Nodes);if(I.Targets){for(let D of I.Targets)if(Object.assign(z,D.SharedSettings||{}),D.Configurations)Object.assign(Q,D.Configurations.Debug||{}),Object.assign(W,D.Configurations.Release||{})}if(I.Project){if(Object.assign(G,I.Project.SharedSettings||{}),I.Project.Configurations)Object.assign(q,I.Project.Configurations.Debug||{}),Object.assign(H,I.Project.Configurations.Release||{})}}}}}parseOption($){return{identifier:$.Identifier,name:$.Name?.replace(/:$/,""),description:$.Description,type:($.Type||"popup").toLowerCase(),default:$.Default,values:$.Values||$.ValueTitles,required:$.Required,notPersisted:$.NotPersisted}}resolveFiles($,Y,Z,J){let K=new Map;for(let z of $){if(z.includes(":")&&!z.includes("___")){if(z.split(":")[0].includes("."))continue}let Q=Y[z],W=z,G=50;if(Q&&typeof Q==="object")W=Q.Path||z,G=Q.SortOrder??50;let q=J;for(let H of[...Z].reverse()){let R=this.rawTemplates.get(H);if(R?.sourceFiles?.includes(W)){q=H;break}if(R?.sourceFiles?.some((P)=>P===W||W.startsWith(P+"/"))){q=H;break}}K.set(z,{name:z,sourcePath:W,sortOrder:G,sourceTemplateId:q})}return[...K.values()].sort((z,Q)=>z.sortOrder-Q.sortOrder)}}var dz=Y$(l6(),1),lz=Y$(Tz(),1),sz=Y$(cz(),1);import{existsSync as BW,mkdirSync as K0,statSync as FW,cpSync as UW,readFileSync as OW,writeFileSync as z0}from"node:fs";import{join as n,extname as t0,basename as pz}from"node:path";import{createHash as RW}from"node:crypto";import{execSync as PW}from"node:child_process";function i$($,Y){return $.replace(/___FILEHEADER___/g,qW(Y)).replace(/___PACKAGENAME:identifier___/g,o0(Y.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,h1(Y.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,o0(Y.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,h1(Y.productName)).replace(/___PACKAGENAMEASXML___/g,HW(Y.productName)).replace(/___PACKAGENAME___/g,Y.productName).replace(/___PROJECTNAME___/g,Y.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,h1(Y.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,Y.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,h1(Y.productName)).replace(/___VARIABLE_productName___/g,Y.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___ORGANIZATIONNAME___/g,Y.organizationName??"").replace(/___DATE___/g,Y.date).replace(/___YEAR___/g,Y.year).replace(/___FULLUSERNAME___/g,Y.fullUserName).replace(/___COPYRIGHT___/g,Y.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${h1(Y.bundleIdentifierPrefix)}.${h1(Y.productName)}`)}function qW($){return` +`}r5.build=xO;function kO($){let Z=[];if($.lastUpgradeVersion!==void 0)Z.push(`LastUpgradeVersion = "${$.lastUpgradeVersion}"`);if($.version!==void 0)Z.push(`version = "${$.version}"`);return Z}function bO($,Z){let Y=[],J=_(Z),K=[];if($.parallelizeBuildables!==void 0)K.push(`parallelizeBuildables = "${i($.parallelizeBuildables)}"`);if($.buildImplicitDependencies!==void 0)K.push(`buildImplicitDependencies = "${i($.buildImplicitDependencies)}"`);if($.runPostActionsOnFailure!==void 0)K.push(`runPostActionsOnFailure = "${i($.runPostActionsOnFailure)}"`);if($.buildArchitectures!==void 0)K.push(`buildArchitectures = "${$.buildArchitectures}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.entries&&$.entries.length>0){Y.push(`${_(Z+1)}`);for(let z of $.entries)Y.push(...fO(z,Z+2));Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function fO($,Z){let Y=[],J=_(Z),K=[];if($.buildForTesting!==void 0)K.push(`buildForTesting = "${i($.buildForTesting)}"`);if($.buildForRunning!==void 0)K.push(`buildForRunning = "${i($.buildForRunning)}"`);if($.buildForProfiling!==void 0)K.push(`buildForProfiling = "${i($.buildForProfiling)}"`);if($.buildForArchiving!==void 0)K.push(`buildForArchiving = "${i($.buildForArchiving)}"`);if($.buildForAnalyzing!==void 0)K.push(`buildForAnalyzing = "${i($.buildForAnalyzing)}"`);Y.push(`${J}`),Y}function $$($,Z){let Y=[],J=_(Z);return Y.push(`${J}`),Y.push(`${J}`),Y}function N1($,Z,Y){let J=[],K=_(Y);J.push(`${K}<${$}>`);for(let z of Z)J.push(...vO(z,Y+1));return J.push(`${K}`),J}function vO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";if($.actionContent)Y.push(...gO($.actionContent,Z+1));return Y.push(`${J}`),Y}function gO($,Z){let Y=[],J=_(Z),K=[];if($.title!==void 0)K.push(`title = "${S1($.title)}"`);if($.scriptText!==void 0)K.push(`scriptText = "${S1($.scriptText)}"`);if($.shellToInvoke!==void 0)K.push(`shellToInvoke = "${$.shellToInvoke}"`);Y.push(`${J}`),Y.push(...$$($.environmentBuildable,Z+2)),Y.push(`${_(Z+1)}`),Y.push(`${J}`);else Y[Y.length-1]+=">",Y.push(`${J}`);return Y}function hO($,Z){let Y=[],J=_(Z),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${i($.shouldUseLaunchSchemeArgsEnv)}"`);if($.shouldAutocreateTestPlan!==void 0)K.push(`shouldAutocreateTestPlan = "${i($.shouldAutocreateTestPlan)}"`);if($.preferredScreenCaptureFormat!==void 0)K.push(`preferredScreenCaptureFormat = "${$.preferredScreenCaptureFormat}"`);if($.codeCoverageEnabled!==void 0)K.push(`codeCoverageEnabled = "${i($.codeCoverageEnabled)}"`);if($.onlyGenerateCoverageForSpecifiedTargets!==void 0)K.push(`onlyGenerateCoverageForSpecifiedTargets = "${i($.onlyGenerateCoverageForSpecifiedTargets)}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.testPlans&&$.testPlans.length>0){Y.push(`${_(Z+1)}`);for(let z of $.testPlans)Y.push(...mO(z,Z+2));Y.push(`${_(Z+1)}`)}if($.macroExpansion)Y.push(`${_(Z+1)}`),Y.push(...$$($.macroExpansion,Z+2)),Y.push(`${_(Z+1)}`);if($.testables&&$.testables.length>0){Y.push(`${_(Z+1)}`);for(let z of $.testables)Y.push(...uO(z,Z+2));Y.push(`${_(Z+1)}`)}else if($.testables!==void 0)Y.push(`${_(Z+1)}`),Y.push(`${_(Z+1)}`);if($.commandLineArguments&&$.commandLineArguments.length>0)Y.push(...c8($.commandLineArguments,Z+1));if($.environmentVariables&&$.environmentVariables.length>0)Y.push(...p8($.environmentVariables,Z+1));return Y.push(`${J}`),Y}function uO($,Z){let Y=[],J=_(Z),K=[];if($.skipped!==void 0)K.push(`skipped = "${i($.skipped)}"`);if($.parallelizable!==void 0)K.push(`parallelizable = "${i($.parallelizable)}"`);if($.useTestSelectionWhitelist!==void 0)K.push(`useTestSelectionWhitelist = "${i($.useTestSelectionWhitelist)}"`);Y.push(`${J}0){Y.push(`${_(Z+1)}`);for(let z of $.skippedTests)Y.push(`${_(Z+2)}`),Y.push(`${_(Z+2)}`);Y.push(`${_(Z+1)}`)}if($.selectedTests&&$.selectedTests.length>0){Y.push(`${_(Z+1)}`);for(let z of $.selectedTests)Y.push(`${_(Z+2)}`),Y.push(`${_(Z+2)}`);Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function mO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`),Y.push(`${J}`),Y}function cO($,Z){let Y=[],J=_(Z),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${S1($.appClipInvocationURLString)}"`);if($.selectedDebuggerIdentifier!==void 0)K.push(`selectedDebuggerIdentifier = "${$.selectedDebuggerIdentifier}"`);if($.selectedLauncherIdentifier!==void 0)K.push(`selectedLauncherIdentifier = "${$.selectedLauncherIdentifier}"`);if($.launchStyle!==void 0)K.push(`launchStyle = "${$.launchStyle}"`);if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"Yes":"No"}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${i($.useCustomWorkingDirectory)}"`);if($.customWorkingDirectory!==void 0)K.push(`customWorkingDirectory = "${$.customWorkingDirectory}"`);if($.ignoresPersistentStateOnLaunch!==void 0)K.push(`ignoresPersistentStateOnLaunch = "${i($.ignoresPersistentStateOnLaunch)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${i($.debugDocumentVersioning)}"`);if($.debugServiceExtension!==void 0)K.push(`debugServiceExtension = "${$.debugServiceExtension}"`);if($.allowLocationSimulation!==void 0)K.push(`allowLocationSimulation = "${i($.allowLocationSimulation)}"`);if($.customLaunchCommand!==void 0)K.push(`customLaunchCommand = "${S1($.customLaunchCommand)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.buildableProductRunnable)Y.push(...n5($.buildableProductRunnable,Z+1));if($.remoteRunnable)Y.push(...pO($.remoteRunnable,Z+1));if($.macroExpansion)Y.push(`${_(Z+1)}`),Y.push(...$$($.macroExpansion,Z+2)),Y.push(`${_(Z+1)}`);if($.locationScenarioReference)Y.push(...dO($.locationScenarioReference,Z+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Y.push(...c8($.commandLineArguments,Z+1));if($.environmentVariables&&$.environmentVariables.length>0)Y.push(...p8($.environmentVariables,Z+1));if($.storeKitConfigurationFileReference)Y.push(...lO($.storeKitConfigurationFileReference,Z+1));return Y.push(`${J}`),Y}function n5($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";if($.buildableReference)Y.push(...$$($.buildableReference,Z+1));return Y.push(`${J}`),Y}function pO($,Z){let Y=[],J=_(Z),K=[];if($.runnableDebuggingMode!==void 0)K.push(`runnableDebuggingMode = "${$.runnableDebuggingMode}"`);if($.bundleIdentifier!==void 0)K.push(`BundleIdentifier = "${$.bundleIdentifier}"`);if($.remotePath!==void 0)K.push(`RemotePath = "${$.remotePath}"`);Y.push(`${J}`),Y}function dO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";return Y.push(`${J}`),Y}function lO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";return Y.push(`${J}`),Y}function iO($,Z){let Y=[],J=_(Z),K=[];if($.askForAppToLaunch!==void 0)K.push(`askForAppToLaunch = "${$.askForAppToLaunch?"YES":"NO"}"`);if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.appClipInvocationURLString!==void 0)K.push(`appClipInvocationURLString = "${S1($.appClipInvocationURLString)}"`);if($.shouldUseLaunchSchemeArgsEnv!==void 0)K.push(`shouldUseLaunchSchemeArgsEnv = "${i($.shouldUseLaunchSchemeArgsEnv)}"`);if($.savedToolIdentifier!==void 0)K.push(`savedToolIdentifier = "${$.savedToolIdentifier}"`);if($.useCustomWorkingDirectory!==void 0)K.push(`useCustomWorkingDirectory = "${i($.useCustomWorkingDirectory)}"`);if($.debugDocumentVersioning!==void 0)K.push(`debugDocumentVersioning = "${i($.debugDocumentVersioning)}"`);if($.launchAutomaticallySubstyle!==void 0)K.push(`launchAutomaticallySubstyle = "${$.launchAutomaticallySubstyle}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));if($.buildableProductRunnable)Y.push(...n5($.buildableProductRunnable,Z+1));if($.commandLineArguments&&$.commandLineArguments.length>0)Y.push(...c8($.commandLineArguments,Z+1));if($.environmentVariables&&$.environmentVariables.length>0)Y.push(...p8($.environmentVariables,Z+1));return Y.push(`${J}`),Y}function sO($,Z){let Y=[],J=_(Z);if(Y.push(`${J}`);else Y[Y.length-1]+=">";if($.preActions&&$.preActions.length>0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));return Y.push(`${J}`),Y}function nO($,Z){let Y=[],J=_(Z),K=[];if($.buildConfiguration!==void 0)K.push(`buildConfiguration = "${$.buildConfiguration}"`);if($.customArchiveName!==void 0)K.push(`customArchiveName = "${S1($.customArchiveName)}"`);if($.revealArchiveInOrganizer!==void 0)K.push(`revealArchiveInOrganizer = "${i($.revealArchiveInOrganizer)}"`);Y.push(`${J}0)Y.push(...N1("PreActions",$.preActions,Z+1));if($.postActions&&$.postActions.length>0)Y.push(...N1("PostActions",$.postActions,Z+1));return Y.push(`${J}`),Y}function c8($,Z){let Y=[],J=_(Z);Y.push(`${J}`);for(let K of $){if(Y.push(`${_(Z+1)}`);else Y[Y.length-1]+=">";Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function p8($,Z){let Y=[],J=_(Z);Y.push(`${J}`);for(let K of $){if(Y.push(`${_(Z+1)}`);else Y[Y.length-1]+=">";Y.push(`${_(Z+1)}`)}return Y.push(`${J}`),Y}function _($){return" ".repeat($)}function i($){return $?"YES":"NO"}function S1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var e5=A((l0)=>{var rO=l0&&l0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(l0,"__esModule",{value:!0});l0.buildManagement=l0.parseManagement=void 0;var t5=rO(X$());function aO($){let Z=t5.default.parse($),Y={};if(Z.SchemeUserState){Y.SchemeUserState={};let J=Z.SchemeUserState;for(let[K,z]of Object.entries(J))Y.SchemeUserState[K]=oO(z)}if(Z.SuppressBuildableAutocreation){Y.SuppressBuildableAutocreation={};let J=Z.SuppressBuildableAutocreation;for(let[K,z]of Object.entries(J))Y.SuppressBuildableAutocreation[K]=tO(z)}return Y}l0.parseManagement=aO;function oO($){let Z={};if(typeof $.isShown==="boolean")Z.isShown=$.isShown;if(typeof $.orderHint==="number")Z.orderHint=$.orderHint;return Z}function tO($){let Z={};if(typeof $.primary==="boolean")Z.primary=$.primary;return Z}function eO($){let Z={};if($.SchemeUserState)Z.SchemeUserState=$.SchemeUserState;if($.SuppressBuildableAutocreation)Z.SuppressBuildableAutocreation=$.SuppressBuildableAutocreation;return t5.default.build(Z)}l0.buildManagement=eO});var ZG=A(($G)=>{Object.defineProperty($G,"__esModule",{value:!0})});var u9=A((q1)=>{var $2=q1&&q1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),Z2=q1&&q1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))$2(Z,$,Y)};Object.defineProperty(q1,"__esModule",{value:!0});q1.buildManagement=q1.parseManagement=q1.build=q1.parse=void 0;var Y2=s5();Object.defineProperty(q1,"parse",{enumerable:!0,get:function(){return Y2.parse}});var J2=o5();Object.defineProperty(q1,"build",{enumerable:!0,get:function(){return J2.build}});var YG=e5();Object.defineProperty(q1,"parseManagement",{enumerable:!0,get:function(){return YG.parseManagement}});Object.defineProperty(q1,"buildManagement",{enumerable:!0,get:function(){return YG.buildManagement}});Z2(ZG(),q1)});var wZ=A((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.PROJECT_DEFAULT_BUILD_SETTINGS=JG.SOURCETREE_BY_FILETYPE=JG.PRODUCT_UTI_EXTENSIONS=JG.FILE_TYPES_BY_EXTENSION=JG.LAST_SWIFT_UPGRADE_CHECK=JG.LAST_UPGRADE_CHECK=JG.LAST_KNOWN_OBJECT_VERSION=JG.DEFAULT_OBJECT_VERSION=JG.LAST_KNOWN_SWIFT_VERSION=JG.LAST_KNOWN_ARCHIVE_VERSION=JG.LAST_KNOWN_WATCHOS_SDK=JG.LAST_KNOWN_VISIONOS_SDK=JG.LAST_KNOWN_TVOS_SDK=JG.LAST_KNOWN_OSX_SDK=JG.LAST_KNOWN_IOS_SDK=void 0;JG.LAST_KNOWN_IOS_SDK="18.0";JG.LAST_KNOWN_OSX_SDK="15.0";JG.LAST_KNOWN_TVOS_SDK="18.0";JG.LAST_KNOWN_VISIONOS_SDK="2.0";JG.LAST_KNOWN_WATCHOS_SDK="11.0";JG.LAST_KNOWN_ARCHIVE_VERSION=1;JG.LAST_KNOWN_SWIFT_VERSION="5.0";JG.DEFAULT_OBJECT_VERSION=46;JG.LAST_KNOWN_OBJECT_VERSION=77;JG.LAST_UPGRADE_CHECK="1600";JG.LAST_SWIFT_UPGRADE_CHECK="1600";JG.FILE_TYPES_BY_EXTENSION=Object.freeze({"1":"text.man",C:"sourcecode.cpp.cpp",H:"sourcecode.cpp.h",M:"sourcecode.cpp.objcpp",a:"archive.ar",ada:"sourcecode.ada",adb:"sourcecode.ada",ads:"sourcecode.ada",aiff:"audio.aiff",air:"compiled.air",apinotes:"text.apinotes",apns:"text",app:"wrapper.application",appex:"wrapper.app-extension",applescript:"sourcecode.applescript",archivingdescription:"text.xml.ibArchivingDescription",asdictionary:"archive.asdictionary",asm:"sourcecode.asm.asm",atlas:"folder.skatlas",au:"audio.au",avi:"video.avi",bazel:"text.script.python",bin:"archive.macbinary",bmp:"image.bmp",bundle:"wrapper.cfbundle",bzl:"text.script.python",c:"sourcecode.c.c","c++":"sourcecode.cpp.cpp",cc:"sourcecode.cpp.cpp",cdda:"audio.aiff",cl:"sourcecode.opencl",class:"compiled.javaclass",classdescription:"text.plist.ibClassDescription",classdescriptions:"text.plist.ibClassDescription",clp:"sourcecode.clips",cp:"sourcecode.cpp.cpp",cpp:"sourcecode.cpp.cpp",csh:"text.script.csh",css:"text.css",ctrl:"sourcecode.glsl",cxx:"sourcecode.cpp.cpp",d:"sourcecode.dtrace",dSYM:"wrapper.dsym",dae:"text.xml.dae",defs:"sourcecode.mig",dext:"wrapper.driver-extension",dict:"text.plist",docc:"folder.documentationcatalog",dsym:"wrapper.dsym",dtd:"text.xml",dylan:"sourcecode.dylan",dylib:"compiled.mach-o.dylib",ear:"archive.ear",entitlements:"text.plist.entitlements",eval:"sourcecode.glsl",exp:"sourcecode.exports",f:"sourcecode.fortran",f77:"sourcecode.fortran.f77",f90:"sourcecode.fortran.f90",f95:"sourcecode.fortran.f90",for:"sourcecode.fortran",frag:"sourcecode.glsl",fragment:"sourcecode.glsl",framework:"wrapper.framework",fs:"sourcecode.glsl",fsh:"sourcecode.glsl",geom:"sourcecode.glsl",geometry:"sourcecode.glsl",gif:"image.gif",gmk:"sourcecode.make",gpx:"text.xml",gs:"sourcecode.glsl",gsh:"sourcecode.glsl",gz:"archive.gzip",h:"sourcecode.c.h","h++":"sourcecode.cpp.h",hh:"sourcecode.cpp.h",hp:"sourcecode.cpp.h",hpp:"sourcecode.cpp.h",hqx:"archive.binhex",htm:"text.html",html:"text.html",htmld:"wrapper.htmld",hxx:"sourcecode.cpp.h",i:"sourcecode.c.c.preprocessed",icns:"image.icns",ico:"image.ico",iconset:"folder.iconset",ii:"sourcecode.cpp.cpp.preprocessed",iig:"sourcecode.iig",imagecatalog:"folder.imagecatalog",inc:"sourcecode.pascal",instrdst:"com.apple.instruments.instrdst",instrpkg:"com.apple.instruments.package-definition",intentdefinition:"file.intentdefinition",ipp:"sourcecode.cpp.h",jam:"sourcecode.jam",jar:"archive.jar",java:"sourcecode.java",javascript:"sourcecode.javascript",jpeg:"image.jpeg",jpg:"image.jpeg",js:"sourcecode.javascript",jscript:"sourcecode.javascript",json:"text.json",jsp:"text.html.other",kext:"wrapper.kernel-extension",l:"sourcecode.lex",lid:"sourcecode.dylan",ll:"sourcecode.asm.llvm",llx:"sourcecode.asm.llvm",lm:"sourcecode.lex",lmm:"sourcecode.lex",lp:"sourcecode.lex",lpp:"sourcecode.lex",lxx:"sourcecode.lex",m:"sourcecode.c.objc",mak:"sourcecode.make",make:"sourcecode.make",map:"sourcecode.module-map",markdown:"net.daringfireball.markdown",md:"net.daringfireball.markdown",mdimporter:"wrapper.spotlight-importer",mdown:"net.daringfireball.markdown",metal:"sourcecode.metal",metallib:"archive.metal-library",mi:"sourcecode.c.objc.preprocessed",mid:"audio.midi",midi:"audio.midi",mig:"sourcecode.mig",mii:"sourcecode.cpp.objcpp.preprocessed",mlkitmodel:"file.mlmodel",mlmodel:"file.mlmodel",mm:"sourcecode.cpp.objcpp",modulemap:"sourcecode.module-map",moov:"video.quicktime",mov:"video.quicktime",mp3:"audio.mp3",mpeg:"video.mpeg",mpg:"video.mpeg",mpkg:"wrapper.installer-mpkg",nasm:"sourcecode.nasm",nib:"wrapper.nib","nib~":"wrapper.nib",nqc:"sourcecode.nqc",o:"compiled.mach-o.objfile",octest:"wrapper.cfbundle",otf:"file",p:"sourcecode.pascal",pas:"sourcecode.pascal",pbfilespec:"text.plist.pbfilespec",pblangspec:"text.plist.pblangspec",pbxproj:"text.pbxproject",pch:"sourcecode.c.h","pch++":"sourcecode.cpp.h",pct:"image.pict",pdf:"image.pdf",perl:"text.script.perl",php:"text.script.php",php3:"text.script.php",php4:"text.script.php",phtml:"text.script.php",pict:"image.pict",pkg:"wrapper.installer-pkg",pl:"text.script.perl",playground:"file.playground",plist:"text.plist",pluginkit:"wrapper.app-extension",pm:"text.script.perl",png:"image.png",pp:"sourcecode.pascal",ppob:"archive.ppob",proto:"sourcecode.protobuf",py:"text.script.python",qtz:"video.quartz-composer",r:"sourcecode.rez",rb:"text.script.ruby",rbw:"text.script.ruby",rcproject:"file.rcproject",rcx:"compiled.rcx",rez:"sourcecode.rez",rhtml:"text.html.other",rsrc:"archive.rsrc",rtf:"text.rtf",rtfd:"wrapper.rtfd",s:"sourcecode.asm",scnassets:"wrapper.scnassets",scncache:"wrapper.scncache",scnp:"file.scp",scriptSuite:"text.plist.scriptSuite",scriptTerminology:"text.plist.scriptTerminology",sh:"text.script.sh",shtml:"text.html.other",sit:"archive.stuffit",sks:"file.sks",skybox:"file.skybox",sqlite:"file",storyboard:"file.storyboard",storyboardc:"wrapper.storyboardc",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",swift:"sourcecode.swift",systemextension:"wrapper.system-extension",tar:"archive.tar",tbd:"sourcecode.text-based-dylib-definition",tcc:"sourcecode.cpp.cpp",text:"net.daringfireball.markdown",tif:"image.tiff",tiff:"image.tiff",ttf:"file",txt:"text",uicatalog:"file.uicatalog",usdz:"file.usdz",vert:"sourcecode.glsl",vertex:"sourcecode.glsl",view:"archive.rsrc",vs:"sourcecode.glsl",vsh:"sourcecode.glsl",war:"archive.war",wav:"audio.wav",worksheet:"text.script.worksheet",xcassets:"folder.assetcatalog",xcbuildrules:"text.plist.xcbuildrules",xcclassmodel:"wrapper.xcclassmodel",xcconfig:"text.xcconfig",xcdatamodel:"wrapper.xcdatamodel",xcdatamodeld:"wrapper.xcdatamodeld",xcfilelist:"text.xcfilelist",xcframework:"wrapper.xcframework",xclangspec:"text.plist.xclangspec",xcmappingmodel:"wrapper.xcmappingmodel",xcode:"wrapper.pb-project",xcodeproj:"wrapper.pb-project",xconf:"text.xml",xcplaygroundpage:"file.xcplaygroundpage",xcspec:"text.plist.xcspec",xcstickers:"folder.stickers",xcsynspec:"text.plist.xcsynspec",xctarget:"wrapper.pb-target",xctest:"wrapper.cfbundle",xctxtmacro:"text.plist.xctxtmacro",xcworkspace:"wrapper.workspace",xhtml:"text.xml",xib:"file.xib",xmap:"text.xml",xml:"text.xml",xpc:"wrapper.xpc-service",xsl:"text.xml",xslt:"text.xml",xsp:"text.xml",y:"sourcecode.yacc",yaml:"text.yaml",ym:"sourcecode.yacc",yml:"text.yaml",ymm:"sourcecode.yacc",yp:"sourcecode.yacc",ypp:"sourcecode.yacc",yxx:"sourcecode.yacc",zip:"archive.zip"});JG.PRODUCT_UTI_EXTENSIONS=Object.freeze({application:"app",applicationOnDemandInstallCapable:"app",framework:"framework",dynamicLibrary:"dylib",staticLibrary:"a",bundle:"bundle",octestBundle:"octest",unitTestBundle:"xctest",uiTestBundle:"xctest",appExtension:"appex",messagesApplication:"app",messagesExtension:"appex",stickerPack:"appex",watch2Extension:"appex",watch2App:"app",watch2AppContainer:"app"});JG.SOURCETREE_BY_FILETYPE=Object.freeze({"compiled.mach-o.dylib":"SDKROOT","sourcecode.text-based-dylib-definition":"SDKROOT","wrapper.framework":"SDKROOT","wrapper.app-extension":"BUILT_PRODUCTS_DIR","wrapper.extensionkit-extension":"BUILT_PRODUCTS_DIR"});JG.PROJECT_DEFAULT_BUILD_SETTINGS=Object.freeze({all:Object.freeze({ALWAYS_SEARCH_USER_PATHS:"NO",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",CLANG_CXX_LANGUAGE_STANDARD:"gnu++14",CLANG_CXX_LIBRARY:"libc++",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",GCC_C_LANGUAGE_STANDARD:"gnu11",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",PRODUCT_NAME:"$(TARGET_NAME)",SWIFT_VERSION:"5.0"}),release:Object.freeze({DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule",SWIFT_OPTIMIZATION_LEVEL:"-O"}),debug:Object.freeze({DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG",SWIFT_OPTIMIZATION_LEVEL:"-Onone"})})});var p9=A((o)=>{var A2=o&&o.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),w2=o&&o.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),B2=o&&o.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))A2(Z,$,Y)}return w2(Z,$),Z},QG=o&&o.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(o,"__esModule",{value:!0});o.getReferringTargets=o.getFullPath=o.getSourceTreeRealPath=o.getRealPath=o.getParents=o.getParent=void 0;var C2=QG(k("assert")),m9=QG(k("path")),D2=B2(l());function M2($){return Array.from(new Set($))}function d8($){return $.isa==="PBXProject"}function zG($){return $.isa==="PBXGroup"}function L2($){let Z=M2($.getReferrers());if(Z.length>1)return Z.filter((Y)=>zG(Y));else if(Z.length===1){let Y=Z[0];return(0,C2.default)(d8(Y)||zG(Y),"referring object is not a PBXGroup or PBXProject"),[Y]}return[]}function c9($){let Z=L2($);if(!Z.length)throw Error(`Consistency issue: no parent for object: "${$.getDisplayName()||$.isa+" - "+$.uuid}"`);else if(Z.length>1)throw Error(`Consistency issue: multiple parents for object: "${$.getDisplayName()}": ${Z.map((Y)=>Y.getDisplayName()).join(", ")}`);return Z[0]}o.getParent=c9;function GG($){if(T2($))return[];let Z=c9($);return[...GG(Z),Z]}o.getParents=GG;function T2($){return $.uuid===$.getXcodeProject().rootObject.props.mainGroup.uuid}function UG($){let Z=qG($),Y=$.props.path||"";if(Z)return m9.default.join(Z,Y);return Y}o.getRealPath=UG;function qG($){if($.props.sourceTree===""){let Z=c9($);if(d8(Z))return m9.default.join($.getXcodeProject().getProjectRoot(),$.project.props.projectDirPath);return UG(Z)}else if($.props.sourceTree==="SOURCE_ROOT")return m9.default.resolve($.getXcodeProject().getProjectRoot());else if($.props.sourceTree==="")return"";return $.props.sourceTree}o.getSourceTreeRealPath=qG;function X2($){if($.props.sourceTree===""){let Z=c9($);if(d8(Z))return"";return HG(Z)}else if($.props.sourceTree==="SOURCE_ROOT")return"";else if($.props.sourceTree==="")return"/";return $.props.sourceTree}function HG($){let Z=X2($);if($.props.path)return m9.default.join(Z,$.props.path);return Z}o.getFullPath=HG;function S2($){return $.getReferrers().filter((Z)=>{return N2(Z)})}o.getReferringTargets=S2;function N2($){return $.isa===D2.ISA.PBXNativeTarget}});var WG=A((VC,VG)=>{var S$=1000,N$=S$*60,j$=N$*60,Z$=j$*24,j2=Z$*7,P2=Z$*365.25;VG.exports=function($,Z){Z=Z||{};var Y=typeof $;if(Y==="string"&&$.length>0)return _2($);else if(Y==="number"&&isFinite($))return Z.long?x2($):y2($);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify($))};function _2($){if($=String($),$.length>100)return;var Z=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec($);if(!Z)return;var Y=parseFloat(Z[1]),J=(Z[2]||"ms").toLowerCase();switch(J){case"years":case"year":case"yrs":case"yr":case"y":return Y*P2;case"weeks":case"week":case"w":return Y*j2;case"days":case"day":case"d":return Y*Z$;case"hours":case"hour":case"hrs":case"hr":case"h":return Y*j$;case"minutes":case"minute":case"mins":case"min":case"m":return Y*N$;case"seconds":case"second":case"secs":case"sec":case"s":return Y*S$;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return Y;default:return}}function y2($){var Z=Math.abs($);if(Z>=Z$)return Math.round($/Z$)+"d";if(Z>=j$)return Math.round($/j$)+"h";if(Z>=N$)return Math.round($/N$)+"m";if(Z>=S$)return Math.round($/S$)+"s";return $+"ms"}function x2($){var Z=Math.abs($);if(Z>=Z$)return d9($,Z,Z$,"day");if(Z>=j$)return d9($,Z,j$,"hour");if(Z>=N$)return d9($,Z,N$,"minute");if(Z>=S$)return d9($,Z,S$,"second");return $+" ms"}function d9($,Z,Y,J){var K=Z>=Y*1.5;return Math.round($/Y)+" "+J+(K?"s":"")}});var l8=A((WC,FG)=>{function k2($){Y.debug=Y,Y.default=Y,Y.coerce=G,Y.disable=Q,Y.enable=K,Y.enabled=U,Y.humanize=WG(),Y.destroy=H,Object.keys($).forEach((V)=>{Y[V]=$[V]}),Y.names=[],Y.skips=[],Y.formatters={};function Z(V){let I=0;for(let E=0;E{if(O==="%%")return"%";W++;let L=Y.formatters[C];if(typeof L==="function"){let F=D[W];O=L.call(S,F),D.splice(W,1),W--}return O}),Y.formatArgs.call(S,D),(S.log||Y.log).apply(S,D)}if(X.namespace=V,X.useColors=Y.useColors(),X.color=Y.selectColor(V),X.extend=J,X.destroy=Y.destroy,Object.defineProperty(X,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(E!==null)return E;if(w!==Y.namespaces)w=Y.namespaces,T=Y.enabled(V);return T},set:(D)=>{E=D}}),typeof Y.init==="function")Y.init(X);return X}function J(V,I){let E=Y(this.namespace+(typeof I>"u"?":":I)+V);return E.log=this.log,E}function K(V){Y.save(V),Y.namespaces=V,Y.names=[],Y.skips=[];let I=(typeof V==="string"?V:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let E of I)if(E[0]==="-")Y.skips.push(E.slice(1));else Y.names.push(E)}function z(V,I){let E=0,w=0,T=-1,X=0;while(E"-"+I)].join(",");return Y.enable(""),V}function U(V){for(let I of Y.skips)if(z(V,I))return!1;for(let I of Y.names)if(z(V,I))return!0;return!1}function G(V){if(V instanceof Error)return V.stack||V.message;return V}function H(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return Y.enable(Y.load()),Y}FG.exports=k2});var RG=A((OG,l9)=>{OG.formatArgs=f2;OG.save=v2;OG.load=g2;OG.useColors=b2;OG.storage=h2();OG.destroy=(()=>{let $=!1;return()=>{if(!$)$=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();OG.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function b2(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let $;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&($=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt($[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function f2($){if($[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+$[0]+(this.useColors?"%c ":" ")+"+"+l9.exports.humanize(this.diff),!this.useColors)return;let Z="color: "+this.color;$.splice(1,0,Z,"color: inherit");let Y=0,J=0;$[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(Y++,K==="%c")J=Y}),$.splice(J,0,Z)}OG.log=console.debug||console.log||(()=>{});function v2($){try{if($)OG.storage.setItem("debug",$);else OG.storage.removeItem("debug")}catch(Z){}}function g2(){let $;try{$=OG.storage.getItem("debug")||OG.storage.getItem("DEBUG")}catch(Z){}if(!$&&typeof process<"u"&&"env"in process)$=process.env.DEBUG;return $}function h2(){try{return localStorage}catch($){}}l9.exports=l8()(OG);var{formatters:u2}=l9.exports;u2.j=function($){try{return JSON.stringify($)}catch(Z){return"[UnexpectedJSONParseError]: "+Z.message}}});var EG=A((OC,IG)=>{IG.exports=($,Z=process.argv)=>{let Y=$.startsWith("-")?"":$.length===1?"-":"--",J=Z.indexOf(Y+$),K=Z.indexOf("--");return J!==-1&&(K===-1||J{var n2=k("os"),AG=k("tty"),j1=EG(),{env:K1}=process,i0;if(j1("no-color")||j1("no-colors")||j1("color=false")||j1("color=never"))i0=0;else if(j1("color")||j1("colors")||j1("color=true")||j1("color=always"))i0=1;if("FORCE_COLOR"in K1)if(K1.FORCE_COLOR==="true")i0=1;else if(K1.FORCE_COLOR==="false")i0=0;else i0=K1.FORCE_COLOR.length===0?1:Math.min(parseInt(K1.FORCE_COLOR,10),3);function i8($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function s8($,Z){if(i0===0)return 0;if(j1("color=16m")||j1("color=full")||j1("color=truecolor"))return 3;if(j1("color=256"))return 2;if($&&!Z&&i0===void 0)return 0;let Y=i0||0;if(K1.TERM==="dumb")return Y;if(process.platform==="win32"){let J=n2.release().split(".");if(Number(J[0])>=10&&Number(J[2])>=10586)return Number(J[2])>=14931?3:2;return 1}if("CI"in K1){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((J)=>(J in K1))||K1.CI_NAME==="codeship")return 1;return Y}if("TEAMCITY_VERSION"in K1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K1.TEAMCITY_VERSION)?1:0;if(K1.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in K1){let J=parseInt((K1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K1.TERM_PROGRAM){case"iTerm.app":return J>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K1.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K1.TERM))return 1;if("COLORTERM"in K1)return 1;return Y}function r2($){let Z=s8($,$&&$.isTTY);return i8(Z)}wG.exports={supportsColor:r2,stdout:i8(s8(!0,AG.isatty(1))),stderr:i8(s8(!0,AG.isatty(2)))}});var LG=A((DG,s9)=>{var a2=k("tty"),i9=k("util");DG.init=JR;DG.log=$R;DG.formatArgs=t2;DG.save=ZR;DG.load=YR;DG.useColors=o2;DG.destroy=i9.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");DG.colors=[6,2,3,4,5,1];try{let $=BG();if($&&($.stderr||$).level>=2)DG.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch($){}DG.inspectOpts=Object.keys(process.env).filter(($)=>{return/^debug_/i.test($)}).reduce(($,Z)=>{let Y=Z.substring(6).toLowerCase().replace(/_([a-z])/g,(K,z)=>{return z.toUpperCase()}),J=process.env[Z];if(/^(yes|on|true|enabled)$/i.test(J))J=!0;else if(/^(no|off|false|disabled)$/i.test(J))J=!1;else if(J==="null")J=null;else J=Number(J);return $[Y]=J,$},{});function o2(){return"colors"in DG.inspectOpts?Boolean(DG.inspectOpts.colors):a2.isatty(process.stderr.fd)}function t2($){let{namespace:Z,useColors:Y}=this;if(Y){let J=this.color,K="\x1B[3"+(J<8?J:"8;5;"+J),z=` ${K};1m${Z} \x1B[0m`;$[0]=z+$[0].split(` +`).join(` +`+z),$.push(K+"m+"+s9.exports.humanize(this.diff)+"\x1B[0m")}else $[0]=e2()+Z+" "+$[0]}function e2(){if(DG.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function $R(...$){return process.stderr.write(i9.formatWithOptions(DG.inspectOpts,...$)+` +`)}function ZR($){if($)process.env.DEBUG=$;else delete process.env.DEBUG}function YR(){return process.env.DEBUG}function JR($){$.inspectOpts={};let Z=Object.keys(DG.inspectOpts);for(let Y=0;YZ.trim()).join(" ")};CG.O=function($){return this.inspectOpts.colors=this.useColors,i9.inspect($,this.inspectOpts)}});var CZ=A((EC,n8)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)n8.exports=RG();else n8.exports=LG()});var Z1=A((P$)=>{var SG=P$&&P$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(P$,"__esModule",{value:!0});P$.AbstractObject=void 0;var r8=SG(k("assert")),TG=SG(k("util")),XG=CZ()("xcparse:models");class a8{get isa(){return this.props.isa}getReferrers(){return this.getXcodeProject().getReferrers(this.uuid)}get project(){return this.getXcodeProject().rootObject}getXcodeProject(){return this.xcodeProject}constructor($,Z,Y){this.uuid=Z,this.props=Y,Object.defineProperty(this,"xcodeProject",{get(){return $}}),XG(`Inflating model (uuid: ${Z}, isa: ${Y.isa})`),this.setupDefaults(Y)}inflate(){for(let[$,Z]of Object.entries(this.getObjectProps())){if(!($ in this.props))continue;let Y=this.props[$];if(Array.isArray(Y))(0,r8.default)(Z===Array||Array.isArray(Z),`'${String($)}' MUST be of type Array but instead found type: ${typeof Y}`),this.props[$]=Y.map((J)=>{if(typeof J!=="string")return J;try{return this.getXcodeProject().getObject(J)}catch(K){if("message"in K&&K.message.includes("object with uuid"))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String($)} > ${J}`);else throw K;return null}}).filter(Boolean);else if(Y!=null){if(Y instanceof a8){this.props[$]=this.getXcodeProject().getObject(Y.uuid);continue}(0,r8.default)(typeof this.props[$]==="string",`'${String($)}' MUST be of type string (UUID) but instead found type: ${typeof Y}`);try{this.props[$]=this.getXcodeProject().getObject(Y)}catch(J){if("message"in J&&J.message.includes("object with uuid"))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String($)} > ${Y}`);else throw J}}}}setupDefaults($){}getDisplayName(){if("name"in this.props)return this.props.name;return this.isa.replace(/^(PBX|XC)/,"")}isReferencing($){for(let Z of Object.keys(this.getObjectProps())){let Y=this.props[Z];if(Array.isArray(Y)){if(Y.some((J)=>J?.uuid===$))return!0}else if(Y&&typeof Y==="object"&&"uuid"in Y){if(Y.uuid===$)return!0}}return!1}toJSON(){(0,r8.default)(this.isa,"isa is not defined for "+this.uuid),XG("to JSON for",this.isa,this.uuid,this.constructor.name);let $={...this.props};for(let Z of Object.keys(this.getObjectProps()))if(Z in this.props){let Y=this.props[Z],J=void 0;if(VR(Y))J=Y.map((z)=>z.uuid);else if(Array.isArray(Y))throw Error(TG.default.format("Unable to serialize array of unknown objects (some missing 'uuid' property): %O",Y));else if(WR(Y))J=Y.uuid;if(J)$[Z]=J;else throw Error(TG.default.format("Unable to serialize object: %O",Y))}return $}removeReference($){for(let Z of Object.keys(this.getObjectProps())){let Y=this.props[Z];if(Array.isArray(Y)){let J=Y.findIndex((K)=>K?.uuid===$);if(J!==-1)Y.splice(J,1)}else if(Y&&typeof Y==="object"&&"uuid"in Y){if(Y.uuid===$)this.props[Z]=void 0}}}removeFromProject(){this.getXcodeProject().delete(this.uuid),this.getReferrers().forEach((Z)=>{Z.removeReference(this.uuid)})}}P$.AbstractObject=a8;function VR($){return Array.isArray($)&&$.every((Z)=>typeof Z.uuid==="string")}function WR($){return typeof $.uuid==="string"&&typeof $.isa==="string"}});var J$=A((Y0)=>{var FR=Y0&&Y0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),OR=Y0&&Y0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),RR=Y0&&Y0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))FR(Z,$,Y)}return OR(Z,$),Z};Object.defineProperty(Y0,"__esModule",{value:!0});Y0.PBXBuildFile=void 0;var IR=RR(l()),ER=Z1();class _$ extends ER.AbstractObject{static is($){return $.isa===_$.isa}static create($,Z){return $.createModel({isa:_$.isa,...Z})}static createFromProductRef($,Z){return $.createModel({isa:_$.isa,...Z})}getObjectProps(){return{fileRef:String,productRef:String}}isReferencing($){return[this.props.fileRef?.uuid,this.props.productRef?.uuid].includes($)}getDisplayName(){if(this.props.productRef)return this.props.productRef.getDisplayName();else if(this.props.fileRef)return this.props.fileRef.getDisplayName();return super.getDisplayName()}}Y0.PBXBuildFile=_$;_$.isa=IR.ISA.PBXBuildFile});var a9=A((I1)=>{var AR=I1&&I1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),wR=I1&&I1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),BR=I1&&I1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))AR(Z,$,Y)}return wR(Z,$),Z},CR=I1&&I1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(I1,"__esModule",{value:!0});I1.createBuildableReference=I1.XCScheme=void 0;var n9=k("fs"),r9=CR(k("path")),o8=BR(u9()),DR={running:!0,testing:!0,profiling:!0,archiving:!0,analyzing:!0};class DZ{constructor($,Z,Y){this.name=$,this.props=Z,this.filePath=Y}static open($){let Z=(0,n9.readFileSync)($,"utf-8"),Y=o8.parse(Z),J=r9.default.basename($,".xcscheme");return new DZ(J,Y,$)}static create($,Z){let J={...{version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0,testables:[]},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}}};if(Z)Object.assign(J,Z);return new DZ($,J)}static createForTarget($,Z,Y){let J=Z??$.props.name,K=Y?`container:${r9.default.basename(Y)}`:`container:${r9.default.basename($.getXcodeProject().filePath,"/project.pbxproj")}.xcodeproj`,z=NG($,K),Q=DZ.create(J);return Q.addBuildTarget(z),Q.setLaunchTarget(z),Q}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");let Y=r9.default.dirname(Z);if(!(0,n9.existsSync)(Y))(0,n9.mkdirSync)(Y,{recursive:!0});let J=o8.build(this.props);(0,n9.writeFileSync)(Z,J,"utf-8"),this.filePath=Z}toXML(){return o8.build(this.props)}getBuildableReference($){let Z=this.props.buildAction?.entries??[];for(let Y of Z)if(Y.buildableReference?.blueprintIdentifier===$)return Y.buildableReference;return null}addBuildTarget($,Z){if(!this.props.buildAction)this.props.buildAction={parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]};if(!this.props.buildAction.entries)this.props.buildAction.entries=[];if(this.props.buildAction.entries.find((z)=>z.buildableReference?.blueprintIdentifier===$.blueprintIdentifier))return;let J={...DR,...Z},K={buildForRunning:J.running,buildForTesting:J.testing,buildForProfiling:J.profiling,buildForArchiving:J.archiving,buildForAnalyzing:J.analyzing,buildableReference:$};this.props.buildAction.entries.push(K)}addTestTarget($){if(!this.props.testAction)this.props.testAction={buildConfiguration:"Debug",testables:[]};if(!this.props.testAction.testables)this.props.testAction.testables=[];if(this.props.testAction.testables.find((Y)=>Y.buildableReference?.blueprintIdentifier===$.blueprintIdentifier))return;this.props.testAction.testables.push({skipped:!1,buildableReference:$})}setLaunchTarget($){if(!this.props.launchAction)this.props.launchAction={buildConfiguration:"Debug"};if(this.props.launchAction.buildableProductRunnable={runnableDebuggingMode:"0",buildableReference:$},!this.props.profileAction)this.props.profileAction={buildConfiguration:"Release"};this.props.profileAction.buildableProductRunnable={runnableDebuggingMode:"0",buildableReference:$}}setLaunchEnvironmentVariable($,Z,Y=!0){if(!this.props.launchAction)this.props.launchAction={buildConfiguration:"Debug"};if(!this.props.launchAction.environmentVariables)this.props.launchAction.environmentVariables=[];let J=this.props.launchAction.environmentVariables.find((K)=>K.key===$);if(J){J.value=Z,J.isEnabled=Y;return}this.props.launchAction.environmentVariables.push({key:$,value:Z,isEnabled:Y})}addLaunchArgument($,Z=!0){if(!this.props.launchAction)this.props.launchAction={buildConfiguration:"Debug"};if(!this.props.launchAction.commandLineArguments)this.props.launchAction.commandLineArguments=[];let Y=this.props.launchAction.commandLineArguments.find((J)=>J.argument===$);if(Y){Y.isEnabled=Z;return}this.props.launchAction.commandLineArguments.push({argument:$,isEnabled:Z})}}I1.XCScheme=DZ;function NG($,Z){let Y=$.props.productReference?.getDisplayName()??`${$.props.name}.app`;return{buildableIdentifier:"primary",blueprintIdentifier:$.uuid,buildableName:Y,blueprintName:$.props.name,referencedContainer:Z}}I1.createBuildableReference=NG});var yG=A((PG)=>{Object.defineProperty(PG,"__esModule",{value:!0});PG.parse=void 0;var MR=IZ();function LR($){let J=new MR.DOMParser().parseFromString($,"text/xml").documentElement;if(!J||J.tagName!=="Bucket")throw Error("Invalid breakpoint list file: root element must be ");return TR(J)}PG.parse=LR;function TR($){let Z={};Z.uuid=f($,"uuid"),Z.type=f($,"type"),Z.version=f($,"version");let Y=y$($,"Breakpoints");if(Y)Z.breakpoints=t8(Y,"BreakpointProxy").map(XR);return Z}function XR($){let Z={breakpointExtensionID:f($,"BreakpointExtensionID")||""},Y=y$($,"BreakpointContent");if(Y)Z.breakpointContent=SR(Y);return Z}function SR($){let Z={};Z.uuid=f($,"uuid"),Z.shouldBeEnabled=MZ($,"shouldBeEnabled"),Z.ignoreCount=jG($,"ignoreCount"),Z.continueAfterRunningActions=MZ($,"continueAfterRunningActions"),Z.filePath=f($,"filePath"),Z.startingColumnNumber=f($,"startingColumnNumber"),Z.endingColumnNumber=f($,"endingColumnNumber"),Z.startingLineNumber=f($,"startingLineNumber"),Z.endingLineNumber=f($,"endingLineNumber"),Z.landmarkName=f($,"landmarkName"),Z.landmarkType=f($,"landmarkType"),Z.condition=f($,"condition"),Z.scope=f($,"scope"),Z.symbolName=f($,"symbolName"),Z.moduleName=f($,"moduleName"),Z.exceptionType=f($,"exceptionType"),Z.stopOnStyle=f($,"stopOnStyle");let Y=y$($,"Actions");if(Y)Z.actions=t8(Y,"BreakpointActionProxy").map(NR);let J=y$($,"Locations");if(J)Z.locations=t8(J,"BreakpointLocationProxy").map(PR);return Z}function NR($){let Z={actionExtensionID:f($,"ActionExtensionID")||""},Y=y$($,"ActionContent");if(Y)Z.actionContent=jR(Y);return Z}function jR($){let Z={};return Z.consoleCommand=f($,"consoleCommand"),Z.message=f($,"message"),Z.conveyanceType=f($,"conveyanceType"),Z.shellCommand=f($,"shellCommand"),Z.shellArguments=f($,"shellArguments"),Z.waitUntilDone=MZ($,"waitUntilDone"),Z.script=f($,"script"),Z.soundName=f($,"soundName"),Z}function PR($){let Y=y$($,"BreakpointLocationContent")||$,J={};return J.uuid=f(Y,"uuid"),J.shouldBeEnabled=MZ(Y,"shouldBeEnabled"),J.ignoreCount=jG(Y,"ignoreCount"),J.continueAfterRunningActions=MZ(Y,"continueAfterRunningActions"),J.symbolName=f(Y,"symbolName"),J.moduleName=f(Y,"moduleName"),J.urlString=f(Y,"urlString"),J.startingLineNumber=f(Y,"startingLineNumber"),J.endingLineNumber=f(Y,"endingLineNumber"),J.startingColumnNumber=f(Y,"startingColumnNumber"),J.endingColumnNumber=f(Y,"endingColumnNumber"),J}function f($,Z){if(!$.hasAttribute(Z))return;return $.getAttribute(Z)??void 0}function MZ($,Z){let Y=$.getAttribute(Z);if(Y==="Yes"||Y==="YES")return!0;if(Y==="No"||Y==="NO")return!1;return}function jG($,Z){let Y=$.getAttribute(Z);if(Y===null||Y===void 0)return;let J=parseInt(Y,10);return isNaN(J)?void 0:J}function y$($,Z){let Y=$.childNodes;for(let J=0;J{Object.defineProperty(xG,"__esModule",{value:!0});xG.build=void 0;function _R($){let Z=[];Z.push(''),Z.push("` ${J}`)),Z[Z.length-1]+=">",$.breakpoints&&$.breakpoints.length>0){Z.push(`${A1(1)}`);for(let J of $.breakpoints)Z.push(...xR(J,2));Z.push(`${A1(1)}`)}return Z.push(""),Z.join(` +`)+` +`}xG.build=_R;function yR($){let Z=[];if($.uuid!==void 0)Z.push(`uuid = "${$.uuid}"`);if($.type!==void 0)Z.push(`type = "${$.type}"`);if($.version!==void 0)Z.push(`version = "${$.version}"`);return Z}function xR($,Z){let Y=[],J=A1(Z);if(Y.push(`${J}`),$.breakpointContent)Y.push(...kR($.breakpointContent,Z+1));return Y.push(`${J}`),Y}function kR($,Z){let Y=[],J=A1(Z),K=[];if($.uuid!==void 0)K.push(`uuid = "${$.uuid}"`);if($.shouldBeEnabled!==void 0)K.push(`shouldBeEnabled = "${LZ($.shouldBeEnabled)}"`);if($.ignoreCount!==void 0)K.push(`ignoreCount = "${$.ignoreCount}"`);if($.continueAfterRunningActions!==void 0)K.push(`continueAfterRunningActions = "${LZ($.continueAfterRunningActions)}"`);if($.filePath!==void 0)K.push(`filePath = "${E1($.filePath)}"`);if($.startingColumnNumber!==void 0)K.push(`startingColumnNumber = "${$.startingColumnNumber}"`);if($.endingColumnNumber!==void 0)K.push(`endingColumnNumber = "${$.endingColumnNumber}"`);if($.startingLineNumber!==void 0)K.push(`startingLineNumber = "${$.startingLineNumber}"`);if($.endingLineNumber!==void 0)K.push(`endingLineNumber = "${$.endingLineNumber}"`);if($.landmarkName!==void 0)K.push(`landmarkName = "${E1($.landmarkName)}"`);if($.landmarkType!==void 0)K.push(`landmarkType = "${$.landmarkType}"`);if($.condition!==void 0)K.push(`condition = "${E1($.condition)}"`);if($.scope!==void 0)K.push(`scope = "${$.scope}"`);if($.symbolName!==void 0)K.push(`symbolName = "${E1($.symbolName)}"`);if($.moduleName!==void 0)K.push(`moduleName = "${E1($.moduleName)}"`);if($.exceptionType!==void 0)K.push(`exceptionType = "${$.exceptionType}"`);if($.stopOnStyle!==void 0)K.push(`stopOnStyle = "${$.stopOnStyle}"`);Y.push(`${J}0||$.locations&&$.locations.length>0){if(Y[Y.length-1]+=">",$.actions&&$.actions.length>0){Y.push(`${A1(Z+1)}`);for(let Q of $.actions)Y.push(...bR(Q,Z+2));Y.push(`${A1(Z+1)}`)}if($.locations&&$.locations.length>0){Y.push(`${A1(Z+1)}`);for(let Q of $.locations)Y.push(...vR(Q,Z+2));Y.push(`${A1(Z+1)}`)}Y.push(`${J}`)}else Y[Y.length-1]+=">",Y.push(`${J}`);return Y}function bR($,Z){let Y=[],J=A1(Z);if(Y.push(`${J}`),$.actionContent)Y.push(...fR($.actionContent,Z+1));return Y.push(`${J}`),Y}function fR($,Z){let Y=[],J=A1(Z),K=[];if($.consoleCommand!==void 0)K.push(`consoleCommand = "${E1($.consoleCommand)}"`);if($.message!==void 0)K.push(`message = "${E1($.message)}"`);if($.conveyanceType!==void 0)K.push(`conveyanceType = "${$.conveyanceType}"`);if($.shellCommand!==void 0)K.push(`shellCommand = "${E1($.shellCommand)}"`);if($.shellArguments!==void 0)K.push(`shellArguments = "${E1($.shellArguments)}"`);if($.waitUntilDone!==void 0)K.push(`waitUntilDone = "${LZ($.waitUntilDone)}"`);if($.script!==void 0)K.push(`script = "${E1($.script)}"`);if($.soundName!==void 0)K.push(`soundName = "${E1($.soundName)}"`);Y.push(`${J}`),Y}function vR($,Z){let Y=[],J=A1(Z),K=[];if($.uuid!==void 0)K.push(`uuid = "${$.uuid}"`);if($.shouldBeEnabled!==void 0)K.push(`shouldBeEnabled = "${LZ($.shouldBeEnabled)}"`);if($.ignoreCount!==void 0)K.push(`ignoreCount = "${$.ignoreCount}"`);if($.continueAfterRunningActions!==void 0)K.push(`continueAfterRunningActions = "${LZ($.continueAfterRunningActions)}"`);if($.symbolName!==void 0)K.push(`symbolName = "${E1($.symbolName)}"`);if($.moduleName!==void 0)K.push(`moduleName = "${E1($.moduleName)}"`);if($.urlString!==void 0)K.push(`urlString = "${E1($.urlString)}"`);if($.startingLineNumber!==void 0)K.push(`startingLineNumber = "${$.startingLineNumber}"`);if($.endingLineNumber!==void 0)K.push(`endingLineNumber = "${$.endingLineNumber}"`);if($.startingColumnNumber!==void 0)K.push(`startingColumnNumber = "${$.startingColumnNumber}"`);if($.endingColumnNumber!==void 0)K.push(`endingColumnNumber = "${$.endingColumnNumber}"`);Y.push(`${J}`),Y.push(`${A1(Z+1)}`),Y.push(`${J}`),Y}function A1($){return" ".repeat($)}function LZ($){return $?"Yes":"No"}function E1($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}});var vG=A((fG)=>{Object.defineProperty(fG,"__esModule",{value:!0})});var gG=A((m1)=>{var gR=m1&&m1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),hR=m1&&m1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))gR(Z,$,Y)};Object.defineProperty(m1,"__esModule",{value:!0});m1.build=m1.parse=void 0;var uR=yG();Object.defineProperty(m1,"parse",{enumerable:!0,get:function(){return uR.parse}});var mR=bG();Object.defineProperty(m1,"build",{enumerable:!0,get:function(){return mR.build}});hR(vG(),m1)});var hG=A((x$)=>{var cR=x$&&x$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(x$,"__esModule",{value:!0});x$.parse=void 0;var pR=cR(X$());function dR($){let Z=pR.default.parse($),Y={};if(typeof Z.BuildSystemType==="string")Y.BuildSystemType=Z.BuildSystemType;if(typeof Z.DerivedDataLocationStyle==="string")Y.DerivedDataLocationStyle=Z.DerivedDataLocationStyle;if(typeof Z.DerivedDataCustomLocation==="string")Y.DerivedDataCustomLocation=Z.DerivedDataCustomLocation;if(typeof Z.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded==="boolean")Y.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=Z.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded;if(typeof Z.PreviewsEnabled==="boolean")Y.PreviewsEnabled=Z.PreviewsEnabled;if(typeof Z.BuildLocationStyle==="string")Y.BuildLocationStyle=Z.BuildLocationStyle;if(typeof Z.LiveSourceIssuesEnabled==="boolean")Y.LiveSourceIssuesEnabled=Z.LiveSourceIssuesEnabled;if(typeof Z.GatherCoverageData==="boolean")Y.GatherCoverageData=Z.GatherCoverageData;if(typeof Z.IDEIndexEnableInWorkspace==="boolean")Y.IDEIndexEnableInWorkspace=Z.IDEIndexEnableInWorkspace;return Y}x$.parse=dR});var uG=A((k$)=>{var lR=k$&&k$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(k$,"__esModule",{value:!0});k$.build=void 0;var iR=lR(X$());function sR($){let Z={};if($.BuildSystemType!==void 0)Z.BuildSystemType=$.BuildSystemType;if($.DerivedDataLocationStyle!==void 0)Z.DerivedDataLocationStyle=$.DerivedDataLocationStyle;if($.DerivedDataCustomLocation!==void 0)Z.DerivedDataCustomLocation=$.DerivedDataCustomLocation;if($.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded!==void 0)Z.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=$.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded;if($.PreviewsEnabled!==void 0)Z.PreviewsEnabled=$.PreviewsEnabled;if($.BuildLocationStyle!==void 0)Z.BuildLocationStyle=$.BuildLocationStyle;if($.LiveSourceIssuesEnabled!==void 0)Z.LiveSourceIssuesEnabled=$.LiveSourceIssuesEnabled;if($.GatherCoverageData!==void 0)Z.GatherCoverageData=$.GatherCoverageData;if($.IDEIndexEnableInWorkspace!==void 0)Z.IDEIndexEnableInWorkspace=$.IDEIndexEnableInWorkspace;return iR.default.build(Z)}k$.build=sR});var cG=A((mG)=>{Object.defineProperty(mG,"__esModule",{value:!0})});var pG=A((c1)=>{var nR=c1&&c1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),rR=c1&&c1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))nR(Z,$,Y)};Object.defineProperty(c1,"__esModule",{value:!0});c1.build=c1.parse=void 0;var aR=hG();Object.defineProperty(c1,"parse",{enumerable:!0,get:function(){return aR.parse}});var oR=uG();Object.defineProperty(c1,"build",{enumerable:!0,get:function(){return oR.build}});rR(cG(),c1)});var t9=A((P1)=>{var tR=P1&&P1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),eR=P1&&P1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),e8=P1&&P1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))tR(Z,$,Y)}return eR(Z,$),Z},$3=P1&&P1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(P1,"__esModule",{value:!0});P1.XCSharedData=void 0;var a=k("fs"),L1=$3(k("path")),dG=e8(gG()),lG=e8(pG()),iG=e8(u9()),sG=a9();class o9{constructor($){this._breakpointsLoaded=!1,this._workspaceSettingsLoaded=!1,this._schemeManagementLoaded=!1,this.filePath=$}static open($){if(!(0,a.existsSync)($))throw Error(`Shared data directory does not exist: ${$}`);return new o9($)}static create(){return new o9}getSchemesDir(){if(!this.filePath)return;return L1.default.join(this.filePath,"xcschemes")}getSchemes(){let $=this.getSchemesDir();if(!$||!(0,a.existsSync)($))return[];return(0,a.readdirSync)($).filter((Y)=>Y.endsWith(".xcscheme")).map((Y)=>sG.XCScheme.open(L1.default.join($,Y)))}getScheme($){let Z=this.getSchemesDir();if(!Z)return null;let Y=L1.default.join(Z,`${$}.xcscheme`);if(!(0,a.existsSync)(Y))return null;return sG.XCScheme.open(Y)}saveScheme($){if(!this.filePath)throw Error("Cannot save scheme: no file path set for XCSharedData");let Z=L1.default.join(this.filePath,"xcschemes");if(!(0,a.existsSync)(Z))(0,a.mkdirSync)(Z,{recursive:!0});let Y=L1.default.join(Z,`${$.name}.xcscheme`);$.save(Y)}get schemeManagement(){if(this._schemeManagementLoaded)return this._schemeManagement;if(this._schemeManagementLoaded=!0,!this.filePath)return;let $=L1.default.join(this.filePath,"xcschemes","xcschememanagement.plist");if(!(0,a.existsSync)($))return;let Z=(0,a.readFileSync)($,"utf-8");return this._schemeManagement=iG.parseManagement(Z),this._schemeManagement}set schemeManagement($){this._schemeManagement=$,this._schemeManagementLoaded=!0}saveSchemeManagement(){if(!this.filePath)throw Error("Cannot save scheme management: no file path set for XCSharedData");let $=L1.default.join(this.filePath,"xcschemes");if(!(0,a.existsSync)($))(0,a.mkdirSync)($,{recursive:!0});let Z=L1.default.join($,"xcschememanagement.plist");if(this._schemeManagement){let Y=iG.buildManagement(this._schemeManagement);(0,a.writeFileSync)(Z,Y,"utf-8")}}getBreakpointsPath(){if(!this.filePath)return;return L1.default.join(this.filePath,"xcdebugger","Breakpoints_v2.xcbkptlist")}get breakpoints(){if(this._breakpointsLoaded)return this._breakpoints;this._breakpointsLoaded=!0;let $=this.getBreakpointsPath();if(!$||!(0,a.existsSync)($))return;let Z=(0,a.readFileSync)($,"utf-8");return this._breakpoints=dG.parse(Z),this._breakpoints}set breakpoints($){this._breakpoints=$,this._breakpointsLoaded=!0}saveBreakpoints(){if(!this.filePath)throw Error("Cannot save breakpoints: no file path set for XCSharedData");let $=L1.default.join(this.filePath,"xcdebugger");if(!(0,a.existsSync)($))(0,a.mkdirSync)($,{recursive:!0});let Z=L1.default.join($,"Breakpoints_v2.xcbkptlist");if(this._breakpoints){let Y=dG.build(this._breakpoints);(0,a.writeFileSync)(Z,Y,"utf-8")}}getWorkspaceSettingsPath(){if(!this.filePath)return;return L1.default.join(this.filePath,"WorkspaceSettings.xcsettings")}get workspaceSettings(){if(this._workspaceSettingsLoaded)return this._workspaceSettings;this._workspaceSettingsLoaded=!0;let $=this.getWorkspaceSettingsPath();if(!$||!(0,a.existsSync)($))return;let Z=(0,a.readFileSync)($,"utf-8");return this._workspaceSettings=lG.parse(Z),this._workspaceSettings}set workspaceSettings($){this._workspaceSettings=$,this._workspaceSettingsLoaded=!0}saveWorkspaceSettings(){if(!this.filePath)throw Error("Cannot save workspace settings: no file path set for XCSharedData");if(!(0,a.existsSync)(this.filePath))(0,a.mkdirSync)(this.filePath,{recursive:!0});let $=L1.default.join(this.filePath,"WorkspaceSettings.xcsettings");if(this._workspaceSettings){let Z=lG.build(this._workspaceSettings);(0,a.writeFileSync)($,Z,"utf-8")}}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");if(this.filePath=Z,!(0,a.existsSync)(Z))(0,a.mkdirSync)(Z,{recursive:!0});if(this._breakpointsLoaded&&this._breakpoints)this.saveBreakpoints();if(this._workspaceSettingsLoaded&&this._workspaceSettings)this.saveWorkspaceSettings();if(this._schemeManagementLoaded&&this._schemeManagement)this.saveSchemeManagement()}}P1.XCSharedData=o9});var p1=A((s)=>{var Z3=s&&s.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),Y3=s&&s.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),J3=s&&s.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))Z3(Z,$,Y)}return Y3(Z,$),Z};Object.defineProperty(s,"__esModule",{value:!0});s.PBXShellScriptBuildPhase=s.PBXFrameworksBuildPhase=s.PBXRezBuildPhase=s.PBXAppleScriptBuildPhase=s.PBXHeadersBuildPhase=s.PBXResourcesBuildPhase=s.PBXSourcesBuildPhase=s.PBXCopyFilesBuildPhase=s.AbstractBuildPhase=void 0;var s0=J3(l()),K3=Z1(),nG=J$();class J0 extends K3.AbstractObject{getObjectProps(){return{files:[String]}}createFile($){let Z=nG.PBXBuildFile.create(this.getXcodeProject(),$);return this.props.files.push(Z),Z}ensureFile($){let Z=this.getBuildFile($.fileRef);if(Z)return Z;return this.createFile($)}getFileReferences(){return this.props.files.map(($)=>$.props.fileRef)}getBuildFile($){if(!this.props.files.length)return null;return(typeof $==="string"?this.getXcodeProject().getReferrers($):$.getReferrers()).filter((Y)=>nG.PBXBuildFile.is(Y)).find((Y)=>{return this.props.files.some((J)=>J.uuid===Y.uuid)})??null}includesFile($){return!!this.getBuildFile($)}isReferencing($){return!!this.props.files.find((Z)=>Z.uuid===$)}removeFileReference($){this.props.files.filter((Y)=>Y.props.fileRef?.uuid===$.uuid).forEach((Y)=>{this.props.files.splice(this.props.files.indexOf(Y),1),Y.removeFromProject()})}removeBuildFile($){$.removeFromProject()}setupDefaults(){if(this.props.buildActionMask==null)this.props.buildActionMask=2147483647;if(this.props.runOnlyForDeploymentPostprocessing==null)this.props.runOnlyForDeploymentPostprocessing=0;if(!this.props.files)this.props.files=[]}}s.AbstractBuildPhase=J0;class e9 extends J0{static is($){return $.isa===e9.isa}getDisplayName(){return super.getDisplayName().replace(/BuildPhase$/,"")}isAppExtensionFileRef($){if($.props.fileRef&&$.props.fileRef.isa==="PBXFileReference"&&"isAppExtension"in $.props.fileRef&&$.props.fileRef.isAppExtension())return $.props.fileRef;return null}ensureDefaultsForTarget($){if($.isWatchOSTarget())this.props.dstPath="$(CONTENTS_FOLDER_PATH)/Watch",this.props.dstSubfolderSpec=16,this.props.name="Embed Watch Content";else if($.props.productType==="com.apple.product-type.application.on-demand-install-capable")this.props.dstPath="$(CONTENTS_FOLDER_PATH)/AppClips",this.props.dstSubfolderSpec=16,this.props.name="Embed App Clips";else if($.props.productType==="com.apple.product-type.extensionkit-extension")this.props.dstPath="$(EXTENSIONS_FOLDER_PATH)",this.props.dstSubfolderSpec=16,this.props.name="Embed ExtensionKit Extensions";else if($.props.productReference?.isAppExtension())this.props.dstSubfolderSpec=13,this.props.name="Embed Foundation Extensions"}setupDefaults(){let $=this.props.files.map((Z)=>typeof Z!=="string"&&this.isAppExtensionFileRef(Z)).filter(Boolean);if($.length){let Z=$.map((Y)=>Y.getTargetReferrers()).flat().filter(Boolean)[0];if(Z)this.ensureDefaultsForTarget(Z)}if(!this.props.dstPath)this.props.dstPath="";if(!this.props.dstSubfolderSpec)this.props.dstSubfolderSpec=7;super.setupDefaults()}}s.PBXCopyFilesBuildPhase=e9;e9.isa=s0.ISA.PBXCopyFilesBuildPhase;class $Y extends J0{static is($){return $.isa===$Y.isa}}s.PBXSourcesBuildPhase=$Y;$Y.isa=s0.ISA.PBXSourcesBuildPhase;class ZY extends J0{static is($){return $.isa===ZY.isa}}s.PBXResourcesBuildPhase=ZY;ZY.isa=s0.ISA.PBXResourcesBuildPhase;class YY extends J0{static is($){return $.isa===YY.isa}}s.PBXHeadersBuildPhase=YY;YY.isa=s0.ISA.PBXHeadersBuildPhase;class JY extends J0{static is($){return $.isa===JY.isa}}s.PBXAppleScriptBuildPhase=JY;JY.isa=s0.ISA.PBXAppleScriptBuildPhase;class KY extends J0{static is($){return $.isa===KY.isa}}s.PBXRezBuildPhase=KY;KY.isa=s0.ISA.PBXRezBuildPhase;class zY extends J0{static is($){return $.isa===zY.isa}}s.PBXFrameworksBuildPhase=zY;zY.isa=s0.ISA.PBXFrameworksBuildPhase;class QY extends J0{static is($){return $.isa===QY.isa}setupDefaults(){if(!this.props.shellPath)this.props.shellPath="/bin/sh";if(!this.props.shellScript)this.props.shellScript=`# Type a script or drag a script file from your workspace to insert its path. +`;super.setupDefaults()}}s.PBXShellScriptBuildPhase=QY;QY.isa=s0.ISA.PBXShellScriptBuildPhase});var $J=A((K0)=>{var z3=K0&&K0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),Q3=K0&&K0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),G3=K0&&K0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))z3(Z,$,Y)}return Q3(Z,$),Z};Object.defineProperty(K0,"__esModule",{value:!0});K0.PBXVariantGroup=void 0;var U3=G3(l()),q3=b$();class TZ extends q3.AbstractGroup{static is($){return $.isa===TZ.isa}static create($,Z){return $.createModel({isa:TZ.isa,children:[],sourceTree:"",...Z})}}K0.PBXVariantGroup=TZ;TZ.isa=U3.ISA.PBXVariantGroup});var ZJ=A((z0)=>{var H3=z0&&z0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),V3=z0&&z0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),W3=z0&&z0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))H3(Z,$,Y)}return V3(Z,$),Z};Object.defineProperty(z0,"__esModule",{value:!0});z0.XCVersionGroup=void 0;var F3=W3(l()),O3=b$();class XZ extends O3.AbstractGroup{static is($){return $.isa===XZ.isa}static create($,Z){return $.createModel({isa:XZ.isa,children:[],sourceTree:"",versionGroupType:"wrapper.xcdatamodel",...Z})}setupDefaults(){if(!this.props.versionGroupType)this.props.versionGroupType="wrapper.xcdatamodel";super.setupDefaults()}}z0.XCVersionGroup=XZ;XZ.isa=F3.ISA.XCVersionGroup});var YJ=A((Q0)=>{var R3=Q0&&Q0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),I3=Q0&&Q0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),E3=Q0&&Q0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))R3(Z,$,Y)}return I3(Z,$),Z};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.PBXFileSystemSynchronizedRootGroup=void 0;var A3=E3(l()),w3=Z1();class SZ extends w3.AbstractObject{static is($){return $.isa===SZ.isa}static create($,Z){return $.createModel({isa:SZ.isa,...Z})}getObjectProps(){return{exceptions:[String]}}removeFromProject(){if(this.props.exceptions)for(let $ of[...this.props.exceptions]){let Z=$.getReferrers();if(Z.length===1&&Z[0].uuid===this.uuid)$.removeFromProject()}return super.removeFromProject()}}Q0.PBXFileSystemSynchronizedRootGroup=SZ;SZ.isa=A3.ISA.PBXFileSystemSynchronizedRootGroup});var JJ=A((G0)=>{var B3=G0&&G0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),C3=G0&&G0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),D3=G0&&G0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))B3(Z,$,Y)}return C3(Z,$),Z};Object.defineProperty(G0,"__esModule",{value:!0});G0.PBXFileSystemSynchronizedBuildFileExceptionSet=void 0;var M3=D3(l()),L3=Z1();class f$ extends L3.AbstractObject{static is($){return $.isa===f$.isa}static create($,Z){return $.createModel({isa:f$.isa,...Z})}getObjectProps(){return{target:String}}getDisplayName(){return f$.isa}}G0.PBXFileSystemSynchronizedBuildFileExceptionSet=f$;f$.isa=M3.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet});var KJ=A((U0)=>{var T3=U0&&U0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),X3=U0&&U0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),S3=U0&&U0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))T3(Z,$,Y)}return X3(Z,$),Z};Object.defineProperty(U0,"__esModule",{value:!0});U0.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=void 0;var N3=S3(l()),j3=Z1(),rG=p9();class NZ extends j3.AbstractObject{static is($){return $.isa===NZ.isa}static create($,Z){return $.createModel({isa:NZ.isa,...Z})}getObjectProps(){return{buildPhase:String}}getDisplayName(){let $="name"in this.props.buildPhase.props?this.props.buildPhase.props.name:this.props.buildPhase.getDisplayName(),Z=(0,rG.getReferringTargets)(this.props.buildPhase),Y=`Exceptions for "${(0,rG.getParent)(this).getDisplayName()}" folder in "${$}" phase`;if(Z.length===1)Y+=` from "${Z[0].getDisplayName()}" target`;return Y}}U0.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=NZ;NZ.isa=N3.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet});var tG=A((aG)=>{Object.defineProperty(aG,"__esModule",{value:!0});aG.uniqueBy=void 0;function P3($,Z){let Y=new Set;return $.filter((J)=>{let K=Z(J);if(Y.has(K))return!1;return Y.add(K),!0})}aG.uniqueBy=P3});var eG=A((v$)=>{var _3=v$&&v$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(v$,"__esModule",{value:!0});v$.resolveXcodeBuildSetting=void 0;var jZ=_3(k("node:path"));function GY($,Z){let Y=$?.replace(/\$\(([^()]*|\([^)]*\))\)/g,(J)=>{let[K,...z]=J.slice(2,-1).split(":"),Q=Z(K);if(Q)Q=GY(Q,Z);let U=Q;return z.forEach((G)=>{switch(G){case"lower":U=U?.toLowerCase();break;case"upper":U=U?.toUpperCase();break;case"suffix":if(U)U=jZ.default.extname(U);break;case"file":if(U)U=jZ.default.basename(U);break;case"dir":if(U)U=jZ.default.dirname(U);break;case"base":if(U){let H=jZ.default.basename(U),V=H.lastIndexOf(".");U=V===-1?H:H.slice(0,V)}break;case"rfc1034identifier":U=U?.replace(/[^a-zA-Z0-9]/g,"-");break;case"c99extidentifier":U=U?.replace(/[-\s]/g,"_");break;case"standardizepath":if(U)U=jZ.default.resolve(U);break;default:U||(U=G.match(/default=(.*)/)?.[1]);break}}),GY(U??"",Z)});if(Y!==$)return GY(Y,Z);return $}v$.resolveXcodeBuildSetting=GY});var zU=A((_1)=>{var y3=_1&&_1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),x3=_1&&_1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),ZU=_1&&_1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))y3(Z,$,Y)}return x3(Z,$),Z};Object.defineProperty(_1,"__esModule",{value:!0});_1.parseFile=_1.parse=void 0;var $U=ZU(k("node:fs")),g$=ZU(k("node:path")),k3=/^#include(\?)?\s*"(.+)"$/,b3=/^([a-zA-Z_][a-zA-Z0-9_]*(?:\[[^\]]+\])*)\s*=\s*(.*)$/,YU=/\[([a-zA-Z]+)=([^\]]+)\]/g,f3=/\/\/.*/;function JU($){let Z=[],Y=[],J=$.split(/\r?\n/);for(let K of J){let z=K.replace(f3,"").trim();if(!z)continue;let Q=z.match(k3);if(Q){let G=Q[1]==="?",H=Q[2];Z.push({include:{path:H,optional:G},resolvedPath:H,config:void 0});continue}let U=z.match(b3);if(U){let G=U[1],H=U[2].trim(),V=v3(G),I=G.replace(YU,"");Y.push({key:I,value:H,conditions:V.length>0?V:void 0})}}return{includes:Z,buildSettings:Y}}_1.parse=JU;function v3($){let Z=[],Y,J=new RegExp(YU);while((Y=J.exec($))!==null){let K=Y[1].toLowerCase(),z=Y[2],Q={};if(K==="sdk")Q.sdk=z;else if(K==="arch")Q.arch=z;else if(K==="config")Q.config=z;if(Object.keys(Q).length>0)Z.push(Q)}return Z}function KU($,Z={}){let{basePath:Y=g$.dirname($),resolveIncludes:J=!0,visitedPaths:K=new Set}=Z,z=g$.isAbsolute($)?$:g$.resolve(Y,$);if(K.has(z))throw Error(`Circular include detected: ${z}`);let Q=$U.readFileSync(z,"utf-8"),U=JU(Q);if(!J)return U;let G=new Set(K);G.add(z);let H=[],V=g$.dirname(z);for(let I of U.includes){let E=I.include.path,w=g$.resolve(V,E);try{if(!$U.existsSync(w)){if(I.include.optional){H.push({include:I.include,resolvedPath:w,config:void 0});continue}throw Error(`Include file not found: ${w}`)}let T=KU(w,{basePath:g$.dirname(w),resolveIncludes:!0,visitedPaths:G});H.push({include:I.include,resolvedPath:w,config:T})}catch(T){if(I.include.optional)H.push({include:I.include,resolvedPath:w,config:void 0});else throw T}}return{includes:H,buildSettings:U.buildSettings}}_1.parseFile=KU});var UU=A((QU)=>{Object.defineProperty(QU,"__esModule",{value:!0});QU.build=void 0;function g3($){let Z=[];for(let Y of $.includes){let J=Y.include.optional?"?":"";Z.push(`#include${J} "${Y.include.path}"`)}if($.includes.length>0&&$.buildSettings.length>0)Z.push("");for(let Y of $.buildSettings)Z.push(h3(Y));return Z.join(` +`)+(Z.length>0?` +`:"")}QU.build=g3;function h3($){let Z=$.key;if($.conditions)for(let Y of $.conditions)Z+=u3(Y);return`${Z} = ${$.value}`}function u3($){let Z=[];if($.sdk)Z.push(`[sdk=${$.sdk}]`);if($.arch)Z.push(`[arch=${$.arch}]`);if($.config)Z.push(`[config=${$.config}]`);return Z.join("")}});var HU=A((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0})});var FU=A((H1)=>{var m3=H1&&H1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),c3=H1&&H1.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))m3(Z,$,Y)};Object.defineProperty(H1,"__esModule",{value:!0});H1.flattenBuildSettings=H1.build=H1.parseFile=H1.parse=void 0;var VU=zU();Object.defineProperty(H1,"parse",{enumerable:!0,get:function(){return VU.parse}});Object.defineProperty(H1,"parseFile",{enumerable:!0,get:function(){return VU.parseFile}});var p3=UU();Object.defineProperty(H1,"build",{enumerable:!0,get:function(){return p3.build}});c3(HU(),H1);function WU($,Z={}){let Y={};for(let J of $.includes)if(J.config){let K=WU(J.config,Z);Object.assign(Y,K)}for(let J of $.buildSettings)if(d3(J.conditions,Z)){let K=l3(J.value,J.key,Y);Y[J.key]=K}return Y}H1.flattenBuildSettings=WU;function d3($,Z){if(!$||$.length===0)return!0;return $.every((Y)=>{if(Y.sdk){if(!Z.sdk)return!1;if(!zJ(Z.sdk,Y.sdk))return!1}if(Y.arch){if(!Z.arch)return!1;if(!zJ(Z.arch,Y.arch))return!1}if(Y.config){if(!Z.config)return!1;if(!zJ(Z.config,Y.config))return!1}return!0})}function zJ($,Z){let Y=Z.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");return new RegExp(`^${Y}$`,"i").test($)}function l3($,Z,Y){let J=/\$\(inherited\)/gi;if(!J.test($))return $;let K=Y[Z]??"";return $.replace(J,K)}});var PZ=A((y1)=>{var i3=y1&&y1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),s3=y1&&y1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),AU=y1&&y1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))i3(Z,$,Y)}return s3(Z,$),Z},HY=y1&&y1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(y1,"__esModule",{value:!0});y1.XCBuildConfiguration=void 0;var UY=HY(k("node:path")),n3=HY(k("node:os")),QJ=HY(k("node:fs")),OU=HY(X$()),r3=tG(),qY=AU(l()),a3=Z1(),RU=eG(),IU=AU(FU()),GJ=CZ()("xcode:XCBuildConfiguration");class VY extends a3.AbstractObject{static is($){return $.isa===VY.isa}static create($,Z){return $.createModel({isa:qY.ISA.XCBuildConfiguration,...Z})}resolveFilePath($){let Z=this.resolveBuildSetting($);if(Z==null||typeof Z!=="string")return null;let Y=this.getXcodeProject().getProjectRoot();return UY.default.join(Y,Z)}getEntitlementsFilePath(){return this.resolveFilePath("CODE_SIGN_ENTITLEMENTS")}getEntitlements(){let $=this.getEntitlementsFilePath();if(!$)return null;return OU.default.parse(QJ.default.readFileSync($,"utf8"))}getInfoPlistFilePath(){return this.resolveFilePath("INFOPLIST_FILE")}getInfoPlist(){let $=this.getInfoPlistFilePath();if(!$)return null;return OU.default.parse(QJ.default.readFileSync($,"utf8"))}getTargetReferrers(){let Z=this.getReferrers().filter((Y)=>Y.isa===qY.ISA.XCConfigurationList).map((Y)=>{return Y.getReferrers().filter((J)=>J.isa===qY.ISA.PBXNativeTarget)}).flat();return(0,r3.uniqueBy)(Z,(Y)=>Y.uuid)}resolveBuildSetting($){let Z=(J)=>{if(!(J in this.props.buildSettings)){if(process.env[J]!=null)return GJ('Using environment variable substitution for "%s"',J),process.env[J];else if(J in EU)return GJ('Dangerously using estimated default Apple build variable substitution for "%s"',J),EU[J];if(J==="TARGET_NAME"){let K=this.getTargetReferrers();if(K.length>0){if(K.length>1)console.warn(`[XCBuildConfiguration][${this.props.name}]: Multiple targets found for build setting "${$}". Using first target "${K[0].props.name}". Possible targets: ${K.map((z)=>z.getDisplayName()).join(", ")}`);return K[0].props.name}else console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving special build setting "${$}". Substitute value "${J}" not found in build settings, environment variables, or from a referring PBXNativeTarget.`)}else console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${$}". Substitute value "${J}" not found in build settings.`)}if(Array.isArray(J))console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${$}". Substitute value "${J}" is of type array––it's not clear how this should be resolved in a string.`);return this.props.buildSettings[J]},Y=this.props.buildSettings[$];if(typeof Y==="string")return(0,RU.resolveXcodeBuildSetting)(Y,Z);if(Array.isArray(Y))return Y.map((J)=>{return(0,RU.resolveXcodeBuildSetting)(J,Z)});return Y}getObjectProps(){return{baseConfigurationReference:String}}getBaseConfigurationFilePath(){let $=this.props.baseConfigurationReference;if(!$)return null;let Z=$.props.path;if(!Z)return null;let Y=this.getXcodeProject().getProjectRoot(),J=$.props.sourceTree;if(J===""||J==="SOURCE_ROOT")return UY.default.join(Y,Z);if(J===""||UY.default.isAbsolute(Z))return Z;return UY.default.join(Y,Z)}getBaseConfiguration(){let $=this.getBaseConfigurationFilePath();if(!$||!QJ.default.existsSync($))return null;try{return IU.parseFile($)}catch(Z){return GJ("Failed to parse base configuration: %s",Z),null}}getBaseConfigurationSettings($){let Z=this.getBaseConfiguration();if(!Z)return{};return IU.flattenBuildSettings(Z,$)}}y1.XCBuildConfiguration=VY;VY.isa=qY.ISA.XCBuildConfiguration;var EU={HOME:n3.default.homedir(),SYSTEM_APPS_DIR:"/Applications",SYSTEM_ADMIN_APPS_DIR:"/Applications/Utilities",SYSTEM_DEMOS_DIR:"/Applications/Extras",SYSTEM_DEVELOPER_DIR:"/Applications/Xcode.app/Contents/Developer",SYSTEM_DEVELOPER_APPS_DIR:"/Applications/Xcode.app/Contents/Applications",SYSTEM_DEVELOPER_JAVA_TOOLS_DIR:"/Applications/Xcode.app/Contents/Applications/Java Tools",SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR:"/Applications/Xcode.app/Contents/Applications/Performance Tools",SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR:"/Applications/Xcode.app/Contents/Applications/Graphics Tools",SYSTEM_DEVELOPER_UTILITIES_DIR:"/Applications/Xcode.app/Contents/Applications/Utilities",SYSTEM_DEVELOPER_DEMOS_DIR:"/Applications/Xcode.app/Contents/Developer/Utilities/Built Examples",SYSTEM_DEVELOPER_DOC_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library",SYSTEM_DEVELOPER_TOOLS_DOC_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools",SYSTEM_DEVELOPER_RELEASENOTES_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes",SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR:"/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools",SYSTEM_LIBRARY_DIR:"/System/Library",SYSTEM_CORE_SERVICES_DIR:"/System/Library/CoreServices",SYSTEM_DOCUMENTATION_DIR:"/Library/Documentation",LOCAL_ADMIN_APPS_DIR:"/Applications/Utilities",LOCAL_APPS_DIR:"/Applications",LOCAL_DEVELOPER_DIR:"/Library/Developer",LOCAL_LIBRARY_DIR:"/Library",USER_APPS_DIR:"$(HOME)/Applications",USER_LIBRARY_DIR:"$(HOME)/Library",MAN_PAGE_DIRECTORIES:"/usr/share/man",SYSTEM_LIBRARY_EXECUTABLES_DIR:"",SYSTEM_DEVELOPER_EXECUTABLES_DIR:"",LOCAL_DEVELOPER_EXECUTABLES_DIR:""}});var WY=A((q0)=>{var o3=q0&&q0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),t3=q0&&q0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),e3=q0&&q0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))o3(Z,$,Y)}return t3(Z,$),Z};Object.defineProperty(q0,"__esModule",{value:!0});q0.XCConfigurationList=void 0;var $I=e3(l()),ZI=Z1();class _Z extends ZI.AbstractObject{static is($){return $.isa===_Z.isa}static create($,Z){return $.createModel({isa:_Z.isa,defaultConfigurationIsVisible:0,...Z})}getObjectProps(){return{buildConfigurations:[String]}}getDefaultConfiguration(){let $=this.props.buildConfigurations.find((Z)=>Z.props.name===this.props.defaultConfigurationName);if(!$)throw Error(`[XCConfigurationList][${this.uuid}]: ${this.props.defaultConfigurationName} not found in buildConfigurations. Available configurations: ${this.props.buildConfigurations.map((Z)=>`${Z.props.name} (${Z.uuid})`).join(", ")})`);return $}setBuildSetting($,Z){return this.props.buildConfigurations.forEach((Y)=>{Y.props.buildSettings[$]=Z}),Z}removeBuildSetting($){this.props.buildConfigurations.forEach((Z)=>{delete Z.props.buildSettings[$]})}getDefaultBuildSetting($){return this.getDefaultConfiguration().props.buildSettings[$]}removeFromProject(){for(let $ of[...this.props.buildConfigurations]){let Z=$.getReferrers();if(Z.length===1&&Z[0].uuid===this.uuid)$.removeFromProject()}return super.removeFromProject()}}q0.XCConfigurationList=_Z;_Z.isa=$I.ISA.XCConfigurationList});var FY=A((BU)=>{Object.defineProperty(BU,"__esModule",{value:!0});BU.AbstractTarget=void 0;var YI=Z1(),JI=PZ(),KI=WY();class wU extends YI.AbstractObject{createConfigurationList($,Z){let Y=Z.map((K)=>JI.XCBuildConfiguration.create(this.getXcodeProject(),K)),J=KI.XCConfigurationList.create(this.getXcodeProject(),{buildConfigurations:Y,...$});return this.props.buildConfigurationList=J,J}getDependencyForTarget($){return this.props.dependencies.find((Z)=>{if(Z.props.targetProxy.isRemote()){let Y=this.getXcodeProject().getReferenceForPath($.getXcodeProject().filePath);if(Y){let J=Y.uuid;return Z.props.targetProxy.props.remoteGlobalIDString===$.uuid&&Z.props.targetProxy.props.containerPortal.uuid===J}}else return Z.props.target.uuid===$.uuid;return!1})}createBuildPhase($,Z){let Y=this.getXcodeProject().createModel({isa:$.isa,...Z});return this.props.buildPhases.push(Y),Y}getBuildPhase($){return this.props.buildPhases.find((Y)=>$.is(Y))??null}getObjectProps(){return{buildConfigurationList:String,dependencies:[String],buildPhases:[String]}}getDefaultConfiguration(){return this.props.buildConfigurationList.getDefaultConfiguration()}setBuildSetting($,Z){return this.props.buildConfigurationList.setBuildSetting($,Z)}removeBuildSetting($){return this.props.buildConfigurationList.removeBuildSetting($)}getDefaultBuildSetting($){return this.props.buildConfigurationList.getDefaultBuildSetting($)}getAttributes(){return this.getXcodeProject().rootObject.props.attributes.TargetAttributes?.[this.uuid]}}BU.AbstractTarget=wU});var OY=A((H0)=>{var zI=H0&&H0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),QI=H0&&H0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),GI=H0&&H0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))zI(Z,$,Y)}return QI(Z,$),Z};Object.defineProperty(H0,"__esModule",{value:!0});H0.XCSwiftPackageProductDependency=void 0;var UI=GI(l()),qI=Z1();class yZ extends qI.AbstractObject{static is($){return $.isa===yZ.isa}static create($,Z){return $.createModel({isa:yZ.isa,...Z})}getObjectProps(){return{package:String}}getDisplayName(){return this.props.productName??super.getDisplayName()}}H0.XCSwiftPackageProductDependency=yZ;yZ.isa=UI.ISA.XCSwiftPackageProductDependency});var kZ=A((V0)=>{var HI=V0&&V0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),VI=V0&&V0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),WI=V0&&V0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))HI(Z,$,Y)}return VI(Z,$),Z};Object.defineProperty(V0,"__esModule",{value:!0});V0.PBXTargetDependency=void 0;var FI=WI(l()),OI=Z1();class xZ extends OI.AbstractObject{static is($){return $.isa===xZ.isa}static create($,Z){return $.createModel({isa:xZ.isa,...Z})}getObjectProps(){return{target:String,targetProxy:String}}getNativeTargetUuid(){if(this.props.target)return this.props.target.uuid;if(this.props.targetProxy)return this.props.targetProxy.props.remoteGlobalIDString;throw Error(`Expected target or target_proxy, from which to fetch a uuid for target '${this.getDisplayName()}'. Find and clear the PBXTargetDependency entry with uuid '${this.uuid}' in your .xcodeproj.`)}getDisplayName(){return this.props.name??this.props.target.props.name??this.props.targetProxy.props.remoteInfo??super.getDisplayName()}removeFromProject(){if(this.props.targetProxy){let $=this.props.targetProxy.getReferrers();if($.length===1&&$[0].uuid===this.uuid)this.props.targetProxy.removeFromProject()}return super.removeFromProject()}}V0.PBXTargetDependency=xZ;xZ.isa=FI.ISA.PBXTargetDependency});var RY=A((W0)=>{var RI=W0&&W0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),II=W0&&W0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),EI=W0&&W0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))RI(Z,$,Y)}return II(Z,$),Z};Object.defineProperty(W0,"__esModule",{value:!0});W0.PBXNativeTarget=void 0;var MU=EI(l()),AI=FY(),d1=p1(),wI=u$(),BI=J$(),CI=OY(),DU=kZ(),DI=bZ();class h$ extends AI.AbstractTarget{static is($){return $.isa===h$.isa}static create($,Z){return $.createModel({isa:MU.ISA.PBXNativeTarget,buildPhases:[],buildRules:[],dependencies:[],...Z})}getFrameworksBuildPhase(){return this.getBuildPhase(d1.PBXFrameworksBuildPhase)??this.createBuildPhase(d1.PBXFrameworksBuildPhase)}getHeadersBuildPhase(){return this.getBuildPhase(d1.PBXHeadersBuildPhase)??this.createBuildPhase(d1.PBXHeadersBuildPhase)}getSourcesBuildPhase(){return this.getBuildPhase(d1.PBXSourcesBuildPhase)??this.createBuildPhase(d1.PBXSourcesBuildPhase)}getResourcesBuildPhase(){return this.getBuildPhase(d1.PBXResourcesBuildPhase)??this.createBuildPhase(d1.PBXResourcesBuildPhase)}ensureFrameworks($){let Z=this.getXcodeProject().rootObject.getFrameworksGroup(),Y=(J)=>{let K=J.endsWith(".framework")?J:J+".framework";for(let[,z]of this.getXcodeProject().entries())if(wI.PBXFileReference.is(z)&&z.props.lastKnownFileType==="wrapper.framework"&&z.props.sourceTree==="SDKROOT"&&z.props.name===K){if(!Z.props.children.find((Q)=>Q.uuid===z.uuid))Z.props.children.push(z);return z}return Z.createFile({path:"System/Library/Frameworks/"+K})};return $.map((J)=>{return this.getFrameworksBuildPhase().ensureFile({fileRef:Y(J)})})}addDependency($){let Z=$.getXcodeProject().filePath===this.getXcodeProject().filePath,Y=this.getDependencyForTarget($);if(Y){if(!Z)Y.props.name=$.props.name;return}let J=DI.PBXContainerItemProxy.create(this.getXcodeProject(),{containerPortal:this.getXcodeProject().rootObject,proxyType:1,remoteGlobalIDString:$.uuid,remoteInfo:$.props.name});if(Z)J.props.containerPortal=this.getXcodeProject().rootObject;else throw Error("adding dependencies to subprojects is not yet supported. Please open an issue if you need this feature.");let K=DU.PBXTargetDependency.create(this.getXcodeProject(),{target:$,targetProxy:J});this.props.dependencies.push(K)}getCopyBuildPhaseForTarget($){if(this.getXcodeProject().rootObject.getMainAppTarget("ios").uuid!==this.uuid)throw Error("getCopyBuildPhaseForTarget can only be called on the main target");let Y=(()=>{if($.props.productType==="com.apple.product-type.application.on-demand-install-capable")return"Embed App Clips";else if($.isWatchOSTarget())return"Embed Watch Content";else if($.props.productType==="com.apple.product-type.extensionkit-extension")return"Embed ExtensionKit Extensions";return"Embed Foundation Extensions"})(),J=this.props.buildPhases.find((z)=>{return d1.PBXCopyFilesBuildPhase.is(z)&&z.props.name===Y});if(J){let z=J;return z.ensureDefaultsForTarget($),z}let K=this.createBuildPhase(d1.PBXCopyFilesBuildPhase,{name:Y,files:[]});return K.ensureDefaultsForTarget($),K}isWatchOSTarget(){if(this.props.productType==="com.apple.product-type.application.watchapp"||this.props.productType==="com.apple.product-type.application.watchapp2"||this.props.productType==="com.apple.product-type.application.watchapp2-container")return!0;if(this.props.productType==="com.apple.product-type.application"){let $=this.props.buildConfigurationList?.props.buildConfigurations?.[0]?.props.buildSettings;if($&&$.SDKROOT==="watchos")return!0}return!1}isWatchExtension(){return this.props.productType==="com.apple.product-type.watchkit-extension"||this.props.productType==="com.apple.product-type.watchkit2-extension"}getObjectProps(){return{...super.getObjectProps(),buildRules:[String],productReference:[String],packageProductDependencies:[String],fileSystemSynchronizedGroups:[String]}}removeFromProject(){let $=this.getXcodeProject(),Z=(Y)=>{let J=Y.getReferrers();return J.length===1&&J[0].uuid===this.uuid};for(let Y of[...this.props.buildPhases])if(Z(Y))Y.removeFromProject();for(let Y of[...this.props.buildRules])if(Z(Y))Y.removeFromProject();if(Z(this.props.buildConfigurationList))this.props.buildConfigurationList.removeFromProject();for(let Y of[...this.props.dependencies])if(Z(Y))Y.removeFromProject();if(this.props.fileSystemSynchronizedGroups){for(let Y of[...this.props.fileSystemSynchronizedGroups])if(![...$.values()].some((K)=>h$.is(K)&&K.uuid!==this.uuid&&K.props.fileSystemSynchronizedGroups?.some((z)=>z.uuid===Y.uuid)))Y.removeFromProject()}if(this.props.packageProductDependencies){for(let Y of[...this.props.packageProductDependencies])if(Z(Y))Y.removeFromProject()}if(this.props.productReference){if(![...$.values()].some((J)=>h$.is(J)&&J.uuid!==this.uuid&&J.props.productReference?.uuid===this.props.productReference?.uuid))this.props.productReference.removeFromProject()}for(let[,Y]of $.entries())if(DU.PBXTargetDependency.is(Y)&&(Y.props.target?.uuid===this.uuid||Y.props.targetProxy?.props.remoteGlobalIDString===this.uuid))Y.removeFromProject();return super.removeFromProject()}addSwiftPackageProduct($){let Z=this.getXcodeProject();if(!this.props.packageProductDependencies)this.props.packageProductDependencies=[];let Y=this.props.packageProductDependencies.find((z)=>z.props.productName===$.productName&&z.props.package?.uuid===$.package?.uuid);if(Y)return Y;let J=CI.XCSwiftPackageProductDependency.create(Z,{productName:$.productName,package:$.package});this.props.packageProductDependencies.push(J);let K=BI.PBXBuildFile.createFromProductRef(Z,{productRef:J});return this.getFrameworksBuildPhase().props.files.push(K),J}getSwiftPackageProductDependencies(){return this.props.packageProductDependencies??[]}removeSwiftPackageProduct($){if(this.props.packageProductDependencies){let Y=this.props.packageProductDependencies.findIndex((J)=>J.uuid===$.uuid);if(Y!==-1)this.props.packageProductDependencies.splice(Y,1)}let Z=this.getBuildPhase(d1.PBXFrameworksBuildPhase);if(Z){let Y=Z.props.files.findIndex((J)=>J.props.productRef?.uuid===$.uuid);if(Y!==-1){let J=Z.props.files[Y];Z.props.files.splice(Y,1),J.removeFromProject()}}$.removeFromProject()}}W0.PBXNativeTarget=h$;h$.isa=MU.ISA.PBXNativeTarget});var UJ=A((F0)=>{var MI=F0&&F0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),LI=F0&&F0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),TI=F0&&F0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))MI(Z,$,Y)}return LI(Z,$),Z};Object.defineProperty(F0,"__esModule",{value:!0});F0.PBXAggregateTarget=void 0;var XI=TI(l()),SI=FY();class fZ extends SI.AbstractTarget{static is($){return $.isa===fZ.isa}static create($,Z){return $.createModel({isa:fZ.isa,buildPhases:[],dependencies:[],...Z})}}F0.PBXAggregateTarget=fZ;fZ.isa=XI.ISA.PBXAggregateTarget});var qJ=A((O0)=>{var NI=O0&&O0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),jI=O0&&O0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),PI=O0&&O0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))NI(Z,$,Y)}return jI(Z,$),Z};Object.defineProperty(O0,"__esModule",{value:!0});O0.PBXLegacyTarget=void 0;var _I=PI(l()),yI=FY();class IY extends yI.AbstractTarget{static is($){return $.isa===IY.isa}}O0.PBXLegacyTarget=IY;IY.isa=_I.ISA.PBXLegacyTarget});var EY=A((R0)=>{var xI=R0&&R0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),kI=R0&&R0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),bI=R0&&R0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))xI(Z,$,Y)}return kI(Z,$),Z};Object.defineProperty(R0,"__esModule",{value:!0});R0.XCRemoteSwiftPackageReference=void 0;var fI=bI(l()),vI=Z1();class vZ extends vI.AbstractObject{static is($){return $.isa===vZ.isa}static create($,Z){return $.createModel({isa:vZ.isa,...Z})}getObjectProps(){return{}}getDisplayName(){return this.props.repositoryURL??super.getDisplayName()}}R0.XCRemoteSwiftPackageReference=vZ;vZ.isa=fI.ISA.XCRemoteSwiftPackageReference});var AY=A((I0)=>{var gI=I0&&I0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),hI=I0&&I0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),uI=I0&&I0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))gI(Z,$,Y)}return hI(Z,$),Z};Object.defineProperty(I0,"__esModule",{value:!0});I0.XCLocalSwiftPackageReference=void 0;var mI=uI(l()),cI=Z1();class gZ extends cI.AbstractObject{static is($){return $.isa===gZ.isa}static create($,Z){return $.createModel({isa:gZ.isa,...Z})}getObjectProps(){return{}}getDisplayName(){return this.props.relativePath??super.getDisplayName()}}I0.XCLocalSwiftPackageReference=gZ;gZ.isa=mI.ISA.XCLocalSwiftPackageReference});var FJ=A((x1)=>{var pI=x1&&x1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),dI=x1&&x1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),lI=x1&&x1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))pI(Z,$,Y)}return dI(Z,$),Z},iI=x1&&x1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(x1,"__esModule",{value:!0});x1.PBXProject=void 0;var sI=iI(k("path")),wY=wZ(),nI=lI(l()),rI=Z1(),HJ=RY(),aI=PZ(),VJ=EY(),WJ=AY();class hZ extends rI.AbstractObject{static is($){return $.isa===hZ.isa}static create($,Z){return $.createModel({isa:hZ.isa,...Z})}getObjectProps(){return{buildConfigurationList:String,mainGroup:String,productRefGroup:String,targets:[String],packageReferences:[String]}}setupDefaults($){if(!$.compatibilityVersion)$.compatibilityVersion="Xcode 3.2";if(!$.developmentRegion)$.developmentRegion="en";if(!$.hasScannedForEncodings)$.hasScannedForEncodings=0;if(!$.knownRegions)$.knownRegions=["en","Base"];if(!$.projectDirPath)$.projectDirPath="";if(!$.projectRoot)$.projectRoot="";if(!$.attributes)$.attributes={LastSwiftUpdateCheck:wY.LAST_SWIFT_UPGRADE_CHECK,LastUpgradeCheck:wY.LAST_UPGRADE_CHECK,TargetAttributes:{}}}addBuildConfiguration($,Z){let Y=this.props.buildConfigurationList,J=Y.props.buildConfigurations.find((z)=>z.props.name===$);if(J)return J;let K=aI.XCBuildConfiguration.create(this.getXcodeProject(),{name:$,buildSettings:{...JSON.parse(JSON.stringify(wY.PROJECT_DEFAULT_BUILD_SETTINGS.all)),...JSON.parse(JSON.stringify(wY.PROJECT_DEFAULT_BUILD_SETTINGS[Z]))}});return Y.props.buildConfigurations.push(K),K}getName(){return sI.default.basename(this.getXcodeProject().filePath,".xcodeproj")}ensureProductGroup(){if(this.props.productRefGroup)return this.props.productRefGroup;let $=this.props.mainGroup.createGroup({name:"Products",sourceTree:""});return this.props.productRefGroup=$,$}ensureMainGroupChild($){return this.props.mainGroup.getChildGroups().find((Z)=>Z.getDisplayName()===$)??this.props.mainGroup.createGroup({name:$,sourceTree:""})}getFrameworksGroup(){return this.ensureMainGroupChild("Frameworks")}createNativeTarget($){let Z=HJ.PBXNativeTarget.create(this.getXcodeProject(),$);return this.props.targets.push(Z),Z}getNativeTarget($){for(let Z of this.props.targets)if(HJ.PBXNativeTarget.is(Z)&&Z.props.productType===$)return Z;return null}getMainAppTarget($="ios"){let Y={ios:"IPHONEOS_DEPLOYMENT_TARGET",macos:"MACOSX_DEPLOYMENT_TARGET",tvos:"TVOS_DEPLOYMENT_TARGET",watchos:"WATCHOS_DEPLOYMENT_TARGET"}[$],J=this.props.targets.filter((Q)=>{return HJ.PBXNativeTarget.is(Q)&&Q.props.productType==="com.apple.product-type.application"}),K=J.filter((Q)=>{let U=Q.getDefaultConfiguration();return Y in U.props.buildSettings});if(K.length>1)console.warn(`Multiple main app targets found, using first one: ${K.map((Q)=>Q.getDisplayName()).join(", ")}`);let z=K[0];if(!z){if($==="ios"&&J.length)return J[0];throw Error("No main app target found")}return z}removeReference($){if(super.removeReference($),this.props.attributes?.TargetAttributes?.[$])delete this.props.attributes.TargetAttributes[$]}addPackageReference($){if(!this.props.packageReferences)this.props.packageReferences=[];let Z=this.props.packageReferences.find((Y)=>Y.uuid===$.uuid);if(Z)return Z;return this.props.packageReferences.push($),$}getPackageReference($){if(!this.props.packageReferences)return null;for(let Z of this.props.packageReferences){if(VJ.XCRemoteSwiftPackageReference.is(Z)&&Z.props.repositoryURL===$)return Z;if(WJ.XCLocalSwiftPackageReference.is(Z)&&Z.props.relativePath===$)return Z}return null}addRemoteSwiftPackage($){if($.repositoryURL){let Y=this.getPackageReference($.repositoryURL);if(Y&&VJ.XCRemoteSwiftPackageReference.is(Y))return Y}let Z=VJ.XCRemoteSwiftPackageReference.create(this.getXcodeProject(),$);return this.addPackageReference(Z),Z}addLocalSwiftPackage($){let Z=this.getPackageReference($.relativePath);if(Z&&WJ.XCLocalSwiftPackageReference.is(Z))return Z;let Y=WJ.XCLocalSwiftPackageReference.create(this.getXcodeProject(),$);return this.addPackageReference(Y),Y}}x1.PBXProject=hZ;hZ.isa=nI.ISA.PBXProject});var OJ=A((E0)=>{var oI=E0&&E0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),tI=E0&&E0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),eI=E0&&E0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))oI(Z,$,Y)}return tI(Z,$),Z};Object.defineProperty(E0,"__esModule",{value:!0});E0.PBXBuildRule=void 0;var $E=eI(l()),ZE=Z1();class uZ extends ZE.AbstractObject{static is($){return $.isa===uZ.isa}static create($,Z){return $.createModel({isa:uZ.isa,...Z})}getObjectProps(){return{inputFiles:[String],outputFiles:[String]}}setupDefaults(){if(this.props.isEditable==null)this.props.isEditable=1}addOutputFile($,Z=""){if(!this.props.outputFiles)this.props.outputFiles=[];if(this.props.outputFiles.push($),!this.props.outputFilesCompilerFlags)this.props.outputFilesCompilerFlags=[];this.props.outputFilesCompilerFlags.push(Z)}getOutputFilesAndFlags(){return YE(this.props.outputFiles,this.props.outputFilesCompilerFlags)}}E0.PBXBuildRule=uZ;uZ.isa=$E.ISA.PBXBuildRule;function YE($=[],Z=[]){return $.map((Y,J)=>[Y,Z[J]])}});var BY=A((A0)=>{var JE=A0&&A0.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),KE=A0&&A0.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),zE=A0&&A0.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))JE(Z,$,Y)}return KE(Z,$),Z};Object.defineProperty(A0,"__esModule",{value:!0});A0.PBXReferenceProxy=void 0;var QE=zE(l()),GE=Z1(),UE=J$();class mZ extends GE.AbstractObject{static is($){return $.isa===mZ.isa}static create($,Z){return $.createModel({isa:mZ.isa,sourceTree:"",...Z})}getObjectProps(){return{remoteRef:String}}removeFromProject(){return this.getBuildFiles().forEach(($)=>{$.removeFromProject()}),super.removeFromProject()}getBuildFiles(){return this.getReferrers().filter(UE.PBXBuildFile.is)}}A0.PBXReferenceProxy=mZ;mZ.isa=QE.ISA.PBXReferenceProxy});var wJ=A((k1)=>{var qE=k1&&k1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),HE=k1&&k1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),VE=k1&&k1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))qE(Z,$,Y)}return HE(Z,$),Z},EJ=k1&&k1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(k1,"__esModule",{value:!0});k1.XcodeProject=void 0;var RJ=EJ(k("assert")),w0=k("fs"),Q1=EJ(k("path")),WE=EJ(k("crypto")),cZ=a9(),LU=t9(),FE=V8(),u=VE(l()),TU=wZ(),OE=CZ()("xcparse:model:XcodeProject");function RE($){return"XX"+WE.default.createHash("md5").update($).digest("hex").toUpperCase().slice(0,20)+"XX"}var IE={[u.ISA.PBXBuildFile]:()=>J$().PBXBuildFile,[u.ISA.PBXAppleScriptBuildPhase]:()=>p1().PBXAppleScriptBuildPhase,[u.ISA.PBXCopyFilesBuildPhase]:()=>p1().PBXCopyFilesBuildPhase,[u.ISA.PBXFrameworksBuildPhase]:()=>p1().PBXFrameworksBuildPhase,[u.ISA.PBXHeadersBuildPhase]:()=>p1().PBXHeadersBuildPhase,[u.ISA.PBXResourcesBuildPhase]:()=>p1().PBXResourcesBuildPhase,[u.ISA.PBXShellScriptBuildPhase]:()=>p1().PBXShellScriptBuildPhase,[u.ISA.PBXSourcesBuildPhase]:()=>p1().PBXSourcesBuildPhase,[u.ISA.PBXContainerItemProxy]:()=>bZ().PBXContainerItemProxy,[u.ISA.PBXFileReference]:()=>u$().PBXFileReference,[u.ISA.PBXGroup]:()=>b$().PBXGroup,[u.ISA.PBXVariantGroup]:()=>$J().PBXVariantGroup,[u.ISA.XCVersionGroup]:()=>ZJ().XCVersionGroup,[u.ISA.PBXFileSystemSynchronizedRootGroup]:()=>YJ().PBXFileSystemSynchronizedRootGroup,[u.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet]:()=>JJ().PBXFileSystemSynchronizedBuildFileExceptionSet,[u.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet]:()=>KJ().PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet,[u.ISA.PBXNativeTarget]:()=>RY().PBXNativeTarget,[u.ISA.PBXAggregateTarget]:()=>UJ().PBXAggregateTarget,[u.ISA.PBXLegacyTarget]:()=>qJ().PBXLegacyTarget,[u.ISA.PBXProject]:()=>FJ().PBXProject,[u.ISA.PBXTargetDependency]:()=>kZ().PBXTargetDependency,[u.ISA.XCBuildConfiguration]:()=>PZ().XCBuildConfiguration,[u.ISA.XCConfigurationList]:()=>WY().XCConfigurationList,[u.ISA.PBXBuildRule]:()=>OJ().PBXBuildRule,[u.ISA.PBXReferenceProxy]:()=>BY().PBXReferenceProxy,[u.ISA.PBXRezBuildPhase]:()=>p1().PBXRezBuildPhase,[u.ISA.XCSwiftPackageProductDependency]:()=>OY().XCSwiftPackageProductDependency,[u.ISA.XCRemoteSwiftPackageReference]:()=>EY().XCRemoteSwiftPackageReference,[u.ISA.XCLocalSwiftPackageReference]:()=>AY().XCLocalSwiftPackageReference};class AJ extends Map{static open($){let Z=(0,w0.readFileSync)($,"utf8"),Y=(0,FE.parse)(Z);return new AJ($,Y)}constructor($,Z){super();this.filePath=$;let Y=JSON.parse(JSON.stringify(Z));(0,RJ.default)(Y.objects,"objects is required"),(0,RJ.default)(Y.rootObject,"rootObject is required"),this.internalJsonObjects=Y.objects,this.archiveVersion=Y.archiveVersion??TU.LAST_KNOWN_ARCHIVE_VERSION,this.objectVersion=Y.objectVersion??TU.DEFAULT_OBJECT_VERSION,this.classes=Y.classes??{},EE(Y.rootObject,Y.objects?.[Y.rootObject]),this.rootObject=this.getObject(Y.rootObject),this.ensureAllObjectsInflated()}getProjectRoot(){return Q1.default.dirname(Q1.default.dirname(this.filePath))}getObject($){let Z=this._getObjectOptional($);if(Z)return Z;throw Error(`object with uuid '${$}' not found.`)}_getObjectOptional($){if(this.has($))return this.get($);let Z=this.internalJsonObjects[$];if(!Z)return null;delete this.internalJsonObjects[$];let Y=this.createObject($,Z);return this.set($,Y),Y.inflate(),Y}createObject($,Z){let Y=IE[Z.isa]();return(0,RJ.default)(Y,`unknown object type. (isa: ${Z.isa}, uuid: ${$})`),new Y(this,$,Z)}ensureAllObjectsInflated(){if(Object.keys(this.internalJsonObjects).length===0)return;OE("inflating unreferenced objects: %o",Object.keys(this.internalJsonObjects));while(Object.keys(this.internalJsonObjects).length>0){let $=Object.keys(this.internalJsonObjects)[0];this.getObject($)}}createModel($){let Z=this.getUniqueId(JSON.stringify(IJ($))),Y=this.createObject(Z,$);return this.set(Z,Y),Y}getReferenceForPath($){if(!Q1.default.isAbsolute($))throw Error(`Paths must be absolute ${$}`);for(let Z of this.values())if(Z.isa==="PBXFileReference"&&"getRealPath"in Z&&Z.getRealPath()===$)return Z;return null}getReferrers($){let Z=[];for(let Y of this.values())if(Y.isReferencing($))Z.push(Y);return Z}isUniqueId($){for(let Z of this.keys())if(Z===$)return!1;return!0}getUniqueId($){let Z=RE($);if(this.isUniqueId(Z))return Z;return this.getUniqueId($+" ")}getSharedSchemesDir(){let $=Q1.default.dirname(this.filePath);return Q1.default.join($,"xcshareddata","xcschemes")}getUserSchemesDir($){let Z=Q1.default.dirname(this.filePath);return Q1.default.join(Z,"xcuserdata",`${$}.xcuserdatad`,"xcschemes")}getSchemes($){let Z=[],Y=this.getSharedSchemesDir();if((0,w0.existsSync)(Y)){let J=(0,w0.readdirSync)(Y).filter((K)=>K.endsWith(".xcscheme"));for(let K of J)Z.push(cZ.XCScheme.open(Q1.default.join(Y,K)))}if($?.includeUser&&$?.username){let J=this.getUserSchemesDir($.username);if((0,w0.existsSync)(J)){let K=(0,w0.readdirSync)(J).filter((z)=>z.endsWith(".xcscheme"));for(let z of K)Z.push(cZ.XCScheme.open(Q1.default.join(J,z)))}}return Z}getScheme($,Z){let Y=$.endsWith(".xcscheme")?$:`${$}.xcscheme`,J=Q1.default.join(this.getSharedSchemesDir(),Y);if((0,w0.existsSync)(J))return cZ.XCScheme.open(J);if(Z?.username){let K=Q1.default.join(this.getUserSchemesDir(Z.username),Y);if((0,w0.existsSync)(K))return cZ.XCScheme.open(K)}return null}saveScheme($,Z){let Y=Z?.shared??!0,J=`${$.name}.xcscheme`,K;if(Y)K=this.getSharedSchemesDir();else{if(!Z?.username)throw Error("username is required when saving a user scheme");K=this.getUserSchemesDir(Z.username)}let z=Q1.default.join(K,J);$.save(z)}deleteScheme($,Z){let Y=Z?.shared??!0,J=`${$}.xcscheme`,K;if(Y)K=this.getSharedSchemesDir();else{if(!Z?.username)throw Error("username is required when deleting a user scheme");K=this.getUserSchemesDir(Z.username)}let z=Q1.default.join(K,J);if((0,w0.existsSync)(z))(0,w0.unlinkSync)(z)}createSchemeForTarget($,Z){let Y=Q1.default.dirname(this.filePath),J=Q1.default.basename(Y);return cZ.XCScheme.createForTarget($,Z,`${J}`)}getSharedDataDir(){let $=Q1.default.dirname(this.filePath);return Q1.default.join($,"xcshareddata")}getSharedData(){let $=this.getSharedDataDir();if((0,w0.existsSync)($))return LU.XCSharedData.open($);let Z=LU.XCSharedData.create();return Z.filePath=$,Z}toJSON(){let $={archiveVersion:this.archiveVersion,objectVersion:this.objectVersion,classes:this.classes,objects:{},rootObject:this.rootObject.uuid};for(let[Z,Y]of this.entries())$.objects[Z]=Y.toJSON();return $}}k1.XcodeProject=AJ;function EE($,Z){if(Z?.isa!=="PBXProject")throw Error(`Root object "${$}" is not a PBXProject`)}function IJ($){if(Array.isArray($))return $.map(IJ);else if(typeof $==="object"){if("uuid"in $&&typeof $.uuid==="string")return $.uuid;let Z={};for(let Y of Object.keys($).sort())Z[Y]=IJ($[Y]);return Z}else return $}});var bZ=A((b1)=>{var AE=b1&&b1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),wE=b1&&b1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),BE=b1&&b1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))AE(Z,$,Y)}return wE(Z,$),Z},CE=b1&&b1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(b1,"__esModule",{value:!0});b1.PBXContainerItemProxy=void 0;var DE=CE(k("assert")),ME=BE(l()),LE=Z1(),TE=wJ(),XE=u$();class pZ extends LE.AbstractObject{static is($){return $.isa===pZ.isa}static create($,Z){return $.createModel({isa:pZ.isa,...Z})}getObjectProps(){return{containerPortal:String}}getProxiedObject(){return this.getContainerPortalObject().get(this.props.remoteGlobalIDString)}getContainerPortalObject(){if(this.isRemote()){let $=this.getXcodeProject().get(this.props.containerPortal.uuid);return(0,DE.default)(XE.PBXFileReference.is($),"containerPortal is not a PBXFileReference"),TE.XcodeProject.open($.getRealPath())}return this.getXcodeProject()}isRemote(){return this.getXcodeProject().rootObject.uuid!==this.props.containerPortal.uuid}}b1.PBXContainerItemProxy=pZ;pZ.isa=ME.ISA.PBXContainerItemProxy});var u$=A((w1)=>{var SE=w1&&w1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),NE=w1&&w1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),jE=w1&&w1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))SE(Z,$,Y)}return NE(Z,$),Z},PE=w1&&w1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(w1,"__esModule",{value:!0});w1.PBXFileReference=w1.getPossibleDefaultSourceTree=void 0;var n0=PE(k("path")),BJ=wZ(),NU=jE(l()),_E=b$(),yE=J$(),xE=Z1(),dZ=p9(),XU=bZ(),kE=BY(),bE=kZ(),SU=CZ()("xcparse:models");function jU($){let Z=$.lastKnownFileType?BJ.SOURCETREE_BY_FILETYPE[$.lastKnownFileType]:void 0;if(!Z&&$.explicitFileType)return"BUILT_PRODUCTS_DIR";return Z??""}w1.getPossibleDefaultSourceTree=jU;function fE($,Z,Y){let J=n0.default.resolve(Z);if($.props.sourceTree=Y,Y===""){if(!n0.default.isAbsolute(J))throw Error(`[Xcodeproj] Attempt to set a relative path with an absolute source tree: ${Z}`);$.props.path=J}else if(Y==""||Y=="SOURCE_ROOT"){let K=(0,dZ.getSourceTreeRealPath)($);if(K&&n0.default.resolve(K)===J){let z=n0.default.relative(K,J);$.props.path=z}else $.props.path=J}else $.props.path=J}class lZ extends xE.AbstractObject{static is($){return $.isa===lZ.isa}static create($,Z){return $.createModel({isa:lZ.isa,...Z})}getObjectProps(){return{}}setupDefaults(){if(!this.props.lastKnownFileType&&!this.props.explicitFileType)this.setLastKnownFileType();if(this.props.name==null&&this.props.path){let $=n0.default.basename(this.props.path);if($!==this.props.path)this.props.name=$}if(!this.props.sourceTree)this.props.sourceTree=jU(this.props)}getParent(){return(0,dZ.getParent)(this)}getParents(){return(0,dZ.getParents)(this)}move($){_E.PBXGroup.move(this,$)}getRealPath(){return(0,dZ.getRealPath)(this)}getFullPath(){return(0,dZ.getFullPath)(this)}setLastKnownFileType($){if($)this.props.lastKnownFileType=$;else if(this.props.path){let Z=n0.default.extname(this.props.path);if(Z.startsWith("."))Z=Z.substring(1);this.props.lastKnownFileType=BJ.FILE_TYPES_BY_EXTENSION[Z],SU(`setLastKnownFileType (ext: ${Z}, type: ${this.props.lastKnownFileType})`)}}setExplicitFileType($){if($)this.props.explicitFileType=$;else if(this.props.path){let Z=n0.default.extname(this.props.path);if(Z.startsWith("."))Z=Z.substring(1);this.props.explicitFileType=BJ.FILE_TYPES_BY_EXTENSION[Z],SU(`setExplicitFileType (ext: ${Z}, type: ${this.props.explicitFileType})`)}if(this.props.explicitFileType)this.props.lastKnownFileType=void 0}getDisplayName(){if(this.props.name)return this.props.name;else if(this.props.path&&this.props.sourceTree==="BUILT_PRODUCTS_DIR")return this.props.path;else if(this.props.path)return n0.default.basename(this.props.path);return this.isa.replace(/^(PBX|XC)/,"")}getProxyContainers(){return Array.from(this.getXcodeProject().values()).filter(($)=>XU.PBXContainerItemProxy.is($)&&$.props.containerPortal.uuid===this.uuid)}setPath($){if($)fE(this,$,this.props.sourceTree);else this.props.path=void 0}getBuildFiles(){return this.getReferrers().filter(($)=>yE.PBXBuildFile.is($))}getTargetDependencyProxies(){let $=this.getProxyContainers();if(!$.length)return[];return Array.from(this.getXcodeProject().values()).filter((Z)=>{return bE.PBXTargetDependency.is(Z)&&$.some((Y)=>Y.uuid===Z.props.targetProxy.uuid)})}removeFromProject(){return this.getFileReferenceProxies().forEach(($)=>{$.removeFromProject()}),this.getTargetDependencyProxies().forEach(($)=>{$.removeFromProject()}),this.getBuildFiles().forEach(($)=>$.removeFromProject()),super.removeFromProject()}getFileReferenceProxies(){let $=this.getProxyContainers();if(!$.length)return[];return[...this.getXcodeProject().values()].filter((Z)=>{if(!kE.PBXReferenceProxy.is(Z))return!1;return!!$.find((Y)=>XU.PBXContainerItemProxy.is(Z.props.remoteRef)&&Y.uuid===Z.props.remoteRef.uuid)})}isAppExtension(){let $=this.props.lastKnownFileType??this.props.explicitFileType;return!!($&&["wrapper.extensionkit-extension","wrapper.app-extension"].includes($)&&this.props.sourceTree==="BUILT_PRODUCTS_DIR")}getTargetReferrers(){return this.getReferrers().filter(($)=>{return vE($)&&$.props.productReference?.uuid===this.uuid})}}w1.PBXFileReference=lZ;lZ.isa=NU.ISA.PBXFileReference;function vE($){return $.isa===NU.ISA.PBXNativeTarget}});var b$=A((B1)=>{var gE=B1&&B1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),hE=B1&&B1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),uE=B1&&B1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))gE(Z,$,Y)}return hE(Z,$),Z},PU=B1&&B1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(B1,"__esModule",{value:!0});B1.PBXGroup=B1.AbstractGroup=void 0;var m$=PU(k("assert")),DJ=PU(k("path")),mE=wZ(),cE=uE(l()),CJ=p9(),pE=Z1(),dE=u$();class MJ extends pE.AbstractObject{getObjectProps(){return{children:Array}}setupDefaults(){if(!this.props.children)this.props.children=[]}createGroup($){(0,m$.default)($.path||$.name,"A group must have a path or name");let Z=_0.create(this.getXcodeProject(),{...$});return this.props.children.push(Z),Z}mkdir($,{recursive:Z}={}){let Y=typeof $==="string"?$.split("/"):$;if(!Y.length)return this;let J=Y.shift(),K=this.getChildGroups().find((z)=>z.getDisplayName()===J);if(!K){if(!Z)return null;K=this.createGroup({path:J})}if(!$.length)return K;return K.mkdir(Y,{recursive:Z})}getChildGroups(){return this.props.children.filter(($)=>_0.is($))}createNewProductRefForTarget($,Z){let Y="";if(Z=="staticLibrary")Y="lib";let J=mE.PRODUCT_UTI_EXTENSIONS[Z],K=`${Y}${$}`;if(J)K+=`.${J}`;let z=iE(this,K,"BUILT_PRODUCTS_DIR");return z.props.includeInIndex=0,z.setExplicitFileType(),z}static move($,Z){(0,m$.default)(_0.is(Z),"newParent must be a PBXGroup"),(0,m$.default)($,`Attempt to move nullish object to "${Z.uuid}".`),(0,m$.default)(Z,`Attempt to move object "${$.uuid}" to nullish parent.`),(0,m$.default)(Z.uuid!==$.uuid,`Attempt to move object "${$.uuid}" to itself.`),(0,m$.default)(!(0,CJ.getParents)(Z).find((J)=>J.uuid===$.uuid),`Attempt to move object "${$.uuid}" to a child object "${Z.uuid}".`);let Y=$.getParent();if(_0.is(Y)){let J=Y.props.children.findIndex((K)=>K.uuid===$.uuid);if(J!==-1)Y.props.children.splice(J,1)}Z.props.children.push($)}getParent(){return(0,CJ.getParent)(this)}getParents(){return(0,CJ.getParents)(this)}getPath(){throw Error("TODO")}createFile($){let Z=dE.PBXFileReference.create(this.getXcodeProject(),$);return this.props.children.push(Z),Z}getDisplayName(){if(this.props.name)return this.props.name;else if(this.props.path)return DJ.default.basename(this.props.path);else if(this.uuid===this.project.props.mainGroup.uuid)return"Main Group";return this.isa.replace(/^(PBX|XC)/,"")}}B1.AbstractGroup=MJ;class _0 extends MJ{static is($){return $.isa===_0.isa}static create($,Z){return $.createModel({isa:_0.isa,children:[],sourceTree:"",...Z})}}B1.PBXGroup=_0;_0.isa=cE.ISA.PBXGroup;function lE($,Z,Y){return $.createFile({path:Z,sourceTree:Y})}function iE($,Z,Y){let J=(()=>{switch(DJ.default.extname(Z).toLowerCase()){case".xcdatamodeld":case".xcodeproj":throw Error("Unsupported file type: "+Z);default:return lE($,Z,Y)}})();return sE(J),J}function sE($){if($.props.path?.includes("/"))$.props.name=$.props.path.split("/").pop();if($.props.path&&DJ.default.extname($.props.path).toLowerCase()==".framework")$.props.includeInIndex=void 0}});var XJ=A((p$)=>{var nE=p$&&p$.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(p$,"__esModule",{value:!0});p$.IDEWorkspaceChecks=void 0;var iZ=k("fs"),CY=nE(k("path")),LJ=g8(),TJ="xcshareddata/IDEWorkspaceChecks.plist";class c${constructor($,Z){this.props=$,this.filePath=Z}static open($){let Z=CY.default.join($,TJ);if(!(0,iZ.existsSync)(Z))return null;let Y=(0,iZ.readFileSync)(Z,"utf-8"),J=(0,LJ.parseChecks)(Y);return new c$(J,Z)}static openOrCreate($){let Z=c$.open($);if(Z)return Z;let Y=CY.default.join($,TJ);return new c$({IDEDidComputeMac32BitWarning:!0},Y)}static create($){let Y={...{IDEDidComputeMac32BitWarning:!0},...$?.props};return new c$(Y,$?.filePath)}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");let Y=CY.default.dirname(Z);if(!(0,iZ.existsSync)(Y))(0,iZ.mkdirSync)(Y,{recursive:!0});let J=(0,LJ.buildChecks)(this.props);(0,iZ.writeFileSync)(Z,J,"utf-8"),this.filePath=Z}saveToWorkspace($){let Z=CY.default.join($,TJ);this.save(Z)}toPlist(){return(0,LJ.buildChecks)(this.props)}get mac32BitWarningComputed(){return this.props.IDEDidComputeMac32BitWarning??!1}set mac32BitWarningComputed($){this.props.IDEDidComputeMac32BitWarning=$}getCheck($){return this.props[$]}setCheck($,Z){this.props[$]=Z}removeCheck($){if($ in this.props)return delete this.props[$],!0;return!1}}p$.IDEWorkspaceChecks=c$});var yU=A((f1)=>{var rE=f1&&f1.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),aE=f1&&f1.__setModuleDefault||(Object.create?function($,Z){Object.defineProperty($,"default",{enumerable:!0,value:Z})}:function($,Z){$.default=Z}),oE=f1&&f1.__importStar||function($){if($&&$.__esModule)return $;var Z={};if($!=null){for(var Y in $)if(Y!=="default"&&Object.prototype.hasOwnProperty.call($,Y))rE(Z,$,Y)}return aE(Z,$),Z},tE=f1&&f1.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(f1,"__esModule",{value:!0});f1.XCWorkspace=void 0;var d$=k("fs"),DY=tE(k("path")),SJ=oE(h8()),NJ=XJ(),_U=t9();class MY{constructor($,Z,Y){this.name=$,this.props=Z,this.filePath=Y}static open($){let Z=DY.default.join($,"contents.xcworkspacedata");if(!(0,d$.existsSync)(Z))throw Error(`Invalid workspace: ${Z} does not exist`);let Y=(0,d$.readFileSync)(Z,"utf-8"),J=SJ.parse(Y),K=DY.default.basename($,".xcworkspace");return new MY(K,J,$)}static create($,Z){let J={...{version:"1.0",fileRefs:[]},...Z};return new MY($,J)}save($){let Z=$??this.filePath;if(!Z)throw Error("No file path specified. Either provide a path or set this.filePath.");if(!(0,d$.existsSync)(Z))(0,d$.mkdirSync)(Z,{recursive:!0});let Y=DY.default.join(Z,"contents.xcworkspacedata"),J=SJ.build(this.props);(0,d$.writeFileSync)(Y,J,"utf-8"),this.filePath=Z}toXML(){return SJ.build(this.props)}addProject($,Z="group"){if(!this.props.fileRefs)this.props.fileRefs=[];let Y=`${Z}:${$}`;if(this.props.fileRefs.find((K)=>K.location===Y))return;this.props.fileRefs.push({location:Y})}removeProject($){if(!this.props.fileRefs)return!1;let Z=this.props.fileRefs.length;return this.props.fileRefs=this.props.fileRefs.filter((Y)=>{return(Y.location.includes(":")?Y.location.split(":").slice(1).join(":"):Y.location)!==$&&Y.location!==$}),this.props.fileRefs.lengthZ.location));if(this.props.groups)for(let Z of this.props.groups)$.push(...this.collectPathsFromGroup(Z));return $}addGroup($,Z){if(!this.props.groups)this.props.groups=[];let Y=this.props.groups.find((K)=>K.name===$&&K.location===Z);if(Y)return Y;let J={name:$,location:Z,fileRefs:[]};return this.props.groups.push(J),J}getGroup($){return this.props.groups?.find((Z)=>Z.name===$)}removeGroup($){if(!this.props.groups)return!1;let Z=this.props.groups.length;return this.props.groups=this.props.groups.filter((Y)=>Y.name!==$),this.props.groups.length{return(Y.includes(":")?Y.split(":").slice(1).join(":"):Y)===$||Y===$})}getWorkspaceChecks(){if(!this.filePath)return null;return NJ.IDEWorkspaceChecks.open(this.filePath)}getOrCreateWorkspaceChecks(){if(!this.filePath)throw Error("Workspace must be saved before accessing workspace checks.");return NJ.IDEWorkspaceChecks.openOrCreate(this.filePath)}hasWorkspaceChecks(){if(!this.filePath)return!1;return NJ.IDEWorkspaceChecks.open(this.filePath)!==null}setMac32BitWarningComputed(){let $=this.getOrCreateWorkspaceChecks();$.mac32BitWarningComputed=!0,$.save()}collectPathsFromGroup($){let Z=[];if($.fileRefs)Z.push(...$.fileRefs.map((Y)=>Y.location));if($.groups)for(let Y of $.groups)Z.push(...this.collectPathsFromGroup(Y));return Z}getSharedDataDir(){if(!this.filePath)return;return DY.default.join(this.filePath,"xcshareddata")}getSharedData(){let $=this.getSharedDataDir();if($&&(0,d$.existsSync)($))return _U.XCSharedData.open($);let Z=_U.XCSharedData.create();if($)Z.filePath=$;return Z}}f1.XCWorkspace=MY});var bU=A((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.IDEWorkspaceChecks=b.XCWorkspace=b.XCSharedData=b.createBuildableReference=b.XCScheme=b.XCVersionGroup=b.XCSwiftPackageProductDependency=b.XCLocalSwiftPackageReference=b.XCRemoteSwiftPackageReference=b.XCConfigurationList=b.XCBuildConfiguration=b.AbstractObject=b.PBXTargetDependency=b.PBXVariantGroup=b.PBXSourcesBuildPhase=b.PBXShellScriptBuildPhase=b.PBXRezBuildPhase=b.PBXResourcesBuildPhase=b.PBXHeadersBuildPhase=b.PBXFrameworksBuildPhase=b.PBXCopyFilesBuildPhase=b.PBXAppleScriptBuildPhase=b.AbstractBuildPhase=b.PBXReferenceProxy=b.PBXProject=b.PBXNativeTarget=b.PBXLegacyTarget=b.PBXFileSystemSynchronizedRootGroup=b.PBXFileSystemSynchronizedBuildFileExceptionSet=b.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=b.PBXFileReference=b.PBXContainerItemProxy=b.PBXBuildRule=b.PBXBuildFile=b.PBXAggregateTarget=b.XcodeProject=b.AbstractGroup=b.PBXGroup=void 0;var xU=b$();Object.defineProperty(b,"PBXGroup",{enumerable:!0,get:function(){return xU.PBXGroup}});Object.defineProperty(b,"AbstractGroup",{enumerable:!0,get:function(){return xU.AbstractGroup}});var eE=wJ();Object.defineProperty(b,"XcodeProject",{enumerable:!0,get:function(){return eE.XcodeProject}});var $A=UJ();Object.defineProperty(b,"PBXAggregateTarget",{enumerable:!0,get:function(){return $A.PBXAggregateTarget}});var ZA=J$();Object.defineProperty(b,"PBXBuildFile",{enumerable:!0,get:function(){return ZA.PBXBuildFile}});var YA=OJ();Object.defineProperty(b,"PBXBuildRule",{enumerable:!0,get:function(){return YA.PBXBuildRule}});var JA=bZ();Object.defineProperty(b,"PBXContainerItemProxy",{enumerable:!0,get:function(){return JA.PBXContainerItemProxy}});var KA=u$();Object.defineProperty(b,"PBXFileReference",{enumerable:!0,get:function(){return KA.PBXFileReference}});var zA=KJ();Object.defineProperty(b,"PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",{enumerable:!0,get:function(){return zA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet}});var QA=JJ();Object.defineProperty(b,"PBXFileSystemSynchronizedBuildFileExceptionSet",{enumerable:!0,get:function(){return QA.PBXFileSystemSynchronizedBuildFileExceptionSet}});var GA=YJ();Object.defineProperty(b,"PBXFileSystemSynchronizedRootGroup",{enumerable:!0,get:function(){return GA.PBXFileSystemSynchronizedRootGroup}});var UA=qJ();Object.defineProperty(b,"PBXLegacyTarget",{enumerable:!0,get:function(){return UA.PBXLegacyTarget}});var qA=RY();Object.defineProperty(b,"PBXNativeTarget",{enumerable:!0,get:function(){return qA.PBXNativeTarget}});var HA=FJ();Object.defineProperty(b,"PBXProject",{enumerable:!0,get:function(){return HA.PBXProject}});var VA=BY();Object.defineProperty(b,"PBXReferenceProxy",{enumerable:!0,get:function(){return VA.PBXReferenceProxy}});var y0=p1();Object.defineProperty(b,"AbstractBuildPhase",{enumerable:!0,get:function(){return y0.AbstractBuildPhase}});Object.defineProperty(b,"PBXAppleScriptBuildPhase",{enumerable:!0,get:function(){return y0.PBXAppleScriptBuildPhase}});Object.defineProperty(b,"PBXCopyFilesBuildPhase",{enumerable:!0,get:function(){return y0.PBXCopyFilesBuildPhase}});Object.defineProperty(b,"PBXFrameworksBuildPhase",{enumerable:!0,get:function(){return y0.PBXFrameworksBuildPhase}});Object.defineProperty(b,"PBXHeadersBuildPhase",{enumerable:!0,get:function(){return y0.PBXHeadersBuildPhase}});Object.defineProperty(b,"PBXResourcesBuildPhase",{enumerable:!0,get:function(){return y0.PBXResourcesBuildPhase}});Object.defineProperty(b,"PBXRezBuildPhase",{enumerable:!0,get:function(){return y0.PBXRezBuildPhase}});Object.defineProperty(b,"PBXShellScriptBuildPhase",{enumerable:!0,get:function(){return y0.PBXShellScriptBuildPhase}});Object.defineProperty(b,"PBXSourcesBuildPhase",{enumerable:!0,get:function(){return y0.PBXSourcesBuildPhase}});var WA=$J();Object.defineProperty(b,"PBXVariantGroup",{enumerable:!0,get:function(){return WA.PBXVariantGroup}});var FA=kZ();Object.defineProperty(b,"PBXTargetDependency",{enumerable:!0,get:function(){return FA.PBXTargetDependency}});var OA=Z1();Object.defineProperty(b,"AbstractObject",{enumerable:!0,get:function(){return OA.AbstractObject}});var RA=PZ();Object.defineProperty(b,"XCBuildConfiguration",{enumerable:!0,get:function(){return RA.XCBuildConfiguration}});var IA=WY();Object.defineProperty(b,"XCConfigurationList",{enumerable:!0,get:function(){return IA.XCConfigurationList}});var EA=EY();Object.defineProperty(b,"XCRemoteSwiftPackageReference",{enumerable:!0,get:function(){return EA.XCRemoteSwiftPackageReference}});var AA=AY();Object.defineProperty(b,"XCLocalSwiftPackageReference",{enumerable:!0,get:function(){return AA.XCLocalSwiftPackageReference}});var wA=OY();Object.defineProperty(b,"XCSwiftPackageProductDependency",{enumerable:!0,get:function(){return wA.XCSwiftPackageProductDependency}});var BA=ZJ();Object.defineProperty(b,"XCVersionGroup",{enumerable:!0,get:function(){return BA.XCVersionGroup}});var kU=a9();Object.defineProperty(b,"XCScheme",{enumerable:!0,get:function(){return kU.XCScheme}});Object.defineProperty(b,"createBuildableReference",{enumerable:!0,get:function(){return kU.createBuildableReference}});var CA=t9();Object.defineProperty(b,"XCSharedData",{enumerable:!0,get:function(){return CA.XCSharedData}});var DA=yU();Object.defineProperty(b,"XCWorkspace",{enumerable:!0,get:function(){return DA.XCWorkspace}});var MA=XJ();Object.defineProperty(b,"IDEWorkspaceChecks",{enumerable:!0,get:function(){return MA.IDEWorkspaceChecks}})});var fU=A((K$)=>{var TA=K$&&K$.__createBinding||(Object.create?function($,Z,Y,J){if(J===void 0)J=Y;var K=Object.getOwnPropertyDescriptor(Z,Y);if(!K||("get"in K?!Z.__esModule:K.writable||K.configurable))K={enumerable:!0,get:function(){return Z[Y]}};Object.defineProperty($,J,K)}:function($,Z,Y,J){if(J===void 0)J=Y;$[J]=Z[Y]}),XA=K$&&K$.__exportStar||function($,Z){for(var Y in $)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(Z,Y))TA(Z,$,Y)};Object.defineProperty(K$,"__esModule",{value:!0});XA(bU(),K$)});var k0=l$(m7(),1);import{existsSync as dU}from"fs";import{join as G$,resolve as cA,dirname as pA}from"path";import{fileURLToPath as dA}from"url";import{parseArgs as lA}from"util";class Y8{rawTemplates;constructor($){this.rawTemplates=new Map(Object.entries($))}getAncestorChain($){let Z=new Set,Y=[],J=(K)=>{if(Z.has(K))return;Z.add(K);let z=this.rawTemplates.get(K);if(!z)return;for(let Q of z.info.Ancestors||[])J(Q);Y.push(K)};return J($),Y}resolve($,Z){let Y=this.getAncestorChain($),J=this.rawTemplates.get($);if(!J)throw Error(`Template not found: ${$}`);let K=[],z={},Q={},U={},G={},H={},V={},I="com.apple.product-type.application",E=["Sources","Frameworks","Resources"],w={},T=[];for(let D of Y){let S=this.rawTemplates.get(D);if(!S)continue;let P=S.info;if(P.Project){if(Object.assign(z,P.Project.SharedSettings||{}),P.Project.Configurations)Object.assign(Q,P.Project.Configurations.Debug||{}),Object.assign(U,P.Project.Configurations.Release||{})}if(P.Targets)for(let R of P.Targets){if(R.ProductType)I=R.ProductType;if(R.BuildPhases)E=R.BuildPhases.map((W)=>W.Class||W);if(Object.assign(G,R.SharedSettings||{}),R.Configurations)Object.assign(H,R.Configurations.Debug||{}),Object.assign(V,R.Configurations.Release||{})}if(P.Definitions)Object.assign(w,P.Definitions);if(P.Nodes)T.push(...P.Nodes);if(P.Options)for(let R of P.Options)this.mergeOption(K,R,Z,w,T,G,H,V,z,Q,U)}for(let D of K)if(D._override)Z[D.identifier]=D._override;let X=this.resolveFiles(T,w,Y,$);return{id:$,name:J.name,description:J.info.Description||"",platform:J.platform,category:J.category,options:K.filter((D)=>!D.notPersisted||D.identifier==="productName"),productType:I,buildPhases:E,projectSharedSettings:z,projectDebugSettings:Q,projectReleaseSettings:U,targetSharedSettings:G,targetDebugSettings:H,targetReleaseSettings:V,files:X,templateFilesDir:""}}mergeOption($,Z,Y,J,K,z,Q,U,G,H,V){let I=Z.Identifier;if(!I)return;if(Z.Override){let w=$.find((T)=>T.identifier===I);if(w)w._override=Z.Override;else{let T=this.parseOption(Z);T._override=Z.Override,$.push(T)}Y[I]=Z.Override}let E=$.find((w)=>w.identifier===I);if(!E&&Z.Type)$.push(this.parseOption(Z));else if(!E&&Z.Values)$.push(this.parseOption({...Z,Type:"popup"}));if(Z.Units){let w=Y[I];if(w&&Z.Units[w]){let T=Z.Units[w],X=Array.isArray(T)?T:[T];for(let D of X){if(D.RequiredOptions){let S=!0;for(let[P,R]of Object.entries(D.RequiredOptions))if(Y[P]!==R){S=!1;break}if(!S)continue}if(D.Definitions)Object.assign(J,D.Definitions);if(D.Nodes)K.push(...D.Nodes);if(D.Targets){for(let S of D.Targets)if(Object.assign(z,S.SharedSettings||{}),S.Configurations)Object.assign(Q,S.Configurations.Debug||{}),Object.assign(U,S.Configurations.Release||{})}if(D.Project){if(Object.assign(G,D.Project.SharedSettings||{}),D.Project.Configurations)Object.assign(H,D.Project.Configurations.Debug||{}),Object.assign(V,D.Project.Configurations.Release||{})}}}}}parseOption($){return{identifier:$.Identifier,name:$.Name?.replace(/:$/,""),description:$.Description,type:($.Type||"popup").toLowerCase(),default:$.Default,values:$.Values||$.ValueTitles,required:$.Required,notPersisted:$.NotPersisted}}resolveFiles($,Z,Y,J){let K=new Map;for(let z of $){if(z.includes(":")&&!z.includes("___")){if(z.split(":")[0].includes("."))continue}let Q=Z[z],U=z,G=50;if(Q&&typeof Q==="object")U=Q.Path||z,G=Q.SortOrder??50;let H=J;for(let V of[...Y].reverse()){let I=this.rawTemplates.get(V);if(I?.sourceFiles?.includes(U)){H=V;break}if(I?.sourceFiles?.some((E)=>E===U||U.startsWith(E+"/"))){H=V;break}}K.set(z,{name:z,sourcePath:U,sortOrder:G,sourceTemplateId:H})}return[...K.values()].sort((z,Q)=>z.sortOrder-Q.sortOrder)}}var hU=l$(V8(),1),uU=l$(h8(),1),mU=l$(u9(),1),C1=l$(fU(),1);import{existsSync as jA,mkdirSync as z$,statSync as PA,cpSync as _A,readFileSync as yA,writeFileSync as Q$}from"node:fs";import{join as z1,extname as vU,basename as gU}from"node:path";import{execSync as xA}from"node:child_process";function TY($,Z){return $.replace(/___FILEHEADER___/g,SA(Z)).replace(/___PACKAGENAME:identifier___/g,LY(Z.productName)).replace(/___PACKAGENAME:rfc1034identifier___/g,x0(Z.productName)).replace(/___PACKAGENAMEASIDENTIFIER___/g,LY(Z.productName)).replace(/___PACKAGENAMEASRFC1034IDENTIFIER___/g,x0(Z.productName)).replace(/___PACKAGENAMEASXML___/g,NA(Z.productName)).replace(/___PACKAGENAME___/g,Z.productName).replace(/___PROJECTNAME___/g,Z.productName).replace(/___VARIABLE_bundleIdentifierPrefix:bundleIdentifier___/g,x0(Z.bundleIdentifierPrefix)).replace(/___VARIABLE_bundleIdentifierPrefix___/g,Z.bundleIdentifierPrefix).replace(/___VARIABLE_productName:RFC1034Identifier___/g,x0(Z.productName)).replace(/___VARIABLE_productName___/g,Z.productName).replace(/___VARIABLE_ORGANIZATIONNAME___/g,Z.organizationName??"").replace(/___ORGANIZATIONNAME___/g,Z.organizationName??"").replace(/___DATE___/g,Z.date).replace(/___YEAR___/g,Z.year).replace(/___FULLUSERNAME___/g,Z.fullUserName).replace(/___COPYRIGHT___/g,Z.copyright).replace(/___VARIABLE_bundleIdentifier___/g,`${x0(Z.bundleIdentifierPrefix)}.${x0(Z.productName)}`)}function SA($){return` // ___FILENAME___ // ${$.productName} // // Created by ${$.fullUserName} on ${$.date}. // ${$.copyright} -//`}function o0($){let Y=$.replace(/[^a-zA-Z0-9_]/g,"_");if(/^[0-9]/.test(Y))Y="_"+Y;return Y}function h1($){return $.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function HW($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var AW={swift:"sourcecode.swift",m:"sourcecode.c.objc",mm:"sourcecode.cpp.objcpp",c:"sourcecode.c.c",cpp:"sourcecode.cpp.cpp",h:"sourcecode.c.h",hpp:"sourcecode.cpp.h",metal:"sourcecode.metal",storyboard:"file.storyboard",xib:"file.xib",plist:"text.plist.xml",entitlements:"text.plist.entitlements",xcassets:"folder.assetcatalog",xcdatamodeld:"wrapper.xcdatamodeld",xcdatamodel:"wrapper.xcdatamodel",strings:"text.plist.strings",stringsdict:"text.plist.stringsdict",json:"text.json",js:"sourcecode.javascript",png:"image.png",jpg:"image.jpeg",gif:"image.gif",pdf:"image.pdf",ttf:"file",otf:"file"};function EW($){let Y=t0($).slice(1).toLowerCase();return AW[Y]}function CW($){let Y=t0($).slice(1).toLowerCase();return["swift","m","mm","c","cpp","metal"].includes(Y)}function jW($){let Y=t0($).slice(1).toLowerCase();return["xcassets","storyboard","xib","xcdatamodeld","strings","stringsdict","json","png","jpg","gif","pdf","ttf","otf","sks","scnassets","usdz"].includes(Y)}function kW($){return RW("md5").update($).digest("hex").slice(0,24).toUpperCase()}var iz=0;function a($){return kW(`${$}_${iz++}_${Date.now()}`)}function XW(){try{return PW("id -F",{encoding:"utf-8"}).trim()||"Unknown"}catch{return"Unknown"}}async function rz($){iz=0;let{name:Y,outputDir:Z,organizationIdentifier:J,organizationName:K,config:z,templateFilesBase:Q}=$,W=n(Z,Y),G=n(W,`${Y}.xcodeproj`),q=n(W,Y),H=n(G,"project.xcworkspace");K0(G,{recursive:!0}),K0(q,{recursive:!0}),K0(H,{recursive:!0});let R=new Date,P={productName:Y,bundleIdentifierPrefix:J,organizationName:K||"",fullUserName:XW(),date:`${R.getMonth()+1}/${R.getDate()}/${R.getFullYear()%100}`,year:String(R.getFullYear()),copyright:K?`Copyright © ${R.getFullYear()} ${K}. All rights reserved.`:""},j=await IW(z,P,q,Q),{pbxproj:w,targetUUID:T}=_W(Y,z,P,j);z0(n(G,"project.pbxproj"),w);let I=lz.build({version:"1.0",children:[{type:"FileRef",location:"self:"}]});z0(n(H,"contents.xcworkspacedata"),I);let D=n(G,"xcshareddata","xcschemes");K0(D,{recursive:!0});let y=TW(Y,z,T);return z0(n(D,`${Y}.xcscheme`),y),W}async function IW($,Y,Z,J){let K=[];for(let G of $.files){let q=i$(G.name,Y),H=G.sourceTemplateId.replace(/\./g,"_"),R=n(J,H),P=n(R,G.sourcePath),j=n(Z,q);if(BW(P))if(FW(P).isDirectory()){let T=i$(G.sourcePath,Y),I=n(Z,q);UW(P,I,{recursive:!0}),K.push({relativePath:q,filename:q,isDirectory:!0})}else{let T=OW(P,"utf-8"),I=i$(T,Y);I=I.replace(/___FILENAME___/g,q),I=I.replace(/___FILEBASENAME___/g,pz(q,t0(q))),I=I.replace(/___FILEBASENAMEASIDENTIFIER___/g,o0(pz(q,t0(q)))),z0(j,I),K.push({relativePath:q,filename:q,isDirectory:!1})}}let z=n(Z,"Assets.xcassets");K0(z,{recursive:!0}),z0(n(z,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let Q=n(z,"AppIcon.appiconset");K0(Q,{recursive:!0}),z0(n(Q,"Contents.json"),JSON.stringify(wW($.platform),null,2));let W=n(z,"AccentColor.colorset");if(K0(W,{recursive:!0}),z0(n(W,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),!K.some((G)=>G.filename==="Assets.xcassets"))K.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0});return K}function wW($){let Y={author:"xcode",version:1};switch($){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:Y};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:Y};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:Y};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:Y};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Y}}}function _W($,Y,Z,J){let K=o0($),z=`${h1(Z.bundleIdentifierPrefix)}.${h1($)}`,Q=a("rootProject"),W=a("mainGroup"),G=a("sourcesGroup"),q=a("productsGroup"),H=a("productRef"),R=a("target"),P=a("projectConfigList"),j=a("targetConfigList"),w=a("projectDebugConfig"),T=a("projectReleaseConfig"),I=a("targetDebugConfig"),D=a("targetReleaseConfig"),y=a("sourcesBuildPhase"),O=a("frameworksBuildPhase"),B=a("resourcesBuildPhase"),V=DW(Y.platform),U={},E={},X=[],F=[];for(let L of J){let p=a(`ref_${L.filename}`),u1=a(`build_${L.filename}`);if(U[L.filename]=p,E[L.filename]=u1,L.isDirectory||jW(L.filename))F.push(L.filename);else if(CW(L.filename))X.push(L.filename)}let A={...Y.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},k={...Y.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},S={...Y.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},M={...V.targetSettings,...Y.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:z,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:$,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor"};Object.assign(M,V.deploymentTarget);let h={...Y.targetDebugSettings},c={...Y.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},_={};_[w]={isa:"XCBuildConfiguration",buildSettings:{...A,...k},name:"Debug"},_[T]={isa:"XCBuildConfiguration",buildSettings:{...A,...S},name:"Release"},_[P]={isa:"XCConfigurationList",buildConfigurations:[w,T],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"},_[I]={isa:"XCBuildConfiguration",buildSettings:{...M,...h},name:"Debug"},_[D]={isa:"XCBuildConfiguration",buildSettings:{...M,...c},name:"Release"},_[j]={isa:"XCConfigurationList",buildConfigurations:[I,D],defaultConfigurationIsVisible:0,defaultConfigurationName:"Release"};for(let L of J){let p=U[L.filename],u1=EW(L.filename);if(_[p]={isa:"PBXFileReference",lastKnownFileType:u1,path:L.filename,sourceTree:""},L.filename.endsWith(".swift"))_[p].lastKnownFileType="sourcecode.swift"}_[H]={isa:"PBXFileReference",explicitFileType:"wrapper.application",includeInIndex:0,path:`${$}.app`,sourceTree:"BUILT_PRODUCTS_DIR"};for(let L of X)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};for(let L of F)_[E[L]]={isa:"PBXBuildFile",fileRef:U[L]};return _[y]={isa:"PBXSourcesBuildPhase",buildActionMask:2147483647,files:X.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[O]={isa:"PBXFrameworksBuildPhase",buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},_[B]={isa:"PBXResourcesBuildPhase",buildActionMask:2147483647,files:F.map((L)=>E[L]),runOnlyForDeploymentPostprocessing:0},_[G]={isa:"PBXGroup",children:J.map((L)=>U[L.filename]),path:$,sourceTree:""},_[q]={isa:"PBXGroup",children:[H],name:"Products",sourceTree:""},_[W]={isa:"PBXGroup",children:[G,q],sourceTree:""},_[R]={isa:"PBXNativeTarget",buildConfigurationList:j,buildPhases:[y,O,B],buildRules:[],dependencies:[],name:$,productName:$,productReference:H,productType:Y.productType},_[Q]={isa:"PBXProject",attributes:{BuildIndependentTargetsInParallel:1,LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[R]:{CreatedOnToolsVersion:"16.2"}}},buildConfigurationList:P,compatibilityVersion:"Xcode 14.0",developmentRegion:"en",hasScannedForEncodings:0,knownRegions:["en","Base"],mainGroup:W,productRefGroup:q,projectDirPath:"",projectRoot:"",targets:[R]},{pbxproj:dz.build({archiveVersion:1,objectVersion:56,classes:{},objects:_,rootObject:Q}),targetUUID:R}}function DW($){switch($){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function TW($,Y,Z){let J={buildableIdentifier:"primary",blueprintIdentifier:Z,buildableName:`${$}.app`,blueprintName:$,referencedContainer:`container:${$}.xcodeproj`};return sz.build({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:J}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var r$;function oz(){let $=[Q0(MW(LW(import.meta.url)),"..","templates"),Q0(process.argv[0]??".","..","templates"),Q0(process.cwd(),"templates")];for(let Y of $)if(az(Q0(Y,"manifest.json")))return Y;throw Error("Template manifest not found. Run `npx tsx scripts/extract-templates.ts` first.")}function tz(){if(r$)return r$;let $=oz();return r$=JSON.parse(_1("fs").readFileSync(Q0($,"manifest.json"),"utf-8")),r$}function NW(){return Q0(oz(),"files")}function yW(){console.log(` +//`}function LY($){let Z=$.replace(/[^a-zA-Z0-9_]/g,"_");if(/^[0-9]/.test(Z))Z="_"+Z;return Z}function x0($){return $.replace(/[^a-zA-Z0-9.-]/g,"-").replace(/^-+|-+$/g,"").toLowerCase()}function NA($){return $.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function kA($){return $?.startsWith("sourcecode.")??!1}function bA($){if(!$)return!1;return $.startsWith("image.")||$.startsWith("audio.")||$.startsWith("video.")||$.startsWith("text.plist.strings")||$.startsWith("text.plist.stringsdict")||$.startsWith("text.json")||$==="folder.assetcatalog"||$==="file.storyboard"||$==="file.xib"||$==="file"||$.startsWith("wrapper.xcdatamodel")}function fA(){try{return xA("id -F",{encoding:"utf-8"}).trim()||"Unknown"}catch{return"Unknown"}}async function cU($){let{name:Z,outputDir:Y,organizationIdentifier:J,organizationName:K,config:z,templateFilesBase:Q}=$,U=z1(Y,Z),G=z1(U,`${Z}.xcodeproj`),H=z1(U,Z),V=z1(G,"project.xcworkspace");z$(G,{recursive:!0}),z$(H,{recursive:!0}),z$(V,{recursive:!0});let I=new Date,E={productName:Z,bundleIdentifierPrefix:J,organizationName:K||"",fullUserName:fA(),date:`${I.getMonth()+1}/${I.getDate()}/${I.getFullYear()%100}`,year:String(I.getFullYear()),copyright:K?`Copyright © ${I.getFullYear()} ${K}. All rights reserved.`:""},w=await vA(z,E,H,Q),{pbxproj:T,targetUUID:X}=hA(Z,z,E,w);Q$(z1(G,"project.pbxproj"),T);let D=uU.build({version:"1.0",children:[{type:"FileRef",location:"self:"}]});Q$(z1(V,"contents.xcworkspacedata"),D);let S=z1(G,"xcshareddata","xcschemes");z$(S,{recursive:!0});let P=mA(Z,z,X);return Q$(z1(S,`${Z}.xcscheme`),P),U}async function vA($,Z,Y,J){let K=[];for(let G of $.files){let H=TY(G.name,Z),V=G.sourceTemplateId.replace(/\./g,"_"),I=z1(J,V),E=z1(I,G.sourcePath),w=z1(Y,H);if(jA(E))if(PA(E).isDirectory()){let X=TY(G.sourcePath,Z),D=z1(Y,H);_A(E,D,{recursive:!0}),K.push({relativePath:H,filename:H,isDirectory:!0})}else{let X=yA(E,"utf-8"),D=TY(X,Z);D=D.replace(/___FILENAME___/g,H),D=D.replace(/___FILEBASENAME___/g,gU(H,vU(H))),D=D.replace(/___FILEBASENAMEASIDENTIFIER___/g,LY(gU(H,vU(H)))),Q$(w,D),K.push({relativePath:H,filename:H,isDirectory:!1})}}let z=z1(Y,"Assets.xcassets");z$(z,{recursive:!0}),Q$(z1(z,"Contents.json"),JSON.stringify({info:{author:"xcode",version:1}},null,2));let Q=z1(z,"AppIcon.appiconset");z$(Q,{recursive:!0}),Q$(z1(Q,"Contents.json"),JSON.stringify(gA($.platform),null,2));let U=z1(z,"AccentColor.colorset");if(z$(U,{recursive:!0}),Q$(z1(U,"Contents.json"),JSON.stringify({colors:[{idiom:"universal"}],info:{author:"xcode",version:1}},null,2)),!K.some((G)=>G.filename==="Assets.xcassets"))K.push({relativePath:"Assets.xcassets",filename:"Assets.xcassets",isDirectory:!0});return K}function gA($){let Z={author:"xcode",version:1};switch($){case"ios":return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Z};case"macos":return{images:[{idiom:"mac",scale:"1x",size:"16x16"},{idiom:"mac",scale:"2x",size:"16x16"},{idiom:"mac",scale:"1x",size:"32x32"},{idiom:"mac",scale:"2x",size:"32x32"},{idiom:"mac",scale:"1x",size:"128x128"},{idiom:"mac",scale:"2x",size:"128x128"},{idiom:"mac",scale:"1x",size:"256x256"},{idiom:"mac",scale:"2x",size:"256x256"},{idiom:"mac",scale:"1x",size:"512x512"},{idiom:"mac",scale:"2x",size:"512x512"}],info:Z};case"watchos":return{images:[{idiom:"watch",size:"1024x1024"}],info:Z};case"tvos":return{images:[{idiom:"tv",layers:[{filename:""}],scale:"1x",size:"1280x768"}],info:Z};case"visionos":return{images:[{idiom:"reality",platform:"xros",size:"1024x1024"}],info:Z};default:return{images:[{idiom:"universal",platform:"ios",size:"1024x1024"}],info:Z}}}function hA($,Z,Y,J){let K=`${x0(Y.bundleIdentifierPrefix)}.${x0($)}`,z=uA(Z.platform),Q={...Z.projectSharedSettings,LOCALIZATION_PREFERS_STRING_CATALOGS:"YES",ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS:"YES",CLANG_CXX_LANGUAGE_STANDARD:"gnu++20",GCC_C_LANGUAGE_STANDARD:"gnu17",CLANG_ENABLE_MODULES:"YES",CLANG_ENABLE_OBJC_ARC:"YES",CLANG_ENABLE_OBJC_WEAK:"YES",CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:"YES",CLANG_WARN_BOOL_CONVERSION:"YES",CLANG_WARN_COMMA:"YES",CLANG_WARN_CONSTANT_CONVERSION:"YES",CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:"YES",CLANG_WARN_DIRECT_OBJC_ISA_USAGE:"YES_ERROR",CLANG_WARN_DOCUMENTATION_COMMENTS:"YES",CLANG_WARN_EMPTY_BODY:"YES",CLANG_WARN_ENUM_CONVERSION:"YES",CLANG_WARN_INFINITE_RECURSION:"YES",CLANG_WARN_INT_CONVERSION:"YES",CLANG_WARN_NON_LITERAL_NULL_CONVERSION:"YES",CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:"YES",CLANG_WARN_OBJC_LITERAL_CONVERSION:"YES",CLANG_WARN_OBJC_ROOT_CLASS:"YES_ERROR",CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:"YES",CLANG_WARN_RANGE_LOOP_ANALYSIS:"YES",CLANG_WARN_STRICT_PROTOTYPES:"YES",CLANG_WARN_SUSPICIOUS_MOVE:"YES",CLANG_WARN_UNGUARDED_AVAILABILITY:"YES_AGGRESSIVE",CLANG_WARN_UNREACHABLE_CODE:"YES",CLANG_WARN__DUPLICATE_METHOD_MATCH:"YES",CLANG_ANALYZER_NONNULL:"YES",CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:"YES_AGGRESSIVE",COPY_PHASE_STRIP:"NO",ENABLE_STRICT_OBJC_MSGSEND:"YES",ENABLE_USER_SCRIPT_SANDBOXING:"YES",GCC_NO_COMMON_BLOCKS:"YES",GCC_WARN_64_TO_32_BIT_CONVERSION:"YES",GCC_WARN_ABOUT_RETURN_TYPE:"YES_ERROR",GCC_WARN_UNDECLARED_SELECTOR:"YES",GCC_WARN_UNINITIALIZED_AUTOS:"YES_AGGRESSIVE",GCC_WARN_UNUSED_FUNCTION:"YES",GCC_WARN_UNUSED_VARIABLE:"YES",MTL_FAST_MATH:"YES",ALWAYS_SEARCH_USER_PATHS:"NO"},U={...Q,...Z.projectDebugSettings,DEBUG_INFORMATION_FORMAT:"dwarf",ENABLE_TESTABILITY:"YES",GCC_DYNAMIC_NO_PIC:"NO",GCC_OPTIMIZATION_LEVEL:"0",GCC_PREPROCESSOR_DEFINITIONS:["DEBUG=1","$(inherited)"],MTL_ENABLE_DEBUG_INFO:"INCLUDE_SOURCE",ONLY_ACTIVE_ARCH:"YES",SWIFT_ACTIVE_COMPILATION_CONDITIONS:"DEBUG $(inherited)",SWIFT_OPTIMIZATION_LEVEL:"-Onone"},G={...Q,...Z.projectReleaseSettings,DEBUG_INFORMATION_FORMAT:"dwarf-with-dsym",ENABLE_NS_ASSERTIONS:"NO",MTL_ENABLE_DEBUG_INFO:"NO",SWIFT_COMPILATION_MODE:"wholemodule"},H={...z.targetSettings,...Z.targetSharedSettings,PRODUCT_NAME:"$(TARGET_NAME)",PRODUCT_BUNDLE_IDENTIFIER:K,SWIFT_EMIT_LOC_STRINGS:"YES",SWIFT_VERSION:"5.0",GENERATE_INFOPLIST_FILE:"YES",CURRENT_PROJECT_VERSION:"1",MARKETING_VERSION:"1.0",INFOPLIST_KEY_CFBundleDisplayName:$,ASSETCATALOG_COMPILER_APPICON_NAME:"AppIcon",ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME:"AccentColor",SWIFT_APPROACHABLE_CONCURRENCY:"YES",SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY:"YES",SWIFT_DEFAULT_ACTOR_ISOLATION:"MainActor",...z.deploymentTarget},V={...H,...Z.targetDebugSettings},I={...H,...Z.targetReleaseSettings,VALIDATE_PRODUCT:"YES"},E="00000000000000000000ROOT",w=new C1.XcodeProject("project.pbxproj",{archiveVersion:1,objectVersion:56,classes:{},objects:{["00000000000000000000ROOT"]:{isa:"PBXProject",buildConfigurationList:"PLACEHOLDER",mainGroup:"PLACEHOLDER",targets:[],compatibilityVersion:"Xcode 14.0",attributes:{BuildIndependentTargetsInParallel:"YES",LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{}}}},rootObject:"00000000000000000000ROOT"}),T=C1.PBXGroup.create(w,{sourceTree:""}),X=T.createGroup({path:$,sourceTree:""}),D=T.createGroup({name:"Products",sourceTree:""}),S=D.createFile({explicitFileType:"wrapper.application",includeInIndex:0,path:`${$}.app`,sourceTree:"BUILT_PRODUCTS_DIR"}),P=C1.PBXNativeTarget.create(w,{name:$,productName:$,productType:Z.productType,buildConfigurationList:C1.XCConfigurationList.create(w,{buildConfigurations:[C1.XCBuildConfiguration.create(w,{name:"Debug",buildSettings:V}),C1.XCBuildConfiguration.create(w,{name:"Release",buildSettings:I})],defaultConfigurationName:"Release"}),productReference:S}),R=P.getSourcesBuildPhase();P.getFrameworksBuildPhase();let W=P.getResourcesBuildPhase();for(let O of J){let C=X.createFile({path:O.filename,sourceTree:""}),L=C.props.lastKnownFileType;if(O.isDirectory||bA(L))W.createFile({fileRef:C});else if(kA(L))R.createFile({fileRef:C})}let q=w.rootObject;return q.props.buildConfigurationList=C1.XCConfigurationList.create(w,{buildConfigurations:[C1.XCBuildConfiguration.create(w,{name:"Debug",buildSettings:U}),C1.XCBuildConfiguration.create(w,{name:"Release",buildSettings:G})],defaultConfigurationName:"Release"}),q.props.mainGroup=T,q.props.productRefGroup=D,q.props.targets=[P],q.props.attributes={BuildIndependentTargetsInParallel:"YES",LastSwiftUpdateCheck:"1620",LastUpgradeCheck:"1620",TargetAttributes:{[P.uuid]:{CreatedOnToolsVersion:"16.2"}}},{pbxproj:hU.build(w.toJSON()),targetUUID:P.uuid}}function uA($){switch($){case"ios":return{targetSettings:{SDKROOT:"iphoneos",TARGETED_DEVICE_FAMILY:"1,2",INFOPLIST_KEY_UIApplicationSceneManifest_Generation:"YES",INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents:"YES",INFOPLIST_KEY_UILaunchScreen_Generation:"YES",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone:"UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad:"UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0"}};case"macos":return{targetSettings:{SDKROOT:"macosx",COMBINE_HIDPI_IMAGES:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES",ENABLE_HARDENED_RUNTIME:"YES"},deploymentTarget:{MACOSX_DEPLOYMENT_TARGET:"15.0"}};case"tvos":return{targetSettings:{SDKROOT:"appletvos",TARGETED_DEVICE_FAMILY:"3",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{TVOS_DEPLOYMENT_TARGET:"18.0"}};case"watchos":return{targetSettings:{SDKROOT:"watchos",TARGETED_DEVICE_FAMILY:"4",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES",SKIP_INSTALL:"YES"},deploymentTarget:{WATCHOS_DEPLOYMENT_TARGET:"11.0"}};case"visionos":return{targetSettings:{SDKROOT:"xros",TARGETED_DEVICE_FAMILY:"7",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{XROS_DEPLOYMENT_TARGET:"2.0"}};case"multiplatform":return{targetSettings:{SUPPORTED_PLATFORMS:"iphoneos iphonesimulator macosx appletvos appletvsimulator watchos watchsimulator xros xrsimulator",SUPPORTS_MACCATALYST:"YES",SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD:"YES",SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD:"YES",LD_RUNPATH_SEARCH_PATHS:"$(inherited) @executable_path/Frameworks @executable_path/../Frameworks",ENABLE_PREVIEWS:"YES"},deploymentTarget:{IPHONEOS_DEPLOYMENT_TARGET:"18.0",MACOSX_DEPLOYMENT_TARGET:"15.0"}};default:return{targetSettings:{},deploymentTarget:{}}}}function mA($,Z,Y){let J={buildableIdentifier:"primary",blueprintIdentifier:Y,buildableName:`${$}.app`,blueprintName:$,referencedContainer:`container:${$}.xcodeproj`};return mU.build({lastUpgradeVersion:"1620",version:"1.7",buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[{buildForTesting:!0,buildForRunning:!0,buildForProfiling:!0,buildForArchiving:!0,buildForAnalyzing:!0,buildableReference:J}]},testAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",shouldUseLaunchSchemeArgsEnv:!0},launchAction:{buildConfiguration:"Debug",selectedDebuggerIdentifier:"Xcode.DebuggerFoundation.Debugger.LLDB",selectedLauncherIdentifier:"Xcode.DebuggerFoundation.Launcher.LLDB",launchStyle:"0",useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:"internal",allowLocationSimulation:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},profileAction:{buildConfiguration:"Release",shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:"",useCustomWorkingDirectory:!1,debugDocumentVersioning:!0,buildableProductRunnable:{runnableDebuggingMode:"0",buildableReference:J}},analyzeAction:{buildConfiguration:"Debug"},archiveAction:{buildConfiguration:"Release",revealArchiveInOrganizer:!0}})}var XY;function lU(){let $=[G$(pA(dA(import.meta.url)),"..","templates"),G$(process.argv[0]??".","..","templates"),G$(process.cwd(),"templates")];for(let Z of $)if(dU(G$(Z,"manifest.json")))return Z;throw Error("Template manifest not found. Run `bun scripts/extract-templates.ts` first.")}function iU(){if(XY)return XY;let $=lU();return XY=JSON.parse(k("fs").readFileSync(G$($,"manifest.json"),"utf-8")),XY}function iA(){return G$(lU(),"files")}function sA(){console.log(` \x1B[1mcreate-xcode\x1B[0m - Create Xcode projects from the command line \x1B[1mUSAGE\x1B[0m @@ -142,9 +151,9 @@ ${Z}`]}function l4($,Y){let Z=[],J=s4(Y),K=[];if($.location!==void 0)K create-xcode MyApp -p ios --storage swiftdata --testing swift-testing create-xcode --list --platform ios create-xcode MyApp -y --org com.example -`.trim())}function bW($){let Y=tz(),Z=Y.templates.filter((z)=>!$||z.platform===$);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${Y.xcodeVersion}) -`);let J="",K="";for(let z of Z){if(z.platform!==J)J=z.platform,console.log(`\x1B[1m\x1B[36m${J}\x1B[0m`),K="";if(z.category!==K)K=z.category,console.log(` \x1B[33m${K}\x1B[0m`);console.log(` ${z.name}\x1B[2m - ${z.description}\x1B[0m`),console.log(` \x1B[2mid: ${z.id}\x1B[0m`)}}function nz($,Y,Z){let J=$.filter((Q)=>Q.platform===Y);if(!Z||Z==="app")return J.find((Q)=>Q.category==="Application"&&(Q.name==="App"||Q.name.includes("SwiftUI App")||Q.name===`${Y} App`))||J.find((Q)=>Q.category==="Application");let K=J.find((Q)=>Q.id===Z);if(K)return K;let z=Z.toLowerCase();return J.find((Q)=>Q.name.toLowerCase()===z)||J.find((Q)=>Q.name.toLowerCase().includes(z))}function t1(){process.exit(0)}async function gW(){let{values:$,positionals:Y}=xW({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});if($.help)yW(),process.exit(0);if($.list)bW($.platform),process.exit(0);let Z=$.yes||Y.length>0&&!process.stdin.isTTY,J=tz(),K=new IY(J.rawTemplates),z=$.platform||"ios";if(!$.platform&&!Z)z=(await v1.default({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map((U)=>({title:U,value:U})),initial:0},{onCancel:t1})).platform;let Q=nz(J.templates,z,$.template);if(!Q&&!Z){let B=J.templates.filter((U)=>U.platform===z&&U.category==="Application");if(B.length===0)console.error(`No application templates found for platform: ${z}`),process.exit(1);Q=(await v1.default({type:"select",name:"idx",message:"Template",choices:B.map((U)=>({title:U.name,description:U.description,value:U})),initial:0},{onCancel:t1})).idx}if(!Q){if(Q=nz(J.templates,z,"app"),!Q)console.error(`Template not found for platform "${z}". Use --list to see available templates.`),process.exit(1)}let W=(()=>{let B=process.cwd(),V=_1("path").basename(B);try{if(_1("fs").readdirSync(B).filter((E)=>!E.startsWith(".")).length===0&&V&&V!=="/"&&V!==".")return V}catch{}return"MyApp"})(),G=Y[0]??"";if(!G&&!Z)G=(await v1.default({type:"text",name:"name",message:"Project name",initial:W},{onCancel:t1})).name??"";if(!G)G=W;let q=$.org??"";if(!q&&!Z)q=(await v1.default({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:t1})).org??"";if(!q)q="com.example";let H=$["org-name"];if(!H&&!Z)H=(await v1.default({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:t1})).orgName;let R=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],P="None";if($.storage)P={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[$.storage.toLowerCase()]||$.storage;else if(!Z)P=(await v1.default({type:"select",name:"storage",message:"Storage",choices:R,initial:0},{onCancel:t1})).storage;let j=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],w="None";if($.testing)w={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[$.testing.toLowerCase()]||$.testing;else if(!Z)w=(await v1.default({type:"select",name:"testing",message:"Testing",choices:j,initial:0},{onCancel:t1})).testing;let T=SW($.output||"."),I={productName:G,bundleIdentifierPrefix:q,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:P,testingSystem:w};if($.verbose)console.log(` -Template:`,Q.name),console.log("ID:",Q.id),console.log("Selections:",I);let D=K.resolve(Q.id,I);if($.verbose)console.log("Files to generate:",D.files.map((B)=>B.name)),console.log("Product type:",D.productType);let y=Q0(T,G);if(az(y))if(!Z){if(!(await v1.default({type:"confirm",name:"overwrite",message:`Directory "${G}" already exists. Overwrite?`,initial:!1},{onCancel:t1})).overwrite)console.log("Aborted."),process.exit(0)}else console.error(`Error: Directory "${G}" already exists.`),process.exit(1);console.log(` -Creating ${Q.name} project "${G}" for ${z}...`);let O=await rz({name:G,outputDir:T,organizationIdentifier:q,organizationName:H,config:D,templateFilesBase:NW()});console.log(` -\x1B[32mProject created at ${O}\x1B[0m`),console.log(` -To open in Xcode:`),console.log(` open ${O}/${G}.xcodeproj`)}gW().catch(($)=>{if(console.error(`\x1B[31mError: ${$.message}\x1B[0m`),process.env.DEBUG)console.error($.stack);process.exit(1)}); +`.trim())}function nA($){let Z=iU(),Y=Z.templates.filter((z)=>!$||z.platform===$);console.log(`\x1B[1mAvailable templates\x1B[0m (Xcode ${Z.xcodeVersion}) +`);let J="",K="";for(let z of Y){if(z.platform!==J)J=z.platform,console.log(`\x1B[1m\x1B[36m${J}\x1B[0m`),K="";if(z.category!==K)K=z.category,console.log(` \x1B[33m${K}\x1B[0m`);console.log(` ${z.name}\x1B[2m - ${z.description}\x1B[0m`),console.log(` \x1B[2mid: ${z.id}\x1B[0m`)}}function pU($,Z,Y){let J=$.filter((Q)=>Q.platform===Z);if(!Y||Y==="app")return J.find((Q)=>Q.category==="Application"&&(Q.name==="App"||Q.name.includes("SwiftUI App")||Q.name===`${Z} App`))||J.find((Q)=>Q.category==="Application");let K=J.find((Q)=>Q.id===Y);if(K)return K;let z=Y.toLowerCase();return J.find((Q)=>Q.name.toLowerCase()===z)||J.find((Q)=>Q.name.toLowerCase().includes(z))}function r0(){process.exit(0)}async function rA(){let{values:$,positionals:Z}=lA({args:process.argv.slice(2),options:{platform:{type:"string",short:"p"},template:{type:"string",short:"t"},org:{type:"string"},"org-name":{type:"string"},output:{type:"string",short:"o"},storage:{type:"string"},testing:{type:"string"},yes:{type:"boolean",short:"y"},list:{type:"boolean",short:"l"},verbose:{type:"boolean",short:"v"},help:{type:"boolean",short:"h"}},allowPositionals:!0,strict:!0});if($.help)sA(),process.exit(0);if($.list)nA($.platform),process.exit(0);let Y=$.yes||Z.length>0&&!process.stdin.isTTY,J=iU(),K=new Y8(J.rawTemplates),z=$.platform||"ios";if(!$.platform&&!Y)z=(await k0.default({type:"select",name:"platform",message:"Platform",choices:["ios","macos","multiplatform","tvos","watchos","visionos"].map((O)=>({title:O,value:O})),initial:0},{onCancel:r0})).platform;let Q=pU(J.templates,z,$.template);if(!Q&&!Y){let W=J.templates.filter((O)=>O.platform===z&&O.category==="Application");if(W.length===0)console.error(`No application templates found for platform: ${z}`),process.exit(1);Q=(await k0.default({type:"select",name:"idx",message:"Template",choices:W.map((O)=>({title:O.name,description:O.description,value:O})),initial:0},{onCancel:r0})).idx}if(!Q){if(Q=pU(J.templates,z,"app"),!Q)console.error(`Template not found for platform "${z}". Use --list to see available templates.`),process.exit(1)}let U=(()=>{let W=process.cwd(),q=k("path").basename(W);try{if(k("fs").readdirSync(W).filter((C)=>!C.startsWith(".")).length===0&&q&&q!=="/"&&q!==".")return q}catch{}return"MyApp"})(),G=Z[0]??"";if(!G&&!Y)G=(await k0.default({type:"text",name:"name",message:"Project name",initial:U},{onCancel:r0})).name??"";if(!G)G=U;let H=$.org??"";if(!H&&!Y)H=(await k0.default({type:"text",name:"org",message:"Organization identifier",initial:"com.example"},{onCancel:r0})).org??"";if(!H)H="com.example";let V=$["org-name"];if(!V&&!Y)V=(await k0.default({type:"text",name:"orgName",message:"Organization name (optional)"},{onCancel:r0})).orgName;let I=[{title:"None",value:"None"},{title:"SwiftData",value:"SwiftData"},{title:"Core Data",value:"Core Data"}],E="None";if($.storage)E={none:"None",swiftdata:"SwiftData",coredata:"Core Data","core data":"Core Data"}[$.storage.toLowerCase()]||$.storage;else if(!Y)E=(await k0.default({type:"select",name:"storage",message:"Storage",choices:I,initial:0},{onCancel:r0})).storage;let w=[{title:"None",value:"None"},{title:"XCTest",value:"XCTest"},{title:"Swift Testing",value:"Swift Testing"}],T="None";if($.testing)T={none:"None",xctest:"XCTest","swift-testing":"Swift Testing","swift testing":"Swift Testing"}[$.testing.toLowerCase()]||$.testing;else if(!Y)T=(await k0.default({type:"select",name:"testing",message:"Testing",choices:w,initial:0},{onCancel:r0})).testing;let X=cA($.output||"."),D={productName:G,bundleIdentifierPrefix:H,languageChoice:"Swift",appLifecycle:"SwiftUI",storageType:E,testingSystem:T};if($.verbose)console.log(` +Template:`,Q.name),console.log("ID:",Q.id),console.log("Selections:",D);let S=K.resolve(Q.id,D);if($.verbose)console.log("Files to generate:",S.files.map((W)=>W.name)),console.log("Product type:",S.productType);let P=G$(X,G);if(dU(P))if(!Y){if(!(await k0.default({type:"confirm",name:"overwrite",message:`Directory "${G}" already exists. Overwrite?`,initial:!1},{onCancel:r0})).overwrite)console.log("Aborted."),process.exit(0)}else console.error(`Error: Directory "${G}" already exists.`),process.exit(1);console.log(` +Creating ${Q.name} project "${G}" for ${z}...`);let R=await cU({name:G,outputDir:X,organizationIdentifier:H,organizationName:V,config:S,templateFilesBase:iA()});console.log(` +\x1B[32mProject created at ${R}\x1B[0m`),console.log(` +To open in Xcode:`),console.log(` open ${R}/${G}.xcodeproj`)}rA().catch(($)=>{if(console.error(`\x1B[31mError: ${$.message}\x1B[0m`),process.env.DEBUG)console.error($.stack);process.exit(1)});