nebula-notebook 0.2.7 → 0.2.8

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.
@@ -1,4 +1,4 @@
1
- import{a as d,L as c,D as l,E as a}from"./services-shim-BksFNANN.js";function h(t,s){class n extends l{constructor(r,i){r=Object.assign(Object.assign({},r),{_view_name:"ErrorWidgetView",_view_module:"@jupyter-widgets/base",_model_module_version:a,_view_module_version:a,msg:s,error:t}),super(r,i),this.comm_live=!0}}return n}class g extends d{generateErrorMessage(){return{msg:this.model.get("msg"),stack:String(this.model.get("error").stack)}}render(){const{msg:s,stack:n}=this.generateErrorMessage();this.el.classList.add("jupyter-widgets");const e=document.createElement("div");e.classList.add("jupyter-widgets-error-widget","icon-error"),e.innerHTML=c;const r=document.createElement("pre");r.style.textAlign="center",r.innerText="Click to show javascript error.",e.append(r),this.el.appendChild(e);let i,o;this.el.onclick=()=>{e.classList.contains("icon-error")&&(o=o||e.clientHeight,i=i||e.clientWidth,e.classList.remove("icon-error"),e.innerHTML=`
1
+ import{a as d,L as c,D as l,E as a}from"./services-shim-D_SeYcB9.js";function h(t,s){class n extends l{constructor(r,i){r=Object.assign(Object.assign({},r),{_view_name:"ErrorWidgetView",_view_module:"@jupyter-widgets/base",_model_module_version:a,_view_module_version:a,msg:s,error:t}),super(r,i),this.comm_live=!0}}return n}class g extends d{generateErrorMessage(){return{msg:this.model.get("msg"),stack:String(this.model.get("error").stack)}}render(){const{msg:s,stack:n}=this.generateErrorMessage();this.el.classList.add("jupyter-widgets");const e=document.createElement("div");e.classList.add("jupyter-widgets-error-widget","icon-error"),e.innerHTML=c;const r=document.createElement("pre");r.style.textAlign="center",r.innerText="Click to show javascript error.",e.append(r),this.el.appendChild(e);let i,o;this.el.onclick=()=>{e.classList.contains("icon-error")&&(o=o||e.clientHeight,i=i||e.clientWidth,e.classList.remove("icon-error"),e.innerHTML=`
2
2
  <pre>[Open Browser Console for more detailed log - Double click to close this message]
3
3
  ${s}
4
4
  ${n}</pre>
@@ -1,4 +1,4 @@
1
- import{D as DOMWidgetModel,a as DOMWidgetView,S as Signal,J as JSONExt,M as Message,A as ArrayExt,i as index_es6$1,b as index_es6$2,c as index_es6$3,d as index_es6$4,P as PromiseDelegate,W as Widget,F as FocusTracker,m as map,U as UUID,e as PanelLayout,f as Panel,g as AttachedProperty,h as JupyterLuminoPanelWidget,$,u as uuid,j as PROTOCOL_VERSION,p as put_buffers,r as reject,k as resolvePromisesDict,l as remove_buffers,n as MessageLoop}from"./services-shim-BksFNANN.js";import{c as createErrorWidgetModel,E as ErrorWidgetView,a as createErrorWidgetView}from"./errorwidget-DQl0VDhF.js";import{g as getAugmentedNamespace,c as commonjsGlobal,a as getDefaultExportFromCjs}from"./index-BRnOuVqD.js";var re={exports:{}},constants,hasRequiredConstants;function requireConstants(){if(hasRequiredConstants)return constants;hasRequiredConstants=1;const t="2.0.0",e=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,l=e-6;return constants={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:l,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},constants}var debug_1,hasRequiredDebug;function requireDebug(){if(hasRequiredDebug)return debug_1;hasRequiredDebug=1;var t={};return debug_1=typeof process=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},debug_1}var hasRequiredRe;function requireRe(){return hasRequiredRe||(hasRequiredRe=1,(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:l}=requireConstants(),n=requireDebug();e=t.exports={};const u=e.re=[],d=e.safeRe=[],a=e.src=[],r=e.safeSrc=[],s=e.t={};let h=0;const c="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",l],[c,i]],b=w=>{for(const[_,m]of f)w=w.split(`${_}*`).join(`${_}{0,${m}}`).split(`${_}+`).join(`${_}{1,${m}}`);return w},y=(w,_,m)=>{const A=b(_),g=h++;n(w,g,_),s[w]=g,a[g]=_,r[g]=A,u[g]=new RegExp(_,m?"g":void 0),d[g]=new RegExp(A,m?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),y("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${a[s.NONNUMERICIDENTIFIER]}|${a[s.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NONNUMERICIDENTIFIER]}|${a[s.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${c}+`),y("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),y("FULL",`^${a[s.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),y("LOOSE",`^${a[s.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),y("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`),y("COERCE",`${a[s.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",a[s.COERCEPLAIN]+`(?:${a[s.PRERELEASE]})?(?:${a[s.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",a[s.COERCE],!0),y("COERCERTLFULL",a[s.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re,re.exports)),re.exports}var parseOptions_1,hasRequiredParseOptions;function requireParseOptions(){if(hasRequiredParseOptions)return parseOptions_1;hasRequiredParseOptions=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return parseOptions_1=i=>i?typeof i!="object"?t:i:e,parseOptions_1}var identifiers,hasRequiredIdentifiers;function requireIdentifiers(){if(hasRequiredIdentifiers)return identifiers;hasRequiredIdentifiers=1;const t=/^[0-9]+$/,e=(i,l)=>{if(typeof i=="number"&&typeof l=="number")return i===l?0:i<l?-1:1;const n=t.test(i),u=t.test(l);return n&&u&&(i=+i,l=+l),i===l?0:n&&!u?-1:u&&!n?1:i<l?-1:1};return identifiers={compareIdentifiers:e,rcompareIdentifiers:(i,l)=>e(l,i)},identifiers}var semver$1,hasRequiredSemver$1;function requireSemver$1(){if(hasRequiredSemver$1)return semver$1;hasRequiredSemver$1=1;const t=requireDebug(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:o}=requireConstants(),{safeRe:i,t:l}=requireRe(),n=requireParseOptions(),{compareIdentifiers:u}=requireIdentifiers(),d=(r,s)=>{const h=s.split(".");if(h.length>r.length)return!1;for(let c=0;c<h.length;c++)if(u(r[c],h[c])!==0)return!1;return!0};class a{constructor(s,h){if(h=n(h),s instanceof a){if(s.loose===!!h.loose&&s.includePrerelease===!!h.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",s,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const c=s.trim().match(h.loose?i[l.LOOSE]:i[l.FULL]);if(!c)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const b=+f;if(b>=0&&b<o)return b}return f}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(s){if(t("SemVer.compare",this.version,this.options,s),!(s instanceof a)){if(typeof s=="string"&&s===this.version)return 0;s=new a(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof a||(s=new a(s,this.options)),this.major<s.major?-1:this.major>s.major?1:this.minor<s.minor?-1:this.minor>s.minor?1:this.patch<s.patch?-1:this.patch>s.patch?1:0}comparePre(s){if(s instanceof a||(s=new a(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let h=0;do{const c=this.prerelease[h],f=s.prerelease[h];if(t("prerelease compare",h,c,f),c===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(c===void 0)return-1;if(c===f)continue;return u(c,f)}while(++h)}compareBuild(s){s instanceof a||(s=new a(s,this.options));let h=0;do{const c=this.build[h],f=s.build[h];if(t("build compare",h,c,f),c===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(c===void 0)return-1;if(c===f)continue;return u(c,f)}while(++h)}inc(s,h,c){if(s.startsWith("pre")){if(!h&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(h){const f=`-${h}`.match(this.options.loose?i[l.PRERELEASELOOSE]:i[l.PRERELEASE]);if(!f||f[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,c),this.inc("pre",h,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,c),this.inc("pre",h,c);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(c)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(h===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(h){let b=[h,f];if(c===!1&&(b=[h]),d(this.prerelease,h)){const y=this.prerelease[h.split(".").length];isNaN(y)&&(this.prerelease=b)}else this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return semver$1=a,semver$1}var parse_1$1,hasRequiredParse$1;function requireParse$1(){if(hasRequiredParse$1)return parse_1$1;hasRequiredParse$1=1;const t=requireSemver$1();return parse_1$1=(o,i,l=!1)=>{if(o instanceof t)return o;try{return new t(o,i)}catch(n){if(!l)return null;throw n}},parse_1$1}var valid_1,hasRequiredValid$1;function requireValid$1(){if(hasRequiredValid$1)return valid_1;hasRequiredValid$1=1;const t=requireParse$1();return valid_1=(o,i)=>{const l=t(o,i);return l?l.version:null},valid_1}var clean_1,hasRequiredClean;function requireClean(){if(hasRequiredClean)return clean_1;hasRequiredClean=1;const t=requireParse$1();return clean_1=(o,i)=>{const l=t(o.trim().replace(/^[=v]+/,""),i);return l?l.version:null},clean_1}var inc_1,hasRequiredInc;function requireInc(){if(hasRequiredInc)return inc_1;hasRequiredInc=1;const t=requireSemver$1();return inc_1=(o,i,l,n,u)=>{typeof l=="string"&&(u=n,n=l,l=void 0);try{return new t(o instanceof t?o.version:o,l).inc(i,n,u).version}catch{return null}},inc_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1;const t=requireParse$1();return diff_1=(o,i)=>{const l=t(o,null,!0),n=t(i,null,!0),u=l.compare(n);if(u===0)return null;const d=u>0,a=d?l:n,r=d?n:l,s=!!a.prerelease.length;if(!!r.prerelease.length&&!s){if(!r.patch&&!r.minor)return"major";if(r.compareMain(a)===0)return r.minor&&!r.patch?"minor":"patch"}const c=s?"pre":"";return l.major!==n.major?c+"major":l.minor!==n.minor?c+"minor":l.patch!==n.patch?c+"patch":"prerelease"},diff_1}var major_1,hasRequiredMajor;function requireMajor(){if(hasRequiredMajor)return major_1;hasRequiredMajor=1;const t=requireSemver$1();return major_1=(o,i)=>new t(o,i).major,major_1}var minor_1,hasRequiredMinor;function requireMinor(){if(hasRequiredMinor)return minor_1;hasRequiredMinor=1;const t=requireSemver$1();return minor_1=(o,i)=>new t(o,i).minor,minor_1}var patch_1,hasRequiredPatch;function requirePatch(){if(hasRequiredPatch)return patch_1;hasRequiredPatch=1;const t=requireSemver$1();return patch_1=(o,i)=>new t(o,i).patch,patch_1}var prerelease_1,hasRequiredPrerelease;function requirePrerelease(){if(hasRequiredPrerelease)return prerelease_1;hasRequiredPrerelease=1;const t=requireParse$1();return prerelease_1=(o,i)=>{const l=t(o,i);return l&&l.prerelease.length?l.prerelease:null},prerelease_1}var compare_1,hasRequiredCompare;function requireCompare(){if(hasRequiredCompare)return compare_1;hasRequiredCompare=1;const t=requireSemver$1();return compare_1=(o,i,l)=>new t(o,l).compare(new t(i,l)),compare_1}var rcompare_1,hasRequiredRcompare;function requireRcompare(){if(hasRequiredRcompare)return rcompare_1;hasRequiredRcompare=1;const t=requireCompare();return rcompare_1=(o,i,l)=>t(i,o,l),rcompare_1}var compareLoose_1,hasRequiredCompareLoose;function requireCompareLoose(){if(hasRequiredCompareLoose)return compareLoose_1;hasRequiredCompareLoose=1;const t=requireCompare();return compareLoose_1=(o,i)=>t(o,i,!0),compareLoose_1}var compareBuild_1,hasRequiredCompareBuild;function requireCompareBuild(){if(hasRequiredCompareBuild)return compareBuild_1;hasRequiredCompareBuild=1;const t=requireSemver$1();return compareBuild_1=(o,i,l)=>{const n=new t(o,l),u=new t(i,l);return n.compare(u)||n.compareBuild(u)},compareBuild_1}var sort_1,hasRequiredSort;function requireSort(){if(hasRequiredSort)return sort_1;hasRequiredSort=1;const t=requireCompareBuild();return sort_1=(o,i)=>o.sort((l,n)=>t(l,n,i)),sort_1}var rsort_1,hasRequiredRsort;function requireRsort(){if(hasRequiredRsort)return rsort_1;hasRequiredRsort=1;const t=requireCompareBuild();return rsort_1=(o,i)=>o.sort((l,n)=>t(n,l,i)),rsort_1}var gt_1,hasRequiredGt;function requireGt(){if(hasRequiredGt)return gt_1;hasRequiredGt=1;const t=requireCompare();return gt_1=(o,i,l)=>t(o,i,l)>0,gt_1}var lt_1,hasRequiredLt;function requireLt(){if(hasRequiredLt)return lt_1;hasRequiredLt=1;const t=requireCompare();return lt_1=(o,i,l)=>t(o,i,l)<0,lt_1}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;const t=requireCompare();return eq_1=(o,i,l)=>t(o,i,l)===0,eq_1}var neq_1,hasRequiredNeq;function requireNeq(){if(hasRequiredNeq)return neq_1;hasRequiredNeq=1;const t=requireCompare();return neq_1=(o,i,l)=>t(o,i,l)!==0,neq_1}var gte_1,hasRequiredGte;function requireGte(){if(hasRequiredGte)return gte_1;hasRequiredGte=1;const t=requireCompare();return gte_1=(o,i,l)=>t(o,i,l)>=0,gte_1}var lte_1,hasRequiredLte;function requireLte(){if(hasRequiredLte)return lte_1;hasRequiredLte=1;const t=requireCompare();return lte_1=(o,i,l)=>t(o,i,l)<=0,lte_1}var cmp_1,hasRequiredCmp;function requireCmp(){if(hasRequiredCmp)return cmp_1;hasRequiredCmp=1;const t=requireEq(),e=requireNeq(),o=requireGt(),i=requireGte(),l=requireLt(),n=requireLte();return cmp_1=(d,a,r,s)=>{switch(a){case"===":return typeof d=="object"&&(d=d.version),typeof r=="object"&&(r=r.version),d===r;case"!==":return typeof d=="object"&&(d=d.version),typeof r=="object"&&(r=r.version),d!==r;case"":case"=":case"==":return t(d,r,s);case"!=":return e(d,r,s);case">":return o(d,r,s);case">=":return i(d,r,s);case"<":return l(d,r,s);case"<=":return n(d,r,s);default:throw new TypeError(`Invalid operator: ${a}`)}},cmp_1}var coerce_1,hasRequiredCoerce;function requireCoerce(){if(hasRequiredCoerce)return coerce_1;hasRequiredCoerce=1;const t=requireSemver$1(),e=requireParse$1(),{safeRe:o,t:i}=requireRe();return coerce_1=(n,u)=>{if(n instanceof t)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;u=u||{};let d=null;if(!u.rtl)d=n.match(u.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);else{const f=u.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let b;for(;(b=f.exec(n))&&(!d||d.index+d[0].length!==n.length);)(!d||b.index+b[0].length!==d.index+d[0].length)&&(d=b),f.lastIndex=b.index+b[1].length+b[2].length;f.lastIndex=-1}if(d===null)return null;const a=d[2],r=d[3]||"0",s=d[4]||"0",h=u.includePrerelease&&d[5]?`-${d[5]}`:"",c=u.includePrerelease&&d[6]?`+${d[6]}`:"";return e(`${a}.${r}.${s}${h}${c}`,u)},coerce_1}var truncate_1,hasRequiredTruncate;function requireTruncate(){if(hasRequiredTruncate)return truncate_1;hasRequiredTruncate=1;const t=requireParse$1(),e=requireConstants(),o=requireSemver$1(),i=(d,a,r)=>{if(!e.RELEASE_TYPES.includes(a))return null;const s=l(d,r);return s&&n(s,a)},l=(d,a)=>{const r=d instanceof o?d.version:d;return t(r,a)},n=(d,a)=>{if(u(a))return d.version;switch(d.prerelease=[],a){case"major":d.minor=0,d.patch=0;break;case"minor":d.patch=0;break}return d.format()},u=d=>d.startsWith("pre");return truncate_1=i,truncate_1}var lrucache,hasRequiredLrucache;function requireLrucache(){if(hasRequiredLrucache)return lrucache;hasRequiredLrucache=1;class t{constructor(){this.max=1e3,this.map=new Map}get(o){const i=this.map.get(o);if(i!==void 0)return this.map.delete(o),this.map.set(o,i),i}delete(o){return this.map.delete(o)}set(o,i){if(!this.delete(o)&&i!==void 0){if(this.map.size>=this.max){const n=this.map.keys().next().value;this.delete(n)}this.map.set(o,i)}return this}}return lrucache=t,lrucache}var range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const t=/\s+/g;class e{constructor(B,V){if(V=l(V),B instanceof e)return B.loose===!!V.loose&&B.includePrerelease===!!V.includePrerelease?B:new e(B.raw,V);if(B instanceof n)return this.raw=B.value,this.set=[[B]],this.formatted=void 0,this;if(this.options=V,this.loose=!!V.loose,this.includePrerelease=!!V.includePrerelease,this.raw=B.trim().replace(t," "),this.set=this.raw.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(j=>!_(j[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const j of this.set)if(j.length===1&&m(j[0])){this.set=[j];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let B=0;B<this.set.length;B++){B>0&&(this.formatted+="||");const V=this.set[B];for(let F=0;F<V.length;F++)F>0&&(this.formatted+=" "),this.formatted+=V[F].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(B){B=B.replace(w,"");const F=((this.options.includePrerelease&&b)|(this.options.loose&&y))+":"+B,j=i.get(F);if(j)return j;const K=this.options.loose,k=K?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];B=B.replace(k,D(this.options.includePrerelease)),u("hyphen replace",B),B=B.replace(a[s.COMPARATORTRIM],h),u("comparator trim",B),B=B.replace(a[s.TILDETRIM],c),u("tilde trim",B),B=B.replace(a[s.CARETTRIM],f),u("caret trim",B);let q=B.split(" ").map(z=>g(z,this.options)).join(" ").split(/\s+/).map(z=>M(z,this.options));K&&(q=q.filter(z=>(u("loose invalid filter",z,this.options),!!z.match(a[s.COMPARATORLOOSE])))),u("range list",q);const N=new Map,W=q.map(z=>new n(z,this.options));for(const z of W){if(_(z))return[z];N.set(z.value,z)}N.size>1&&N.has("")&&N.delete("");const J=[...N.values()];return i.set(F,J),J}intersects(B,V){if(!(B instanceof e))throw new TypeError("a Range is required");return this.set.some(F=>A(F,V)&&B.set.some(j=>A(j,V)&&F.every(K=>j.every(k=>K.intersects(k,V)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new d(B,this.options)}catch{return!1}for(let V=0;V<this.set.length;V++)if(H(this.set[V],B,this.options))return!0;return!1}}range=e;const o=requireLrucache(),i=new o,l=requireParseOptions(),n=requireComparator(),u=requireDebug(),d=requireSemver$1(),{safeRe:a,src:r,t:s,comparatorTrimReplace:h,tildeTrimReplace:c,caretTrimReplace:f}=requireRe(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:y}=requireConstants(),w=new RegExp(r[s.BUILD],"g"),_=U=>U.value==="<0.0.0-0",m=U=>U.value==="",A=(U,B)=>{let V=!0;const F=U.slice();let j=F.pop();for(;V&&F.length;)V=F.every(K=>j.intersects(K,B)),j=F.pop();return V},g=(U,B)=>(U=U.replace(a[s.BUILD],""),u("comp",U,B),U=E(U,B),u("caret",U),U=C(U,B),u("tildes",U),U=S(U,B),u("xrange",U),U=x(U,B),u("stars",U),U),p=U=>!U||U.toLowerCase()==="x"||U==="*",v=(U,B,V)=>p(U)&&!p(B)||p(B)&&V&&!p(V),C=(U,B)=>U.trim().split(/\s+/).map(V=>P(V,B)).join(" "),P=(U,B)=>{const V=B.loose?a[s.TILDELOOSE]:a[s.TILDE],F=B.includePrerelease?"-0":"";return U.replace(V,(j,K,k,q,N)=>{u("tilde",U,j,K,k,q,N);let W;return p(K)?W="":p(k)?W=`>=${K}.0.0${F} <${+K+1}.0.0-0`:p(q)?W=`>=${K}.${k}.0${F} <${K}.${+k+1}.0-0`:N?(u("replaceTilde pr",N),W=`>=${K}.${k}.${q}-${N} <${K}.${+k+1}.0-0`):W=`>=${K}.${k}.${q} <${K}.${+k+1}.0-0`,u("tilde return",W),W})},E=(U,B)=>U.trim().split(/\s+/).map(V=>R(V,B)).join(" "),R=(U,B)=>{u("caret",U,B);const V=B.loose?a[s.CARETLOOSE]:a[s.CARET],F=B.includePrerelease?"-0":"";return U.replace(V,(j,K,k,q,N)=>{u("caret",U,j,K,k,q,N);let W;return p(K)?W="":p(k)?W=`>=${K}.0.0${F} <${+K+1}.0.0-0`:p(q)?K==="0"?W=`>=${K}.${k}.0${F} <${K}.${+k+1}.0-0`:W=`>=${K}.${k}.0${F} <${+K+1}.0.0-0`:N?(u("replaceCaret pr",N),K==="0"?k==="0"?W=`>=${K}.${k}.${q}-${N} <${K}.${k}.${+q+1}-0`:W=`>=${K}.${k}.${q}-${N} <${K}.${+k+1}.0-0`:W=`>=${K}.${k}.${q}-${N} <${+K+1}.0.0-0`):(u("no pr"),K==="0"?k==="0"?W=`>=${K}.${k}.${q} <${K}.${k}.${+q+1}-0`:W=`>=${K}.${k}.${q} <${K}.${+k+1}.0-0`:W=`>=${K}.${k}.${q} <${+K+1}.0.0-0`),u("caret return",W),W})},S=(U,B)=>(u("replaceXRanges",U,B),U.split(/\s+/).map(V=>I(V,B)).join(" ")),I=(U,B)=>{U=U.trim();const V=B.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return U.replace(V,(F,j,K,k,q,N)=>{if(u("xRange",U,F,j,K,k,q,N),v(K,k,q))return U;const W=p(K),J=W||p(k),z=J||p(q),ne=z;return j==="="&&ne&&(j=""),N=B.includePrerelease?"-0":"",W?j===">"||j==="<"?F="<0.0.0-0":F="*":j&&ne?(J&&(k=0),q=0,j===">"?(j=">=",J?(K=+K+1,k=0,q=0):(k=+k+1,q=0)):j==="<="&&(j="<",J?K=+K+1:k=+k+1),j==="<"&&(N="-0"),F=`${j+K}.${k}.${q}${N}`):J?F=`>=${K}.0.0${N} <${+K+1}.0.0-0`:z&&(F=`>=${K}.${k}.0${N} <${K}.${+k+1}.0-0`),u("xRange return",F),F})},x=(U,B)=>(u("replaceStars",U,B),U.trim().replace(a[s.STAR],"")),M=(U,B)=>(u("replaceGTE0",U,B),U.trim().replace(a[B.includePrerelease?s.GTE0PRE:s.GTE0],"")),D=U=>(B,V,F,j,K,k,q,N,W,J,z,ne)=>(p(F)?V="":p(j)?V=`>=${F}.0.0${U?"-0":""}`:p(K)?V=`>=${F}.${j}.0${U?"-0":""}`:k?V=`>=${V}`:V=`>=${V}${U?"-0":""}`,p(W)?N="":p(J)?N=`<${+W+1}.0.0-0`:p(z)?N=`<${W}.${+J+1}.0-0`:ne?N=`<=${W}.${J}.${z}-${ne}`:U?N=`<${W}.${J}.${+z+1}-0`:N=`<=${N}`,`${V} ${N}`.trim()),H=(U,B,V)=>{for(let F=0;F<U.length;F++)if(!U[F].test(B))return!1;if(B.prerelease.length&&!V.includePrerelease){for(let F=0;F<U.length;F++)if(u(U[F].semver),U[F].semver!==n.ANY&&U[F].semver.prerelease.length>0){const j=U[F].semver;if(j.major===B.major&&j.minor===B.minor&&j.patch===B.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(s,h){if(h=o(h),s instanceof e){if(s.loose===!!h.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),u("comparator",s,h),this.options=h,this.loose=!!h.loose,this.parse(s),this.semver===t?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(s){const h=this.options.loose?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],c=s.match(h);if(!c)throw new TypeError(`Invalid comparator: ${s}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new d(c[2],this.options.loose):this.semver=t}toString(){return this.value}test(s){if(u("Comparator.test",s,this.options.loose),this.semver===t||s===t)return!0;if(typeof s=="string")try{s=new d(s,this.options)}catch{return!1}return n(s,this.operator,this.semver,this.options)}intersects(s,h){if(!(s instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(s.value,h).test(this.value):s.operator===""?s.value===""?!0:new a(this.value,h).test(s.semver):(h=o(h),h.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||n(this.semver,"<",s.semver,h)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||n(this.semver,">",s.semver,h)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}}comparator=e;const o=requireParseOptions(),{safeRe:i,t:l}=requireRe(),n=requireCmp(),u=requireDebug(),d=requireSemver$1(),a=requireRange();return comparator}var satisfies_1,hasRequiredSatisfies;function requireSatisfies(){if(hasRequiredSatisfies)return satisfies_1;hasRequiredSatisfies=1;const t=requireRange();return satisfies_1=(o,i,l)=>{try{i=new t(i,l)}catch{return!1}return i.test(o)},satisfies_1}var toComparators_1,hasRequiredToComparators;function requireToComparators(){if(hasRequiredToComparators)return toComparators_1;hasRequiredToComparators=1;const t=requireRange();return toComparators_1=(o,i)=>new t(o,i).set.map(l=>l.map(n=>n.value).join(" ").trim().split(" ")),toComparators_1}var maxSatisfying_1,hasRequiredMaxSatisfying;function requireMaxSatisfying(){if(hasRequiredMaxSatisfying)return maxSatisfying_1;hasRequiredMaxSatisfying=1;const t=requireSemver$1(),e=requireRange();return maxSatisfying_1=(i,l,n)=>{let u=null,d=null,a=null;try{a=new e(l,n)}catch{return null}return i.forEach(r=>{a.test(r)&&(!u||d.compare(r)===-1)&&(u=r,d=new t(u,n))}),u},maxSatisfying_1}var minSatisfying_1,hasRequiredMinSatisfying;function requireMinSatisfying(){if(hasRequiredMinSatisfying)return minSatisfying_1;hasRequiredMinSatisfying=1;const t=requireSemver$1(),e=requireRange();return minSatisfying_1=(i,l,n)=>{let u=null,d=null,a=null;try{a=new e(l,n)}catch{return null}return i.forEach(r=>{a.test(r)&&(!u||d.compare(r)===1)&&(u=r,d=new t(u,n))}),u},minSatisfying_1}var minVersion_1,hasRequiredMinVersion;function requireMinVersion(){if(hasRequiredMinVersion)return minVersion_1;hasRequiredMinVersion=1;const t=requireSemver$1(),e=requireRange(),o=requireGt();return minVersion_1=(l,n)=>{l=new e(l,n);let u=new t("0.0.0");if(l.test(u)||(u=new t("0.0.0-0"),l.test(u)))return u;u=null;for(let d=0;d<l.set.length;++d){const a=l.set[d];let r=null;a.forEach(s=>{const h=new t(s.semver.version);switch(s.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!r||o(h,r))&&(r=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),r&&(!u||o(u,r))&&(u=r)}return u&&l.test(u)?u:null},minVersion_1}var valid,hasRequiredValid;function requireValid(){if(hasRequiredValid)return valid;hasRequiredValid=1;const t=requireRange();return valid=(o,i)=>{try{return new t(o,i).range||"*"}catch{return null}},valid}var outside_1,hasRequiredOutside;function requireOutside(){if(hasRequiredOutside)return outside_1;hasRequiredOutside=1;const t=requireSemver$1(),e=requireComparator(),{ANY:o}=e,i=requireRange(),l=requireSatisfies(),n=requireGt(),u=requireLt(),d=requireLte(),a=requireGte();return outside_1=(s,h,c,f)=>{s=new t(s,f),h=new i(h,f);let b,y,w,_,m;switch(c){case">":b=n,y=d,w=u,_=">",m=">=";break;case"<":b=u,y=a,w=n,_="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(s,h,f))return!1;for(let A=0;A<h.set.length;++A){const g=h.set[A];let p=null,v=null;if(g.forEach(C=>{C.semver===o&&(C=new e(">=0.0.0")),p=p||C,v=v||C,b(C.semver,p.semver,f)?p=C:w(C.semver,v.semver,f)&&(v=C)}),p.operator===_||p.operator===m||(!v.operator||v.operator===_)&&y(s,v.semver))return!1;if(v.operator===m&&w(s,v.semver))return!1}return!0},outside_1}var gtr_1,hasRequiredGtr;function requireGtr(){if(hasRequiredGtr)return gtr_1;hasRequiredGtr=1;const t=requireOutside();return gtr_1=(o,i,l)=>t(o,i,">",l),gtr_1}var ltr_1,hasRequiredLtr;function requireLtr(){if(hasRequiredLtr)return ltr_1;hasRequiredLtr=1;const t=requireOutside();return ltr_1=(o,i,l)=>t(o,i,"<",l),ltr_1}var intersects_1,hasRequiredIntersects;function requireIntersects(){if(hasRequiredIntersects)return intersects_1;hasRequiredIntersects=1;const t=requireRange();return intersects_1=(o,i,l)=>(o=new t(o,l),i=new t(i,l),o.intersects(i,l)),intersects_1}var simplify,hasRequiredSimplify;function requireSimplify(){if(hasRequiredSimplify)return simplify;hasRequiredSimplify=1;const t=requireSatisfies(),e=requireCompare();return simplify=(o,i,l)=>{const n=[];let u=null,d=null;const a=o.sort((c,f)=>e(c,f,l));for(const c of a)t(c,i,l)?(d=c,u||(u=c)):(d&&n.push([u,d]),d=null,u=null);u&&n.push([u,null]);const r=[];for(const[c,f]of n)c===f?r.push(c):!f&&c===a[0]?r.push("*"):f?c===a[0]?r.push(`<=${f}`):r.push(`${c} - ${f}`):r.push(`>=${c}`);const s=r.join(" || "),h=typeof i.raw=="string"?i.raw:String(i);return s.length<h.length?s:i},simplify}var subset_1,hasRequiredSubset;function requireSubset(){if(hasRequiredSubset)return subset_1;hasRequiredSubset=1;const t=requireRange(),e=requireComparator(),{ANY:o}=e,i=requireSatisfies(),l=requireCompare(),n=(h,c,f={})=>{if(h===c)return!0;h=new t(h,f),c=new t(c,f);let b=!1;e:for(const y of h.set){for(const w of c.set){const _=a(y,w,f);if(b=b||_!==null,_)continue e}if(b)return!1}return!0},u=[new e(">=0.0.0-0")],d=[new e(">=0.0.0")],a=(h,c,f)=>{if(h===c)return!0;if(h.length===1&&h[0].semver===o){if(c.length===1&&c[0].semver===o)return!0;f.includePrerelease?h=u:h=d}if(c.length===1&&c[0].semver===o){if(f.includePrerelease)return!0;c=d}const b=new Set;let y,w;for(const P of h)P.operator===">"||P.operator===">="?y=r(y,P,f):P.operator==="<"||P.operator==="<="?w=s(w,P,f):b.add(P.semver);if(b.size>1)return null;let _;if(y&&w){if(_=l(y.semver,w.semver,f),_>0)return null;if(_===0&&(y.operator!==">="||w.operator!=="<="))return null}for(const P of b){if(y&&!i(P,String(y),f)||w&&!i(P,String(w),f))return null;for(const E of c)if(!i(P,String(E),f))return!1;return!0}let m,A,g,p,v=w&&!f.includePrerelease&&w.semver.prerelease.length?w.semver:!1,C=y&&!f.includePrerelease&&y.semver.prerelease.length?y.semver:!1;v&&v.prerelease.length===1&&w.operator==="<"&&v.prerelease[0]===0&&(v=!1);for(const P of c){if(p=p||P.operator===">"||P.operator===">=",g=g||P.operator==="<"||P.operator==="<=",y){if(C&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===C.major&&P.semver.minor===C.minor&&P.semver.patch===C.patch&&(C=!1),P.operator===">"||P.operator===">="){if(m=r(y,P,f),m===P&&m!==y)return!1}else if(y.operator===">="&&!P.test(y.semver))return!1}if(w){if(v&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===v.major&&P.semver.minor===v.minor&&P.semver.patch===v.patch&&(v=!1),P.operator==="<"||P.operator==="<="){if(A=s(w,P,f),A===P&&A!==w)return!1}else if(w.operator==="<="&&!P.test(w.semver))return!1}if(!P.operator&&(w||y)&&_!==0)return!1}return!(y&&g&&!w&&_!==0||w&&p&&!y&&_!==0||C||v)},r=(h,c,f)=>{if(!h)return c;const b=l(h.semver,c.semver,f);return b>0?h:b<0||c.operator===">"&&h.operator===">="?c:h},s=(h,c,f)=>{if(!h)return c;const b=l(h.semver,c.semver,f);return b<0?h:b>0||c.operator==="<"&&h.operator==="<="?c:h};return subset_1=n,subset_1}var semver,hasRequiredSemver;function requireSemver(){if(hasRequiredSemver)return semver;hasRequiredSemver=1;const t=requireRe(),e=requireConstants(),o=requireSemver$1(),i=requireIdentifiers(),l=requireParse$1(),n=requireValid$1(),u=requireClean(),d=requireInc(),a=requireDiff(),r=requireMajor(),s=requireMinor(),h=requirePatch(),c=requirePrerelease(),f=requireCompare(),b=requireRcompare(),y=requireCompareLoose(),w=requireCompareBuild(),_=requireSort(),m=requireRsort(),A=requireGt(),g=requireLt(),p=requireEq(),v=requireNeq(),C=requireGte(),P=requireLte(),E=requireCmp(),R=requireCoerce(),S=requireTruncate(),I=requireComparator(),x=requireRange(),M=requireSatisfies(),D=requireToComparators(),H=requireMaxSatisfying(),U=requireMinSatisfying(),B=requireMinVersion(),V=requireValid(),F=requireOutside(),j=requireGtr(),K=requireLtr(),k=requireIntersects(),q=requireSimplify(),N=requireSubset();return semver={parse:l,valid:n,clean:u,inc:d,diff:a,major:r,minor:s,patch:h,prerelease:c,compare:f,rcompare:b,compareLoose:y,compareBuild:w,sort:_,rsort:m,gt:A,lt:g,eq:p,neq:v,gte:C,lte:P,cmp:E,coerce:R,truncate:S,Comparator:I,Range:x,satisfies:M,toComparators:D,maxSatisfying:H,minSatisfying:U,minVersion:B,validRange:V,outside:F,gtr:j,ltr:K,intersects:k,simplifyRange:q,subset:N,SemVer:o,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},semver}var semverExports=requireSemver();const OUTPUT_WIDGET_VERSION="1.0.0";let OutputModel$2=class extends DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:"OutputModel",_view_name:"OutputView",_model_module:"@jupyter-widgets/output",_view_module:"@jupyter-widgets/output",_model_module_version:OUTPUT_WIDGET_VERSION,_view_module_version:OUTPUT_WIDGET_VERSION})}},OutputView$1=class extends DOMWidgetView{};function isExecuteResult(t){return t.output_type==="execute_result"}function isDisplayData(t){return t.output_type==="display_data"}function isDisplayUpdate(t){return t.output_type==="update_display_data"}function isStream(t){return t.output_type==="stream"}function isError(t){return t.output_type==="error"}class ObservableMap{constructor(e={}){if(this._map=new Map,this._changed=new Signal(this),this._isDisposed=!1,this._itemCmp=e.itemCmp||Private$9.itemCmp,e.values)for(const o in e.values)this._map.set(o,e.values[o])}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,o){const i=this._map.get(e);if(o===void 0)throw Error("Cannot set an undefined value, use remove");const l=this._itemCmp;return i!==void 0&&l(i,o)||(this._map.set(e,o),this._changed.emit({type:i?"change":"add",key:e,oldValue:i,newValue:o})),i}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){const e=[];return this._map.forEach((o,i)=>{e.push(i)}),e}values(){const e=[];return this._map.forEach((o,i)=>{e.push(o)}),e}delete(e){const o=this._map.get(e);return this._map.delete(e)&&this._changed.emit({type:"remove",key:e,oldValue:o,newValue:void 0}),o}clear(){const e=this.keys();for(let o=0;o<e.length;o++)this.delete(e[o])}dispose(){this.isDisposed||(this._isDisposed=!0,Signal.clearData(this),this._map.clear())}}var Private$9;(function(t){function e(o,i){return o===i}t.itemCmp=e})(Private$9||(Private$9={}));class ObservableJSON extends ObservableMap{constructor(e={}){super({itemCmp:JSONExt.deepEqual,values:e.values})}toJSON(){const e=Object.create(null),o=this.keys();for(const i of o){const l=this.get(i);l!==void 0&&(e[i]=JSONExt.deepCopy(l))}return e}}(function(t){class e extends Message{constructor(i,l){super(i),this.args=l}}t.ChangeMessage=e})(ObservableJSON||(ObservableJSON={}));class ObservableString{constructor(e=""){this._text="",this._isDisposed=!1,this._changed=new Signal(this),this._text=e}get type(){return"String"}get changed(){return this._changed}set text(e){e.length===this._text.length&&e===this._text||(this._text=e,this._changed.emit({type:"set",start:0,end:e.length,value:e}))}get text(){return this._text}insert(e,o,i){this._text=this._text.slice(0,e)+o+this._text.slice(e),this._changed.emit({type:"insert",start:e,end:e+o.length,value:o,options:i})}remove(e,o,i){const l=this._text.slice(e,o);this._text=this._text.slice(0,e)+this._text.slice(o),this._changed.emit({type:"remove",start:e,end:o,value:l,options:i})}clear(){this.text=""}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,Signal.clearData(this),this.clear())}}class ObservableList{constructor(e={}){if(this._array=[],this._isDisposed=!1,this._changed=new Signal(this),e.values)for(const o of e.values)this._array.push(o);this._itemCmp=e.itemCmp||Private$8.itemCmp}get type(){return"List"}get changed(){return this._changed}get length(){return this._array.length}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,Signal.clearData(this),this.clear())}[Symbol.iterator](){return this._array[Symbol.iterator]()}get(e){return this._array[e]}set(e,o){const i=this._array[e];if(o===void 0)throw new Error("Cannot set an undefined item");const l=this._itemCmp;l(i,o)||(this._array[e]=o,this._changed.emit({type:"set",oldIndex:e,newIndex:e,oldValues:[i],newValues:[o]}))}push(e){const o=this._array.push(e);return this._changed.emit({type:"add",oldIndex:-1,newIndex:this.length-1,oldValues:[],newValues:[e]}),o}insert(e,o){e===this._array.length?this._array.push(o):ArrayExt.insert(this._array,e,o),this._changed.emit({type:"add",oldIndex:-2,newIndex:e,oldValues:[],newValues:[o]})}removeValue(e){const o=this._itemCmp,i=ArrayExt.findFirstIndex(this._array,l=>o(l,e));return i<0||this.remove(i),i}remove(e){const o=ArrayExt.removeAt(this._array,e);if(o!==void 0)return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[o]}),o}clear(){const e=this._array.slice();this._array.length=0,this._changed.emit({type:"clear",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,o){if(this.length<=1||e===o)return;const i=[this._array[e]];ArrayExt.move(this._array,e,o),this._changed.emit({type:"move",oldIndex:e,newIndex:o,oldValues:i,newValues:i})}pushAll(e){const o=this.length;for(const i of e)this._array.push(i);return this._changed.emit({type:"add",oldIndex:-1,newIndex:o,oldValues:[],newValues:Array.from(e)}),this.length}insertAll(e,o){const i=e;for(const l of o)ArrayExt.insert(this._array,e++,l);this._changed.emit({type:"add",oldIndex:-2,newIndex:i,oldValues:[],newValues:Array.from(o)})}removeRange(e,o){const i=this._array.slice(e,o);for(let l=e;l<o;l++)ArrayExt.removeAt(this._array,e);return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,oldValues:i,newValues:[]}),this.length}}var Private$8;(function(t){function e(o,i){return o===i}t.itemCmp=e})(Private$8||(Private$8={}));var lib$8={},dataconnector={},hasRequiredDataconnector;function requireDataconnector(){if(hasRequiredDataconnector)return dataconnector;hasRequiredDataconnector=1,Object.defineProperty(dataconnector,"__esModule",{value:!0}),dataconnector.DataConnector=void 0;class t{async list(o){throw new Error("DataConnector#list method has not been implemented.")}async remove(o){throw new Error("DataConnector#remove method has not been implemented.")}async save(o,i){throw new Error("DataConnector#save method has not been implemented.")}}return dataconnector.DataConnector=t,dataconnector}var interfaces$1={},hasRequiredInterfaces$1;function requireInterfaces$1(){return hasRequiredInterfaces$1||(hasRequiredInterfaces$1=1,Object.defineProperty(interfaces$1,"__esModule",{value:!0})),interfaces$1}var restorablepool={},dist$1={exports:{}};const require$$0$1=getAugmentedNamespace(index_es6$1);var dist=dist$1.exports,hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,(function(t,e){(function(o,i){i(e,require$$0$1)})(dist,(function(o,i){o.JSONExt=void 0,(function(h){h.emptyObject=Object.freeze({}),h.emptyArray=Object.freeze([]);function c(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"}h.isPrimitive=c;function f(p){return Array.isArray(p)}h.isArray=f;function b(p){return!c(p)&&!f(p)}h.isObject=b;function y(p,v){if(p===v)return!0;if(c(p)||c(v))return!1;let C=f(p),P=f(v);return C!==P?!1:C&&P?_(p,v):m(p,v)}h.deepEqual=y;function w(p){return c(p)?p:f(p)?A(p):g(p)}h.deepCopy=w;function _(p,v){if(p===v)return!0;if(p.length!==v.length)return!1;for(let C=0,P=p.length;C<P;++C)if(!y(p[C],v[C]))return!1;return!0}function m(p,v){if(p===v)return!0;for(let C in p)if(p[C]!==void 0&&!(C in v))return!1;for(let C in v)if(v[C]!==void 0&&!(C in p))return!1;for(let C in p){let P=p[C],E=v[C];if(!(P===void 0&&E===void 0)&&(P===void 0||E===void 0||!y(P,E)))return!1}return!0}function A(p){let v=new Array(p.length);for(let C=0,P=p.length;C<P;++C)v[C]=w(p[C]);return v}function g(p){let v={};for(let C in p){let P=p[C];P!==void 0&&(v[C]=w(P))}return v}})(o.JSONExt||(o.JSONExt={}));class l{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(c){return this._types.indexOf(c)!==-1}getData(c){let f=this._types.indexOf(c);return f!==-1?this._values[f]:void 0}setData(c,f){this.clearData(c),this._types.push(c),this._values.push(f)}clearData(c){let f=this._types.indexOf(c);f!==-1&&(this._types.splice(f,1),this._values.splice(f,1))}clear(){this._types.length=0,this._values.length=0}}class n{constructor(c={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,c.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=c.validatePlugin)}get application(){return this._application}set application(c){if(this._application!==null)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=c}get deferredPlugins(){return Array.from(this._plugins).filter(([c,f])=>f.autoStart==="defer").map(([c,f])=>c)}getPluginDescription(c){var f,b;return(b=(f=this._plugins.get(c))===null||f===void 0?void 0:f.description)!==null&&b!==void 0?b:""}hasPlugin(c){return this._plugins.has(c)}isPluginActivated(c){var f,b;return(b=(f=this._plugins.get(c))===null||f===void 0?void 0:f.activated)!==null&&b!==void 0?b:!1}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(c){if(this._plugins.has(c.id))throw new TypeError(`Plugin '${c.id}' is already registered.`);if(!this._validatePlugin(c))throw new Error(`Plugin '${c.id}' is not valid.`);const f=u.createPluginData(c);u.ensureNoCycle(f,this._plugins,this._services),f.provides&&this._services.set(f.provides,f.id),this._plugins.set(f.id,f)}registerPlugins(c){for(const f of c)this.registerPlugin(f)}deregisterPlugin(c,f){const b=this._plugins.get(c);if(b){if(b.activated&&!f)throw new Error(`Plugin '${c}' is still active.`);this._plugins.delete(c)}}async activatePlugin(c){const f=this._plugins.get(c);if(!f)throw new ReferenceError(`Plugin '${c}' is not registered.`);if(f.activated)return;if(f.promise)return f.promise;const b=f.requires.map(w=>this.resolveRequiredService(w)),y=f.optional.map(w=>this.resolveOptionalService(w));return f.promise=Promise.all([...b,...y]).then(w=>f.activate.apply(void 0,[this.application,...w])).then(w=>{f.service=w,f.activated=!0,f.promise=null}).catch(w=>{throw f.promise=null,w}),f.promise}async activatePlugins(c,f={}){switch(c){case"defer":{const b=this.deferredPlugins.filter(y=>this._plugins.get(y).autoStart).map(y=>this.activatePlugin(y));await Promise.all(b);break}case"startUp":{const y=u.collectStartupPlugins(this._plugins,f).map(async w=>{try{return await this.activatePlugin(w)}catch(_){console.error(`Plugin '${w}' failed to activate.`,_)}});await Promise.all(y);break}}}async deactivatePlugin(c){const f=this._plugins.get(c);if(!f)throw new ReferenceError(`Plugin '${c}' is not registered.`);if(!f.activated)return[];if(!f.deactivate)throw new TypeError(`Plugin '${c}'#deactivate() method missing`);const b=u.findDependents(c,this._plugins,this._services),y=b.map(w=>this._plugins.get(w));for(const w of y)if(!w.deactivate)throw new TypeError(`Plugin ${w.id}#deactivate() method missing (depends on ${c})`);for(const w of y){const _=[...w.requires,...w.optional].map(m=>{const A=this._services.get(m);return A?this._plugins.get(A).service:null});await w.deactivate(this.application,..._),w.service=null,w.activated=!1}return b.pop(),b}async resolveRequiredService(c){const f=this._services.get(c);if(!f)throw new TypeError(`No provider for: ${c.name}.`);const b=this._plugins.get(f);return b.activated||await this.activatePlugin(f),b.service}async resolveOptionalService(c){const f=this._services.get(c);if(!f)return null;const b=this._plugins.get(f);if(!b.activated)try{await this.activatePlugin(f)}catch(y){return console.error(y),null}return b.service}}var u;(function(h){class c{constructor(m){var A,g,p,v;this._activated=!1,this._promise=null,this._service=null,this.id=m.id,this.description=(A=m.description)!==null&&A!==void 0?A:"",this.activate=m.activate,this.deactivate=(g=m.deactivate)!==null&&g!==void 0?g:null,this.provides=(p=m.provides)!==null&&p!==void 0?p:null,this.autoStart=(v=m.autoStart)!==null&&v!==void 0?v:!1,this.requires=m.requires?m.requires.slice():[],this.optional=m.optional?m.optional.slice():[]}get activated(){return this._activated}set activated(m){this._activated=m}get service(){return this._service}set service(m){this._service=m}get promise(){return this._promise}set promise(m){this._promise=m}}function f(_){return new c(_)}h.createPluginData=f;function b(_,m,A){const g=[..._.requires,..._.optional],p=C=>{if(C===_.provides)return!0;const P=A.get(C);if(!P)return!1;const E=m.get(P),R=[...E.requires,...E.optional];return R.length===0?!1:(v.push(P),R.some(p)?!0:(v.pop(),!1))};if(!_.provides||g.length===0)return;const v=[_.id];if(g.some(p))throw new ReferenceError(`Cycle detected: ${v.join(" -> ")}.`)}h.ensureNoCycle=b;function y(_,m,A){const g=new Array,p=R=>{const S=m.get(R),I=[...S.requires,...S.optional];g.push(...I.reduce((x,M)=>{const D=A.get(M);return D&&x.push([R,D]),x},[]))};for(const R of m.keys())p(R);const v=g.filter(R=>R[1]===_);let C=0;for(;v.length>C;){const R=v.length,S=new Set(v.map(I=>I[0]));for(const I of S)g.filter(x=>x[1]===I).forEach(x=>{v.includes(x)||v.push(x)});C=R}const P=i.topologicSort(v),E=P.findIndex(R=>R===_);return E===-1?[_]:P.slice(0,E+1)}h.findDependents=y;function w(_,m){const A=new Set;for(const g of _.keys())_.get(g).autoStart===!0&&A.add(g);if(m.startPlugins)for(const g of m.startPlugins)A.add(g);if(m.ignorePlugins)for(const g of m.ignorePlugins)A.delete(g);return Array.from(A)}h.collectStartupPlugins=w})(u||(u={}));class d{constructor(){this.promise=new Promise((c,f)=>{this._resolve=c,this._reject=f})}resolve(c){let f=this._resolve;f(c)}reject(c){let f=this._reject;f(c)}}class a{constructor(c,f){this.name=c,this.description=f??"",this._tokenStructuralPropertyT=null}}function r(h){let c=0;for(let f=0,b=h.length;f<b;++f)f%4===0&&(c=Math.random()*4294967295>>>0),h[f]=c&255,c>>>=8}o.Random=void 0,(function(h){h.getRandomValues=(()=>{const c=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return c&&typeof c.getRandomValues=="function"?function(b){return c.getRandomValues(b)}:r})()})(o.Random||(o.Random={}));function s(h){const c=new Uint8Array(16),f=new Array(256);for(let b=0;b<16;++b)f[b]="0"+b.toString(16);for(let b=16;b<256;++b)f[b]=b.toString(16);return function(){return h(c),c[6]=64|c[6]&15,c[8]=128|c[8]&63,f[c[0]]+f[c[1]]+f[c[2]]+f[c[3]]+"-"+f[c[4]]+f[c[5]]+"-"+f[c[6]]+f[c[7]]+"-"+f[c[8]]+f[c[9]]+"-"+f[c[10]]+f[c[11]]+f[c[12]]+f[c[13]]+f[c[14]]+f[c[15]]}}o.UUID=void 0,(function(h){h.uuid4=s(o.Random.getRandomValues)})(o.UUID||(o.UUID={})),o.MimeData=l,o.PluginRegistry=n,o.PromiseDelegate=d,o.Token=a}))})(dist$1,dist$1.exports)),dist$1.exports}const require$$1$2=getAugmentedNamespace(index_es6$2),require$$0=getAugmentedNamespace(index_es6$3);var hasRequiredRestorablepool;function requireRestorablepool(){if(hasRequiredRestorablepool)return restorablepool;hasRequiredRestorablepool=1,Object.defineProperty(restorablepool,"__esModule",{value:!0}),restorablepool.RestorablePool=void 0;const t=requireDist(),e=require$$1$2,o=require$$0;class i{constructor(u){this._added=new o.Signal(this),this._current=null,this._currentChanged=new o.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new t.PromiseDelegate,this._updated=new o.Signal(this),this.namespace=u.namespace}get added(){return this._added}get current(){return this._current}set current(u){this._current!==u&&u!==null&&this._objects.has(u)&&(this._current=u,this._currentChanged.emit(this._current))}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(u){var d,a;if(u.isDisposed){const r="A disposed object cannot be added.";throw console.warn(r,u),new Error(r)}if(this._objects.has(u)){const r="This object already exists in the pool.";throw console.warn(r,u),new Error(r)}if(this._objects.add(u),u.disposed.connect(this._onInstanceDisposed,this),!l.injectedProperty.get(u)){if(this._restore){const{connector:r}=this._restore,s=this._restore.name(u);if(s){const h=`${this.namespace}:${s}`,c=(a=(d=this._restore).args)===null||a===void 0?void 0:a.call(d,u);l.nameProperty.set(u,h),await r.save(h,{data:c})}}this._added.emit(u)}}dispose(){this.isDisposed||(this._current=null,this._isDisposed=!0,this._objects.clear(),o.Signal.clearData(this))}find(u){const d=this._objects.values();for(const a of d)if(u(a))return a}forEach(u){this._objects.forEach(u)}filter(u){const d=[];return this.forEach(a=>{u(a)&&d.push(a)}),d}inject(u){return l.injectedProperty.set(u,!0),this.add(u)}has(u){return this._objects.has(u)}async restore(u){if(this._hasRestored)throw new Error("This pool has already been restored.");this._hasRestored=!0;const{command:d,connector:a,registry:r,when:s}=u,h=this.namespace,c=s?[a.list(h)].concat(s):[a.list(h)];this._restore=u;const[f]=await Promise.all(c),b=await Promise.all(f.ids.map(async(y,w)=>{const _=f.values[w],m=_&&_.data;return m===void 0?a.remove(y):r.execute(d,m).catch(()=>a.remove(y))}));return this._restored.resolve(),b}async save(u){var d,a;const r=l.injectedProperty.get(u);if(!this._restore||!this.has(u)||r)return;const{connector:s}=this._restore,h=this._restore.name(u),c=l.nameProperty.get(u),f=h?`${this.namespace}:${h}`:"";if(c&&c!==f&&await s.remove(c),l.nameProperty.set(u,f),f){const b=(a=(d=this._restore).args)===null||a===void 0?void 0:a.call(d,u);await s.save(f,{data:b})}c!==f&&this._updated.emit(u)}_onInstanceDisposed(u){if(this._objects.delete(u),u===this._current&&(this._current=null,this._currentChanged.emit(this._current)),l.injectedProperty.get(u)||!this._restore)return;const{connector:d}=this._restore,a=l.nameProperty.get(u);a&&d.remove(a)}}restorablepool.RestorablePool=i;var l;return(function(n){n.injectedProperty=new e.AttachedProperty({name:"injected",create:()=>!1}),n.nameProperty=new e.AttachedProperty({name:"name",create:()=>""})})(l||(l={})),restorablepool}var statedb={},hasRequiredStatedb;function requireStatedb(){if(hasRequiredStatedb)return statedb;hasRequiredStatedb=1,Object.defineProperty(statedb,"__esModule",{value:!0}),statedb.StateDB=void 0;const t=require$$0;class e{constructor(i={}){this._changed=new t.Signal(this);const{connector:l,transform:n}=i;this._connector=l||new e.Connector,n?this._ready=n.then(u=>{const{contents:d,type:a}=u;switch(a){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(d||{});case"overwrite":return this._overwrite(d||{});default:return}}):this._ready=Promise.resolve(void 0)}get changed(){return this._changed}async clear(){await this._ready,await this._clear()}async fetch(i){return await this._ready,this._fetch(i)}async list(i){return await this._ready,this._list(i)}async remove(i){await this._ready,await this._remove(i),this._changed.emit({id:i,type:"remove"})}async save(i,l){await this._ready,await this._save(i,l),this._changed.emit({id:i,type:"save"})}async toJSON(){await this._ready;const{ids:i,values:l}=await this._list();return l.reduce((n,u,d)=>(n[i[d]]=u,n),{})}async _clear(){await Promise.all((await this._list()).ids.map(i=>this._remove(i)))}async _fetch(i){const l=await this._connector.fetch(i);if(l)return JSON.parse(l).v}async _list(i=""){const{ids:l,values:n}=await this._connector.list(i);return{ids:l,values:n.map(u=>JSON.parse(u).v)}}async _merge(i){await Promise.all(Object.keys(i).map(l=>i[l]&&this._save(l,i[l])))}async _overwrite(i){await this._clear(),await this._merge(i)}async _remove(i){return this._connector.remove(i)}async _save(i,l){return this._connector.save(i,JSON.stringify({v:l}))}}return statedb.StateDB=e,(function(o){class i{constructor(){this._storage={}}async fetch(n){return this._storage[n]}async list(n=""){return Object.keys(this._storage).reduce((u,d)=>((n===""||n===d.split(":")[0])&&(u.ids.push(d),u.values.push(this._storage[d])),u),{ids:[],values:[]})}async remove(n){delete this._storage[n]}async save(n,u){this._storage[n]=u}}o.Connector=i})(e||(statedb.StateDB=e={})),statedb}var tokens$1={},hasRequiredTokens$1;function requireTokens$1(){if(hasRequiredTokens$1)return tokens$1;hasRequiredTokens$1=1,Object.defineProperty(tokens$1,"__esModule",{value:!0}),tokens$1.IStateDB=void 0;const t=requireDist();return tokens$1.IStateDB=new t.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database.
1
+ import{D as DOMWidgetModel,a as DOMWidgetView,S as Signal,J as JSONExt,M as Message,A as ArrayExt,i as index_es6$1,b as index_es6$2,c as index_es6$3,d as index_es6$4,P as PromiseDelegate,W as Widget,F as FocusTracker,m as map,U as UUID,e as PanelLayout,f as Panel,g as AttachedProperty,h as JupyterLuminoPanelWidget,$,u as uuid,j as PROTOCOL_VERSION,p as put_buffers,r as reject,k as resolvePromisesDict,l as remove_buffers,n as MessageLoop}from"./services-shim-D_SeYcB9.js";import{c as createErrorWidgetModel,E as ErrorWidgetView,a as createErrorWidgetView}from"./errorwidget-B2XZ3hoa.js";import{g as getAugmentedNamespace,c as commonjsGlobal,a as getDefaultExportFromCjs}from"./index-NfxQwPBq.js";var re={exports:{}},constants,hasRequiredConstants;function requireConstants(){if(hasRequiredConstants)return constants;hasRequiredConstants=1;const t="2.0.0",e=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,l=e-6;return constants={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:l,MAX_SAFE_INTEGER:o,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},constants}var debug_1,hasRequiredDebug;function requireDebug(){if(hasRequiredDebug)return debug_1;hasRequiredDebug=1;var t={};return debug_1=typeof process=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...o)=>console.error("SEMVER",...o):()=>{},debug_1}var hasRequiredRe;function requireRe(){return hasRequiredRe||(hasRequiredRe=1,(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:l}=requireConstants(),n=requireDebug();e=t.exports={};const u=e.re=[],d=e.safeRe=[],a=e.src=[],r=e.safeSrc=[],s=e.t={};let h=0;const c="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",l],[c,i]],b=w=>{for(const[_,m]of f)w=w.split(`${_}*`).join(`${_}{0,${m}}`).split(`${_}+`).join(`${_}{1,${m}}`);return w},y=(w,_,m)=>{const A=b(_),g=h++;n(w,g,_),s[w]=g,a[g]=_,r[g]=A,u[g]=new RegExp(_,m?"g":void 0),d[g]=new RegExp(A,m?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),y("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${a[s.NONNUMERICIDENTIFIER]}|${a[s.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NONNUMERICIDENTIFIER]}|${a[s.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${c}+`),y("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),y("FULL",`^${a[s.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),y("LOOSE",`^${a[s.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${a[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${a[s.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),y("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`),y("COERCE",`${a[s.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",a[s.COERCEPLAIN]+`(?:${a[s.PRERELEASE]})?(?:${a[s.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",a[s.COERCE],!0),y("COERCERTLFULL",a[s.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re,re.exports)),re.exports}var parseOptions_1,hasRequiredParseOptions;function requireParseOptions(){if(hasRequiredParseOptions)return parseOptions_1;hasRequiredParseOptions=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return parseOptions_1=i=>i?typeof i!="object"?t:i:e,parseOptions_1}var identifiers,hasRequiredIdentifiers;function requireIdentifiers(){if(hasRequiredIdentifiers)return identifiers;hasRequiredIdentifiers=1;const t=/^[0-9]+$/,e=(i,l)=>{if(typeof i=="number"&&typeof l=="number")return i===l?0:i<l?-1:1;const n=t.test(i),u=t.test(l);return n&&u&&(i=+i,l=+l),i===l?0:n&&!u?-1:u&&!n?1:i<l?-1:1};return identifiers={compareIdentifiers:e,rcompareIdentifiers:(i,l)=>e(l,i)},identifiers}var semver$1,hasRequiredSemver$1;function requireSemver$1(){if(hasRequiredSemver$1)return semver$1;hasRequiredSemver$1=1;const t=requireDebug(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:o}=requireConstants(),{safeRe:i,t:l}=requireRe(),n=requireParseOptions(),{compareIdentifiers:u}=requireIdentifiers(),d=(r,s)=>{const h=s.split(".");if(h.length>r.length)return!1;for(let c=0;c<h.length;c++)if(u(r[c],h[c])!==0)return!1;return!0};class a{constructor(s,h){if(h=n(h),s instanceof a){if(s.loose===!!h.loose&&s.includePrerelease===!!h.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",s,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const c=s.trim().match(h.loose?i[l.LOOSE]:i[l.FULL]);if(!c)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const b=+f;if(b>=0&&b<o)return b}return f}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(s){if(t("SemVer.compare",this.version,this.options,s),!(s instanceof a)){if(typeof s=="string"&&s===this.version)return 0;s=new a(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof a||(s=new a(s,this.options)),this.major<s.major?-1:this.major>s.major?1:this.minor<s.minor?-1:this.minor>s.minor?1:this.patch<s.patch?-1:this.patch>s.patch?1:0}comparePre(s){if(s instanceof a||(s=new a(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let h=0;do{const c=this.prerelease[h],f=s.prerelease[h];if(t("prerelease compare",h,c,f),c===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(c===void 0)return-1;if(c===f)continue;return u(c,f)}while(++h)}compareBuild(s){s instanceof a||(s=new a(s,this.options));let h=0;do{const c=this.build[h],f=s.build[h];if(t("build compare",h,c,f),c===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(c===void 0)return-1;if(c===f)continue;return u(c,f)}while(++h)}inc(s,h,c){if(s.startsWith("pre")){if(!h&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(h){const f=`-${h}`.match(this.options.loose?i[l.PRERELEASELOOSE]:i[l.PRERELEASE]);if(!f||f[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,c),this.inc("pre",h,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,c),this.inc("pre",h,c);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(c)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let b=this.prerelease.length;for(;--b>=0;)typeof this.prerelease[b]=="number"&&(this.prerelease[b]++,b=-2);if(b===-1){if(h===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(h){let b=[h,f];if(c===!1&&(b=[h]),d(this.prerelease,h)){const y=this.prerelease[h.split(".").length];isNaN(y)&&(this.prerelease=b)}else this.prerelease=b}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return semver$1=a,semver$1}var parse_1$1,hasRequiredParse$1;function requireParse$1(){if(hasRequiredParse$1)return parse_1$1;hasRequiredParse$1=1;const t=requireSemver$1();return parse_1$1=(o,i,l=!1)=>{if(o instanceof t)return o;try{return new t(o,i)}catch(n){if(!l)return null;throw n}},parse_1$1}var valid_1,hasRequiredValid$1;function requireValid$1(){if(hasRequiredValid$1)return valid_1;hasRequiredValid$1=1;const t=requireParse$1();return valid_1=(o,i)=>{const l=t(o,i);return l?l.version:null},valid_1}var clean_1,hasRequiredClean;function requireClean(){if(hasRequiredClean)return clean_1;hasRequiredClean=1;const t=requireParse$1();return clean_1=(o,i)=>{const l=t(o.trim().replace(/^[=v]+/,""),i);return l?l.version:null},clean_1}var inc_1,hasRequiredInc;function requireInc(){if(hasRequiredInc)return inc_1;hasRequiredInc=1;const t=requireSemver$1();return inc_1=(o,i,l,n,u)=>{typeof l=="string"&&(u=n,n=l,l=void 0);try{return new t(o instanceof t?o.version:o,l).inc(i,n,u).version}catch{return null}},inc_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1;const t=requireParse$1();return diff_1=(o,i)=>{const l=t(o,null,!0),n=t(i,null,!0),u=l.compare(n);if(u===0)return null;const d=u>0,a=d?l:n,r=d?n:l,s=!!a.prerelease.length;if(!!r.prerelease.length&&!s){if(!r.patch&&!r.minor)return"major";if(r.compareMain(a)===0)return r.minor&&!r.patch?"minor":"patch"}const c=s?"pre":"";return l.major!==n.major?c+"major":l.minor!==n.minor?c+"minor":l.patch!==n.patch?c+"patch":"prerelease"},diff_1}var major_1,hasRequiredMajor;function requireMajor(){if(hasRequiredMajor)return major_1;hasRequiredMajor=1;const t=requireSemver$1();return major_1=(o,i)=>new t(o,i).major,major_1}var minor_1,hasRequiredMinor;function requireMinor(){if(hasRequiredMinor)return minor_1;hasRequiredMinor=1;const t=requireSemver$1();return minor_1=(o,i)=>new t(o,i).minor,minor_1}var patch_1,hasRequiredPatch;function requirePatch(){if(hasRequiredPatch)return patch_1;hasRequiredPatch=1;const t=requireSemver$1();return patch_1=(o,i)=>new t(o,i).patch,patch_1}var prerelease_1,hasRequiredPrerelease;function requirePrerelease(){if(hasRequiredPrerelease)return prerelease_1;hasRequiredPrerelease=1;const t=requireParse$1();return prerelease_1=(o,i)=>{const l=t(o,i);return l&&l.prerelease.length?l.prerelease:null},prerelease_1}var compare_1,hasRequiredCompare;function requireCompare(){if(hasRequiredCompare)return compare_1;hasRequiredCompare=1;const t=requireSemver$1();return compare_1=(o,i,l)=>new t(o,l).compare(new t(i,l)),compare_1}var rcompare_1,hasRequiredRcompare;function requireRcompare(){if(hasRequiredRcompare)return rcompare_1;hasRequiredRcompare=1;const t=requireCompare();return rcompare_1=(o,i,l)=>t(i,o,l),rcompare_1}var compareLoose_1,hasRequiredCompareLoose;function requireCompareLoose(){if(hasRequiredCompareLoose)return compareLoose_1;hasRequiredCompareLoose=1;const t=requireCompare();return compareLoose_1=(o,i)=>t(o,i,!0),compareLoose_1}var compareBuild_1,hasRequiredCompareBuild;function requireCompareBuild(){if(hasRequiredCompareBuild)return compareBuild_1;hasRequiredCompareBuild=1;const t=requireSemver$1();return compareBuild_1=(o,i,l)=>{const n=new t(o,l),u=new t(i,l);return n.compare(u)||n.compareBuild(u)},compareBuild_1}var sort_1,hasRequiredSort;function requireSort(){if(hasRequiredSort)return sort_1;hasRequiredSort=1;const t=requireCompareBuild();return sort_1=(o,i)=>o.sort((l,n)=>t(l,n,i)),sort_1}var rsort_1,hasRequiredRsort;function requireRsort(){if(hasRequiredRsort)return rsort_1;hasRequiredRsort=1;const t=requireCompareBuild();return rsort_1=(o,i)=>o.sort((l,n)=>t(n,l,i)),rsort_1}var gt_1,hasRequiredGt;function requireGt(){if(hasRequiredGt)return gt_1;hasRequiredGt=1;const t=requireCompare();return gt_1=(o,i,l)=>t(o,i,l)>0,gt_1}var lt_1,hasRequiredLt;function requireLt(){if(hasRequiredLt)return lt_1;hasRequiredLt=1;const t=requireCompare();return lt_1=(o,i,l)=>t(o,i,l)<0,lt_1}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;const t=requireCompare();return eq_1=(o,i,l)=>t(o,i,l)===0,eq_1}var neq_1,hasRequiredNeq;function requireNeq(){if(hasRequiredNeq)return neq_1;hasRequiredNeq=1;const t=requireCompare();return neq_1=(o,i,l)=>t(o,i,l)!==0,neq_1}var gte_1,hasRequiredGte;function requireGte(){if(hasRequiredGte)return gte_1;hasRequiredGte=1;const t=requireCompare();return gte_1=(o,i,l)=>t(o,i,l)>=0,gte_1}var lte_1,hasRequiredLte;function requireLte(){if(hasRequiredLte)return lte_1;hasRequiredLte=1;const t=requireCompare();return lte_1=(o,i,l)=>t(o,i,l)<=0,lte_1}var cmp_1,hasRequiredCmp;function requireCmp(){if(hasRequiredCmp)return cmp_1;hasRequiredCmp=1;const t=requireEq(),e=requireNeq(),o=requireGt(),i=requireGte(),l=requireLt(),n=requireLte();return cmp_1=(d,a,r,s)=>{switch(a){case"===":return typeof d=="object"&&(d=d.version),typeof r=="object"&&(r=r.version),d===r;case"!==":return typeof d=="object"&&(d=d.version),typeof r=="object"&&(r=r.version),d!==r;case"":case"=":case"==":return t(d,r,s);case"!=":return e(d,r,s);case">":return o(d,r,s);case">=":return i(d,r,s);case"<":return l(d,r,s);case"<=":return n(d,r,s);default:throw new TypeError(`Invalid operator: ${a}`)}},cmp_1}var coerce_1,hasRequiredCoerce;function requireCoerce(){if(hasRequiredCoerce)return coerce_1;hasRequiredCoerce=1;const t=requireSemver$1(),e=requireParse$1(),{safeRe:o,t:i}=requireRe();return coerce_1=(n,u)=>{if(n instanceof t)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;u=u||{};let d=null;if(!u.rtl)d=n.match(u.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);else{const f=u.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let b;for(;(b=f.exec(n))&&(!d||d.index+d[0].length!==n.length);)(!d||b.index+b[0].length!==d.index+d[0].length)&&(d=b),f.lastIndex=b.index+b[1].length+b[2].length;f.lastIndex=-1}if(d===null)return null;const a=d[2],r=d[3]||"0",s=d[4]||"0",h=u.includePrerelease&&d[5]?`-${d[5]}`:"",c=u.includePrerelease&&d[6]?`+${d[6]}`:"";return e(`${a}.${r}.${s}${h}${c}`,u)},coerce_1}var truncate_1,hasRequiredTruncate;function requireTruncate(){if(hasRequiredTruncate)return truncate_1;hasRequiredTruncate=1;const t=requireParse$1(),e=requireConstants(),o=requireSemver$1(),i=(d,a,r)=>{if(!e.RELEASE_TYPES.includes(a))return null;const s=l(d,r);return s&&n(s,a)},l=(d,a)=>{const r=d instanceof o?d.version:d;return t(r,a)},n=(d,a)=>{if(u(a))return d.version;switch(d.prerelease=[],a){case"major":d.minor=0,d.patch=0;break;case"minor":d.patch=0;break}return d.format()},u=d=>d.startsWith("pre");return truncate_1=i,truncate_1}var lrucache,hasRequiredLrucache;function requireLrucache(){if(hasRequiredLrucache)return lrucache;hasRequiredLrucache=1;class t{constructor(){this.max=1e3,this.map=new Map}get(o){const i=this.map.get(o);if(i!==void 0)return this.map.delete(o),this.map.set(o,i),i}delete(o){return this.map.delete(o)}set(o,i){if(!this.delete(o)&&i!==void 0){if(this.map.size>=this.max){const n=this.map.keys().next().value;this.delete(n)}this.map.set(o,i)}return this}}return lrucache=t,lrucache}var range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const t=/\s+/g;class e{constructor(B,V){if(V=l(V),B instanceof e)return B.loose===!!V.loose&&B.includePrerelease===!!V.includePrerelease?B:new e(B.raw,V);if(B instanceof n)return this.raw=B.value,this.set=[[B]],this.formatted=void 0,this;if(this.options=V,this.loose=!!V.loose,this.includePrerelease=!!V.includePrerelease,this.raw=B.trim().replace(t," "),this.set=this.raw.split("||").map(F=>this.parseRange(F.trim())).filter(F=>F.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const F=this.set[0];if(this.set=this.set.filter(j=>!_(j[0])),this.set.length===0)this.set=[F];else if(this.set.length>1){for(const j of this.set)if(j.length===1&&m(j[0])){this.set=[j];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let B=0;B<this.set.length;B++){B>0&&(this.formatted+="||");const V=this.set[B];for(let F=0;F<V.length;F++)F>0&&(this.formatted+=" "),this.formatted+=V[F].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(B){B=B.replace(w,"");const F=((this.options.includePrerelease&&b)|(this.options.loose&&y))+":"+B,j=i.get(F);if(j)return j;const K=this.options.loose,k=K?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];B=B.replace(k,D(this.options.includePrerelease)),u("hyphen replace",B),B=B.replace(a[s.COMPARATORTRIM],h),u("comparator trim",B),B=B.replace(a[s.TILDETRIM],c),u("tilde trim",B),B=B.replace(a[s.CARETTRIM],f),u("caret trim",B);let q=B.split(" ").map(z=>g(z,this.options)).join(" ").split(/\s+/).map(z=>M(z,this.options));K&&(q=q.filter(z=>(u("loose invalid filter",z,this.options),!!z.match(a[s.COMPARATORLOOSE])))),u("range list",q);const N=new Map,W=q.map(z=>new n(z,this.options));for(const z of W){if(_(z))return[z];N.set(z.value,z)}N.size>1&&N.has("")&&N.delete("");const J=[...N.values()];return i.set(F,J),J}intersects(B,V){if(!(B instanceof e))throw new TypeError("a Range is required");return this.set.some(F=>A(F,V)&&B.set.some(j=>A(j,V)&&F.every(K=>j.every(k=>K.intersects(k,V)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new d(B,this.options)}catch{return!1}for(let V=0;V<this.set.length;V++)if(H(this.set[V],B,this.options))return!0;return!1}}range=e;const o=requireLrucache(),i=new o,l=requireParseOptions(),n=requireComparator(),u=requireDebug(),d=requireSemver$1(),{safeRe:a,src:r,t:s,comparatorTrimReplace:h,tildeTrimReplace:c,caretTrimReplace:f}=requireRe(),{FLAG_INCLUDE_PRERELEASE:b,FLAG_LOOSE:y}=requireConstants(),w=new RegExp(r[s.BUILD],"g"),_=U=>U.value==="<0.0.0-0",m=U=>U.value==="",A=(U,B)=>{let V=!0;const F=U.slice();let j=F.pop();for(;V&&F.length;)V=F.every(K=>j.intersects(K,B)),j=F.pop();return V},g=(U,B)=>(U=U.replace(a[s.BUILD],""),u("comp",U,B),U=E(U,B),u("caret",U),U=C(U,B),u("tildes",U),U=S(U,B),u("xrange",U),U=x(U,B),u("stars",U),U),p=U=>!U||U.toLowerCase()==="x"||U==="*",v=(U,B,V)=>p(U)&&!p(B)||p(B)&&V&&!p(V),C=(U,B)=>U.trim().split(/\s+/).map(V=>P(V,B)).join(" "),P=(U,B)=>{const V=B.loose?a[s.TILDELOOSE]:a[s.TILDE],F=B.includePrerelease?"-0":"";return U.replace(V,(j,K,k,q,N)=>{u("tilde",U,j,K,k,q,N);let W;return p(K)?W="":p(k)?W=`>=${K}.0.0${F} <${+K+1}.0.0-0`:p(q)?W=`>=${K}.${k}.0${F} <${K}.${+k+1}.0-0`:N?(u("replaceTilde pr",N),W=`>=${K}.${k}.${q}-${N} <${K}.${+k+1}.0-0`):W=`>=${K}.${k}.${q} <${K}.${+k+1}.0-0`,u("tilde return",W),W})},E=(U,B)=>U.trim().split(/\s+/).map(V=>R(V,B)).join(" "),R=(U,B)=>{u("caret",U,B);const V=B.loose?a[s.CARETLOOSE]:a[s.CARET],F=B.includePrerelease?"-0":"";return U.replace(V,(j,K,k,q,N)=>{u("caret",U,j,K,k,q,N);let W;return p(K)?W="":p(k)?W=`>=${K}.0.0${F} <${+K+1}.0.0-0`:p(q)?K==="0"?W=`>=${K}.${k}.0${F} <${K}.${+k+1}.0-0`:W=`>=${K}.${k}.0${F} <${+K+1}.0.0-0`:N?(u("replaceCaret pr",N),K==="0"?k==="0"?W=`>=${K}.${k}.${q}-${N} <${K}.${k}.${+q+1}-0`:W=`>=${K}.${k}.${q}-${N} <${K}.${+k+1}.0-0`:W=`>=${K}.${k}.${q}-${N} <${+K+1}.0.0-0`):(u("no pr"),K==="0"?k==="0"?W=`>=${K}.${k}.${q} <${K}.${k}.${+q+1}-0`:W=`>=${K}.${k}.${q} <${K}.${+k+1}.0-0`:W=`>=${K}.${k}.${q} <${+K+1}.0.0-0`),u("caret return",W),W})},S=(U,B)=>(u("replaceXRanges",U,B),U.split(/\s+/).map(V=>I(V,B)).join(" ")),I=(U,B)=>{U=U.trim();const V=B.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return U.replace(V,(F,j,K,k,q,N)=>{if(u("xRange",U,F,j,K,k,q,N),v(K,k,q))return U;const W=p(K),J=W||p(k),z=J||p(q),ne=z;return j==="="&&ne&&(j=""),N=B.includePrerelease?"-0":"",W?j===">"||j==="<"?F="<0.0.0-0":F="*":j&&ne?(J&&(k=0),q=0,j===">"?(j=">=",J?(K=+K+1,k=0,q=0):(k=+k+1,q=0)):j==="<="&&(j="<",J?K=+K+1:k=+k+1),j==="<"&&(N="-0"),F=`${j+K}.${k}.${q}${N}`):J?F=`>=${K}.0.0${N} <${+K+1}.0.0-0`:z&&(F=`>=${K}.${k}.0${N} <${K}.${+k+1}.0-0`),u("xRange return",F),F})},x=(U,B)=>(u("replaceStars",U,B),U.trim().replace(a[s.STAR],"")),M=(U,B)=>(u("replaceGTE0",U,B),U.trim().replace(a[B.includePrerelease?s.GTE0PRE:s.GTE0],"")),D=U=>(B,V,F,j,K,k,q,N,W,J,z,ne)=>(p(F)?V="":p(j)?V=`>=${F}.0.0${U?"-0":""}`:p(K)?V=`>=${F}.${j}.0${U?"-0":""}`:k?V=`>=${V}`:V=`>=${V}${U?"-0":""}`,p(W)?N="":p(J)?N=`<${+W+1}.0.0-0`:p(z)?N=`<${W}.${+J+1}.0-0`:ne?N=`<=${W}.${J}.${z}-${ne}`:U?N=`<${W}.${J}.${+z+1}-0`:N=`<=${N}`,`${V} ${N}`.trim()),H=(U,B,V)=>{for(let F=0;F<U.length;F++)if(!U[F].test(B))return!1;if(B.prerelease.length&&!V.includePrerelease){for(let F=0;F<U.length;F++)if(u(U[F].semver),U[F].semver!==n.ANY&&U[F].semver.prerelease.length>0){const j=U[F].semver;if(j.major===B.major&&j.minor===B.minor&&j.patch===B.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(s,h){if(h=o(h),s instanceof e){if(s.loose===!!h.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),u("comparator",s,h),this.options=h,this.loose=!!h.loose,this.parse(s),this.semver===t?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(s){const h=this.options.loose?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],c=s.match(h);if(!c)throw new TypeError(`Invalid comparator: ${s}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new d(c[2],this.options.loose):this.semver=t}toString(){return this.value}test(s){if(u("Comparator.test",s,this.options.loose),this.semver===t||s===t)return!0;if(typeof s=="string")try{s=new d(s,this.options)}catch{return!1}return n(s,this.operator,this.semver,this.options)}intersects(s,h){if(!(s instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new a(s.value,h).test(this.value):s.operator===""?s.value===""?!0:new a(this.value,h).test(s.semver):(h=o(h),h.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||n(this.semver,"<",s.semver,h)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||n(this.semver,">",s.semver,h)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}}comparator=e;const o=requireParseOptions(),{safeRe:i,t:l}=requireRe(),n=requireCmp(),u=requireDebug(),d=requireSemver$1(),a=requireRange();return comparator}var satisfies_1,hasRequiredSatisfies;function requireSatisfies(){if(hasRequiredSatisfies)return satisfies_1;hasRequiredSatisfies=1;const t=requireRange();return satisfies_1=(o,i,l)=>{try{i=new t(i,l)}catch{return!1}return i.test(o)},satisfies_1}var toComparators_1,hasRequiredToComparators;function requireToComparators(){if(hasRequiredToComparators)return toComparators_1;hasRequiredToComparators=1;const t=requireRange();return toComparators_1=(o,i)=>new t(o,i).set.map(l=>l.map(n=>n.value).join(" ").trim().split(" ")),toComparators_1}var maxSatisfying_1,hasRequiredMaxSatisfying;function requireMaxSatisfying(){if(hasRequiredMaxSatisfying)return maxSatisfying_1;hasRequiredMaxSatisfying=1;const t=requireSemver$1(),e=requireRange();return maxSatisfying_1=(i,l,n)=>{let u=null,d=null,a=null;try{a=new e(l,n)}catch{return null}return i.forEach(r=>{a.test(r)&&(!u||d.compare(r)===-1)&&(u=r,d=new t(u,n))}),u},maxSatisfying_1}var minSatisfying_1,hasRequiredMinSatisfying;function requireMinSatisfying(){if(hasRequiredMinSatisfying)return minSatisfying_1;hasRequiredMinSatisfying=1;const t=requireSemver$1(),e=requireRange();return minSatisfying_1=(i,l,n)=>{let u=null,d=null,a=null;try{a=new e(l,n)}catch{return null}return i.forEach(r=>{a.test(r)&&(!u||d.compare(r)===1)&&(u=r,d=new t(u,n))}),u},minSatisfying_1}var minVersion_1,hasRequiredMinVersion;function requireMinVersion(){if(hasRequiredMinVersion)return minVersion_1;hasRequiredMinVersion=1;const t=requireSemver$1(),e=requireRange(),o=requireGt();return minVersion_1=(l,n)=>{l=new e(l,n);let u=new t("0.0.0");if(l.test(u)||(u=new t("0.0.0-0"),l.test(u)))return u;u=null;for(let d=0;d<l.set.length;++d){const a=l.set[d];let r=null;a.forEach(s=>{const h=new t(s.semver.version);switch(s.operator){case">":h.prerelease.length===0?h.patch++:h.prerelease.push(0),h.raw=h.format();case"":case">=":(!r||o(h,r))&&(r=h);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),r&&(!u||o(u,r))&&(u=r)}return u&&l.test(u)?u:null},minVersion_1}var valid,hasRequiredValid;function requireValid(){if(hasRequiredValid)return valid;hasRequiredValid=1;const t=requireRange();return valid=(o,i)=>{try{return new t(o,i).range||"*"}catch{return null}},valid}var outside_1,hasRequiredOutside;function requireOutside(){if(hasRequiredOutside)return outside_1;hasRequiredOutside=1;const t=requireSemver$1(),e=requireComparator(),{ANY:o}=e,i=requireRange(),l=requireSatisfies(),n=requireGt(),u=requireLt(),d=requireLte(),a=requireGte();return outside_1=(s,h,c,f)=>{s=new t(s,f),h=new i(h,f);let b,y,w,_,m;switch(c){case">":b=n,y=d,w=u,_=">",m=">=";break;case"<":b=u,y=a,w=n,_="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(s,h,f))return!1;for(let A=0;A<h.set.length;++A){const g=h.set[A];let p=null,v=null;if(g.forEach(C=>{C.semver===o&&(C=new e(">=0.0.0")),p=p||C,v=v||C,b(C.semver,p.semver,f)?p=C:w(C.semver,v.semver,f)&&(v=C)}),p.operator===_||p.operator===m||(!v.operator||v.operator===_)&&y(s,v.semver))return!1;if(v.operator===m&&w(s,v.semver))return!1}return!0},outside_1}var gtr_1,hasRequiredGtr;function requireGtr(){if(hasRequiredGtr)return gtr_1;hasRequiredGtr=1;const t=requireOutside();return gtr_1=(o,i,l)=>t(o,i,">",l),gtr_1}var ltr_1,hasRequiredLtr;function requireLtr(){if(hasRequiredLtr)return ltr_1;hasRequiredLtr=1;const t=requireOutside();return ltr_1=(o,i,l)=>t(o,i,"<",l),ltr_1}var intersects_1,hasRequiredIntersects;function requireIntersects(){if(hasRequiredIntersects)return intersects_1;hasRequiredIntersects=1;const t=requireRange();return intersects_1=(o,i,l)=>(o=new t(o,l),i=new t(i,l),o.intersects(i,l)),intersects_1}var simplify,hasRequiredSimplify;function requireSimplify(){if(hasRequiredSimplify)return simplify;hasRequiredSimplify=1;const t=requireSatisfies(),e=requireCompare();return simplify=(o,i,l)=>{const n=[];let u=null,d=null;const a=o.sort((c,f)=>e(c,f,l));for(const c of a)t(c,i,l)?(d=c,u||(u=c)):(d&&n.push([u,d]),d=null,u=null);u&&n.push([u,null]);const r=[];for(const[c,f]of n)c===f?r.push(c):!f&&c===a[0]?r.push("*"):f?c===a[0]?r.push(`<=${f}`):r.push(`${c} - ${f}`):r.push(`>=${c}`);const s=r.join(" || "),h=typeof i.raw=="string"?i.raw:String(i);return s.length<h.length?s:i},simplify}var subset_1,hasRequiredSubset;function requireSubset(){if(hasRequiredSubset)return subset_1;hasRequiredSubset=1;const t=requireRange(),e=requireComparator(),{ANY:o}=e,i=requireSatisfies(),l=requireCompare(),n=(h,c,f={})=>{if(h===c)return!0;h=new t(h,f),c=new t(c,f);let b=!1;e:for(const y of h.set){for(const w of c.set){const _=a(y,w,f);if(b=b||_!==null,_)continue e}if(b)return!1}return!0},u=[new e(">=0.0.0-0")],d=[new e(">=0.0.0")],a=(h,c,f)=>{if(h===c)return!0;if(h.length===1&&h[0].semver===o){if(c.length===1&&c[0].semver===o)return!0;f.includePrerelease?h=u:h=d}if(c.length===1&&c[0].semver===o){if(f.includePrerelease)return!0;c=d}const b=new Set;let y,w;for(const P of h)P.operator===">"||P.operator===">="?y=r(y,P,f):P.operator==="<"||P.operator==="<="?w=s(w,P,f):b.add(P.semver);if(b.size>1)return null;let _;if(y&&w){if(_=l(y.semver,w.semver,f),_>0)return null;if(_===0&&(y.operator!==">="||w.operator!=="<="))return null}for(const P of b){if(y&&!i(P,String(y),f)||w&&!i(P,String(w),f))return null;for(const E of c)if(!i(P,String(E),f))return!1;return!0}let m,A,g,p,v=w&&!f.includePrerelease&&w.semver.prerelease.length?w.semver:!1,C=y&&!f.includePrerelease&&y.semver.prerelease.length?y.semver:!1;v&&v.prerelease.length===1&&w.operator==="<"&&v.prerelease[0]===0&&(v=!1);for(const P of c){if(p=p||P.operator===">"||P.operator===">=",g=g||P.operator==="<"||P.operator==="<=",y){if(C&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===C.major&&P.semver.minor===C.minor&&P.semver.patch===C.patch&&(C=!1),P.operator===">"||P.operator===">="){if(m=r(y,P,f),m===P&&m!==y)return!1}else if(y.operator===">="&&!P.test(y.semver))return!1}if(w){if(v&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===v.major&&P.semver.minor===v.minor&&P.semver.patch===v.patch&&(v=!1),P.operator==="<"||P.operator==="<="){if(A=s(w,P,f),A===P&&A!==w)return!1}else if(w.operator==="<="&&!P.test(w.semver))return!1}if(!P.operator&&(w||y)&&_!==0)return!1}return!(y&&g&&!w&&_!==0||w&&p&&!y&&_!==0||C||v)},r=(h,c,f)=>{if(!h)return c;const b=l(h.semver,c.semver,f);return b>0?h:b<0||c.operator===">"&&h.operator===">="?c:h},s=(h,c,f)=>{if(!h)return c;const b=l(h.semver,c.semver,f);return b<0?h:b>0||c.operator==="<"&&h.operator==="<="?c:h};return subset_1=n,subset_1}var semver,hasRequiredSemver;function requireSemver(){if(hasRequiredSemver)return semver;hasRequiredSemver=1;const t=requireRe(),e=requireConstants(),o=requireSemver$1(),i=requireIdentifiers(),l=requireParse$1(),n=requireValid$1(),u=requireClean(),d=requireInc(),a=requireDiff(),r=requireMajor(),s=requireMinor(),h=requirePatch(),c=requirePrerelease(),f=requireCompare(),b=requireRcompare(),y=requireCompareLoose(),w=requireCompareBuild(),_=requireSort(),m=requireRsort(),A=requireGt(),g=requireLt(),p=requireEq(),v=requireNeq(),C=requireGte(),P=requireLte(),E=requireCmp(),R=requireCoerce(),S=requireTruncate(),I=requireComparator(),x=requireRange(),M=requireSatisfies(),D=requireToComparators(),H=requireMaxSatisfying(),U=requireMinSatisfying(),B=requireMinVersion(),V=requireValid(),F=requireOutside(),j=requireGtr(),K=requireLtr(),k=requireIntersects(),q=requireSimplify(),N=requireSubset();return semver={parse:l,valid:n,clean:u,inc:d,diff:a,major:r,minor:s,patch:h,prerelease:c,compare:f,rcompare:b,compareLoose:y,compareBuild:w,sort:_,rsort:m,gt:A,lt:g,eq:p,neq:v,gte:C,lte:P,cmp:E,coerce:R,truncate:S,Comparator:I,Range:x,satisfies:M,toComparators:D,maxSatisfying:H,minSatisfying:U,minVersion:B,validRange:V,outside:F,gtr:j,ltr:K,intersects:k,simplifyRange:q,subset:N,SemVer:o,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers},semver}var semverExports=requireSemver();const OUTPUT_WIDGET_VERSION="1.0.0";let OutputModel$2=class extends DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:"OutputModel",_view_name:"OutputView",_model_module:"@jupyter-widgets/output",_view_module:"@jupyter-widgets/output",_model_module_version:OUTPUT_WIDGET_VERSION,_view_module_version:OUTPUT_WIDGET_VERSION})}},OutputView$1=class extends DOMWidgetView{};function isExecuteResult(t){return t.output_type==="execute_result"}function isDisplayData(t){return t.output_type==="display_data"}function isDisplayUpdate(t){return t.output_type==="update_display_data"}function isStream(t){return t.output_type==="stream"}function isError(t){return t.output_type==="error"}class ObservableMap{constructor(e={}){if(this._map=new Map,this._changed=new Signal(this),this._isDisposed=!1,this._itemCmp=e.itemCmp||Private$9.itemCmp,e.values)for(const o in e.values)this._map.set(o,e.values[o])}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,o){const i=this._map.get(e);if(o===void 0)throw Error("Cannot set an undefined value, use remove");const l=this._itemCmp;return i!==void 0&&l(i,o)||(this._map.set(e,o),this._changed.emit({type:i?"change":"add",key:e,oldValue:i,newValue:o})),i}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){const e=[];return this._map.forEach((o,i)=>{e.push(i)}),e}values(){const e=[];return this._map.forEach((o,i)=>{e.push(o)}),e}delete(e){const o=this._map.get(e);return this._map.delete(e)&&this._changed.emit({type:"remove",key:e,oldValue:o,newValue:void 0}),o}clear(){const e=this.keys();for(let o=0;o<e.length;o++)this.delete(e[o])}dispose(){this.isDisposed||(this._isDisposed=!0,Signal.clearData(this),this._map.clear())}}var Private$9;(function(t){function e(o,i){return o===i}t.itemCmp=e})(Private$9||(Private$9={}));class ObservableJSON extends ObservableMap{constructor(e={}){super({itemCmp:JSONExt.deepEqual,values:e.values})}toJSON(){const e=Object.create(null),o=this.keys();for(const i of o){const l=this.get(i);l!==void 0&&(e[i]=JSONExt.deepCopy(l))}return e}}(function(t){class e extends Message{constructor(i,l){super(i),this.args=l}}t.ChangeMessage=e})(ObservableJSON||(ObservableJSON={}));class ObservableString{constructor(e=""){this._text="",this._isDisposed=!1,this._changed=new Signal(this),this._text=e}get type(){return"String"}get changed(){return this._changed}set text(e){e.length===this._text.length&&e===this._text||(this._text=e,this._changed.emit({type:"set",start:0,end:e.length,value:e}))}get text(){return this._text}insert(e,o,i){this._text=this._text.slice(0,e)+o+this._text.slice(e),this._changed.emit({type:"insert",start:e,end:e+o.length,value:o,options:i})}remove(e,o,i){const l=this._text.slice(e,o);this._text=this._text.slice(0,e)+this._text.slice(o),this._changed.emit({type:"remove",start:e,end:o,value:l,options:i})}clear(){this.text=""}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,Signal.clearData(this),this.clear())}}class ObservableList{constructor(e={}){if(this._array=[],this._isDisposed=!1,this._changed=new Signal(this),e.values)for(const o of e.values)this._array.push(o);this._itemCmp=e.itemCmp||Private$8.itemCmp}get type(){return"List"}get changed(){return this._changed}get length(){return this._array.length}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,Signal.clearData(this),this.clear())}[Symbol.iterator](){return this._array[Symbol.iterator]()}get(e){return this._array[e]}set(e,o){const i=this._array[e];if(o===void 0)throw new Error("Cannot set an undefined item");const l=this._itemCmp;l(i,o)||(this._array[e]=o,this._changed.emit({type:"set",oldIndex:e,newIndex:e,oldValues:[i],newValues:[o]}))}push(e){const o=this._array.push(e);return this._changed.emit({type:"add",oldIndex:-1,newIndex:this.length-1,oldValues:[],newValues:[e]}),o}insert(e,o){e===this._array.length?this._array.push(o):ArrayExt.insert(this._array,e,o),this._changed.emit({type:"add",oldIndex:-2,newIndex:e,oldValues:[],newValues:[o]})}removeValue(e){const o=this._itemCmp,i=ArrayExt.findFirstIndex(this._array,l=>o(l,e));return i<0||this.remove(i),i}remove(e){const o=ArrayExt.removeAt(this._array,e);if(o!==void 0)return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[o]}),o}clear(){const e=this._array.slice();this._array.length=0,this._changed.emit({type:"clear",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,o){if(this.length<=1||e===o)return;const i=[this._array[e]];ArrayExt.move(this._array,e,o),this._changed.emit({type:"move",oldIndex:e,newIndex:o,oldValues:i,newValues:i})}pushAll(e){const o=this.length;for(const i of e)this._array.push(i);return this._changed.emit({type:"add",oldIndex:-1,newIndex:o,oldValues:[],newValues:Array.from(e)}),this.length}insertAll(e,o){const i=e;for(const l of o)ArrayExt.insert(this._array,e++,l);this._changed.emit({type:"add",oldIndex:-2,newIndex:i,oldValues:[],newValues:Array.from(o)})}removeRange(e,o){const i=this._array.slice(e,o);for(let l=e;l<o;l++)ArrayExt.removeAt(this._array,e);return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,oldValues:i,newValues:[]}),this.length}}var Private$8;(function(t){function e(o,i){return o===i}t.itemCmp=e})(Private$8||(Private$8={}));var lib$8={},dataconnector={},hasRequiredDataconnector;function requireDataconnector(){if(hasRequiredDataconnector)return dataconnector;hasRequiredDataconnector=1,Object.defineProperty(dataconnector,"__esModule",{value:!0}),dataconnector.DataConnector=void 0;class t{async list(o){throw new Error("DataConnector#list method has not been implemented.")}async remove(o){throw new Error("DataConnector#remove method has not been implemented.")}async save(o,i){throw new Error("DataConnector#save method has not been implemented.")}}return dataconnector.DataConnector=t,dataconnector}var interfaces$1={},hasRequiredInterfaces$1;function requireInterfaces$1(){return hasRequiredInterfaces$1||(hasRequiredInterfaces$1=1,Object.defineProperty(interfaces$1,"__esModule",{value:!0})),interfaces$1}var restorablepool={},dist$1={exports:{}};const require$$0$1=getAugmentedNamespace(index_es6$1);var dist=dist$1.exports,hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,(function(t,e){(function(o,i){i(e,require$$0$1)})(dist,(function(o,i){o.JSONExt=void 0,(function(h){h.emptyObject=Object.freeze({}),h.emptyArray=Object.freeze([]);function c(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"}h.isPrimitive=c;function f(p){return Array.isArray(p)}h.isArray=f;function b(p){return!c(p)&&!f(p)}h.isObject=b;function y(p,v){if(p===v)return!0;if(c(p)||c(v))return!1;let C=f(p),P=f(v);return C!==P?!1:C&&P?_(p,v):m(p,v)}h.deepEqual=y;function w(p){return c(p)?p:f(p)?A(p):g(p)}h.deepCopy=w;function _(p,v){if(p===v)return!0;if(p.length!==v.length)return!1;for(let C=0,P=p.length;C<P;++C)if(!y(p[C],v[C]))return!1;return!0}function m(p,v){if(p===v)return!0;for(let C in p)if(p[C]!==void 0&&!(C in v))return!1;for(let C in v)if(v[C]!==void 0&&!(C in p))return!1;for(let C in p){let P=p[C],E=v[C];if(!(P===void 0&&E===void 0)&&(P===void 0||E===void 0||!y(P,E)))return!1}return!0}function A(p){let v=new Array(p.length);for(let C=0,P=p.length;C<P;++C)v[C]=w(p[C]);return v}function g(p){let v={};for(let C in p){let P=p[C];P!==void 0&&(v[C]=w(P))}return v}})(o.JSONExt||(o.JSONExt={}));class l{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(c){return this._types.indexOf(c)!==-1}getData(c){let f=this._types.indexOf(c);return f!==-1?this._values[f]:void 0}setData(c,f){this.clearData(c),this._types.push(c),this._values.push(f)}clearData(c){let f=this._types.indexOf(c);f!==-1&&(this._types.splice(f,1),this._values.splice(f,1))}clear(){this._types.length=0,this._values.length=0}}class n{constructor(c={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,c.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=c.validatePlugin)}get application(){return this._application}set application(c){if(this._application!==null)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=c}get deferredPlugins(){return Array.from(this._plugins).filter(([c,f])=>f.autoStart==="defer").map(([c,f])=>c)}getPluginDescription(c){var f,b;return(b=(f=this._plugins.get(c))===null||f===void 0?void 0:f.description)!==null&&b!==void 0?b:""}hasPlugin(c){return this._plugins.has(c)}isPluginActivated(c){var f,b;return(b=(f=this._plugins.get(c))===null||f===void 0?void 0:f.activated)!==null&&b!==void 0?b:!1}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(c){if(this._plugins.has(c.id))throw new TypeError(`Plugin '${c.id}' is already registered.`);if(!this._validatePlugin(c))throw new Error(`Plugin '${c.id}' is not valid.`);const f=u.createPluginData(c);u.ensureNoCycle(f,this._plugins,this._services),f.provides&&this._services.set(f.provides,f.id),this._plugins.set(f.id,f)}registerPlugins(c){for(const f of c)this.registerPlugin(f)}deregisterPlugin(c,f){const b=this._plugins.get(c);if(b){if(b.activated&&!f)throw new Error(`Plugin '${c}' is still active.`);this._plugins.delete(c)}}async activatePlugin(c){const f=this._plugins.get(c);if(!f)throw new ReferenceError(`Plugin '${c}' is not registered.`);if(f.activated)return;if(f.promise)return f.promise;const b=f.requires.map(w=>this.resolveRequiredService(w)),y=f.optional.map(w=>this.resolveOptionalService(w));return f.promise=Promise.all([...b,...y]).then(w=>f.activate.apply(void 0,[this.application,...w])).then(w=>{f.service=w,f.activated=!0,f.promise=null}).catch(w=>{throw f.promise=null,w}),f.promise}async activatePlugins(c,f={}){switch(c){case"defer":{const b=this.deferredPlugins.filter(y=>this._plugins.get(y).autoStart).map(y=>this.activatePlugin(y));await Promise.all(b);break}case"startUp":{const y=u.collectStartupPlugins(this._plugins,f).map(async w=>{try{return await this.activatePlugin(w)}catch(_){console.error(`Plugin '${w}' failed to activate.`,_)}});await Promise.all(y);break}}}async deactivatePlugin(c){const f=this._plugins.get(c);if(!f)throw new ReferenceError(`Plugin '${c}' is not registered.`);if(!f.activated)return[];if(!f.deactivate)throw new TypeError(`Plugin '${c}'#deactivate() method missing`);const b=u.findDependents(c,this._plugins,this._services),y=b.map(w=>this._plugins.get(w));for(const w of y)if(!w.deactivate)throw new TypeError(`Plugin ${w.id}#deactivate() method missing (depends on ${c})`);for(const w of y){const _=[...w.requires,...w.optional].map(m=>{const A=this._services.get(m);return A?this._plugins.get(A).service:null});await w.deactivate(this.application,..._),w.service=null,w.activated=!1}return b.pop(),b}async resolveRequiredService(c){const f=this._services.get(c);if(!f)throw new TypeError(`No provider for: ${c.name}.`);const b=this._plugins.get(f);return b.activated||await this.activatePlugin(f),b.service}async resolveOptionalService(c){const f=this._services.get(c);if(!f)return null;const b=this._plugins.get(f);if(!b.activated)try{await this.activatePlugin(f)}catch(y){return console.error(y),null}return b.service}}var u;(function(h){class c{constructor(m){var A,g,p,v;this._activated=!1,this._promise=null,this._service=null,this.id=m.id,this.description=(A=m.description)!==null&&A!==void 0?A:"",this.activate=m.activate,this.deactivate=(g=m.deactivate)!==null&&g!==void 0?g:null,this.provides=(p=m.provides)!==null&&p!==void 0?p:null,this.autoStart=(v=m.autoStart)!==null&&v!==void 0?v:!1,this.requires=m.requires?m.requires.slice():[],this.optional=m.optional?m.optional.slice():[]}get activated(){return this._activated}set activated(m){this._activated=m}get service(){return this._service}set service(m){this._service=m}get promise(){return this._promise}set promise(m){this._promise=m}}function f(_){return new c(_)}h.createPluginData=f;function b(_,m,A){const g=[..._.requires,..._.optional],p=C=>{if(C===_.provides)return!0;const P=A.get(C);if(!P)return!1;const E=m.get(P),R=[...E.requires,...E.optional];return R.length===0?!1:(v.push(P),R.some(p)?!0:(v.pop(),!1))};if(!_.provides||g.length===0)return;const v=[_.id];if(g.some(p))throw new ReferenceError(`Cycle detected: ${v.join(" -> ")}.`)}h.ensureNoCycle=b;function y(_,m,A){const g=new Array,p=R=>{const S=m.get(R),I=[...S.requires,...S.optional];g.push(...I.reduce((x,M)=>{const D=A.get(M);return D&&x.push([R,D]),x},[]))};for(const R of m.keys())p(R);const v=g.filter(R=>R[1]===_);let C=0;for(;v.length>C;){const R=v.length,S=new Set(v.map(I=>I[0]));for(const I of S)g.filter(x=>x[1]===I).forEach(x=>{v.includes(x)||v.push(x)});C=R}const P=i.topologicSort(v),E=P.findIndex(R=>R===_);return E===-1?[_]:P.slice(0,E+1)}h.findDependents=y;function w(_,m){const A=new Set;for(const g of _.keys())_.get(g).autoStart===!0&&A.add(g);if(m.startPlugins)for(const g of m.startPlugins)A.add(g);if(m.ignorePlugins)for(const g of m.ignorePlugins)A.delete(g);return Array.from(A)}h.collectStartupPlugins=w})(u||(u={}));class d{constructor(){this.promise=new Promise((c,f)=>{this._resolve=c,this._reject=f})}resolve(c){let f=this._resolve;f(c)}reject(c){let f=this._reject;f(c)}}class a{constructor(c,f){this.name=c,this.description=f??"",this._tokenStructuralPropertyT=null}}function r(h){let c=0;for(let f=0,b=h.length;f<b;++f)f%4===0&&(c=Math.random()*4294967295>>>0),h[f]=c&255,c>>>=8}o.Random=void 0,(function(h){h.getRandomValues=(()=>{const c=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return c&&typeof c.getRandomValues=="function"?function(b){return c.getRandomValues(b)}:r})()})(o.Random||(o.Random={}));function s(h){const c=new Uint8Array(16),f=new Array(256);for(let b=0;b<16;++b)f[b]="0"+b.toString(16);for(let b=16;b<256;++b)f[b]=b.toString(16);return function(){return h(c),c[6]=64|c[6]&15,c[8]=128|c[8]&63,f[c[0]]+f[c[1]]+f[c[2]]+f[c[3]]+"-"+f[c[4]]+f[c[5]]+"-"+f[c[6]]+f[c[7]]+"-"+f[c[8]]+f[c[9]]+"-"+f[c[10]]+f[c[11]]+f[c[12]]+f[c[13]]+f[c[14]]+f[c[15]]}}o.UUID=void 0,(function(h){h.uuid4=s(o.Random.getRandomValues)})(o.UUID||(o.UUID={})),o.MimeData=l,o.PluginRegistry=n,o.PromiseDelegate=d,o.Token=a}))})(dist$1,dist$1.exports)),dist$1.exports}const require$$1$2=getAugmentedNamespace(index_es6$2),require$$0=getAugmentedNamespace(index_es6$3);var hasRequiredRestorablepool;function requireRestorablepool(){if(hasRequiredRestorablepool)return restorablepool;hasRequiredRestorablepool=1,Object.defineProperty(restorablepool,"__esModule",{value:!0}),restorablepool.RestorablePool=void 0;const t=requireDist(),e=require$$1$2,o=require$$0;class i{constructor(u){this._added=new o.Signal(this),this._current=null,this._currentChanged=new o.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new t.PromiseDelegate,this._updated=new o.Signal(this),this.namespace=u.namespace}get added(){return this._added}get current(){return this._current}set current(u){this._current!==u&&u!==null&&this._objects.has(u)&&(this._current=u,this._currentChanged.emit(this._current))}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(u){var d,a;if(u.isDisposed){const r="A disposed object cannot be added.";throw console.warn(r,u),new Error(r)}if(this._objects.has(u)){const r="This object already exists in the pool.";throw console.warn(r,u),new Error(r)}if(this._objects.add(u),u.disposed.connect(this._onInstanceDisposed,this),!l.injectedProperty.get(u)){if(this._restore){const{connector:r}=this._restore,s=this._restore.name(u);if(s){const h=`${this.namespace}:${s}`,c=(a=(d=this._restore).args)===null||a===void 0?void 0:a.call(d,u);l.nameProperty.set(u,h),await r.save(h,{data:c})}}this._added.emit(u)}}dispose(){this.isDisposed||(this._current=null,this._isDisposed=!0,this._objects.clear(),o.Signal.clearData(this))}find(u){const d=this._objects.values();for(const a of d)if(u(a))return a}forEach(u){this._objects.forEach(u)}filter(u){const d=[];return this.forEach(a=>{u(a)&&d.push(a)}),d}inject(u){return l.injectedProperty.set(u,!0),this.add(u)}has(u){return this._objects.has(u)}async restore(u){if(this._hasRestored)throw new Error("This pool has already been restored.");this._hasRestored=!0;const{command:d,connector:a,registry:r,when:s}=u,h=this.namespace,c=s?[a.list(h)].concat(s):[a.list(h)];this._restore=u;const[f]=await Promise.all(c),b=await Promise.all(f.ids.map(async(y,w)=>{const _=f.values[w],m=_&&_.data;return m===void 0?a.remove(y):r.execute(d,m).catch(()=>a.remove(y))}));return this._restored.resolve(),b}async save(u){var d,a;const r=l.injectedProperty.get(u);if(!this._restore||!this.has(u)||r)return;const{connector:s}=this._restore,h=this._restore.name(u),c=l.nameProperty.get(u),f=h?`${this.namespace}:${h}`:"";if(c&&c!==f&&await s.remove(c),l.nameProperty.set(u,f),f){const b=(a=(d=this._restore).args)===null||a===void 0?void 0:a.call(d,u);await s.save(f,{data:b})}c!==f&&this._updated.emit(u)}_onInstanceDisposed(u){if(this._objects.delete(u),u===this._current&&(this._current=null,this._currentChanged.emit(this._current)),l.injectedProperty.get(u)||!this._restore)return;const{connector:d}=this._restore,a=l.nameProperty.get(u);a&&d.remove(a)}}restorablepool.RestorablePool=i;var l;return(function(n){n.injectedProperty=new e.AttachedProperty({name:"injected",create:()=>!1}),n.nameProperty=new e.AttachedProperty({name:"name",create:()=>""})})(l||(l={})),restorablepool}var statedb={},hasRequiredStatedb;function requireStatedb(){if(hasRequiredStatedb)return statedb;hasRequiredStatedb=1,Object.defineProperty(statedb,"__esModule",{value:!0}),statedb.StateDB=void 0;const t=require$$0;class e{constructor(i={}){this._changed=new t.Signal(this);const{connector:l,transform:n}=i;this._connector=l||new e.Connector,n?this._ready=n.then(u=>{const{contents:d,type:a}=u;switch(a){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(d||{});case"overwrite":return this._overwrite(d||{});default:return}}):this._ready=Promise.resolve(void 0)}get changed(){return this._changed}async clear(){await this._ready,await this._clear()}async fetch(i){return await this._ready,this._fetch(i)}async list(i){return await this._ready,this._list(i)}async remove(i){await this._ready,await this._remove(i),this._changed.emit({id:i,type:"remove"})}async save(i,l){await this._ready,await this._save(i,l),this._changed.emit({id:i,type:"save"})}async toJSON(){await this._ready;const{ids:i,values:l}=await this._list();return l.reduce((n,u,d)=>(n[i[d]]=u,n),{})}async _clear(){await Promise.all((await this._list()).ids.map(i=>this._remove(i)))}async _fetch(i){const l=await this._connector.fetch(i);if(l)return JSON.parse(l).v}async _list(i=""){const{ids:l,values:n}=await this._connector.list(i);return{ids:l,values:n.map(u=>JSON.parse(u).v)}}async _merge(i){await Promise.all(Object.keys(i).map(l=>i[l]&&this._save(l,i[l])))}async _overwrite(i){await this._clear(),await this._merge(i)}async _remove(i){return this._connector.remove(i)}async _save(i,l){return this._connector.save(i,JSON.stringify({v:l}))}}return statedb.StateDB=e,(function(o){class i{constructor(){this._storage={}}async fetch(n){return this._storage[n]}async list(n=""){return Object.keys(this._storage).reduce((u,d)=>((n===""||n===d.split(":")[0])&&(u.ids.push(d),u.values.push(this._storage[d])),u),{ids:[],values:[]})}async remove(n){delete this._storage[n]}async save(n,u){this._storage[n]=u}}o.Connector=i})(e||(statedb.StateDB=e={})),statedb}var tokens$1={},hasRequiredTokens$1;function requireTokens$1(){if(hasRequiredTokens$1)return tokens$1;hasRequiredTokens$1=1,Object.defineProperty(tokens$1,"__esModule",{value:!0}),tokens$1.IStateDB=void 0;const t=requireDist();return tokens$1.IStateDB=new t.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database.
2
2
  Use this if you want to store data that will persist across page loads.
3
3
  See "state database" for more information.`),tokens$1}var hasRequiredLib$8;function requireLib$8(){return hasRequiredLib$8||(hasRequiredLib$8=1,(function(t){var e=lib$8&&lib$8.__createBinding||(Object.create?(function(i,l,n,u){u===void 0&&(u=n);var d=Object.getOwnPropertyDescriptor(l,n);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[n]}}),Object.defineProperty(i,u,d)}):(function(i,l,n,u){u===void 0&&(u=n),i[u]=l[n]})),o=lib$8&&lib$8.__exportStar||function(i,l){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(l,n)&&e(l,i,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(requireDataconnector(),t),o(requireInterfaces$1(),t),o(requireRestorablepool(),t),o(requireStatedb(),t),o(requireTokens$1(),t)})(lib$8)),lib$8}var libExports$2=requireLib$8(),lib$7={},activitymonitor={},hasRequiredActivitymonitor;function requireActivitymonitor(){if(hasRequiredActivitymonitor)return activitymonitor;hasRequiredActivitymonitor=1,Object.defineProperty(activitymonitor,"__esModule",{value:!0}),activitymonitor.ActivityMonitor=void 0;const t=require$$0;class e{constructor(i){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new t.Signal(this),i.signal.connect(this._onSignalFired,this),this._timeout=i.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(i){this._timeout=i}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,t.Signal.clearData(this))}_onSignalFired(i,l){clearTimeout(this._timer),this._sender=i,this._args=l,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}}return activitymonitor.ActivityMonitor=e,activitymonitor}var interfaces={},hasRequiredInterfaces;function requireInterfaces(){return hasRequiredInterfaces||(hasRequiredInterfaces=1,Object.defineProperty(interfaces,"__esModule",{value:!0})),interfaces}var lru={},hasRequiredLru;function requireLru(){if(hasRequiredLru)return lru;hasRequiredLru=1,Object.defineProperty(lru,"__esModule",{value:!0}),lru.LruCache=void 0;const t=128;class e{constructor(i={}){if(this._map=new Map,this._maxSize=(i==null?void 0:i.maxSize)||t,this._maxSize<1)throw new Error("maxSize must be at least 1")}get size(){return this._map.size}clear(){this._map.clear()}get(i){const l=this._map.get(i)||null;return l!=null&&(this._map.delete(i),this._map.set(i,l)),l}set(i,l){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(i,l)}}return lru.LruCache=e,lru}var markdowncodeblocks={},hasRequiredMarkdowncodeblocks;function requireMarkdowncodeblocks(){if(hasRequiredMarkdowncodeblocks)return markdowncodeblocks;hasRequiredMarkdowncodeblocks=1,Object.defineProperty(markdowncodeblocks,"__esModule",{value:!0}),markdowncodeblocks.MarkdownCodeBlocks=void 0;var t;return(function(e){e.CODE_BLOCK_MARKER="```";const o=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class i{constructor(d){this.startLine=d,this.code="",this.endLine=-1}}e.MarkdownCodeBlock=i;function l(u){return o.indexOf(u)>-1}e.isMarkdown=l;function n(u){if(!u||u==="")return[];const d=u.split(`
4
4
  `),a=[];let r=null;for(let s=0;s<d.length;s++){const h=d[s],c=h.indexOf(e.CODE_BLOCK_MARKER)===0,f=r!=null;if(!(!c&&!f))if(f)r&&(c?(r.endLine=s-1,a.push(r),r=null):r.code+=h+`