@jsenv/core 40.11.0 → 40.12.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/dist/build/browserslist_index/browserslist_index.js +7 -4
- package/dist/build/jsenv_core_node_modules.js +23 -2
- package/dist/build/jsenv_core_packages.js +5 -5
- package/dist/client/directory_listing/js/directory_listing.js +3 -3
- package/dist/client/directory_listing/jsenv_core_node_modules.js +5 -5
- package/dist/client/regenerator_runtime/regenerator_runtime.js +11 -11
- package/dist/start_build_server/jsenv_core_node_modules.js +23 -2
- package/dist/start_dev_server/jsenv_core_node_modules.js +23 -2
- package/dist/start_dev_server/jsenv_core_packages.js +5 -5
- package/package.json +13 -13
|
@@ -684,6 +684,7 @@ const ESC = '\u001B[';
|
|
|
684
684
|
|
|
685
685
|
!isBrowser && process.env.TERM_PROGRAM === 'Apple_Terminal';
|
|
686
686
|
const isWindows = !isBrowser && process.platform === 'win32';
|
|
687
|
+
!isBrowser && (process.env.TERM?.startsWith('screen') || process.env.TERM?.startsWith('tmux') || process.env.TMUX !== undefined);
|
|
687
688
|
|
|
688
689
|
isBrowser ? () => {
|
|
689
690
|
throw new Error('`process.cwd()` only works in Node.js, not the browser.');
|
|
@@ -709,12 +710,32 @@ const eraseLines = count => {
|
|
|
709
710
|
const eraseLine = ESC + '2K';
|
|
710
711
|
const eraseScreen = ESC + '2J';
|
|
711
712
|
|
|
712
|
-
const
|
|
713
|
+
const isOldWindows = () => {
|
|
714
|
+
if (isBrowser || !isWindows) {
|
|
715
|
+
return false;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
const parts = os.release().split('.');
|
|
719
|
+
const major = Number(parts[0]);
|
|
720
|
+
const build = Number(parts[2] ?? 0);
|
|
721
|
+
|
|
722
|
+
if (major < 10) {
|
|
723
|
+
return true;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
if (major === 10 && build < 10_586) {
|
|
727
|
+
return true;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
return false;
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
const clearTerminal = isOldWindows()
|
|
713
734
|
? `${eraseScreen}${ESC}0f`
|
|
714
735
|
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
715
736
|
// 2. Erases the whole screen including scrollback buffer
|
|
716
737
|
// 3. Moves cursor to the top-left position
|
|
717
738
|
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
718
|
-
:
|
|
739
|
+
: `${eraseScreen}${ESC}3J${ESC}H`;
|
|
719
740
|
|
|
720
741
|
export { clearTerminal, createSupportsColor, eastAsianWidth, emojiRegex, eraseLines, isUnicodeSupported, stripAnsi };
|
|
@@ -5681,13 +5681,13 @@ const applyPackageResolve = (packageSpecifier, resolutionContext) => {
|
|
|
5681
5681
|
: resolvePackageSymlink(packageDirectoryFacadeUrl);
|
|
5682
5682
|
const packageJson = readPackageJson(packageDirectoryUrl);
|
|
5683
5683
|
if (packageJson !== null) {
|
|
5684
|
-
const { exports } = packageJson;
|
|
5685
|
-
if (exports !== null && exports !== undefined) {
|
|
5684
|
+
const { exports: exports$1 } = packageJson;
|
|
5685
|
+
if (exports$1 !== null && exports$1 !== undefined) {
|
|
5686
5686
|
return applyPackageExportsResolution(packageSubpath, {
|
|
5687
5687
|
...resolutionContext,
|
|
5688
5688
|
packageDirectoryUrl,
|
|
5689
5689
|
packageJson,
|
|
5690
|
-
exports,
|
|
5690
|
+
exports: exports$1,
|
|
5691
5691
|
});
|
|
5692
5692
|
}
|
|
5693
5693
|
}
|
|
@@ -5714,8 +5714,8 @@ const applyPackageSelfResolution = (packageSubpath, resolutionContext) => {
|
|
|
5714
5714
|
if (packageJson.name !== packageName) {
|
|
5715
5715
|
return undefined;
|
|
5716
5716
|
}
|
|
5717
|
-
const { exports } = packageJson;
|
|
5718
|
-
if (!exports) {
|
|
5717
|
+
const { exports: exports$1 } = packageJson;
|
|
5718
|
+
if (!exports$1) {
|
|
5719
5719
|
const subpathResolution = applyLegacySubpathResolution(packageSubpath, {
|
|
5720
5720
|
...resolutionContext,
|
|
5721
5721
|
packageDirectoryUrl,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F, u, E, k } from "../jsenv_core_node_modules.js";
|
|
2
2
|
|
|
3
3
|
const directoryIconUrl = new URL("../other/dir.png", import.meta.url).href;
|
|
4
4
|
const fileIconUrl = new URL("../other/file.png", import.meta.url).href;
|
|
@@ -30,7 +30,7 @@ const updateDirectoryContentItems = value => {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
const DirectoryListing = () => {
|
|
33
|
-
const directoryItems =
|
|
33
|
+
const directoryItems = E(callback => {
|
|
34
34
|
directoryItemsChangeCallbackSet.add(callback);
|
|
35
35
|
}, () => {
|
|
36
36
|
return directoryContentItems;
|
|
@@ -275,4 +275,4 @@ if (autoreload) {
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
F(u(DirectoryListing, {}), document.querySelector("#root"));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var n,l$1,u$2,i$1,r$1,o$1,e$1,f$2,c$1,s$1,a$1,p$1={},v$1=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w$1=Array.isArray;function d$1(n,l){for(var u in l)n[u]=l[u];return n}function g$1(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _$1(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return m$1(l,e,i,r,null)}function m$1(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$2:o,__i:-1,__u:0};return null==o&&null!=l$1.vnode&&l$1.vnode(e),e}function k$1(n){return n.children}function x$1(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?S(n):null}function C$2(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C$2(n)}}function M(n){(!n.__d&&(n.__d=true)&&i$1.push(n)&&!$.__r++||r$1!=l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)($);}function $(){for(var n,u,t,r,o,f,c,s=1;i$1.length;)i$1.length>s&&i$1.sort(e$1),n=i$1.shift(),s=i$1.length,n.__d&&(t=void 0,r=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=d$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(t),O(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,N$1(f,t,c),r.__e=r.__=null,t.__e!=o&&C$2(t)));$.__r=0;}function I(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,w,d,g,_,m=t&&t.__k||v$1,b=l.length;for(f=P$1(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p$1:m[y.__i]||p$1,y.__i=a,g=O(n,y,h,i,r,o,e,f,c,s),w=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&B$2(h.ref,null,y),s.push(y.ref,y.__c||w,y)),null==d&&null!=w&&(d=w),(_=!!(4&y.__u))||h.__k===y.__k?f=A(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:w&&(f=w.nextSibling),y.__u&=-7);return u.__e=d,f}function P$1(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m$1(null,o,null,null,null):w$1(o)?m$1(k$1,{children:o},null,null,null):null==o.constructor&&o.__b>0?m$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),D$1(e,e));return t}function A(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=A(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function H$1(n,l){return l=l||[],null==n||"boolean"==typeof n||(w$1(n)?n.some(function(n){H$1(n,l);}):l.push(n)),l}function L(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==n.key||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function T$1(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y$1.test(l)?u:u+"px";}function j$2(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T$1(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T$1(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f$2,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c$1,n.addEventListener(l,r?a$1:s$1,r)):n.removeEventListener(l,r?a$1:s$1,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function F$1(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x$1(b,M),h.constructor=j,h.render=E$1),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d$1({},h.__s)),d$1(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l$1.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=d$1(d$1({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k$1&&null==a.key&&(L=V$1(a.props.children)),f=I(n,w$1(L)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(T=o.length;T--;)g$1(o[T]);z$1(u);}else u.__e=t.__e,u.__k=t.__k,n.then||z$1(u);l$1.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=q$1(t.__e,u,t,i,r,o,e,c,s);return (a=l$1.diffed)&&a(u),128&u.__u?void 0:f}function z$1(n){n&&n.__c&&(n.__c.__e=true),n&&n.__k&&n.__k.forEach(z$1);}function N$1(n,u,t){for(var i=0;i<t.length;i++)B$2(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function V$1(n){return "object"!=typeof n||null==n||n.__b&&n.__b>0?n:w$1(n)?n.map(V$1):d$1({},n)}function q$1(u,t,i,r,o,e,f,c,s){var a,h,v,y,d,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((d=e[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){u=d,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l$1.__m&&l$1.__m(t,e),c=false),e=null;}if(null==x)b===k||c&&u.data==k||(u.data=k);else {if(e=e&&n.call(u.childNodes),b=i.props||p$1,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(d=u.attributes[a]).name]=d.value;for(a in b)if(d=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=d;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j$2(u,a,null,d,o);}for(a in k)d=k[a],"children"==a?y=d:"dangerouslySetInnerHTML"==a?h=d:"value"==a?_=d:"checked"==a?m=d:c&&"function"!=typeof d||b[a]===d||j$2(u,a,d,b[a],o);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I("template"==t.type?u.content:u,w$1(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g$1(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j$2(u,a,_,b[a],o),a="checked",null!=m&&m!=u[a]&&j$2(u,a,m,b[a],o));}return u}function B$2(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$1.__e(n,t);}}function D$1(n,u,t){var i,r;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||B$2(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&D$1(i[r],u,t||"function"!=typeof n.type);t||g$1(n.__e),n.__c=n.__=n.__e=void 0;}function E$1(n,l,u){return this.constructor(n,u)}function G$1(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l$1.__&&l$1.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],O(t,u=(t).__k=_$1(k$1,null,[u]),o||p$1,p$1,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),N$1(e,u,f);}n=v$1.slice,l$1={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof n&&(n=n(d$1({},u),this.props)),n&&d$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),M(this));},x$1.prototype.render=k$1,i$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$1=function(n,l){return n.__v.__b-l.__v.__b},$.__r=0,f$2=/(PointerCapture)$|Capture$/i,c$1=0,s$1=F$1(false),a$1=F$1(true);
|
|
1
|
+
var n,l$1,t$1,i$1,r$1,f$1,e$1,o$2,c$1,s$1,h$1={},p$1=[],v$1=Array.isArray,y$1=p$1.slice,w$1=Object.assign;function d$1(n){n&&n.parentNode&&n.remove();}function _$1(n,l,u){var t,i,r,f={};for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n?i=l[r]:f[r]=l[r];return arguments.length>2&&(f.children=arguments.length>3?y$1.call(arguments,2):u),g$1(n,f,t,i,null)}function g$1(u,t,i,r,f){var e={type:u,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==f?++l$1:f,__i:-1,__u:0};return null==f&&null!=n.vnode&&n.vnode(e),e}function k$2(n){return n.children}function m$1(n,l){this.props=n,this.context=l,this.__g=0;}function M(n,l){if(null==l)return n.__?M(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?M(n):null}function S$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=u.__e;break}return S$1(n)}}function $(l){(8&l.__g||!(l.__g|=8)||!t$1.push(l)||r$1++)&&i$1==n.debounceRendering||((i$1=n.debounceRendering)||queueMicrotask)(x);}function x(){for(var l,u,i,e,o,c,s,a,h=1;t$1.length;)t$1.length>h&&t$1.sort(f$1),l=t$1.shift(),h=t$1.length,8&l.__g&&(i=void 0,o=(e=(u=l).__v).__e,c=[],s=[],(a=u.__P)&&((i=w$1({},e)).__v=e.__v+1,n.vnode&&n.vnode(i),q$1(a,i,e,u.__n,a.namespaceURI,32&e.__u?[o]:null,c,null==o?M(e):o,!!(32&e.__u),s,a.ownerDocument),i.__v=e.__v,i.__.__k[i.__i]=i,P(c,i,s),i.__e!=o&&S$1(i)));r$1=0;}function C$1(n,l,u,t,i,r,f,e,o,c,s,a){var v,y,w,d,_,g,b,k=t&&t.__k||p$1,m=l.length;for(o=j$1(u,l,k,o,m),v=0;v<m;v++)null!=(w=u.__k[v])&&(y=-1==w.__i?h$1:k[w.__i]||h$1,w.__i=v,g=q$1(n,w,y,i,r,f,e,o,c,s,a),d=w.__e,w.ref&&y.ref!=w.ref&&(y.ref&&B$2(y.ref,null,w),s.push(w.ref,w.__c||d,w)),null==_&&null!=d&&(_=d),(b=!!(4&w.__u))||y.__k===w.__k?o=A$1(w,o,n,b):"function"==typeof w.type&&void 0!==g?o=g:d&&(o=d.nextSibling),w.__u&=-7);return u.__e=_,o}function j$1(n,l,u,t,i){var r,f,e,o,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(f=l[r])&&"boolean"!=typeof f&&"function"!=typeof f?(o=r+h,(f=n.__k[r]="string"==typeof f||"number"==typeof f||"bigint"==typeof f||f.constructor==String?g$1(null,f,null,null,null):v$1(f)?g$1(k$2,{children:f},null,null,null):null==f.constructor&&f.__b>0?g$1(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=n,f.__b=n.__b+1,e=null,-1!=(c=f.__i=I$1(f,u,o,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof f.type&&(f.__u|=4)):c!=o&&(c==o-1?h--:c==o+1?h++:(c>o?h--:h++,f.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=M(e)),D$1(e,e));return t}function A$1(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=A$1(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=M(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(v$1(n)?n.some(function(n){H(n,l);}):l.push(n)),l}function I$1(n,l,u,t){var i,r,f,e=n.key,o=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==n.key||s&&e==c.key&&o==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[f=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&o==c.type)return f;return -1}function L(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":u;}function O$1(n,l,u,t,i){var r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||L(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||L(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(e$1,"$1")),(l=l.slice(2))[0].toLowerCase()!=l[0]&&(l=l.toLowerCase()),n.__l||(n.__l={}),n.__l[l+r]=u,u?t?u.l=t.l:(u.l=o$2,n.addEventListener(l,r?s$1:c$1,r)):n.removeEventListener(l,r?s$1:c$1,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function T$1(l){return function(u){if(this.__l){var t=this.__l[u.type+l];if(null==u.u)u.u=o$2++;else if(u.u<t.l)return;return t(n.event?n.event(u):u)}}}function q$1(l,u,t,i,r,f,e,o,c,s,a){var h,p,y,_,g,b,M,S,$,x,j,A,H,I,L,O,T,q,P,B,D,F=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(o=u.__e=t.__e=(f=t.__c.__z)[0],t.__c.__z=null)),(h=n.__b)&&h(u);n:if("function"==typeof F)try{if(S=u.props,$="prototype"in F&&F.prototype.render,x=(h=F.contextType)&&i[h.__c],j=h?x?x.props.value:h.__:i,t.__c?2&(p=u.__c=t.__c).__g&&(p.__g|=1,M=!0):($?u.__c=p=new F(S,j):(u.__c=p=new m$1(S,j),p.constructor=F,p.render=E$1),x&&x.sub(p),p.props=S,p.state||(p.state={}),p.context=j,p.__n=i,y=!0,p.__g|=8,p.__h=[],p._sb=[]),$&&null==p.__s&&(p.__s=p.state),$&&null!=F.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=w$1({},p.__s)),w$1(p.__s,F.getDerivedStateFromProps(S,p.__s))),_=p.props,g=p.state,p.__v=u,y)$&&null==F.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),$&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if($&&null==F.getDerivedStateFromProps&&S!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(S,j),!(4&p.__g)&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(S,p.__s,j)||u.__v==t.__v){for(u.__v!=t.__v&&(p.props=S,p.state=p.__s,p.__g&=-9),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[],p.__h.length&&e.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(S,p.__s,j),$&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(_,g,b);});}if(p.context=j,p.props=S,p.__P=l,p.__g&=-5,H=n.__r,I=0,$){for(p.state=p.__s,p.__g&=-9,H&&H(u),h=p.render(p.props,p.state,p.context),L=0;L<p._sb.length;L++)p.__h.push(p._sb[L]);p._sb=[];}else do{p.__g&=-9,H&&H(u),h=p.render(p.props,p.state,p.context),p.state=p.__s;}while(8&p.__g&&++I<25);p.state=p.__s,null!=p.getChildContext&&(i=w$1({},i,p.getChildContext())),$&&!y&&null!=p.getSnapshotBeforeUpdate&&(b=p.getSnapshotBeforeUpdate(_,g)),O=h,null!=h&&h.type===k$2&&null==h.key&&(O=V$1(h.props.children)),o=C$1(l,v$1(O)?O:[O],u,t,i,r,f,e,o,c,s,a),u.__u&=-161,p.__h.length&&e.push(p),M&&(p.__g&=-4);}catch(l){if(u.__v=null,c||null!=f)if(l.then){for(T=0,q=false,u.__u|=c?160:128,u.__c.__z=[],P=0;P<f.length;P++)null==(B=f[P])||q||(8==B.nodeType&&"$s"==B.data?(T>0&&u.__c.__z.push(B),T++,f[P]=null):8==B.nodeType&&"/$s"==B.data?(--T>0&&u.__c.__z.push(B),q=0===T,o=f[P],f[P]=null):T>0&&(u.__c.__z.push(B),f[P]=null));if(!q){for(;o&&8==o.nodeType&&o.nextSibling;)o=o.nextSibling;f[f.indexOf(o)]=null,u.__c.__z=[o];}u.__e=o;}else {for(D=f.length;D--;)d$1(f[D]);N$1(u);}else u.__e=t.__e,u.__k=t.__k,l.then||N$1(u);n.__e(l,u,t);}else o=u.__e=z$1(t.__e,u,t,i,r,f,e,c,s,a);return (h=n.diffed)&&h(u),128&u.__u?void 0:o}function N$1(n){n&&n.__c&&(n.__c.__g|=4),n&&n.__k&&n.__k.forEach(N$1);}function P(l,u,t){for(var i=0;i<t.length;i++)B$2(t[i],t[++i],t[++i]);n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u);});}catch(l){n.__e(l,u.__v);}});}function V$1(n){return "object"!=typeof n||null==n||n.__b&&n.__b>0?n:v$1(n)?n.map(V$1):w$1({},n)}function z$1(l,u,t,i,r,f,e,o,c,s){var a,p,w,_,g,b,k,m,S=t.props,$=u.props,x=u.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((g=f[a])&&"setAttribute"in g==!!x&&(x?g.localName==x:3==g.nodeType)){l=g,f[a]=null;break}if(null==l){if(null==x)return s.createTextNode($);l=s.createElementNS(r,x,$.is&&$),o&&(n.__m&&n.__m(u,f),o=false),f=null;}if(null==x)S===$||o&&l.data==$||(l.data=$);else {if(f=f&&y$1.call(l.childNodes),S=t.props||h$1,!o&&null!=f)for(S={},a=0;a<l.attributes.length;a++)S[(g=l.attributes[a]).name]=g.value;for(a in S)if(g=S[a],"children"==a);else if("dangerouslySetInnerHTML"==a)w=g;else if(!(a in $)){if("value"==a&&"defaultValue"in $||"checked"==a&&"defaultChecked"in $)continue;O$1(l,a,null,g,r);}for(a in m=1&t.__u,$)g=$[a],"children"==a?_=g:"dangerouslySetInnerHTML"==a?p=g:"value"==a?b=g:"checked"==a?k=g:o&&"function"!=typeof g||S[a]===g&&!m||O$1(l,a,g,S[a],r);if(p)o||w&&(p.__html==w.__html||p.__html==l.innerHTML)||(l.innerHTML=p.__html),u.__k=[];else if(w&&(l.innerHTML=""),C$1("template"==x?l.content:l,v$1(_)?_:[_],u,t,i,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:t.__k&&M(t,0),o,c,s),null!=f)for(a=f.length;a--;)d$1(f[a]);o||(a="value","progress"==x&&null==b?l.removeAttribute("value"):null==b||b===l[a]&&("progress"!==x||b)||O$1(l,a,b,S[a],r),a="checked",null!=k&&k!=l[a]&&O$1(l,a,k,S[a],r));}return l}function B$2(l,u,t){try{if("function"==typeof l){var i="function"==typeof l.__u;i&&l.__u(),i&&null==u||(l.__u=l(u));}else l.current=u;}catch(l){n.__e(l,t);}}function D$1(l,u,t){var i,r;if(n.unmount&&n.unmount(l),(i=l.ref)&&(i.current&&i.current!=l.__e||B$2(i,null,u)),null!=(i=l.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(l){n.__e(l,u);}i.__P=null;}if(i=l.__k)for(r=0;r<i.length;r++)i[r]&&D$1(i[r],u,t||"function"!=typeof l.type);t||d$1(l.__e),l.__e&&l.__e.__l&&(l.__e.__l=null),l.__e=l.__c=l.__=null;}function E$1(n,l,u){return this.constructor(n,u)}function F(l,u){var t,i,r,f;u==document&&(u=document.documentElement),n.__&&n.__(l,u),i=(t=!!(l&&32&l.__u))?null:u.__k,l=u.__k=_$1(k$2,null,[l]),r=[],f=[],q$1(u,l,i||h$1,h$1,u.namespaceURI,i?null:u.firstChild?y$1.call(u.childNodes):null,r,i?i.__e:u.firstChild,t,f,u.ownerDocument),P(r,l,f);}n={__e:function(n,l,u,t){for(var i,f,e;l=l.__;)if((i=l.__c)&&!(1&i.__g)){i.__g|=4;try{if((f=i.constructor)&&null!=f.getDerivedStateFromError&&(i.setState(f.getDerivedStateFromError(n)),e=8&i.__g),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),e=8&i.__g),e)return void(i.__g|=2)}catch(l){n=l;}}throw r$1=0,n}},l$1=0,m$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w$1({},this.state),"function"==typeof n&&(n=n(w$1({},u),this.props)),n&&w$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),$(this));},m$1.prototype.forceUpdate=function(n){this.__v&&(this.__g|=4,n&&this.__h.push(n),$(this));},m$1.prototype.render=k$2,t$1=[],r$1=0,f$1=function(n,l){return n.__v.__b-l.__v.__b},e$1=/(PointerCapture)$|Capture$/i,o$2=0,c$1=T$1(false),s$1=T$1(true);
|
|
2
2
|
|
|
3
|
-
var t,r,u$1,i,o=
|
|
3
|
+
var t,r,u$1,i,o$1=Object.is,f=0,c=[],e=n,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,p=e.__;function d(n,t){e.__h&&e.__h(r,n,f||t),f=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return f=1,y(D,n)}function y(n,u,i){var f=d(t++,2);if(f.t=n,!f.__c&&(f.__=[i?i(u):D(void 0,u),function(n){var t=f.__N?f.__N[0]:f.__[0],r=f.t(t,n);o$1(t,r)||(f.__N=[r,f.__[1]],f.__c.setState({}));}],f.__c=r,!r.__f)){var c=function(n,t,r){if(!f.__c.__H)return true;var u=f.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !e||e.call(this,n,t,r);var i=f.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,o$1(t,n.__[0])||(i=true);}}),e&&e.call(this,n,t,r)||i};r.__f=true;var e=r.shouldComponentUpdate,a=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(4&this.__g){var u=e;e=void 0,c(n,t,r),e=u;}a&&a.call(this,n,t,r);},r.shouldComponentUpdate=c;}return f.__N||f.__}function _(n,u){var i=d(t++,3);!e.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i));}function A(n,u){var i=d(t++,4);!e.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i));}function g(){for(var n;n=c.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B$1),n.__H.__h=[];}catch(t){n.__H.__h=[],e.__e(t,n.__v);}}e.__b=function(n){r=null,a&&a(n);},e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t);},e.__r=function(n){v&&v(n),t=0;var i=(r=n.__c).__H;i&&(u$1===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})):(i.__h.forEach(z),i.__h.forEach(B$1),i.__h=[],t=0)),u$1=r;},e.diffed=function(n){l&&l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&i===e.requestAnimationFrame||((i=e.requestAnimationFrame)||w)(g)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0;})),u$1=r=null;},e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return !n.__||B$1(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],e.__e(r,n.__v);}}),m&&m(n,t);},e.unmount=function(n){s&&s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&e.__e(t,r.__v));};var k$1="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k$1&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,35);k$1&&(t=requestAnimationFrame(r));}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B$1(n){var t=r;n.__c=n.__(),r=t;}function C(n,t){return !n||n.length!==t.length||t.some(function(t,r){return !o$1(t,n[r])})}function D(n,t){return "function"==typeof t?t(n):t}
|
|
4
4
|
|
|
5
|
-
function
|
|
5
|
+
function E(n,e){var t=e(),r=h({t:{__:t,u:e}}),u=r[0].t,o=r[1];return A(function(){u.__=t,u.u=e,S(u)&&o({t:u});},[n,t,e]),_(function(){return S(u)&&o({t:u}),n(function(){S(u)&&o({t:u});})},[n]),t}function S(n){var e=n.u,t=n.__;try{var r=e();return !Object.is(t,r)}catch(n){return true}}var k=Object.assign;function I(n,e){for(var t in n)if("__source"!==t&&!(t in e))return true;for(var r in e)if("__source"!==r&&n[r]!==e[r])return true;return false}var N=/^(-|f[lo].*[^se]$|g.{5,}[^ps]$|z|o[pr]|(W.{5})?[lL]i.*(t|mp)$|an|(bo|s).{4}Im|sca|m.{6}[ds]|ta|c.*[st]$|wido|ini)/;function O(n,e){this.props=n,this.context=e;}(O.prototype=new m$1).isPureReactComponent=true,O.prototype.shouldComponentUpdate=function(n,e){return I(this.props,n)||I(this.state,e)};var T=n.__e;n.__e=function(n,e,t,r){if(n.then)for(var u,o=e;o=o.__;)if((u=o.__c)&&u.__c)return null==e.__e&&(e.__e=t.__e,e.__k=t.__k),u.__c(n,e);T(n,e,t,r);};var U=n.unmount;function V(n,e,t){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c();}),n.__c.__H=null),null!=(n=k({},n)).__c&&(n.__c.__P===t&&(n.__c.__P=e),n.__c.__g|=4,n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return V(n,e,t)})),n}function j(n,e,t){return n&&t&&("string"==typeof n.type&&(n.__u|=1),n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return j(n,e,t)}),n.__c&&n.__c.__P===e&&(n.__e&&t.appendChild(n.__e),n.__c.__g|=4,n.__c.__P=t)),n}function W(){this.__u=0,this.o=null,this.__b=null;}n.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),U&&U(n);},(W.prototype=new m$1).__c=function(n,e){var t=e.__c,r=this;null==r.o&&(r.o=[]),r.o.push(t);var u=false,o=function(){u||(u=true,t.__R=null,i());};t.__R=o;var i=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=j(n,n.__c.__P,n.__c.__O);}var e;for(r.setState({__a:r.__b=null});e=r.o.pop();)e.forceUpdate();}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(o,o);},W.prototype.componentWillUnmount=function(){this.o=[];},W.prototype.render=function(n,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=V(this.__b,r,o.__O=o.__P);}this.__b=null;}return [_$1(k$2,null,t.__a?null:n.children),t.__a&&_$1(k$2,null,n.fallback)]};var B=Symbol.for("react.element"),Z=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Y=/[A-Z0-9]/g,q="undefined"!=typeof document,G=function(n){return /fil|che|rad/.test(n)};m$1.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(m$1.prototype,e,{configurable:true,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:true,writable:true,value:n});}});});var Q=n.event;function X(){}function nn(){return this.cancelBubble}function en(){return this.defaultPrevented}n.event=function(n){return Q&&(n=Q(n)),n.persist=X,n.isPropagationStopped=nn,n.isDefaultPrevented=en,n.nativeEvent=n};var rn={enumerable:false,configurable:true,get:function(){return this.class}},un=n.vnode;n.vnode=function(n){if("string"==typeof n.type)!function(n){var e=n.props,r=n.type,u={},o=-1===r.indexOf("-");for(var i in e){var l=e[i];if(!("value"===i&&"defaultValue"in e&&null==l||q&&"children"===i&&"noscript"===r||"class"===i||"className"===i)){if("style"===i&&"object"==typeof l)for(var c in l)"number"!=typeof l[c]||N.test(c)||(l[c]+="px");else if("defaultValue"===i&&"value"in e&&null==e.value)i="value";else if("download"===i&&true===l)l="";else if("translate"===i&&"no"===l)l=false;else if("o"===i[0]&&"n"===i[1]){var a=i.toLowerCase();"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==r&&"textarea"!==r||G(e.type)?"onfocus"===a?i="onfocusin":"onblur"===a&&(i="onfocusout"):a=i="oninput","oninput"===a&&u[i=a]&&(i="oninputCapture");}else o&&Z.test(i)?i=i.replace(Y,"-$&").toLowerCase():null===l&&(l=void 0);u[i]=l;}}"select"==r&&u.multiple&&Array.isArray(u.value)&&(u.value=H(e.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value);})),"select"==r&&null!=u.defaultValue&&(u.value=H(e.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value;})),e.class&&!e.className?(u.class=e.class,Object.defineProperty(u,"className",rn)):(e.className&&!e.class||e.class&&e.className)&&(u.class=u.className=e.className),n.props=u;}(n);else if("function"==typeof n.type&&("ref"in n.props&&"prototype"in n.type&&n.type.prototype.render&&(n.ref=n.props.ref,delete n.props.ref),n.type.defaultProps)){var e=k({},n.props);for(var r in n.type.defaultProps) void 0===e[r]&&(e[r]=n.type.defaultProps[r]);n.props=e;}n.$$typeof=B,un&&un(n);};var on=n.__r;n.__r=function(n){on&&on(n),n.__c;};var ln=n.diffed;n.diffed=function(n){ln&&ln(n);var e=n.props,t=n.__e;null!=t&&"textarea"===n.type&&"value"in e&&e.value!==t.value&&(t.value=null==e.value?"":e.value);};
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var o=0;function u(t,e,n$1,f,u,i){e||(e={});var a,c,l=e;if("ref"in l&&"function"!=typeof t)for(c in l={},e)"ref"==c?a=e[c]:l[c]=e[c];var p={type:t,props:l,key:n$1,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--o,__i:-1,__u:0,__source:u,__self:i};return n.vnode&&n.vnode(p),p}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { E, F, k$2 as k, u };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
var runtime = (function (exports) {
|
|
8
|
+
var runtime = (function (exports$1) {
|
|
9
9
|
|
|
10
10
|
var Op = Object.prototype;
|
|
11
11
|
var hasOwn = Op.hasOwnProperty;
|
|
@@ -45,7 +45,7 @@ var runtime = (function (exports) {
|
|
|
45
45
|
|
|
46
46
|
return generator;
|
|
47
47
|
}
|
|
48
|
-
exports.wrap = wrap;
|
|
48
|
+
exports$1.wrap = wrap;
|
|
49
49
|
|
|
50
50
|
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
51
51
|
// record like context.tryEntries[i].completion. This interface could
|
|
@@ -119,7 +119,7 @@ var runtime = (function (exports) {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
122
|
+
exports$1.isGeneratorFunction = function(genFun) {
|
|
123
123
|
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
124
124
|
return ctor
|
|
125
125
|
? ctor === GeneratorFunction ||
|
|
@@ -129,7 +129,7 @@ var runtime = (function (exports) {
|
|
|
129
129
|
: false;
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
exports.mark = function(genFun) {
|
|
132
|
+
exports$1.mark = function(genFun) {
|
|
133
133
|
if (Object.setPrototypeOf) {
|
|
134
134
|
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
135
135
|
} else {
|
|
@@ -144,7 +144,7 @@ var runtime = (function (exports) {
|
|
|
144
144
|
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
145
145
|
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
146
146
|
// meant to be awaited.
|
|
147
|
-
exports.awrap = function(arg) {
|
|
147
|
+
exports$1.awrap = function(arg) {
|
|
148
148
|
return { __await: arg };
|
|
149
149
|
};
|
|
150
150
|
|
|
@@ -219,12 +219,12 @@ var runtime = (function (exports) {
|
|
|
219
219
|
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
220
220
|
return this;
|
|
221
221
|
};
|
|
222
|
-
exports.AsyncIterator = AsyncIterator;
|
|
222
|
+
exports$1.AsyncIterator = AsyncIterator;
|
|
223
223
|
|
|
224
224
|
// Note that simple async functions are implemented on top of
|
|
225
225
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
226
226
|
// the final result produced by the iterator.
|
|
227
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
227
|
+
exports$1.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
228
228
|
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
229
229
|
|
|
230
230
|
var iter = new AsyncIterator(
|
|
@@ -232,7 +232,7 @@ var runtime = (function (exports) {
|
|
|
232
232
|
PromiseImpl
|
|
233
233
|
);
|
|
234
234
|
|
|
235
|
-
return exports.isGeneratorFunction(outerFn)
|
|
235
|
+
return exports$1.isGeneratorFunction(outerFn)
|
|
236
236
|
? iter // If outerFn is a generator, return the full iterator.
|
|
237
237
|
: iter.next().then(function(result) {
|
|
238
238
|
return result.done ? result.value : iter.next();
|
|
@@ -450,7 +450,7 @@ var runtime = (function (exports) {
|
|
|
450
450
|
this.reset(true);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
exports.keys = function(object) {
|
|
453
|
+
exports$1.keys = function(object) {
|
|
454
454
|
var keys = [];
|
|
455
455
|
for (var key in object) {
|
|
456
456
|
keys.push(key);
|
|
@@ -511,7 +511,7 @@ var runtime = (function (exports) {
|
|
|
511
511
|
// Return an iterator with no values.
|
|
512
512
|
return { next: doneResult };
|
|
513
513
|
}
|
|
514
|
-
exports.values = values;
|
|
514
|
+
exports$1.values = values;
|
|
515
515
|
|
|
516
516
|
function doneResult() {
|
|
517
517
|
return { value: undefined$1, done: true };
|
|
@@ -721,7 +721,7 @@ var runtime = (function (exports) {
|
|
|
721
721
|
// or not, return the runtime object so that we can declare the variable
|
|
722
722
|
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
723
723
|
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
724
|
-
return exports;
|
|
724
|
+
return exports$1;
|
|
725
725
|
|
|
726
726
|
}(
|
|
727
727
|
// If this script is executing as a CommonJS module, use module.exports
|
|
@@ -656,6 +656,7 @@ const ESC = '\u001B[';
|
|
|
656
656
|
|
|
657
657
|
!isBrowser && process.env.TERM_PROGRAM === 'Apple_Terminal';
|
|
658
658
|
const isWindows = !isBrowser && process.platform === 'win32';
|
|
659
|
+
!isBrowser && (process.env.TERM?.startsWith('screen') || process.env.TERM?.startsWith('tmux') || process.env.TMUX !== undefined);
|
|
659
660
|
|
|
660
661
|
isBrowser ? () => {
|
|
661
662
|
throw new Error('`process.cwd()` only works in Node.js, not the browser.');
|
|
@@ -681,12 +682,32 @@ const eraseLines = count => {
|
|
|
681
682
|
const eraseLine = ESC + '2K';
|
|
682
683
|
const eraseScreen = ESC + '2J';
|
|
683
684
|
|
|
684
|
-
const
|
|
685
|
+
const isOldWindows = () => {
|
|
686
|
+
if (isBrowser || !isWindows) {
|
|
687
|
+
return false;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const parts = os.release().split('.');
|
|
691
|
+
const major = Number(parts[0]);
|
|
692
|
+
const build = Number(parts[2] ?? 0);
|
|
693
|
+
|
|
694
|
+
if (major < 10) {
|
|
695
|
+
return true;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
if (major === 10 && build < 10_586) {
|
|
699
|
+
return true;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
return false;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
const clearTerminal = isOldWindows()
|
|
685
706
|
? `${eraseScreen}${ESC}0f`
|
|
686
707
|
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
687
708
|
// 2. Erases the whole screen including scrollback buffer
|
|
688
709
|
// 3. Moves cursor to the top-left position
|
|
689
710
|
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
690
|
-
:
|
|
711
|
+
: `${eraseScreen}${ESC}3J${ESC}H`;
|
|
691
712
|
|
|
692
713
|
export { clearTerminal, createSupportsColor, eastAsianWidth, emojiRegex, eraseLines, isUnicodeSupported };
|
|
@@ -656,6 +656,7 @@ const ESC = '\u001B[';
|
|
|
656
656
|
|
|
657
657
|
!isBrowser && process.env.TERM_PROGRAM === 'Apple_Terminal';
|
|
658
658
|
const isWindows = !isBrowser && process.platform === 'win32';
|
|
659
|
+
!isBrowser && (process.env.TERM?.startsWith('screen') || process.env.TERM?.startsWith('tmux') || process.env.TMUX !== undefined);
|
|
659
660
|
|
|
660
661
|
isBrowser ? () => {
|
|
661
662
|
throw new Error('`process.cwd()` only works in Node.js, not the browser.');
|
|
@@ -681,12 +682,32 @@ const eraseLines = count => {
|
|
|
681
682
|
const eraseLine = ESC + '2K';
|
|
682
683
|
const eraseScreen = ESC + '2J';
|
|
683
684
|
|
|
684
|
-
const
|
|
685
|
+
const isOldWindows = () => {
|
|
686
|
+
if (isBrowser || !isWindows) {
|
|
687
|
+
return false;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const parts = os.release().split('.');
|
|
691
|
+
const major = Number(parts[0]);
|
|
692
|
+
const build = Number(parts[2] ?? 0);
|
|
693
|
+
|
|
694
|
+
if (major < 10) {
|
|
695
|
+
return true;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
if (major === 10 && build < 10_586) {
|
|
699
|
+
return true;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
return false;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
const clearTerminal = isOldWindows()
|
|
685
706
|
? `${eraseScreen}${ESC}0f`
|
|
686
707
|
// 1. Erases the screen (Only done in case `2` is not supported)
|
|
687
708
|
// 2. Erases the whole screen including scrollback buffer
|
|
688
709
|
// 3. Moves cursor to the top-left position
|
|
689
710
|
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
|
690
|
-
:
|
|
711
|
+
: `${eraseScreen}${ESC}3J${ESC}H`;
|
|
691
712
|
|
|
692
713
|
export { clearTerminal, createSupportsColor, eastAsianWidth, emojiRegex, eraseLines, isUnicodeSupported };
|
|
@@ -4311,13 +4311,13 @@ const applyPackageResolve = (packageSpecifier, resolutionContext) => {
|
|
|
4311
4311
|
: resolvePackageSymlink(packageDirectoryFacadeUrl);
|
|
4312
4312
|
const packageJson = readPackageJson(packageDirectoryUrl);
|
|
4313
4313
|
if (packageJson !== null) {
|
|
4314
|
-
const { exports } = packageJson;
|
|
4315
|
-
if (exports !== null && exports !== undefined) {
|
|
4314
|
+
const { exports: exports$1 } = packageJson;
|
|
4315
|
+
if (exports$1 !== null && exports$1 !== undefined) {
|
|
4316
4316
|
return applyPackageExportsResolution(packageSubpath, {
|
|
4317
4317
|
...resolutionContext,
|
|
4318
4318
|
packageDirectoryUrl,
|
|
4319
4319
|
packageJson,
|
|
4320
|
-
exports,
|
|
4320
|
+
exports: exports$1,
|
|
4321
4321
|
});
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
@@ -4344,8 +4344,8 @@ const applyPackageSelfResolution = (packageSubpath, resolutionContext) => {
|
|
|
4344
4344
|
if (packageJson.name !== packageName) {
|
|
4345
4345
|
return undefined;
|
|
4346
4346
|
}
|
|
4347
|
-
const { exports } = packageJson;
|
|
4348
|
-
if (!exports) {
|
|
4347
|
+
const { exports: exports$1 } = packageJson;
|
|
4348
|
+
if (!exports$1) {
|
|
4349
4349
|
const subpathResolution = applyLegacySubpathResolution(packageSubpath, {
|
|
4350
4350
|
...resolutionContext,
|
|
4351
4351
|
packageDirectoryUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.12.0",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
78
|
-
"@jsenv/ast": "6.7.
|
|
79
|
-
"@jsenv/js-module-fallback": "1.4.
|
|
80
|
-
"@jsenv/plugin-bundling": "2.10.
|
|
81
|
-
"@jsenv/plugin-minification": "1.7.
|
|
82
|
-
"@jsenv/plugin-supervisor": "1.7.
|
|
83
|
-
"@jsenv/plugin-transpilation": "1.5.
|
|
84
|
-
"@jsenv/server": "16.3.
|
|
85
|
-
"@jsenv/sourcemap": "1.3.
|
|
78
|
+
"@jsenv/ast": "6.7.16",
|
|
79
|
+
"@jsenv/js-module-fallback": "1.4.24",
|
|
80
|
+
"@jsenv/plugin-bundling": "2.10.3",
|
|
81
|
+
"@jsenv/plugin-minification": "1.7.3",
|
|
82
|
+
"@jsenv/plugin-supervisor": "1.7.10",
|
|
83
|
+
"@jsenv/plugin-transpilation": "1.5.63",
|
|
84
|
+
"@jsenv/server": "16.3.3",
|
|
85
|
+
"@jsenv/sourcemap": "1.3.12",
|
|
86
86
|
"react-table": "7.8.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@babel/eslint-parser": "7.28.
|
|
89
|
+
"@babel/eslint-parser": "7.28.5",
|
|
90
90
|
"@babel/plugin-syntax-decorators": "7.27.1",
|
|
91
91
|
"@babel/plugin-syntax-import-attributes": "7.27.1",
|
|
92
92
|
"@babel/plugin-syntax-optional-chaining-assign": "7.27.1",
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
"@playwright/browser-firefox": "1.56.1",
|
|
121
121
|
"@playwright/browser-webkit": "1.56.1",
|
|
122
122
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
123
|
-
"eslint": "9.
|
|
123
|
+
"eslint": "9.39.1",
|
|
124
124
|
"eslint-plugin-html": "8.1.3",
|
|
125
125
|
"eslint-plugin-import-x": "4.16.1",
|
|
126
126
|
"eslint-plugin-react": "7.37.5",
|
|
127
127
|
"eslint-plugin-regexp": "2.10.0",
|
|
128
|
-
"globals": "16.
|
|
128
|
+
"globals": "16.5.0",
|
|
129
129
|
"open": "10.2.0",
|
|
130
130
|
"playwright": "1.56.1",
|
|
131
|
-
"preact": "
|
|
131
|
+
"preact": "11.0.0-beta.0",
|
|
132
132
|
"prettier": "3.6.2",
|
|
133
133
|
"prettier-plugin-css-order": "git+https://github.com/dmail-fork/prettier-plugin-css-order.git",
|
|
134
134
|
"prettier-plugin-embed": "0.5.0",
|