@fugood/bricks-cli 2.26.0-beta.9 → 2.26.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -7
- package/lib/1010.js +1 -1
- package/lib/1178.js +1 -1
- package/lib/1215.js +1 -1
- package/lib/1374.js +4 -0
- package/lib/1708.js +8 -8
- package/lib/1809.js +1 -0
- package/lib/1936.js +1 -1
- package/lib/2486.js +1 -1
- package/lib/2499.js +1 -0
- package/lib/2517.js +8 -0
- package/lib/2557.js +1 -1
- package/lib/3223.js +1 -1
- package/lib/3774.js +2 -6
- package/lib/3781.js +2 -2
- package/lib/{6842.js → 39.js} +1 -1
- package/lib/3976.js +6 -10
- package/lib/4456.js +2 -2
- package/lib/4485.js +1 -0
- package/lib/4530.js +10 -10
- package/lib/4994.js +1 -0
- package/lib/6194.js +2 -2
- package/lib/638.js +1 -0
- package/lib/6818.js +1 -1
- package/lib/7281.js +1 -0
- package/lib/7294.js +2 -2
- package/lib/7494.js +12 -3
- package/lib/7511.js +3 -1
- package/lib/8102.js +5 -0
- package/lib/831.js +1 -1
- package/lib/8687.js +49 -0
- package/lib/8937.js +1 -0
- package/lib/907.js +528 -91
- package/lib/9320.js +23 -2
- package/lib/9387.js +5 -5
- package/lib/9439.js +2670 -0
- package/lib/9663.js +1 -1
- package/lib/devtools.js +1 -0
- package/lib/index.js +168 -105
- package/lib/lib.js +573 -104
- package/lib/simulator-host-bridge.cjs +1 -1
- package/lib/simulator-main.mjs +6 -6
- package/package.json +8 -7
- package/lib/3332.js +0 -13
- package/lib/3593.js +0 -1
- package/lib/3690.js +0 -1
- package/lib/563.js +0 -4
- package/lib/6042.js +0 -1
- package/lib/6645.js +0 -1
- package/lib/7233.js +0 -2546
- package/lib/7574.js +0 -1
- package/lib/7648.js +0 -1
- package/lib/9590.js +0 -7
package/lib/4994.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __rspack_esm_id=4994;export const __rspack_esm_ids=[4994];export const __webpack_modules__={44187(e){e.exports=function(e,t,o,n){var l=-1,r=null==e?0:e.length;for(n&&r&&(o=e[++l]);++l<r;)o=t(o,e[l],l,e);return o}},39546(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},51035(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},93640(e,t,o){var n=o(44187),l=o(45881),r=o(39850),i=RegExp("['’]","g");e.exports=function(e){return function(t){return n(r(l(t).replace(i,"")),e,"")}}},69968(e,t,o){e.exports=o(51035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},15813(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},10482(e){var t="\\ud800-\\udfff",o="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="['’]",u="["+r+"]",f="["+n+"]",s="[^"+t+r+"\\d+"+o+n+l+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+l+"]",p="(?:"+f+"|"+s+")",h="(?:"+d+"|"+s+")",D="(?:"+i+"(?:d|ll|m|re|s|t|ve))?",g="(?:"+i+"(?:D|LL|M|RE|S|T|VE))?",x="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",w="(?:\\u200d(?:"+["[^"+t+"]",a,c].join("|")+")"+b+x+")*",B="(?:"+["["+o+"]",a,c].join("|")+")"+(b+x+w),R=RegExp([d+"?"+f+"+"+D+"(?="+[u,d,"$"].join("|")+")",h+"+"+g+"(?="+[u,d+p,"$"].join("|")+")",d+"?"+p+"+"+D,d+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",B].join("|"),"g");e.exports=function(e){return e.match(R)||[]}},45881(e,t,o){var n=o(69968),l=o(95243),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=l(e))&&e.replace(r,n).replace(i,"")}},10750(e,t,o){e.exports=o(93640)(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()})},39850(e,t,o){var n=o(39546),l=o(15813),r=o(95243),i=o(10482);e.exports=function(e,t,o){return(e=r(e),void 0===(t=o?void 0:t))?l(e)?i(e):n(e):e.match(t)||[]}},16699(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},65372(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},62192(e,t,o){var n=o(16699);e.exports=function(e){var t={},o=!1;function l(t,l){return o=!0,{done:!1,value:new n(l=new Promise(function(o){o(e[t](l))}),1)}}return t["u">typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return o?(o=!1,e):l("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(o)throw o=!1,e;return l("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return o?(o=!1,e):l("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},32235(e,t,o){var n=o(16699);e.exports=function(e){return new n(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},57301(e,t,o){var n=o(37399),l=o(69893);e.exports=function(e,t,o){if(n())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return o&&l(i,o.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports},30409(e){function t(o){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},40906(e,t,o){var n=o(69893);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},39833(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},37399(e){function t(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=t=function(){return!!o},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},63315(e,t,o){var n=o(14319).default,l=o(65372);e.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return l(e)},e.exports.__esModule=!0,e.exports.default=e.exports},69893(e){function t(o,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(o,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4275(e,t,o){var n=o(16699);function l(e){var t,o;function l(t,o){try{var i=e[t](o),u=i.value,f=u instanceof n;Promise.resolve(f?u.v:u).then(function(o){if(f){var n="return"===t?"return":"next";if(!u.k||o.done)return l(n,o);o=e[n](o).value}r(i.done?"return":"normal",o)},function(e){l("throw",e)})}catch(e){r("throw",e)}}function r(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?l(t.key,t.arg):o=null}this._invoke=function(e,n){return new Promise(function(r,i){var u={key:e,arg:n,resolve:r,reject:i,next:null};o?o=o.next=u:(t=o=u,l(e,n))})},"function"!=typeof e.return&&(this.return=void 0)}l.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return function(){return new l(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},59410(e,t,o){var n=o(30409),l=o(69893),r=o(39833),i=o(57301);function u(t){var o="function"==typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!r(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(e))return o.get(e);o.set(e,t)}function t(){return i(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,u(t)}e.exports=u,e.exports.__esModule=!0,e.exports.default=e.exports},48724(e,t,o){o.d(t,{Ay:()=>D});var n=o(51649),l=o(8498),r=o(29122);let i={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},u={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},f={...i,...u},s={...i,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},a=(0,r.A)()?f:s;Object.entries(u);let c=function({isSelected:e=!1}){return n.default.createElement(l.Box,{marginRight:1},e?n.default.createElement(l.Text,{color:"blue"},a.pointer):n.default.createElement(l.Text,null," "))},d=function({isSelected:e=!1,label:t}){return n.createElement(l.Text,{color:e?"blue":void 0},t)};var p=o(57975);function h(e,t){if(!Array.isArray(e))throw TypeError(`Expected an array, got \`${typeof e}\`.`);if(!Number.isSafeInteger(t))throw TypeError(`The \`steps\` parameter must be an integer, got ${t}.`);let{length:o}=e;if(0===o)return[...e];let n=(t%o+o)%o;return 0===n?[...e]:[...e.slice(-n),...e.slice(0,-n)]}let D=function({items:e=[],isFocused:t=!0,initialIndex:o=0,indicatorComponent:r=c,itemComponent:i=d,limit:u,onSelect:f,onHighlight:s}){let a="number"==typeof u&&e.length>u,D=a?Math.min(u,e.length):e.length,g=D-1,[x,b]=(0,n.useState)(o>g?g-o:0),[w,B]=(0,n.useState)(o?o>g?g:o:0),R=(0,n.useRef)(e);(0,n.useEffect)(()=>{(0,p.isDeepStrictEqual)(R.current.map(e=>e.value),e.map(e=>e.value))||(b(0),B(0)),R.current=e},[e]),(0,l.useInput)((0,n.useCallback)((t,o)=>{if("k"===t||o.upArrow){let t=(a?D:e.length)-1,o=0===w,n=o?x+1:x,l=o?a?w:t:w-1;b(n),B(l);let r=a?h(e,n).slice(0,D):e;"function"==typeof s&&s(r[l])}if("j"===t||o.downArrow){let t=w===(a?D:e.length)-1,o=t?x-1:x,n=t?a?w:0:w+1;b(o),B(n);let l=a?h(e,o).slice(0,D):e;"function"==typeof s&&s(l[n])}if(/^[1-9]$/.test(t)){let o=Number.parseInt(t,10)-1,n=a?h(e,x).slice(0,D):e;if(o>=0&&o<n.length){let e=n[o];e&&f?.(e)}}if(o.return){let t=a?h(e,x).slice(0,D):e;"function"==typeof f&&f(t[w])}},[a,D,x,w,e,f,s]),{isActive:t});let U=a?h(e,x).slice(0,D):e;return n.default.createElement(l.Box,{flexDirection:"column"},U.map((e,t)=>{let o=t===w;return n.default.createElement(l.Box,{key:e.key??e.value},n.default.createElement(r,{isSelected:o}),n.default.createElement(i,{...e,isSelected:o}))}))}},47882(e,t,o){o.d(t,{A:()=>i});var n=o(51649),l=o(8498),r=o(47661);let i=function({type:e="dots"}){let[t,o]=(0,n.useState)(0),i=r[e];return(0,n.useEffect)(()=>{let e=setInterval(()=>{o(e=>e===i.frames.length-1?0:e+1)},i.interval);return()=>{clearInterval(e)}},[i]),n.default.createElement(l.Text,null,i.frames[t])}},29253(e,t,o){o.d(t,{A:()=>i});var n=o(51649),l=o(8498),r=o(73284);let i=function({value:e,placeholder:t="",focus:o=!0,mask:i,highlightPastedText:u=!1,showCursor:f=!0,onChange:s,onSubmit:a}){let[c,d]=(0,n.useState)({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:p,cursorWidth:h}=c;(0,n.useEffect)(()=>{d(t=>{if(!o||!f)return t;let n=e||"";return t.cursorOffset>n.length-1?{cursorOffset:n.length,cursorWidth:0}:t})},[e,o,f]);let D=u?h:0,g=i?i.repeat(e.length):e,x=g,b=t?r.default.grey(t):void 0;if(f&&o){b=t.length>0?r.default.inverse(t[0])+r.default.grey(t.slice(1)):r.default.inverse(" "),x=g.length>0?"":r.default.inverse(" ");let e=0;for(let t of g)x+=e>=p-D&&e<=p?r.default.inverse(t):t,e++;g.length>0&&p===g.length&&(x+=r.default.inverse(" "))}return(0,l.useInput)((t,o)=>{if(o.upArrow||o.downArrow||o.ctrl&&"c"===t||o.tab||o.shift&&o.tab)return;if(o.return){a&&a(e);return}let n=p,l=e,r=0;o.leftArrow?f&&n--:o.rightArrow?f&&n++:o.backspace||o.delete?p>0&&(l=e.slice(0,p-1)+e.slice(p,e.length),n--):(l=e.slice(0,p)+t+e.slice(p,e.length),n+=t.length,t.length>1&&(r=t.length)),p<0&&(n=0),p>e.length&&(n=e.length),d({cursorOffset:n,cursorWidth:r}),l!==e&&s(l)},{isActive:o}),n.default.createElement(l.Text,null,t?g.length>0?x:b:x)}}};
|