@teambit/env 1.0.309 → 1.0.311
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/env-template/public/{735.762e9e91107511e216c0.js → 410.5809c1298983924ce26b.js} +6 -6
- package/artifacts/env-template/public/{432.b881018adf6bcca147db.js → 722.cc3567fee6ff259f98db.js} +12 -12
- package/artifacts/env-template/public/{806.a44f208bd650a1ddce88.js → 806.d8cd1d0c69b7311d7027.js} +4 -4
- package/artifacts/env-template/public/assets-manifest.json +16 -16
- package/artifacts/env-template/public/compositions.a20b8f86c5f3cdbafe3a.js +1 -0
- package/artifacts/env-template/public/compositions.html +1 -1
- package/artifacts/env-template/public/{overview.4b3d8d1d94382a4edf5e.js → overview.dc794464744c9c74b78b.js} +1 -1
- package/artifacts/env-template/public/overview.html +1 -1
- package/artifacts/env-template/public/{peers.815709ca20493f851122.js → peers.95c2ef52c39cc8c7306d.js} +1 -1
- package/artifacts/env-template/public/{preview-root.62d2941b227c5a58765f.js → preview-root.d5cfbfb1716f231e36b6.js} +1 -1
- package/artifacts/env-template/public/static/css/preview-root.d08ed618.css +1 -0
- package/artifacts/preview/teambit_envs_env-preview.js +1 -1
- package/artifacts/schema.json +9 -5
- package/{compositions-1718767379753.js → compositions-1719137078208.js} +1 -1
- package/dist/{preview-1718767379753.js → preview-1719137078208.js} +2 -2
- package/{overview-1718767379753.js → overview-1719137078208.js} +1 -1
- package/package.json +7 -7
- package/artifacts/env-template/public/compositions.88463215aa7d07c6c079.js +0 -1
- package/artifacts/env-template/public/static/css/preview-root.0f5bcda2.css +0 -1
package/artifacts/env-template/public/{806.a44f208bd650a1ddce88.js → 806.d8cd1d0c69b7311d7027.js}
RENAMED
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
* @license MIT
|
10
10
|
*/function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}var Action;(function(Action2){Action2.Pop="POP",Action2.Push="PUSH",Action2.Replace="REPLACE"})(Action||(Action={}));const PopStateEventType="popstate";function createMemoryHistory(options){options===void 0&&(options={});let{initialEntries=["/"],initialIndex,v5Compat=!1}=options,entries;entries=initialEntries.map((entry,index2)=>createMemoryLocation(entry,typeof entry=="string"?null:entry.state,index2===0?"default":void 0));let index=clampIndex(initialIndex??entries.length-1),action=Action.Pop,listener=null;function clampIndex(n){return Math.min(Math.max(n,0),entries.length-1)}function getCurrentLocation(){return entries[index]}function createMemoryLocation(to,state,key){state===void 0&&(state=null);let location=createLocation(entries?getCurrentLocation().pathname:"/",to,state,key);return warning(location.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(to)),location}function createHref(to){return typeof to=="string"?to:createPath(to)}return{get index(){return index},get action(){return action},get location(){return getCurrentLocation()},createHref,createURL(to){return new URL(createHref(to),"http://localhost")},encodeLocation(to){let path=typeof to=="string"?parsePath(to):to;return{pathname:path.pathname||"",search:path.search||"",hash:path.hash||""}},push(to,state){action=Action.Push;let nextLocation=createMemoryLocation(to,state);index+=1,entries.splice(index,entries.length,nextLocation),v5Compat&&listener&&listener({action,location:nextLocation,delta:1})},replace(to,state){action=Action.Replace;let nextLocation=createMemoryLocation(to,state);entries[index]=nextLocation,v5Compat&&listener&&listener({action,location:nextLocation,delta:0})},go(delta){action=Action.Pop;let nextIndex=clampIndex(index+delta),nextLocation=entries[nextIndex];index=nextIndex,listener&&listener({action,location:nextLocation,delta})},listen(fn){return listener=fn,()=>{listener=null}}}}function createBrowserHistory(options){options===void 0&&(options={});function createBrowserLocation(window2,globalHistory){let{pathname,search,hash}=window2.location;return createLocation("",{pathname,search,hash},globalHistory.state&&globalHistory.state.usr||null,globalHistory.state&&globalHistory.state.key||"default")}function createBrowserHref(window2,to){return typeof to=="string"?to:createPath(to)}return getUrlBasedHistory(createBrowserLocation,createBrowserHref,null,options)}function createHashHistory(options){options===void 0&&(options={});function createHashLocation(window2,globalHistory){let{pathname="/",search="",hash=""}=parsePath(window2.location.hash.substr(1));return!pathname.startsWith("/")&&!pathname.startsWith(".")&&(pathname="/"+pathname),createLocation("",{pathname,search,hash},globalHistory.state&&globalHistory.state.usr||null,globalHistory.state&&globalHistory.state.key||"default")}function createHashHref(window2,to){let base=window2.document.querySelector("base"),href="";if(base&&base.getAttribute("href")){let url=window2.location.href,hashIndex=url.indexOf("#");href=hashIndex===-1?url:url.slice(0,hashIndex)}return href+"#"+(typeof to=="string"?to:createPath(to))}function validateHashLocation(location,to){warning(location.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(to)+")")}return getUrlBasedHistory(createHashLocation,createHashHref,validateHashLocation,options)}function invariant(value,message){if(value===!1||value===null||typeof value>"u")throw new Error(message)}function warning(cond,message){if(!cond){typeof console<"u"&&console.warn(message);try{throw new Error(message)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(location,index){return{usr:location.state,key:location.key,idx:index}}function createLocation(current,to,state,key){return state===void 0&&(state=null),_extends({pathname:typeof current=="string"?current:current.pathname,search:"",hash:""},typeof to=="string"?parsePath(to):to,{state,key:to&&to.key||key||createKey()})}function createPath(_ref){let{pathname="/",search="",hash=""}=_ref;return search&&search!=="?"&&(pathname+=search.charAt(0)==="?"?search:"?"+search),hash&&hash!=="#"&&(pathname+=hash.charAt(0)==="#"?hash:"#"+hash),pathname}function parsePath(path){let parsedPath={};if(path){let hashIndex=path.indexOf("#");hashIndex>=0&&(parsedPath.hash=path.substr(hashIndex),path=path.substr(0,hashIndex));let searchIndex=path.indexOf("?");searchIndex>=0&&(parsedPath.search=path.substr(searchIndex),path=path.substr(0,searchIndex)),path&&(parsedPath.pathname=path)}return parsedPath}function getUrlBasedHistory(getLocation,createHref,validateLocation,options){options===void 0&&(options={});let{window:window2=document.defaultView,v5Compat=!1}=options,globalHistory=window2.history,action=Action.Pop,listener=null,index=getIndex();index==null&&(index=0,globalHistory.replaceState(_extends({},globalHistory.state,{idx:index}),""));function getIndex(){return(globalHistory.state||{idx:null}).idx}function handlePop(){action=Action.Pop;let nextIndex=getIndex(),delta=nextIndex==null?null:nextIndex-index;index=nextIndex,listener&&listener({action,location:history.location,delta})}function push(to,state){action=Action.Push;let location=createLocation(history.location,to,state);validateLocation&&validateLocation(location,to),index=getIndex()+1;let historyState=getHistoryState(location,index),url=history.createHref(location);try{globalHistory.pushState(historyState,"",url)}catch(error){if(error instanceof DOMException&&error.name==="DataCloneError")throw error;window2.location.assign(url)}v5Compat&&listener&&listener({action,location:history.location,delta:1})}function replace(to,state){action=Action.Replace;let location=createLocation(history.location,to,state);validateLocation&&validateLocation(location,to),index=getIndex();let historyState=getHistoryState(location,index),url=history.createHref(location);globalHistory.replaceState(historyState,"",url),v5Compat&&listener&&listener({action,location:history.location,delta:0})}function createURL(to){let base=window2.location.origin!=="null"?window2.location.origin:window2.location.href,href=typeof to=="string"?to:createPath(to);return href=href.replace(/ $/,"%20"),invariant(base,"No window.location.(origin|href) available to create URL for href: "+href),new URL(href,base)}let history={get action(){return action},get location(){return getLocation(window2,globalHistory)},listen(fn){if(listener)throw new Error("A history only accepts one active listener");return window2.addEventListener(PopStateEventType,handlePop),listener=fn,()=>{window2.removeEventListener(PopStateEventType,handlePop),listener=null}},createHref(to){return createHref(window2,to)},createURL,encodeLocation(to){let url=createURL(to);return{pathname:url.pathname,search:url.search,hash:url.hash}},push,replace,go(n){return globalHistory.go(n)}};return history}var ResultType;(function(ResultType2){ResultType2.data="data",ResultType2.deferred="deferred",ResultType2.redirect="redirect",ResultType2.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(route){return route.index===!0}function convertRoutesToDataRoutes(routes,mapRouteProperties,parentPath,manifest){return parentPath===void 0&&(parentPath=[]),manifest===void 0&&(manifest={}),routes.map((route,index)=>{let treePath=[...parentPath,index],id=typeof route.id=="string"?route.id:treePath.join("-");if(invariant(route.index!==!0||!route.children,"Cannot specify children on an index route"),invariant(!manifest[id],'Found a route id collision on id "'+id+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(route)){let indexRoute=_extends({},route,mapRouteProperties(route),{id});return manifest[id]=indexRoute,indexRoute}else{let pathOrLayoutRoute=_extends({},route,mapRouteProperties(route),{id,children:void 0});return manifest[id]=pathOrLayoutRoute,route.children&&(pathOrLayoutRoute.children=convertRoutesToDataRoutes(route.children,mapRouteProperties,treePath,manifest)),pathOrLayoutRoute}})}function matchRoutes(routes,locationArg,basename){basename===void 0&&(basename="/");let location=typeof locationArg=="string"?parsePath(locationArg):locationArg,pathname=stripBasename(location.pathname||"/",basename);if(pathname==null)return null;let branches=flattenRoutes(routes);rankRouteBranches(branches);let matches=null;for(let i=0;matches==null&&i<branches.length;++i){let decoded=decodePath(pathname);matches=matchRouteBranch(branches[i],decoded)}return matches}function convertRouteMatchToUiMatch(match,loaderData){let{route,pathname,params}=match;return{id:route.id,pathname,params,data:loaderData[route.id],handle:route.handle}}function flattenRoutes(routes,branches,parentsMeta,parentPath){branches===void 0&&(branches=[]),parentsMeta===void 0&&(parentsMeta=[]),parentPath===void 0&&(parentPath="");let flattenRoute=(route,index,relativePath)=>{let meta={relativePath:relativePath===void 0?route.path||"":relativePath,caseSensitive:route.caseSensitive===!0,childrenIndex:index,route};meta.relativePath.startsWith("/")&&(invariant(meta.relativePath.startsWith(parentPath),'Absolute route path "'+meta.relativePath+'" nested under path '+('"'+parentPath+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),meta.relativePath=meta.relativePath.slice(parentPath.length));let path=joinPaths([parentPath,meta.relativePath]),routesMeta=parentsMeta.concat(meta);route.children&&route.children.length>0&&(invariant(route.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+path+'".')),flattenRoutes(route.children,branches,routesMeta,path)),!(route.path==null&&!route.index)&&branches.push({path,score:computeScore(path,route.index),routesMeta})};return routes.forEach((route,index)=>{var _route$path;if(route.path===""||!((_route$path=route.path)!=null&&_route$path.includes("?")))flattenRoute(route,index);else for(let exploded of explodeOptionalSegments(route.path))flattenRoute(route,index,exploded)}),branches}function explodeOptionalSegments(path){let segments=path.split("/");if(segments.length===0)return[];let[first,...rest]=segments,isOptional=first.endsWith("?"),required=first.replace(/\?$/,"");if(rest.length===0)return isOptional?[required,""]:[required];let restExploded=explodeOptionalSegments(rest.join("/")),result=[];return result.push(...restExploded.map(subpath=>subpath===""?required:[required,subpath].join("/"))),isOptional&&result.push(...restExploded),result.map(exploded=>path.startsWith("/")&&exploded===""?"/":exploded)}function rankRouteBranches(branches){branches.sort((a,b)=>a.score!==b.score?b.score-a.score:compareIndexes(a.routesMeta.map(meta=>meta.childrenIndex),b.routesMeta.map(meta=>meta.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=s=>s==="*";function computeScore(path,index){let segments=path.split("/"),initialScore=segments.length;return segments.some(isSplat)&&(initialScore+=splatPenalty),index&&(initialScore+=indexRouteValue),segments.filter(s=>!isSplat(s)).reduce((score,segment)=>score+(paramRe.test(segment)?dynamicSegmentValue:segment===""?emptySegmentValue:staticSegmentValue),initialScore)}function compareIndexes(a,b){return a.length===b.length&&a.slice(0,-1).every((n,i)=>n===b[i])?a[a.length-1]-b[b.length-1]:0}function matchRouteBranch(branch,pathname){let{routesMeta}=branch,matchedParams={},matchedPathname="/",matches=[];for(let i=0;i<routesMeta.length;++i){let meta=routesMeta[i],end=i===routesMeta.length-1,remainingPathname=matchedPathname==="/"?pathname:pathname.slice(matchedPathname.length)||"/",match=matchPath({path:meta.relativePath,caseSensitive:meta.caseSensitive,end},remainingPathname);if(!match)return null;Object.assign(matchedParams,match.params);let route=meta.route;matches.push({params:matchedParams,pathname:joinPaths([matchedPathname,match.pathname]),pathnameBase:normalizePathname(joinPaths([matchedPathname,match.pathnameBase])),route}),match.pathnameBase!=="/"&&(matchedPathname=joinPaths([matchedPathname,match.pathnameBase]))}return matches}function generatePath(originalPath,params){params===void 0&&(params={});let path=originalPath;path.endsWith("*")&&path!=="*"&&!path.endsWith("/*")&&(warning(!1,'Route path "'+path+'" will be treated as if it were '+('"'+path.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+path.replace(/\*$/,"/*")+'".')),path=path.replace(/\*$/,"/*"));const prefix=path.startsWith("/")?"/":"",stringify=p=>p==null?"":typeof p=="string"?p:String(p),segments=path.split(/\/+/).map((segment,index,array)=>{if(index===array.length-1&&segment==="*")return stringify(params["*"]);const keyMatch=segment.match(/^:([\w-]+)(\??)$/);if(keyMatch){const[,key,optional]=keyMatch;let param=params[key];return invariant(optional==="?"||param!=null,'Missing ":'+key+'" param'),stringify(param)}return segment.replace(/\?$/g,"")}).filter(segment=>!!segment);return prefix+segments.join("/")}function matchPath(pattern,pathname){typeof pattern=="string"&&(pattern={path:pattern,caseSensitive:!1,end:!0});let[matcher,compiledParams]=compilePath(pattern.path,pattern.caseSensitive,pattern.end),match=pathname.match(matcher);if(!match)return null;let matchedPathname=match[0],pathnameBase=matchedPathname.replace(/(.)\/+$/,"$1"),captureGroups=match.slice(1);return{params:compiledParams.reduce((memo,_ref,index)=>{let{paramName,isOptional}=_ref;if(paramName==="*"){let splatValue=captureGroups[index]||"";pathnameBase=matchedPathname.slice(0,matchedPathname.length-splatValue.length).replace(/(.)\/+$/,"$1")}const value=captureGroups[index];return isOptional&&!value?memo[paramName]=void 0:memo[paramName]=(value||"").replace(/%2F/g,"/"),memo},{}),pathname:matchedPathname,pathnameBase,pattern}}function compilePath(path,caseSensitive,end){caseSensitive===void 0&&(caseSensitive=!1),end===void 0&&(end=!0),warning(path==="*"||!path.endsWith("*")||path.endsWith("/*"),'Route path "'+path+'" will be treated as if it were '+('"'+path.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+path.replace(/\*$/,"/*")+'".'));let params=[],regexpSource="^"+path.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(_,paramName,isOptional)=>(params.push({paramName,isOptional:isOptional!=null}),isOptional?"/?([^\\/]+)?":"/([^\\/]+)"));return path.endsWith("*")?(params.push({paramName:"*"}),regexpSource+=path==="*"||path==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):end?regexpSource+="\\/*$":path!==""&&path!=="/"&&(regexpSource+="(?:(?=\\/|$))"),[new RegExp(regexpSource,caseSensitive?void 0:"i"),params]}function decodePath(value){try{return value.split("/").map(v=>decodeURIComponent(v).replace(/\//g,"%2F")).join("/")}catch(error){return warning(!1,'The URL path "'+value+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+error+").")),value}}function stripBasename(pathname,basename){if(basename==="/")return pathname;if(!pathname.toLowerCase().startsWith(basename.toLowerCase()))return null;let startIndex=basename.endsWith("/")?basename.length-1:basename.length,nextChar=pathname.charAt(startIndex);return nextChar&&nextChar!=="/"?null:pathname.slice(startIndex)||"/"}function resolvePath(to,fromPathname){fromPathname===void 0&&(fromPathname="/");let{pathname:toPathname,search="",hash=""}=typeof to=="string"?parsePath(to):to;return{pathname:toPathname?toPathname.startsWith("/")?toPathname:resolvePathname(toPathname,fromPathname):fromPathname,search:normalizeSearch(search),hash:normalizeHash(hash)}}function resolvePathname(relativePath,fromPathname){let segments=fromPathname.replace(/\/+$/,"").split("/");return relativePath.split("/").forEach(segment=>{segment===".."?segments.length>1&&segments.pop():segment!=="."&&segments.push(segment)}),segments.length>1?segments.join("/"):"/"}function getInvalidPathError(char,field,dest,path){return"Cannot include a '"+char+"' character in a manually specified "+("`to."+field+"` field ["+JSON.stringify(path)+"]. Please separate it out to the ")+("`to."+dest+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(matches){return matches.filter((match,index)=>index===0||match.route.path&&match.route.path.length>0)}function getResolveToMatches(matches,v7_relativeSplatPath){let pathMatches=getPathContributingMatches(matches);return v7_relativeSplatPath?pathMatches.map((match,idx)=>idx===matches.length-1?match.pathname:match.pathnameBase):pathMatches.map(match=>match.pathnameBase)}function resolveTo(toArg,routePathnames,locationPathname,isPathRelative){isPathRelative===void 0&&(isPathRelative=!1);let to;typeof toArg=="string"?to=parsePath(toArg):(to=_extends({},toArg),invariant(!to.pathname||!to.pathname.includes("?"),getInvalidPathError("?","pathname","search",to)),invariant(!to.pathname||!to.pathname.includes("#"),getInvalidPathError("#","pathname","hash",to)),invariant(!to.search||!to.search.includes("#"),getInvalidPathError("#","search","hash",to)));let isEmptyPath=toArg===""||to.pathname==="",toPathname=isEmptyPath?"/":to.pathname,from;if(toPathname==null)from=locationPathname;else{let routePathnameIndex=routePathnames.length-1;if(!isPathRelative&&toPathname.startsWith("..")){let toSegments=toPathname.split("/");for(;toSegments[0]==="..";)toSegments.shift(),routePathnameIndex-=1;to.pathname=toSegments.join("/")}from=routePathnameIndex>=0?routePathnames[routePathnameIndex]:"/"}let path=resolvePath(to,from),hasExplicitTrailingSlash=toPathname&&toPathname!=="/"&&toPathname.endsWith("/"),hasCurrentTrailingSlash=(isEmptyPath||toPathname===".")&&locationPathname.endsWith("/");return!path.pathname.endsWith("/")&&(hasExplicitTrailingSlash||hasCurrentTrailingSlash)&&(path.pathname+="/"),path}function getToPathname(to){return to===""||to.pathname===""?"/":typeof to=="string"?parsePath(to).pathname:to.pathname}const joinPaths=paths=>paths.join("/").replace(/\/\/+/g,"/"),normalizePathname=pathname=>pathname.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=search=>!search||search==="?"?"":search.startsWith("?")?search:"?"+search,normalizeHash=hash=>!hash||hash==="#"?"":hash.startsWith("#")?hash:"#"+hash,json=function(data,init){init===void 0&&(init={});let responseInit=typeof init=="number"?{status:init}:init,headers=new Headers(responseInit.headers);return headers.has("Content-Type")||headers.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(data),_extends({},responseInit,{headers}))};class AbortedDeferredError extends Error{}class DeferredData{constructor(data,responseInit){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],invariant(data&&typeof data=="object"&&!Array.isArray(data),"defer() only accepts plain objects");let reject;this.abortPromise=new Promise((_,r)=>reject=r),this.controller=new AbortController;let onAbort=()=>reject(new AbortedDeferredError("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",onAbort),this.controller.signal.addEventListener("abort",onAbort),this.data=Object.entries(data).reduce((acc,_ref2)=>{let[key,value]=_ref2;return Object.assign(acc,{[key]:this.trackPromise(key,value)})},{}),this.done&&this.unlistenAbortSignal(),this.init=responseInit}trackPromise(key,value){if(!(value instanceof Promise))return value;this.deferredKeys.push(key),this.pendingKeysSet.add(key);let promise=Promise.race([value,this.abortPromise]).then(data=>this.onSettle(promise,key,void 0,data),error=>this.onSettle(promise,key,error));return promise.catch(()=>{}),Object.defineProperty(promise,"_tracked",{get:()=>!0}),promise}onSettle(promise,key,error,data){if(this.controller.signal.aborted&&error instanceof AbortedDeferredError)return this.unlistenAbortSignal(),Object.defineProperty(promise,"_error",{get:()=>error}),Promise.reject(error);if(this.pendingKeysSet.delete(key),this.done&&this.unlistenAbortSignal(),error===void 0&&data===void 0){let undefinedError=new Error('Deferred data for key "'+key+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(promise,"_error",{get:()=>undefinedError}),this.emit(!1,key),Promise.reject(undefinedError)}return data===void 0?(Object.defineProperty(promise,"_error",{get:()=>error}),this.emit(!1,key),Promise.reject(error)):(Object.defineProperty(promise,"_data",{get:()=>data}),this.emit(!1,key),data)}emit(aborted,settledKey){this.subscribers.forEach(subscriber=>subscriber(aborted,settledKey))}subscribe(fn){return this.subscribers.add(fn),()=>this.subscribers.delete(fn)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((v,k)=>this.pendingKeysSet.delete(k)),this.emit(!0)}async resolveData(signal){let aborted=!1;if(!this.done){let onAbort=()=>this.cancel();signal.addEventListener("abort",onAbort),aborted=await new Promise(resolve=>{this.subscribe(aborted2=>{signal.removeEventListener("abort",onAbort),(aborted2||this.done)&&resolve(aborted2)})})}return aborted}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return invariant(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((acc,_ref3)=>{let[key,value]=_ref3;return Object.assign(acc,{[key]:unwrapTrackedPromise(value)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function isTrackedPromise(value){return value instanceof Promise&&value._tracked===!0}function unwrapTrackedPromise(value){if(!isTrackedPromise(value))return value;if(value._error)throw value._error;return value._data}const defer=function(data,init){init===void 0&&(init={});let responseInit=typeof init=="number"?{status:init}:init;return new DeferredData(data,responseInit)},redirect=function(url,init){init===void 0&&(init=302);let responseInit=init;typeof responseInit=="number"?responseInit={status:responseInit}:typeof responseInit.status>"u"&&(responseInit.status=302);let headers=new Headers(responseInit.headers);return headers.set("Location",url),new Response(null,_extends({},responseInit,{headers}))},redirectDocument=(url,init)=>{let response=redirect(url,init);return response.headers.set("X-Remix-Reload-Document","true"),response};class ErrorResponseImpl{constructor(status,statusText,data,internal){internal===void 0&&(internal=!1),this.status=status,this.statusText=statusText||"",this.internal=internal,data instanceof Error?(this.data=data.toString(),this.error=data):this.data=data}}function isRouteErrorResponse(error){return error!=null&&typeof error.status=="number"&&typeof error.statusText=="string"&&typeof error.internal=="boolean"&&"data"in error}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=route=>({hasErrorBoundary:Boolean(route.hasErrorBoundary)}),TRANSITIONS_STORAGE_KEY="remix-router-transitions";function createRouter(init){const routerWindow=init.window?init.window:typeof window<"u"?window:void 0,isBrowser=typeof routerWindow<"u"&&typeof routerWindow.document<"u"&&typeof routerWindow.document.createElement<"u",isServer=!isBrowser;invariant(init.routes.length>0,"You must provide a non-empty routes array to createRouter");let mapRouteProperties;if(init.mapRouteProperties)mapRouteProperties=init.mapRouteProperties;else if(init.detectErrorBoundary){let detectErrorBoundary=init.detectErrorBoundary;mapRouteProperties=route=>({hasErrorBoundary:detectErrorBoundary(route)})}else mapRouteProperties=defaultMapRouteProperties;let manifest={},dataRoutes=convertRoutesToDataRoutes(init.routes,mapRouteProperties,void 0,manifest),inFlightDataRoutes,basename=init.basename||"/",dataStrategyImpl=init.unstable_dataStrategy||defaultDataStrategy,future=_extends({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},init.future),unlistenHistory=null,subscribers=new Set,savedScrollPositions=null,getScrollRestorationKey=null,getScrollPosition=null,initialScrollRestored=init.hydrationData!=null,initialMatches=matchRoutes(dataRoutes,init.history.location,basename),initialErrors=null;if(initialMatches==null){let error=getInternalRouterError(404,{pathname:init.history.location.pathname}),{matches,route}=getShortCircuitMatches(dataRoutes);initialMatches=matches,initialErrors={[route.id]:error}}let initialized,hasLazyRoutes=initialMatches.some(m=>m.route.lazy),hasLoaders=initialMatches.some(m=>m.route.loader);if(hasLazyRoutes)initialized=!1;else if(!hasLoaders)initialized=!0;else if(future.v7_partialHydration){let loaderData=init.hydrationData?init.hydrationData.loaderData:null,errors=init.hydrationData?init.hydrationData.errors:null,isRouteInitialized=m=>m.route.loader?typeof m.route.loader=="function"&&m.route.loader.hydrate===!0?!1:loaderData&&loaderData[m.route.id]!==void 0||errors&&errors[m.route.id]!==void 0:!0;if(errors){let idx=initialMatches.findIndex(m=>errors[m.route.id]!==void 0);initialized=initialMatches.slice(0,idx+1).every(isRouteInitialized)}else initialized=initialMatches.every(isRouteInitialized)}else initialized=init.hydrationData!=null;let router,state={historyAction:init.history.action,location:init.history.location,matches:initialMatches,initialized,navigation:IDLE_NAVIGATION,restoreScrollPosition:init.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:init.hydrationData&&init.hydrationData.loaderData||{},actionData:init.hydrationData&&init.hydrationData.actionData||null,errors:init.hydrationData&&init.hydrationData.errors||initialErrors,fetchers:new Map,blockers:new Map},pendingAction=Action.Pop,pendingPreventScrollReset=!1,pendingNavigationController,pendingViewTransitionEnabled=!1,appliedViewTransitions=new Map,removePageHideEventListener=null,isUninterruptedRevalidation=!1,isRevalidationRequired=!1,cancelledDeferredRoutes=[],cancelledFetcherLoads=[],fetchControllers=new Map,incrementingLoadId=0,pendingNavigationLoadId=-1,fetchReloadIds=new Map,fetchRedirectIds=new Set,fetchLoadMatches=new Map,activeFetchers=new Map,deletedFetchers=new Set,activeDeferreds=new Map,blockerFunctions=new Map,ignoreNextHistoryUpdate=!1;function initialize(){if(unlistenHistory=init.history.listen(_ref=>{let{action:historyAction,location,delta}=_ref;if(ignoreNextHistoryUpdate){ignoreNextHistoryUpdate=!1;return}warning(blockerFunctions.size===0||delta!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let blockerKey=shouldBlockNavigation({currentLocation:state.location,nextLocation:location,historyAction});if(blockerKey&&delta!=null){ignoreNextHistoryUpdate=!0,init.history.go(delta*-1),updateBlocker(blockerKey,{state:"blocked",location,proceed(){updateBlocker(blockerKey,{state:"proceeding",proceed:void 0,reset:void 0,location}),init.history.go(delta)},reset(){let blockers=new Map(state.blockers);blockers.set(blockerKey,IDLE_BLOCKER),updateState({blockers})}});return}return startNavigation(historyAction,location)}),isBrowser){restoreAppliedTransitions(routerWindow,appliedViewTransitions);let _saveAppliedTransitions=()=>persistAppliedTransitions(routerWindow,appliedViewTransitions);routerWindow.addEventListener("pagehide",_saveAppliedTransitions),removePageHideEventListener=()=>routerWindow.removeEventListener("pagehide",_saveAppliedTransitions)}return state.initialized||startNavigation(Action.Pop,state.location,{initialHydration:!0}),router}function dispose(){unlistenHistory&&unlistenHistory(),removePageHideEventListener&&removePageHideEventListener(),subscribers.clear(),pendingNavigationController&&pendingNavigationController.abort(),state.fetchers.forEach((_,key)=>deleteFetcher(key)),state.blockers.forEach((_,key)=>deleteBlocker(key))}function subscribe(fn){return subscribers.add(fn),()=>subscribers.delete(fn)}function updateState(newState,opts){opts===void 0&&(opts={}),state=_extends({},state,newState);let completedFetchers=[],deletedFetchersKeys=[];future.v7_fetcherPersist&&state.fetchers.forEach((fetcher,key)=>{fetcher.state==="idle"&&(deletedFetchers.has(key)?deletedFetchersKeys.push(key):completedFetchers.push(key))}),[...subscribers].forEach(subscriber=>subscriber(state,{deletedFetchers:deletedFetchersKeys,unstable_viewTransitionOpts:opts.viewTransitionOpts,unstable_flushSync:opts.flushSync===!0})),future.v7_fetcherPersist&&(completedFetchers.forEach(key=>state.fetchers.delete(key)),deletedFetchersKeys.forEach(key=>deleteFetcher(key)))}function completeNavigation(location,newState,_temp){var _location$state,_location$state2;let{flushSync}=_temp===void 0?{}:_temp,isActionReload=state.actionData!=null&&state.navigation.formMethod!=null&&isMutationMethod(state.navigation.formMethod)&&state.navigation.state==="loading"&&((_location$state=location.state)==null?void 0:_location$state._isRedirect)!==!0,actionData;newState.actionData?Object.keys(newState.actionData).length>0?actionData=newState.actionData:actionData=null:isActionReload?actionData=state.actionData:actionData=null;let loaderData=newState.loaderData?mergeLoaderData(state.loaderData,newState.loaderData,newState.matches||[],newState.errors):state.loaderData,blockers=state.blockers;blockers.size>0&&(blockers=new Map(blockers),blockers.forEach((_,k)=>blockers.set(k,IDLE_BLOCKER)));let preventScrollReset=pendingPreventScrollReset===!0||state.navigation.formMethod!=null&&isMutationMethod(state.navigation.formMethod)&&((_location$state2=location.state)==null?void 0:_location$state2._isRedirect)!==!0;inFlightDataRoutes&&(dataRoutes=inFlightDataRoutes,inFlightDataRoutes=void 0),isUninterruptedRevalidation||pendingAction===Action.Pop||(pendingAction===Action.Push?init.history.push(location,location.state):pendingAction===Action.Replace&&init.history.replace(location,location.state));let viewTransitionOpts;if(pendingAction===Action.Pop){let priorPaths=appliedViewTransitions.get(state.location.pathname);priorPaths&&priorPaths.has(location.pathname)?viewTransitionOpts={currentLocation:state.location,nextLocation:location}:appliedViewTransitions.has(location.pathname)&&(viewTransitionOpts={currentLocation:location,nextLocation:state.location})}else if(pendingViewTransitionEnabled){let toPaths=appliedViewTransitions.get(state.location.pathname);toPaths?toPaths.add(location.pathname):(toPaths=new Set([location.pathname]),appliedViewTransitions.set(state.location.pathname,toPaths)),viewTransitionOpts={currentLocation:state.location,nextLocation:location}}updateState(_extends({},newState,{actionData,loaderData,historyAction:pendingAction,location,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:getSavedScrollPosition(location,newState.matches||state.matches),preventScrollReset,blockers}),{viewTransitionOpts,flushSync:flushSync===!0}),pendingAction=Action.Pop,pendingPreventScrollReset=!1,pendingViewTransitionEnabled=!1,isUninterruptedRevalidation=!1,isRevalidationRequired=!1,cancelledDeferredRoutes=[],cancelledFetcherLoads=[]}async function navigate(to,opts){if(typeof to=="number"){init.history.go(to);return}let normalizedPath=normalizeTo(state.location,state.matches,basename,future.v7_prependBasename,to,future.v7_relativeSplatPath,opts?.fromRouteId,opts?.relative),{path,submission,error}=normalizeNavigateOptions(future.v7_normalizeFormMethod,!1,normalizedPath,opts),currentLocation=state.location,nextLocation=createLocation(state.location,path,opts&&opts.state);nextLocation=_extends({},nextLocation,init.history.encodeLocation(nextLocation));let userReplace=opts&&opts.replace!=null?opts.replace:void 0,historyAction=Action.Push;userReplace===!0?historyAction=Action.Replace:userReplace===!1||submission!=null&&isMutationMethod(submission.formMethod)&&submission.formAction===state.location.pathname+state.location.search&&(historyAction=Action.Replace);let preventScrollReset=opts&&"preventScrollReset"in opts?opts.preventScrollReset===!0:void 0,flushSync=(opts&&opts.unstable_flushSync)===!0,blockerKey=shouldBlockNavigation({currentLocation,nextLocation,historyAction});if(blockerKey){updateBlocker(blockerKey,{state:"blocked",location:nextLocation,proceed(){updateBlocker(blockerKey,{state:"proceeding",proceed:void 0,reset:void 0,location:nextLocation}),navigate(to,opts)},reset(){let blockers=new Map(state.blockers);blockers.set(blockerKey,IDLE_BLOCKER),updateState({blockers})}});return}return await startNavigation(historyAction,nextLocation,{submission,pendingError:error,preventScrollReset,replace:opts&&opts.replace,enableViewTransition:opts&&opts.unstable_viewTransition,flushSync})}function revalidate(){if(interruptActiveLoads(),updateState({revalidation:"loading"}),state.navigation.state!=="submitting"){if(state.navigation.state==="idle"){startNavigation(state.historyAction,state.location,{startUninterruptedRevalidation:!0});return}startNavigation(pendingAction||state.historyAction,state.navigation.location,{overrideNavigation:state.navigation})}}async function startNavigation(historyAction,location,opts){pendingNavigationController&&pendingNavigationController.abort(),pendingNavigationController=null,pendingAction=historyAction,isUninterruptedRevalidation=(opts&&opts.startUninterruptedRevalidation)===!0,saveScrollPosition(state.location,state.matches),pendingPreventScrollReset=(opts&&opts.preventScrollReset)===!0,pendingViewTransitionEnabled=(opts&&opts.enableViewTransition)===!0;let routesToUse=inFlightDataRoutes||dataRoutes,loadingNavigation=opts&&opts.overrideNavigation,matches=matchRoutes(routesToUse,location,basename),flushSync=(opts&&opts.flushSync)===!0;if(!matches){let error=getInternalRouterError(404,{pathname:location.pathname}),{matches:notFoundMatches,route}=getShortCircuitMatches(routesToUse);cancelActiveDeferreds(),completeNavigation(location,{matches:notFoundMatches,loaderData:{},errors:{[route.id]:error}},{flushSync});return}if(state.initialized&&!isRevalidationRequired&&isHashChangeOnly(state.location,location)&&!(opts&&opts.submission&&isMutationMethod(opts.submission.formMethod))){completeNavigation(location,{matches},{flushSync});return}pendingNavigationController=new AbortController;let request=createClientSideRequest(init.history,location,pendingNavigationController.signal,opts&&opts.submission),pendingActionResult;if(opts&&opts.pendingError)pendingActionResult=[findNearestBoundary(matches).route.id,{type:ResultType.error,error:opts.pendingError}];else if(opts&&opts.submission&&isMutationMethod(opts.submission.formMethod)){let actionResult=await handleAction(request,location,opts.submission,matches,{replace:opts.replace,flushSync});if(actionResult.shortCircuited)return;pendingActionResult=actionResult.pendingActionResult,loadingNavigation=getLoadingNavigation(location,opts.submission),flushSync=!1,request=createClientSideRequest(init.history,request.url,request.signal)}let{shortCircuited,loaderData,errors}=await handleLoaders(request,location,matches,loadingNavigation,opts&&opts.submission,opts&&opts.fetcherSubmission,opts&&opts.replace,opts&&opts.initialHydration===!0,flushSync,pendingActionResult);shortCircuited||(pendingNavigationController=null,completeNavigation(location,_extends({matches},getActionDataForCommit(pendingActionResult),{loaderData,errors})))}async function handleAction(request,location,submission,matches,opts){opts===void 0&&(opts={}),interruptActiveLoads();let navigation=getSubmittingNavigation(location,submission);updateState({navigation},{flushSync:opts.flushSync===!0});let result,actionMatch=getTargetMatch(matches,location);if(!actionMatch.route.action&&!actionMatch.route.lazy)result={type:ResultType.error,error:getInternalRouterError(405,{method:request.method,pathname:location.pathname,routeId:actionMatch.route.id})};else if(result=(await callDataStrategy("action",request,[actionMatch],matches))[0],request.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(result)){let replace;return opts&&opts.replace!=null?replace=opts.replace:replace=normalizeRedirectLocation(result.response.headers.get("Location"),new URL(request.url),basename)===state.location.pathname+state.location.search,await startRedirectNavigation(request,result,{submission,replace}),{shortCircuited:!0}}if(isDeferredResult(result))throw getInternalRouterError(400,{type:"defer-action"});if(isErrorResult(result)){let boundaryMatch=findNearestBoundary(matches,actionMatch.route.id);return(opts&&opts.replace)!==!0&&(pendingAction=Action.Push),{pendingActionResult:[boundaryMatch.route.id,result]}}return{pendingActionResult:[actionMatch.route.id,result]}}async function handleLoaders(request,location,matches,overrideNavigation,submission,fetcherSubmission,replace,initialHydration,flushSync,pendingActionResult){let loadingNavigation=overrideNavigation||getLoadingNavigation(location,submission),activeSubmission=submission||fetcherSubmission||getSubmissionFromNavigation(loadingNavigation),routesToUse=inFlightDataRoutes||dataRoutes,[matchesToLoad,revalidatingFetchers]=getMatchesToLoad(init.history,state,matches,activeSubmission,location,future.v7_partialHydration&&initialHydration===!0,future.unstable_skipActionErrorRevalidation,isRevalidationRequired,cancelledDeferredRoutes,cancelledFetcherLoads,deletedFetchers,fetchLoadMatches,fetchRedirectIds,routesToUse,basename,pendingActionResult);if(cancelActiveDeferreds(routeId=>!(matches&&matches.some(m=>m.route.id===routeId))||matchesToLoad&&matchesToLoad.some(m=>m.route.id===routeId)),pendingNavigationLoadId=++incrementingLoadId,matchesToLoad.length===0&&revalidatingFetchers.length===0){let updatedFetchers2=markFetchRedirectsDone();return completeNavigation(location,_extends({matches,loaderData:{},errors:pendingActionResult&&isErrorResult(pendingActionResult[1])?{[pendingActionResult[0]]:pendingActionResult[1].error}:null},getActionDataForCommit(pendingActionResult),updatedFetchers2?{fetchers:new Map(state.fetchers)}:{}),{flushSync}),{shortCircuited:!0}}if(!isUninterruptedRevalidation&&(!future.v7_partialHydration||!initialHydration)){revalidatingFetchers.forEach(rf=>{let fetcher=state.fetchers.get(rf.key),revalidatingFetcher=getLoadingFetcher(void 0,fetcher?fetcher.data:void 0);state.fetchers.set(rf.key,revalidatingFetcher)});let actionData;pendingActionResult&&!isErrorResult(pendingActionResult[1])?actionData={[pendingActionResult[0]]:pendingActionResult[1].data}:state.actionData&&(Object.keys(state.actionData).length===0?actionData=null:actionData=state.actionData),updateState(_extends({navigation:loadingNavigation},actionData!==void 0?{actionData}:{},revalidatingFetchers.length>0?{fetchers:new Map(state.fetchers)}:{}),{flushSync})}revalidatingFetchers.forEach(rf=>{fetchControllers.has(rf.key)&&abortFetcher(rf.key),rf.controller&&fetchControllers.set(rf.key,rf.controller)});let abortPendingFetchRevalidations=()=>revalidatingFetchers.forEach(f=>abortFetcher(f.key));pendingNavigationController&&pendingNavigationController.signal.addEventListener("abort",abortPendingFetchRevalidations);let{loaderResults,fetcherResults}=await callLoadersAndMaybeResolveData(state.matches,matches,matchesToLoad,revalidatingFetchers,request);if(request.signal.aborted)return{shortCircuited:!0};pendingNavigationController&&pendingNavigationController.signal.removeEventListener("abort",abortPendingFetchRevalidations),revalidatingFetchers.forEach(rf=>fetchControllers.delete(rf.key));let redirect2=findRedirect([...loaderResults,...fetcherResults]);if(redirect2){if(redirect2.idx>=matchesToLoad.length){let fetcherKey=revalidatingFetchers[redirect2.idx-matchesToLoad.length].key;fetchRedirectIds.add(fetcherKey)}return await startRedirectNavigation(request,redirect2.result,{replace}),{shortCircuited:!0}}let{loaderData,errors}=processLoaderData(state,matches,matchesToLoad,loaderResults,pendingActionResult,revalidatingFetchers,fetcherResults,activeDeferreds);activeDeferreds.forEach((deferredData,routeId)=>{deferredData.subscribe(aborted=>{(aborted||deferredData.done)&&activeDeferreds.delete(routeId)})}),future.v7_partialHydration&&initialHydration&&state.errors&&Object.entries(state.errors).filter(_ref2=>{let[id]=_ref2;return!matchesToLoad.some(m=>m.route.id===id)}).forEach(_ref3=>{let[routeId,error]=_ref3;errors=Object.assign(errors||{},{[routeId]:error})});let updatedFetchers=markFetchRedirectsDone(),didAbortFetchLoads=abortStaleFetchLoads(pendingNavigationLoadId),shouldUpdateFetchers=updatedFetchers||didAbortFetchLoads||revalidatingFetchers.length>0;return _extends({loaderData,errors},shouldUpdateFetchers?{fetchers:new Map(state.fetchers)}:{})}function fetch2(key,routeId,href,opts){if(isServer)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");fetchControllers.has(key)&&abortFetcher(key);let flushSync=(opts&&opts.unstable_flushSync)===!0,routesToUse=inFlightDataRoutes||dataRoutes,normalizedPath=normalizeTo(state.location,state.matches,basename,future.v7_prependBasename,href,future.v7_relativeSplatPath,routeId,opts?.relative),matches=matchRoutes(routesToUse,normalizedPath,basename);if(!matches){setFetcherError(key,routeId,getInternalRouterError(404,{pathname:normalizedPath}),{flushSync});return}let{path,submission,error}=normalizeNavigateOptions(future.v7_normalizeFormMethod,!0,normalizedPath,opts);if(error){setFetcherError(key,routeId,error,{flushSync});return}let match=getTargetMatch(matches,path);if(pendingPreventScrollReset=(opts&&opts.preventScrollReset)===!0,submission&&isMutationMethod(submission.formMethod)){handleFetcherAction(key,routeId,path,match,matches,flushSync,submission);return}fetchLoadMatches.set(key,{routeId,path}),handleFetcherLoader(key,routeId,path,match,matches,flushSync,submission)}async function handleFetcherAction(key,routeId,path,match,requestMatches,flushSync,submission){if(interruptActiveLoads(),fetchLoadMatches.delete(key),!match.route.action&&!match.route.lazy){let error=getInternalRouterError(405,{method:submission.formMethod,pathname:path,routeId});setFetcherError(key,routeId,error,{flushSync});return}let existingFetcher=state.fetchers.get(key);updateFetcherState(key,getSubmittingFetcher(submission,existingFetcher),{flushSync});let abortController=new AbortController,fetchRequest=createClientSideRequest(init.history,path,abortController.signal,submission);fetchControllers.set(key,abortController);let originatingLoadId=incrementingLoadId,actionResult=(await callDataStrategy("action",fetchRequest,[match],requestMatches))[0];if(fetchRequest.signal.aborted){fetchControllers.get(key)===abortController&&fetchControllers.delete(key);return}if(future.v7_fetcherPersist&&deletedFetchers.has(key)){if(isRedirectResult(actionResult)||isErrorResult(actionResult)){updateFetcherState(key,getDoneFetcher(void 0));return}}else{if(isRedirectResult(actionResult))if(fetchControllers.delete(key),pendingNavigationLoadId>originatingLoadId){updateFetcherState(key,getDoneFetcher(void 0));return}else return fetchRedirectIds.add(key),updateFetcherState(key,getLoadingFetcher(submission)),startRedirectNavigation(fetchRequest,actionResult,{fetcherSubmission:submission});if(isErrorResult(actionResult)){setFetcherError(key,routeId,actionResult.error);return}}if(isDeferredResult(actionResult))throw getInternalRouterError(400,{type:"defer-action"});let nextLocation=state.navigation.location||state.location,revalidationRequest=createClientSideRequest(init.history,nextLocation,abortController.signal),routesToUse=inFlightDataRoutes||dataRoutes,matches=state.navigation.state!=="idle"?matchRoutes(routesToUse,state.navigation.location,basename):state.matches;invariant(matches,"Didn't find any matches after fetcher action");let loadId=++incrementingLoadId;fetchReloadIds.set(key,loadId);let loadFetcher=getLoadingFetcher(submission,actionResult.data);state.fetchers.set(key,loadFetcher);let[matchesToLoad,revalidatingFetchers]=getMatchesToLoad(init.history,state,matches,submission,nextLocation,!1,future.unstable_skipActionErrorRevalidation,isRevalidationRequired,cancelledDeferredRoutes,cancelledFetcherLoads,deletedFetchers,fetchLoadMatches,fetchRedirectIds,routesToUse,basename,[match.route.id,actionResult]);revalidatingFetchers.filter(rf=>rf.key!==key).forEach(rf=>{let staleKey=rf.key,existingFetcher2=state.fetchers.get(staleKey),revalidatingFetcher=getLoadingFetcher(void 0,existingFetcher2?existingFetcher2.data:void 0);state.fetchers.set(staleKey,revalidatingFetcher),fetchControllers.has(staleKey)&&abortFetcher(staleKey),rf.controller&&fetchControllers.set(staleKey,rf.controller)}),updateState({fetchers:new Map(state.fetchers)});let abortPendingFetchRevalidations=()=>revalidatingFetchers.forEach(rf=>abortFetcher(rf.key));abortController.signal.addEventListener("abort",abortPendingFetchRevalidations);let{loaderResults,fetcherResults}=await callLoadersAndMaybeResolveData(state.matches,matches,matchesToLoad,revalidatingFetchers,revalidationRequest);if(abortController.signal.aborted)return;abortController.signal.removeEventListener("abort",abortPendingFetchRevalidations),fetchReloadIds.delete(key),fetchControllers.delete(key),revalidatingFetchers.forEach(r=>fetchControllers.delete(r.key));let redirect2=findRedirect([...loaderResults,...fetcherResults]);if(redirect2){if(redirect2.idx>=matchesToLoad.length){let fetcherKey=revalidatingFetchers[redirect2.idx-matchesToLoad.length].key;fetchRedirectIds.add(fetcherKey)}return startRedirectNavigation(revalidationRequest,redirect2.result)}let{loaderData,errors}=processLoaderData(state,state.matches,matchesToLoad,loaderResults,void 0,revalidatingFetchers,fetcherResults,activeDeferreds);if(state.fetchers.has(key)){let doneFetcher=getDoneFetcher(actionResult.data);state.fetchers.set(key,doneFetcher)}abortStaleFetchLoads(loadId),state.navigation.state==="loading"&&loadId>pendingNavigationLoadId?(invariant(pendingAction,"Expected pending action"),pendingNavigationController&&pendingNavigationController.abort(),completeNavigation(state.navigation.location,{matches,loaderData,errors,fetchers:new Map(state.fetchers)})):(updateState({errors,loaderData:mergeLoaderData(state.loaderData,loaderData,matches,errors),fetchers:new Map(state.fetchers)}),isRevalidationRequired=!1)}async function handleFetcherLoader(key,routeId,path,match,matches,flushSync,submission){let existingFetcher=state.fetchers.get(key);updateFetcherState(key,getLoadingFetcher(submission,existingFetcher?existingFetcher.data:void 0),{flushSync});let abortController=new AbortController,fetchRequest=createClientSideRequest(init.history,path,abortController.signal);fetchControllers.set(key,abortController);let originatingLoadId=incrementingLoadId,result=(await callDataStrategy("loader",fetchRequest,[match],matches))[0];if(isDeferredResult(result)&&(result=await resolveDeferredData(result,fetchRequest.signal,!0)||result),fetchControllers.get(key)===abortController&&fetchControllers.delete(key),!fetchRequest.signal.aborted){if(deletedFetchers.has(key)){updateFetcherState(key,getDoneFetcher(void 0));return}if(isRedirectResult(result))if(pendingNavigationLoadId>originatingLoadId){updateFetcherState(key,getDoneFetcher(void 0));return}else{fetchRedirectIds.add(key),await startRedirectNavigation(fetchRequest,result);return}if(isErrorResult(result)){setFetcherError(key,routeId,result.error);return}invariant(!isDeferredResult(result),"Unhandled fetcher deferred data"),updateFetcherState(key,getDoneFetcher(result.data))}}async function startRedirectNavigation(request,redirect2,_temp2){let{submission,fetcherSubmission,replace}=_temp2===void 0?{}:_temp2;redirect2.response.headers.has("X-Remix-Revalidate")&&(isRevalidationRequired=!0);let location=redirect2.response.headers.get("Location");invariant(location,"Expected a Location header on the redirect Response"),location=normalizeRedirectLocation(location,new URL(request.url),basename);let redirectLocation=createLocation(state.location,location,{_isRedirect:!0});if(isBrowser){let isDocumentReload=!1;if(redirect2.response.headers.has("X-Remix-Reload-Document"))isDocumentReload=!0;else if(ABSOLUTE_URL_REGEX.test(location)){const url=init.history.createURL(location);isDocumentReload=url.origin!==routerWindow.location.origin||stripBasename(url.pathname,basename)==null}if(isDocumentReload){replace?routerWindow.location.replace(location):routerWindow.location.assign(location);return}}pendingNavigationController=null;let redirectHistoryAction=replace===!0?Action.Replace:Action.Push,{formMethod,formAction,formEncType}=state.navigation;!submission&&!fetcherSubmission&&formMethod&&formAction&&formEncType&&(submission=getSubmissionFromNavigation(state.navigation));let activeSubmission=submission||fetcherSubmission;if(redirectPreserveMethodStatusCodes.has(redirect2.response.status)&&activeSubmission&&isMutationMethod(activeSubmission.formMethod))await startNavigation(redirectHistoryAction,redirectLocation,{submission:_extends({},activeSubmission,{formAction:location}),preventScrollReset:pendingPreventScrollReset});else{let overrideNavigation=getLoadingNavigation(redirectLocation,submission);await startNavigation(redirectHistoryAction,redirectLocation,{overrideNavigation,fetcherSubmission,preventScrollReset:pendingPreventScrollReset})}}async function callDataStrategy(type,request,matchesToLoad,matches){try{let results=await callDataStrategyImpl(dataStrategyImpl,type,request,matchesToLoad,matches,manifest,mapRouteProperties);return await Promise.all(results.map((result,i)=>{if(isRedirectHandlerResult(result)){let response=result.result;return{type:ResultType.redirect,response:normalizeRelativeRoutingRedirectResponse(response,request,matchesToLoad[i].route.id,matches,basename,future.v7_relativeSplatPath)}}return convertHandlerResultToDataResult(result)}))}catch(e){return matchesToLoad.map(()=>({type:ResultType.error,error:e}))}}async function callLoadersAndMaybeResolveData(currentMatches,matches,matchesToLoad,fetchersToLoad,request){let[loaderResults,...fetcherResults]=await Promise.all([matchesToLoad.length?callDataStrategy("loader",request,matchesToLoad,matches):[],...fetchersToLoad.map(f=>{if(f.matches&&f.match&&f.controller){let fetcherRequest=createClientSideRequest(init.history,f.path,f.controller.signal);return callDataStrategy("loader",fetcherRequest,[f.match],f.matches).then(r=>r[0])}else return Promise.resolve({type:ResultType.error,error:getInternalRouterError(404,{pathname:f.path})})})]);return await Promise.all([resolveDeferredResults(currentMatches,matchesToLoad,loaderResults,loaderResults.map(()=>request.signal),!1,state.loaderData),resolveDeferredResults(currentMatches,fetchersToLoad.map(f=>f.match),fetcherResults,fetchersToLoad.map(f=>f.controller?f.controller.signal:null),!0)]),{loaderResults,fetcherResults}}function interruptActiveLoads(){isRevalidationRequired=!0,cancelledDeferredRoutes.push(...cancelActiveDeferreds()),fetchLoadMatches.forEach((_,key)=>{fetchControllers.has(key)&&(cancelledFetcherLoads.push(key),abortFetcher(key))})}function updateFetcherState(key,fetcher,opts){opts===void 0&&(opts={}),state.fetchers.set(key,fetcher),updateState({fetchers:new Map(state.fetchers)},{flushSync:(opts&&opts.flushSync)===!0})}function setFetcherError(key,routeId,error,opts){opts===void 0&&(opts={});let boundaryMatch=findNearestBoundary(state.matches,routeId);deleteFetcher(key),updateState({errors:{[boundaryMatch.route.id]:error},fetchers:new Map(state.fetchers)},{flushSync:(opts&&opts.flushSync)===!0})}function getFetcher(key){return future.v7_fetcherPersist&&(activeFetchers.set(key,(activeFetchers.get(key)||0)+1),deletedFetchers.has(key)&&deletedFetchers.delete(key)),state.fetchers.get(key)||IDLE_FETCHER}function deleteFetcher(key){let fetcher=state.fetchers.get(key);fetchControllers.has(key)&&!(fetcher&&fetcher.state==="loading"&&fetchReloadIds.has(key))&&abortFetcher(key),fetchLoadMatches.delete(key),fetchReloadIds.delete(key),fetchRedirectIds.delete(key),deletedFetchers.delete(key),state.fetchers.delete(key)}function deleteFetcherAndUpdateState(key){if(future.v7_fetcherPersist){let count=(activeFetchers.get(key)||0)-1;count<=0?(activeFetchers.delete(key),deletedFetchers.add(key)):activeFetchers.set(key,count)}else deleteFetcher(key);updateState({fetchers:new Map(state.fetchers)})}function abortFetcher(key){let controller=fetchControllers.get(key);invariant(controller,"Expected fetch controller: "+key),controller.abort(),fetchControllers.delete(key)}function markFetchersDone(keys){for(let key of keys){let fetcher=getFetcher(key),doneFetcher=getDoneFetcher(fetcher.data);state.fetchers.set(key,doneFetcher)}}function markFetchRedirectsDone(){let doneKeys=[],updatedFetchers=!1;for(let key of fetchRedirectIds){let fetcher=state.fetchers.get(key);invariant(fetcher,"Expected fetcher: "+key),fetcher.state==="loading"&&(fetchRedirectIds.delete(key),doneKeys.push(key),updatedFetchers=!0)}return markFetchersDone(doneKeys),updatedFetchers}function abortStaleFetchLoads(landedId){let yeetedKeys=[];for(let[key,id]of fetchReloadIds)if(id<landedId){let fetcher=state.fetchers.get(key);invariant(fetcher,"Expected fetcher: "+key),fetcher.state==="loading"&&(abortFetcher(key),fetchReloadIds.delete(key),yeetedKeys.push(key))}return markFetchersDone(yeetedKeys),yeetedKeys.length>0}function getBlocker(key,fn){let blocker=state.blockers.get(key)||IDLE_BLOCKER;return blockerFunctions.get(key)!==fn&&blockerFunctions.set(key,fn),blocker}function deleteBlocker(key){state.blockers.delete(key),blockerFunctions.delete(key)}function updateBlocker(key,newBlocker){let blocker=state.blockers.get(key)||IDLE_BLOCKER;invariant(blocker.state==="unblocked"&&newBlocker.state==="blocked"||blocker.state==="blocked"&&newBlocker.state==="blocked"||blocker.state==="blocked"&&newBlocker.state==="proceeding"||blocker.state==="blocked"&&newBlocker.state==="unblocked"||blocker.state==="proceeding"&&newBlocker.state==="unblocked","Invalid blocker state transition: "+blocker.state+" -> "+newBlocker.state);let blockers=new Map(state.blockers);blockers.set(key,newBlocker),updateState({blockers})}function shouldBlockNavigation(_ref4){let{currentLocation,nextLocation,historyAction}=_ref4;if(blockerFunctions.size===0)return;blockerFunctions.size>1&&warning(!1,"A router only supports one blocker at a time");let entries=Array.from(blockerFunctions.entries()),[blockerKey,blockerFunction]=entries[entries.length-1],blocker=state.blockers.get(blockerKey);if(!(blocker&&blocker.state==="proceeding")&&blockerFunction({currentLocation,nextLocation,historyAction}))return blockerKey}function cancelActiveDeferreds(predicate){let cancelledRouteIds=[];return activeDeferreds.forEach((dfd,routeId)=>{(!predicate||predicate(routeId))&&(dfd.cancel(),cancelledRouteIds.push(routeId),activeDeferreds.delete(routeId))}),cancelledRouteIds}function enableScrollRestoration(positions,getPosition,getKey){if(savedScrollPositions=positions,getScrollPosition=getPosition,getScrollRestorationKey=getKey||null,!initialScrollRestored&&state.navigation===IDLE_NAVIGATION){initialScrollRestored=!0;let y=getSavedScrollPosition(state.location,state.matches);y!=null&&updateState({restoreScrollPosition:y})}return()=>{savedScrollPositions=null,getScrollPosition=null,getScrollRestorationKey=null}}function getScrollKey(location,matches){return getScrollRestorationKey&&getScrollRestorationKey(location,matches.map(m=>convertRouteMatchToUiMatch(m,state.loaderData)))||location.key}function saveScrollPosition(location,matches){if(savedScrollPositions&&getScrollPosition){let key=getScrollKey(location,matches);savedScrollPositions[key]=getScrollPosition()}}function getSavedScrollPosition(location,matches){if(savedScrollPositions){let key=getScrollKey(location,matches),y=savedScrollPositions[key];if(typeof y=="number")return y}return null}function _internalSetRoutes(newRoutes){manifest={},inFlightDataRoutes=convertRoutesToDataRoutes(newRoutes,mapRouteProperties,void 0,manifest)}return router={get basename(){return basename},get future(){return future},get state(){return state},get routes(){return dataRoutes},get window(){return routerWindow},initialize,subscribe,enableScrollRestoration,navigate,fetch:fetch2,revalidate,createHref:to=>init.history.createHref(to),encodeLocation:to=>init.history.encodeLocation(to),getFetcher,deleteFetcher:deleteFetcherAndUpdateState,dispose,getBlocker,deleteBlocker,_internalFetchControllers:fetchControllers,_internalActiveDeferreds:activeDeferreds,_internalSetRoutes},router}const UNSAFE_DEFERRED_SYMBOL=Symbol("deferred");function createStaticHandler(routes,opts){invariant(routes.length>0,"You must provide a non-empty routes array to createStaticHandler");let manifest={},basename=(opts?opts.basename:null)||"/",mapRouteProperties;if(opts!=null&&opts.mapRouteProperties)mapRouteProperties=opts.mapRouteProperties;else if(opts!=null&&opts.detectErrorBoundary){let detectErrorBoundary=opts.detectErrorBoundary;mapRouteProperties=route=>({hasErrorBoundary:detectErrorBoundary(route)})}else mapRouteProperties=defaultMapRouteProperties;let future=_extends({v7_relativeSplatPath:!1,v7_throwAbortReason:!1},opts?opts.future:null),dataRoutes=convertRoutesToDataRoutes(routes,mapRouteProperties,void 0,manifest);async function query(request,_temp3){let{requestContext,skipLoaderErrorBubbling,unstable_dataStrategy}=_temp3===void 0?{}:_temp3,url=new URL(request.url),method=request.method,location=createLocation("",createPath(url),null,"default"),matches=matchRoutes(dataRoutes,location,basename);if(!isValidMethod(method)&&method!=="HEAD"){let error=getInternalRouterError(405,{method}),{matches:methodNotAllowedMatches,route}=getShortCircuitMatches(dataRoutes);return{basename,location,matches:methodNotAllowedMatches,loaderData:{},actionData:null,errors:{[route.id]:error},statusCode:error.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!matches){let error=getInternalRouterError(404,{pathname:location.pathname}),{matches:notFoundMatches,route}=getShortCircuitMatches(dataRoutes);return{basename,location,matches:notFoundMatches,loaderData:{},actionData:null,errors:{[route.id]:error},statusCode:error.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let result=await queryImpl(request,location,matches,requestContext,unstable_dataStrategy||null,skipLoaderErrorBubbling===!0,null);return isResponse(result)?result:_extends({location,basename},result)}async function queryRoute(request,_temp4){let{routeId,requestContext,unstable_dataStrategy}=_temp4===void 0?{}:_temp4,url=new URL(request.url),method=request.method,location=createLocation("",createPath(url),null,"default"),matches=matchRoutes(dataRoutes,location,basename);if(!isValidMethod(method)&&method!=="HEAD"&&method!=="OPTIONS")throw getInternalRouterError(405,{method});if(!matches)throw getInternalRouterError(404,{pathname:location.pathname});let match=routeId?matches.find(m=>m.route.id===routeId):getTargetMatch(matches,location);if(routeId&&!match)throw getInternalRouterError(403,{pathname:location.pathname,routeId});if(!match)throw getInternalRouterError(404,{pathname:location.pathname});let result=await queryImpl(request,location,matches,requestContext,unstable_dataStrategy||null,!1,match);if(isResponse(result))return result;let error=result.errors?Object.values(result.errors)[0]:void 0;if(error!==void 0)throw error;if(result.actionData)return Object.values(result.actionData)[0];if(result.loaderData){var _result$activeDeferre;let data=Object.values(result.loaderData)[0];return(_result$activeDeferre=result.activeDeferreds)!=null&&_result$activeDeferre[match.route.id]&&(data[UNSAFE_DEFERRED_SYMBOL]=result.activeDeferreds[match.route.id]),data}}async function queryImpl(request,location,matches,requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,routeMatch){invariant(request.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(isMutationMethod(request.method.toLowerCase()))return await submit(request,matches,routeMatch||getTargetMatch(matches,location),requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,routeMatch!=null);let result=await loadRouteData(request,matches,requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,routeMatch);return isResponse(result)?result:_extends({},result,{actionData:null,actionHeaders:{}})}catch(e){if(isHandlerResult(e)&&isResponse(e.result)){if(e.type===ResultType.error)throw e.result;return e.result}if(isRedirectResponse(e))return e;throw e}}async function submit(request,matches,actionMatch,requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,isRouteRequest){let result;if(!actionMatch.route.action&&!actionMatch.route.lazy){let error=getInternalRouterError(405,{method:request.method,pathname:new URL(request.url).pathname,routeId:actionMatch.route.id});if(isRouteRequest)throw error;result={type:ResultType.error,error}}else result=(await callDataStrategy("action",request,[actionMatch],matches,isRouteRequest,requestContext,unstable_dataStrategy))[0],request.signal.aborted&&throwStaticHandlerAbortedError(request,isRouteRequest,future);if(isRedirectResult(result))throw new Response(null,{status:result.response.status,headers:{Location:result.response.headers.get("Location")}});if(isDeferredResult(result)){let error=getInternalRouterError(400,{type:"defer-action"});if(isRouteRequest)throw error;result={type:ResultType.error,error}}if(isRouteRequest){if(isErrorResult(result))throw result.error;return{matches:[actionMatch],loaderData:{},actionData:{[actionMatch.route.id]:result.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let loaderRequest=new Request(request.url,{headers:request.headers,redirect:request.redirect,signal:request.signal});if(isErrorResult(result)){let boundaryMatch=skipLoaderErrorBubbling?actionMatch:findNearestBoundary(matches,actionMatch.route.id),context2=await loadRouteData(loaderRequest,matches,requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,null,[boundaryMatch.route.id,result]);return _extends({},context2,{statusCode:isRouteErrorResponse(result.error)?result.error.status:result.statusCode!=null?result.statusCode:500,actionData:null,actionHeaders:_extends({},result.headers?{[actionMatch.route.id]:result.headers}:{})})}let context=await loadRouteData(loaderRequest,matches,requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,null);return _extends({},context,{actionData:{[actionMatch.route.id]:result.data}},result.statusCode?{statusCode:result.statusCode}:{},{actionHeaders:result.headers?{[actionMatch.route.id]:result.headers}:{}})}async function loadRouteData(request,matches,requestContext,unstable_dataStrategy,skipLoaderErrorBubbling,routeMatch,pendingActionResult){let isRouteRequest=routeMatch!=null;if(isRouteRequest&&!(routeMatch!=null&&routeMatch.route.loader)&&!(routeMatch!=null&&routeMatch.route.lazy))throw getInternalRouterError(400,{method:request.method,pathname:new URL(request.url).pathname,routeId:routeMatch?.route.id});let matchesToLoad=(routeMatch?[routeMatch]:pendingActionResult&&isErrorResult(pendingActionResult[1])?getLoaderMatchesUntilBoundary(matches,pendingActionResult[0]):matches).filter(m=>m.route.loader||m.route.lazy);if(matchesToLoad.length===0)return{matches,loaderData:matches.reduce((acc,m)=>Object.assign(acc,{[m.route.id]:null}),{}),errors:pendingActionResult&&isErrorResult(pendingActionResult[1])?{[pendingActionResult[0]]:pendingActionResult[1].error}:null,statusCode:200,loaderHeaders:{},activeDeferreds:null};let results=await callDataStrategy("loader",request,matchesToLoad,matches,isRouteRequest,requestContext,unstable_dataStrategy);request.signal.aborted&&throwStaticHandlerAbortedError(request,isRouteRequest,future);let activeDeferreds=new Map,context=processRouteLoaderData(matches,matchesToLoad,results,pendingActionResult,activeDeferreds,skipLoaderErrorBubbling),executedLoaders=new Set(matchesToLoad.map(match=>match.route.id));return matches.forEach(match=>{executedLoaders.has(match.route.id)||(context.loaderData[match.route.id]=null)}),_extends({},context,{matches,activeDeferreds:activeDeferreds.size>0?Object.fromEntries(activeDeferreds.entries()):null})}async function callDataStrategy(type,request,matchesToLoad,matches,isRouteRequest,requestContext,unstable_dataStrategy){let results=await callDataStrategyImpl(unstable_dataStrategy||defaultDataStrategy,type,request,matchesToLoad,matches,manifest,mapRouteProperties,requestContext);return await Promise.all(results.map((result,i)=>{if(isRedirectHandlerResult(result)){let response=result.result;throw normalizeRelativeRoutingRedirectResponse(response,request,matchesToLoad[i].route.id,matches,basename,future.v7_relativeSplatPath)}if(isResponse(result.result)&&isRouteRequest)throw result;return convertHandlerResultToDataResult(result)}))}return{dataRoutes,query,queryRoute}}function getStaticContextFromError(routes,context,error){return _extends({},context,{statusCode:isRouteErrorResponse(error)?error.status:500,errors:{[context._deepestRenderedBoundaryId||routes[0].id]:error}})}function throwStaticHandlerAbortedError(request,isRouteRequest,future){if(future.v7_throwAbortReason&&request.signal.reason!==void 0)throw request.signal.reason;let method=isRouteRequest?"queryRoute":"query";throw new Error(method+"() call aborted: "+request.method+" "+request.url)}function isSubmissionNavigation(opts){return opts!=null&&("formData"in opts&&opts.formData!=null||"body"in opts&&opts.body!==void 0)}function normalizeTo(location,matches,basename,prependBasename,to,v7_relativeSplatPath,fromRouteId,relative){let contextualMatches,activeRouteMatch;if(fromRouteId){contextualMatches=[];for(let match of matches)if(contextualMatches.push(match),match.route.id===fromRouteId){activeRouteMatch=match;break}}else contextualMatches=matches,activeRouteMatch=matches[matches.length-1];let path=resolveTo(to||".",getResolveToMatches(contextualMatches,v7_relativeSplatPath),stripBasename(location.pathname,basename)||location.pathname,relative==="path");return to==null&&(path.search=location.search,path.hash=location.hash),(to==null||to===""||to===".")&&activeRouteMatch&&activeRouteMatch.route.index&&!hasNakedIndexQuery(path.search)&&(path.search=path.search?path.search.replace(/^\?/,"?index&"):"?index"),prependBasename&&basename!=="/"&&(path.pathname=path.pathname==="/"?basename:joinPaths([basename,path.pathname])),createPath(path)}function normalizeNavigateOptions(normalizeFormMethod,isFetcher,path,opts){if(!opts||!isSubmissionNavigation(opts))return{path};if(opts.formMethod&&!isValidMethod(opts.formMethod))return{path,error:getInternalRouterError(405,{method:opts.formMethod})};let getInvalidBodyError=()=>({path,error:getInternalRouterError(400,{type:"invalid-body"})}),rawFormMethod=opts.formMethod||"get",formMethod=normalizeFormMethod?rawFormMethod.toUpperCase():rawFormMethod.toLowerCase(),formAction=stripHashFromPath(path);if(opts.body!==void 0){if(opts.formEncType==="text/plain"){if(!isMutationMethod(formMethod))return getInvalidBodyError();let text=typeof opts.body=="string"?opts.body:opts.body instanceof FormData||opts.body instanceof URLSearchParams?Array.from(opts.body.entries()).reduce((acc,_ref5)=>{let[name,value]=_ref5;return""+acc+name+"="+value+`
|
11
|
-
`},""):String(opts.body);return{path,submission:{formMethod,formAction,formEncType:opts.formEncType,formData:void 0,json:void 0,text}}}else if(opts.formEncType==="application/json"){if(!isMutationMethod(formMethod))return getInvalidBodyError();try{let json2=typeof opts.body=="string"?JSON.parse(opts.body):opts.body;return{path,submission:{formMethod,formAction,formEncType:opts.formEncType,formData:void 0,json:json2,text:void 0}}}catch{return getInvalidBodyError()}}}invariant(typeof FormData=="function","FormData is not available in this environment");let searchParams,formData;if(opts.formData)searchParams=convertFormDataToSearchParams(opts.formData),formData=opts.formData;else if(opts.body instanceof FormData)searchParams=convertFormDataToSearchParams(opts.body),formData=opts.body;else if(opts.body instanceof URLSearchParams)searchParams=opts.body,formData=convertSearchParamsToFormData(searchParams);else if(opts.body==null)searchParams=new URLSearchParams,formData=new FormData;else try{searchParams=new URLSearchParams(opts.body),formData=convertSearchParamsToFormData(searchParams)}catch{return getInvalidBodyError()}let submission={formMethod,formAction,formEncType:opts&&opts.formEncType||"application/x-www-form-urlencoded",formData,json:void 0,text:void 0};if(isMutationMethod(submission.formMethod))return{path,submission};let parsedPath=parsePath(path);return isFetcher&&parsedPath.search&&hasNakedIndexQuery(parsedPath.search)&&searchParams.append("index",""),parsedPath.search="?"+searchParams,{path:createPath(parsedPath),submission}}function getLoaderMatchesUntilBoundary(matches,boundaryId){let boundaryMatches=matches;if(boundaryId){let index=matches.findIndex(m=>m.route.id===boundaryId);index>=0&&(boundaryMatches=matches.slice(0,index))}return boundaryMatches}function getMatchesToLoad(history,state,matches,submission,location,isInitialLoad,skipActionErrorRevalidation,isRevalidationRequired,cancelledDeferredRoutes,cancelledFetcherLoads,deletedFetchers,fetchLoadMatches,fetchRedirectIds,routesToUse,basename,pendingActionResult){let actionResult=pendingActionResult?isErrorResult(pendingActionResult[1])?pendingActionResult[1].error:pendingActionResult[1].data:void 0,currentUrl=history.createURL(state.location),nextUrl=history.createURL(location),boundaryId=pendingActionResult&&isErrorResult(pendingActionResult[1])?pendingActionResult[0]:void 0,boundaryMatches=boundaryId?getLoaderMatchesUntilBoundary(matches,boundaryId):matches,actionStatus=pendingActionResult?pendingActionResult[1].statusCode:void 0,shouldSkipRevalidation=skipActionErrorRevalidation&&actionStatus&&actionStatus>=400,navigationMatches=boundaryMatches.filter((match,index)=>{let{route}=match;if(route.lazy)return!0;if(route.loader==null)return!1;if(isInitialLoad)return typeof route.loader!="function"||route.loader.hydrate?!0:state.loaderData[route.id]===void 0&&(!state.errors||state.errors[route.id]===void 0);if(isNewLoader(state.loaderData,state.matches[index],match)||cancelledDeferredRoutes.some(id=>id===match.route.id))return!0;let currentRouteMatch=state.matches[index],nextRouteMatch=match;return shouldRevalidateLoader(match,_extends({currentUrl,currentParams:currentRouteMatch.params,nextUrl,nextParams:nextRouteMatch.params},submission,{actionResult,unstable_actionStatus:actionStatus,defaultShouldRevalidate:shouldSkipRevalidation?!1:isRevalidationRequired||currentUrl.pathname+currentUrl.search===nextUrl.pathname+nextUrl.search||currentUrl.search!==nextUrl.search||isNewRouteInstance(currentRouteMatch,nextRouteMatch)}))}),revalidatingFetchers=[];return fetchLoadMatches.forEach((f,key)=>{if(isInitialLoad||!matches.some(m=>m.route.id===f.routeId)||deletedFetchers.has(key))return;let fetcherMatches=matchRoutes(routesToUse,f.path,basename);if(!fetcherMatches){revalidatingFetchers.push({key,routeId:f.routeId,path:f.path,matches:null,match:null,controller:null});return}let fetcher=state.fetchers.get(key),fetcherMatch=getTargetMatch(fetcherMatches,f.path),shouldRevalidate=!1;fetchRedirectIds.has(key)?shouldRevalidate=!1:cancelledFetcherLoads.includes(key)?shouldRevalidate=!0:fetcher&&fetcher.state!=="idle"&&fetcher.data===void 0?shouldRevalidate=isRevalidationRequired:shouldRevalidate=shouldRevalidateLoader(fetcherMatch,_extends({currentUrl,currentParams:state.matches[state.matches.length-1].params,nextUrl,nextParams:matches[matches.length-1].params},submission,{actionResult,unstable_actionStatus:actionStatus,defaultShouldRevalidate:shouldSkipRevalidation?!1:isRevalidationRequired})),shouldRevalidate&&revalidatingFetchers.push({key,routeId:f.routeId,path:f.path,matches:fetcherMatches,match:fetcherMatch,controller:new AbortController})}),[navigationMatches,revalidatingFetchers]}function isNewLoader(currentLoaderData,currentMatch,match){let isNew=!currentMatch||match.route.id!==currentMatch.route.id,isMissingData=currentLoaderData[match.route.id]===void 0;return isNew||isMissingData}function isNewRouteInstance(currentMatch,match){let currentPath=currentMatch.route.path;return currentMatch.pathname!==match.pathname||currentPath!=null&¤tPath.endsWith("*")&¤tMatch.params["*"]!==match.params["*"]}function shouldRevalidateLoader(loaderMatch,arg){if(loaderMatch.route.shouldRevalidate){let routeChoice=loaderMatch.route.shouldRevalidate(arg);if(typeof routeChoice=="boolean")return routeChoice}return arg.defaultShouldRevalidate}async function loadLazyRouteModule(route,mapRouteProperties,manifest){if(!route.lazy)return;let lazyRoute=await route.lazy();if(!route.lazy)return;let routeToUpdate=manifest[route.id];invariant(routeToUpdate,"No route found in manifest");let routeUpdates={};for(let lazyRouteProperty in lazyRoute){let isPropertyStaticallyDefined=routeToUpdate[lazyRouteProperty]!==void 0&&lazyRouteProperty!=="hasErrorBoundary";warning(!isPropertyStaticallyDefined,'Route "'+routeToUpdate.id+'" has a static property "'+lazyRouteProperty+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+lazyRouteProperty+'" will be ignored.')),!isPropertyStaticallyDefined&&!immutableRouteKeys.has(lazyRouteProperty)&&(routeUpdates[lazyRouteProperty]=lazyRoute[lazyRouteProperty])}Object.assign(routeToUpdate,routeUpdates),Object.assign(routeToUpdate,_extends({},mapRouteProperties(routeToUpdate),{lazy:void 0}))}function defaultDataStrategy(opts){return Promise.all(opts.matches.map(m=>m.resolve()))}async function callDataStrategyImpl(dataStrategyImpl,type,request,matchesToLoad,matches,manifest,mapRouteProperties,requestContext){let routeIdsToLoad=matchesToLoad.reduce((acc,m)=>acc.add(m.route.id),new Set),loadedMatches=new Set,results=await dataStrategyImpl({matches:matches.map(match=>{let shouldLoad=routeIdsToLoad.has(match.route.id);return _extends({},match,{shouldLoad,resolve:handlerOverride=>(loadedMatches.add(match.route.id),shouldLoad?callLoaderOrAction(type,request,match,manifest,mapRouteProperties,handlerOverride,requestContext):Promise.resolve({type:ResultType.data,result:void 0}))})}),request,params:matches[0].params,context:requestContext});return matches.forEach(m=>invariant(loadedMatches.has(m.route.id),'`match.resolve()` was not called for route id "'+m.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),results.filter((_,i)=>routeIdsToLoad.has(matches[i].route.id))}async function callLoaderOrAction(type,request,match,manifest,mapRouteProperties,handlerOverride,staticContext){let result,onReject,runHandler=handler=>{let reject,abortPromise=new Promise((_,r)=>reject=r);onReject=()=>reject(),request.signal.addEventListener("abort",onReject);let actualHandler=ctx=>typeof handler!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+type+'" [routeId: '+match.route.id+"]"))):handler({request,params:match.params,context:staticContext},...ctx!==void 0?[ctx]:[]),handlerPromise;return handlerOverride?handlerPromise=handlerOverride(ctx=>actualHandler(ctx)):handlerPromise=(async()=>{try{let val=await actualHandler();return{type:"data",result:val}}catch(e){return{type:"error",result:e}}})(),Promise.race([handlerPromise,abortPromise])};try{let handler=match.route[type];if(match.route.lazy)if(handler){let handlerError,[value]=await Promise.all([runHandler(handler).catch(e=>{handlerError=e}),loadLazyRouteModule(match.route,mapRouteProperties,manifest)]);if(handlerError!==void 0)throw handlerError;result=value}else if(await loadLazyRouteModule(match.route,mapRouteProperties,manifest),handler=match.route[type],handler)result=await runHandler(handler);else if(type==="action"){let url=new URL(request.url),pathname=url.pathname+url.search;throw getInternalRouterError(405,{method:request.method,pathname,routeId:match.route.id})}else return{type:ResultType.data,result:void 0};else if(handler)result=await runHandler(handler);else{let url=new URL(request.url),pathname=url.pathname+url.search;throw getInternalRouterError(404,{pathname})}invariant(result.result!==void 0,"You defined "+(type==="action"?"an action":"a loader")+" for route "+('"'+match.route.id+"\" but didn't return anything from your `"+type+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:ResultType.error,result:e}}finally{onReject&&request.signal.removeEventListener("abort",onReject)}return result}async function convertHandlerResultToDataResult(handlerResult){let{result,type,status}=handlerResult;if(isResponse(result)){let data;try{let contentType=result.headers.get("Content-Type");contentType&&/\bapplication\/json\b/.test(contentType)?result.body==null?data=null:data=await result.json():data=await result.text()}catch(e){return{type:ResultType.error,error:e}}return type===ResultType.error?{type:ResultType.error,error:new ErrorResponseImpl(result.status,result.statusText,data),statusCode:result.status,headers:result.headers}:{type:ResultType.data,data,statusCode:result.status,headers:result.headers}}if(type===ResultType.error)return{type:ResultType.error,error:result,statusCode:isRouteErrorResponse(result)?result.status:status};if(isDeferredData(result)){var _result$init,_result$init2;return{type:ResultType.deferred,deferredData:result,statusCode:(_result$init=result.init)==null?void 0:_result$init.status,headers:((_result$init2=result.init)==null?void 0:_result$init2.headers)&&new Headers(result.init.headers)}}return{type:ResultType.data,data:result,statusCode:status}}function normalizeRelativeRoutingRedirectResponse(response,request,routeId,matches,basename,v7_relativeSplatPath){let location=response.headers.get("Location");if(invariant(location,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX.test(location)){let trimmedMatches=matches.slice(0,matches.findIndex(m=>m.route.id===routeId)+1);location=normalizeTo(new URL(request.url),trimmedMatches,basename,!0,location,v7_relativeSplatPath),response.headers.set("Location",location)}return response}function normalizeRedirectLocation(location,currentUrl,basename){if(ABSOLUTE_URL_REGEX.test(location)){let normalizedLocation=location,url=normalizedLocation.startsWith("//")?new URL(currentUrl.protocol+normalizedLocation):new URL(normalizedLocation),isSameBasename=stripBasename(url.pathname,basename)!=null;if(url.origin===currentUrl.origin&&isSameBasename)return url.pathname+url.search+url.hash}return location}function createClientSideRequest(history,location,signal,submission){let url=history.createURL(stripHashFromPath(location)).toString(),init={signal};if(submission&&isMutationMethod(submission.formMethod)){let{formMethod,formEncType}=submission;init.method=formMethod.toUpperCase(),formEncType==="application/json"?(init.headers=new Headers({"Content-Type":formEncType}),init.body=JSON.stringify(submission.json)):formEncType==="text/plain"?init.body=submission.text:formEncType==="application/x-www-form-urlencoded"&&submission.formData?init.body=convertFormDataToSearchParams(submission.formData):init.body=submission.formData}return new Request(url,init)}function convertFormDataToSearchParams(formData){let searchParams=new URLSearchParams;for(let[key,value]of formData.entries())searchParams.append(key,typeof value=="string"?value:value.name);return searchParams}function convertSearchParamsToFormData(searchParams){let formData=new FormData;for(let[key,value]of searchParams.entries())formData.append(key,value);return formData}function processRouteLoaderData(matches,matchesToLoad,results,pendingActionResult,activeDeferreds,skipLoaderErrorBubbling){let loaderData={},errors=null,statusCode,foundError=!1,loaderHeaders={},pendingError=pendingActionResult&&isErrorResult(pendingActionResult[1])?pendingActionResult[1].error:void 0;return results.forEach((result,index)=>{let id=matchesToLoad[index].route.id;if(invariant(!isRedirectResult(result),"Cannot handle redirect results in processLoaderData"),isErrorResult(result)){let error=result.error;if(pendingError!==void 0&&(error=pendingError,pendingError=void 0),errors=errors||{},skipLoaderErrorBubbling)errors[id]=error;else{let boundaryMatch=findNearestBoundary(matches,id);errors[boundaryMatch.route.id]==null&&(errors[boundaryMatch.route.id]=error)}loaderData[id]=void 0,foundError||(foundError=!0,statusCode=isRouteErrorResponse(result.error)?result.error.status:500),result.headers&&(loaderHeaders[id]=result.headers)}else isDeferredResult(result)?(activeDeferreds.set(id,result.deferredData),loaderData[id]=result.deferredData.data,result.statusCode!=null&&result.statusCode!==200&&!foundError&&(statusCode=result.statusCode),result.headers&&(loaderHeaders[id]=result.headers)):(loaderData[id]=result.data,result.statusCode&&result.statusCode!==200&&!foundError&&(statusCode=result.statusCode),result.headers&&(loaderHeaders[id]=result.headers))}),pendingError!==void 0&&pendingActionResult&&(errors={[pendingActionResult[0]]:pendingError},loaderData[pendingActionResult[0]]=void 0),{loaderData,errors,statusCode:statusCode||200,loaderHeaders}}function processLoaderData(state,matches,matchesToLoad,results,pendingActionResult,revalidatingFetchers,fetcherResults,activeDeferreds){let{loaderData,errors}=processRouteLoaderData(matches,matchesToLoad,results,pendingActionResult,activeDeferreds,!1);for(let index=0;index<revalidatingFetchers.length;index++){let{key,match,controller}=revalidatingFetchers[index];invariant(fetcherResults!==void 0&&fetcherResults[index]!==void 0,"Did not find corresponding fetcher result");let result=fetcherResults[index];if(!(controller&&controller.signal.aborted))if(isErrorResult(result)){let boundaryMatch=findNearestBoundary(state.matches,match?.route.id);errors&&errors[boundaryMatch.route.id]||(errors=_extends({},errors,{[boundaryMatch.route.id]:result.error})),state.fetchers.delete(key)}else if(isRedirectResult(result))invariant(!1,"Unhandled fetcher revalidation redirect");else if(isDeferredResult(result))invariant(!1,"Unhandled fetcher deferred data");else{let doneFetcher=getDoneFetcher(result.data);state.fetchers.set(key,doneFetcher)}}return{loaderData,errors}}function mergeLoaderData(loaderData,newLoaderData,matches,errors){let mergedLoaderData=_extends({},newLoaderData);for(let match of matches){let id=match.route.id;if(newLoaderData.hasOwnProperty(id)?newLoaderData[id]!==void 0&&(mergedLoaderData[id]=newLoaderData[id]):loaderData[id]!==void 0&&match.route.loader&&(mergedLoaderData[id]=loaderData[id]),errors&&errors.hasOwnProperty(id))break}return mergedLoaderData}function getActionDataForCommit(pendingActionResult){return pendingActionResult?isErrorResult(pendingActionResult[1])?{actionData:{}}:{actionData:{[pendingActionResult[0]]:pendingActionResult[1].data}}:{}}function findNearestBoundary(matches,routeId){return(routeId?matches.slice(0,matches.findIndex(m=>m.route.id===routeId)+1):[...matches]).reverse().find(m=>m.route.hasErrorBoundary===!0)||matches[0]}function getShortCircuitMatches(routes){let route=routes.length===1?routes[0]:routes.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route}],route}}function getInternalRouterError(status,_temp5){let{pathname,routeId,method,type}=_temp5===void 0?{}:_temp5,statusText="Unknown Server Error",errorMessage="Unknown @remix-run/router error";return status===400?(statusText="Bad Request",method&&pathname&&routeId?errorMessage="You made a "+method+' request to "'+pathname+'" but '+('did not provide a `loader` for route "'+routeId+'", ')+"so there is no way to handle the request.":type==="defer-action"?errorMessage="defer() is not supported in actions":type==="invalid-body"&&(errorMessage="Unable to encode submission body")):status===403?(statusText="Forbidden",errorMessage='Route "'+routeId+'" does not match URL "'+pathname+'"'):status===404?(statusText="Not Found",errorMessage='No route matches URL "'+pathname+'"'):status===405&&(statusText="Method Not Allowed",method&&pathname&&routeId?errorMessage="You made a "+method.toUpperCase()+' request to "'+pathname+'" but '+('did not provide an `action` for route "'+routeId+'", ')+"so there is no way to handle the request.":method&&(errorMessage='Invalid request method "'+method.toUpperCase()+'"')),new ErrorResponseImpl(status||500,statusText,new Error(errorMessage),!0)}function findRedirect(results){for(let i=results.length-1;i>=0;i--){let result=results[i];if(isRedirectResult(result))return{result,idx:i}}}function stripHashFromPath(path){let parsedPath=typeof path=="string"?parsePath(path):path;return createPath(_extends({},parsedPath,{hash:""}))}function isHashChangeOnly(a,b){return a.pathname!==b.pathname||a.search!==b.search?!1:a.hash===""?b.hash!=="":a.hash===b.hash?!0:b.hash!==""}function isHandlerResult(result){return result!=null&&typeof result=="object"&&"type"in result&&"result"in result&&(result.type===ResultType.data||result.type===ResultType.error)}function isRedirectHandlerResult(result){return isResponse(result.result)&&redirectStatusCodes.has(result.result.status)}function isDeferredResult(result){return result.type===ResultType.deferred}function isErrorResult(result){return result.type===ResultType.error}function isRedirectResult(result){return(result&&result.type)===ResultType.redirect}function isDeferredData(value){let deferred=value;return deferred&&typeof deferred=="object"&&typeof deferred.data=="object"&&typeof deferred.subscribe=="function"&&typeof deferred.cancel=="function"&&typeof deferred.resolveData=="function"}function isResponse(value){return value!=null&&typeof value.status=="number"&&typeof value.statusText=="string"&&typeof value.headers=="object"&&typeof value.body<"u"}function isRedirectResponse(result){if(!isResponse(result))return!1;let status=result.status,location=result.headers.get("Location");return status>=300&&status<=399&&location!=null}function isValidMethod(method){return validRequestMethods.has(method.toLowerCase())}function isMutationMethod(method){return validMutationMethods.has(method.toLowerCase())}async function resolveDeferredResults(currentMatches,matchesToLoad,results,signals,isFetcher,currentLoaderData){for(let index=0;index<results.length;index++){let result=results[index],match=matchesToLoad[index];if(!match)continue;let currentMatch=currentMatches.find(m=>m.route.id===match.route.id),isRevalidatingLoader=currentMatch!=null&&!isNewRouteInstance(currentMatch,match)&&(currentLoaderData&¤tLoaderData[match.route.id])!==void 0;if(isDeferredResult(result)&&(isFetcher||isRevalidatingLoader)){let signal=signals[index];invariant(signal,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(result,signal,isFetcher).then(result2=>{result2&&(results[index]=result2||results[index])})}}}async function resolveDeferredData(result,signal,unwrap){if(unwrap===void 0&&(unwrap=!1),!await result.deferredData.resolveData(signal)){if(unwrap)try{return{type:ResultType.data,data:result.deferredData.unwrappedData}}catch(e){return{type:ResultType.error,error:e}}return{type:ResultType.data,data:result.deferredData.data}}}function hasNakedIndexQuery(search){return new URLSearchParams(search).getAll("index").some(v=>v==="")}function getTargetMatch(matches,location){let search=typeof location=="string"?parsePath(location).search:location.search;if(matches[matches.length-1].route.index&&hasNakedIndexQuery(search||""))return matches[matches.length-1];let pathMatches=getPathContributingMatches(matches);return pathMatches[pathMatches.length-1]}function getSubmissionFromNavigation(navigation){let{formMethod,formAction,formEncType,text,formData,json:json2}=navigation;if(!(!formMethod||!formAction||!formEncType)){if(text!=null)return{formMethod,formAction,formEncType,formData:void 0,json:void 0,text};if(formData!=null)return{formMethod,formAction,formEncType,formData,json:void 0,text:void 0};if(json2!==void 0)return{formMethod,formAction,formEncType,formData:void 0,json:json2,text:void 0}}}function getLoadingNavigation(location,submission){return submission?{state:"loading",location,formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text}:{state:"loading",location,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(location,submission){return{state:"submitting",location,formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text}}function getLoadingFetcher(submission,data){return submission?{state:"loading",formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text,data}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data}}function getSubmittingFetcher(submission,existingFetcher){return{state:"submitting",formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text,data:existingFetcher?existingFetcher.data:void 0}}function getDoneFetcher(data){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data}}function restoreAppliedTransitions(_window,transitions){try{let sessionPositions=_window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);if(sessionPositions){let json2=JSON.parse(sessionPositions);for(let[k,v]of Object.entries(json2||{}))v&&Array.isArray(v)&&transitions.set(k,new Set(v||[]))}}catch{}}function persistAppliedTransitions(_window,transitions){if(transitions.size>0){let json2={};for(let[k,v]of transitions)json2[k]=[...v];try{_window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY,JSON.stringify(json2))}catch(error){warning(!1,"Failed to save applied view transitions in sessionStorage ("+error+").")}}}},21186:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(71291))},9372:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0});var node_fs_1=__webpack_require__(13860);exports.NodeFS=node_fs_1.NodeFS,__export(__webpack_require__(54673))},13860:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const path_1=__webpack_require__(62005),fs_1=__importDefault(__webpack_require__(27127)),promises_1=__importDefault(__webpack_require__(54673));class NodeFS{constructor(workingDir){this.workingDir=workingDir,this.promises=new promises_1.default}getPath(path){return path_1.join(this.workingDir,path)}access(path,mode,callback){fs_1.default.access(this.getPath(path),mode,callback)}accessSync(path,mode){fs_1.default.accessSync(this.getPath(path),mode)}appendFile(file,data,options,callback){fs_1.default.appendFile(this.getPath(file),data,options)}appendFileSync(file,data,options){fs_1.default.appendFileSync(this.getPath(file),data,options)}chmod(path,mode,callback){fs_1.default.chmod(this.getPath(path),mode,callback)}chmodSync(path,mode){fs_1.default.chmodSync(this.getPath(path),mode)}chown(path,uid,gid,callback){fs_1.default.chown(this.getPath(path),uid,gid,callback)}chownSync(path,uid,gid){fs_1.default.chownSync(this.getPath(path),uid,gid)}close(fd,callback){fs_1.default.close(fd,callback)}closeSync(fd){fs_1.default.closeSync(fd)}copyFile(src,dest,callback){fs_1.default.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){fs_1.default.copyFileSync(src,dest,flags)}createReadStream(path,options){return fs_1.default.createReadStream(this.getPath(path),options)}createWriteStream(path,options){return fs_1.default.createWriteStream(this.getPath(path),options)}exists(path,callback){fs_1.default.exists(this.getPath(path),callback)}existsSync(path){return fs_1.default.existsSync(this.getPath(path))}fchmod(fd,mode,callback){fs_1.default.fchmod(fd,mode,callback)}fchmodSync(fd,mode){fs_1.default.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){fs_1.default.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){fs_1.default.fchownSync(fd,uid,gid)}fdatasync(fd,callback){fs_1.default.fdatasync(fd,callback)}fdatasyncSync(fd){fs_1.default.fdatasyncSync(fd)}fstat(fd,callback){fs_1.default.fstat(fd,callback)}fstatSync(fd){return fs_1.default.fstatSync(fd)}fsync(fd,callback){fs_1.default.fsync(fd,callback)}fsyncSync(fd){fs_1.default.fsyncSync(fd)}ftruncate(fd,len,callback){fs_1.default.ftruncate(fd,len,callback)}ftruncateSync(fd,len){fs_1.default.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){fs_1.default.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){fs_1.default.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){fs_1.default.lchmod(this.getPath(path),mode,callback)}lchmodSync(path,mode){fs_1.default.lchmodSync(this.getPath(path),mode)}lchown(path,uid,gid,callback){fs_1.default.lchown(this.getPath(path),uid,gid,callback)}lchownSync(path,uid,gid){fs_1.default.lchownSync(this.getPath(path),uid,gid)}link(existingPath,newPath,callback){fs_1.default.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){fs_1.default.linkSync(existingPath,newPath)}lstat(path,callback){fs_1.default.lstat(this.getPath(path),callback)}lstatSync(path){return fs_1.default.lstatSync(path)}mkdir(path,options,callback){fs_1.default.mkdir(this.getPath(path),options,callback)}mkdirSync(path,options){fs_1.default.mkdirSync(this.getPath(path),options)}mkdtemp(prefix,options,callback){fs_1.default.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return fs_1.default.mkdtempSync(prefix,options)}open(path,flags,mode,callback){fs_1.default.open(this.getPath(path),flags,mode,callback)}openSync(path,flags,mode){return fs_1.default.openSync(this.getPath(path),flags,mode)}read(fd,buffer,offset,length,position,callback){fs_1.default.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return fs_1.default.readFileSync(this.getPath(path))}readSync(fd,buffer,offset,length,position){return fs_1.default.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){fs_1.default.readdir(this.getPath(path),options,callback)}readdirSync(path,options){return fs_1.default.readdirSync(this.getPath(path),options)}readlink(path,options,callback){fs_1.default.readlink(this.getPath(path),options,callback)}readlinkSync(path,options){return fs_1.default.readlinkSync(this.getPath(path),options)}realpath(path,options,callback){fs_1.default.realpath(this.getPath(path),options,callback)}realpathSync(path,options){return fs_1.default.realpathSync(this.getPath(path),options)}rename(oldPath,newPath,callback){fs_1.default.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){fs_1.default.renameSync(oldPath,newPath)}rmdir(path,callback){fs_1.default.rmdir(this.getPath(path),callback)}rmdirSync(path){fs_1.default.rmdirSync(this.getPath(path))}stat(path,callback){fs_1.default.stat(this.getPath(path),callback)}statSync(path){return fs_1.default.statSync(path)}symlink(target,path,type,callback){fs_1.default.symlink(target,this.getPath(path),type,callback)}symlinkSync(target,path,type){fs_1.default.symlinkSync(target,this.getPath(path),type)}truncate(path,len,callback){fs_1.default.truncate(this.getPath(path),len,callback)}truncateSync(path,len){fs_1.default.truncateSync(this.getPath(path),len)}unlink(path,callback){fs_1.default.unlink(this.getPath(path),callback)}unlinkSync(path){fs_1.default.unlinkSync(this.getPath(path))}unwatchFile(filename,listener){fs_1.default.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){fs_1.default.utimes(this.getPath(path),atime,mtime,callback)}utimesSync(path,atime,mtime){fs_1.default.utimesSync(this.getPath(path),atime,mtime)}watch(filename,options,listener){return fs_1.default.watch(filename,options,listener)}watchFile(filename,options,listener){fs_1.default.watchFile(filename,options,listener)}writeFile(path,data,options,callback){fs_1.default.writeFile(this.getPath(path),data,options)}writeFileSync(path,data,options){fs_1.default.writeFileSync(this.getPath(path),data,options)}writeSync(fd,buffer,offset,length,position){return fs_1.default.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.NodeFS=NodeFS},54673:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const fs_1=__importDefault(__webpack_require__(27127));class FsPromisesAPI{access(path,mode){return fs_1.default.promises.access(path,mode)}appendFile(path,data,options){return fs_1.default.promises.appendFile(path,data)}chmod(path,mode){return fs_1.default.promises.chmod(path,mode)}chown(path,uid,gid){return fs_1.default.promises.chown(path,uid,gid)}copyFile(src,dest,flags){return fs_1.default.promises.copyFile(src,dest,flags)}fchmod(handle,mode){return fs_1.default.promises.fchmod(handle,mode)}fchown(handle,uid,gid){return fs_1.default.promises.fchown(handle,uid,gid)}fdatasync(handle){return fs_1.default.promises.fdatasync(handle)}fstat(handle){return fs_1.default.promises.fstat(handle)}fsync(handle){return fs_1.default.promises.fsync(handle)}ftruncate(handle,len){return fs_1.default.promises.ftruncate(handle,len)}futimes(handle,atime,mtime){return fs_1.default.promises.futimes(handle,atime,mtime)}lchmod(path,mode){return fs_1.default.promises.lchmod(path,mode)}lchown(path,uid,gid){return fs_1.default.promises.lchown(path,uid,gid)}link(existingPath,newPath){return fs_1.default.promises.link(existingPath,newPath)}lstat(path){return fs_1.default.promises.lstat(path)}mkdir(path,options){return fs_1.default.promises.mkdir(path,options)}mkdtemp(prefix,options){return fs_1.default.promises.mkdtemp(prefix,options)}open(path,flags,mode){return fs_1.default.promises.open(path,flags,mode)}read(handle,buffer,offset,length,position){return fs_1.default.promises.read(handle,buffer,offset,length,position)}readFile(path,options){return fs_1.default.promises.readFile(path,options)}readdir(path,options){return fs_1.default.promises.readdir(path,options)}readlink(path,options){return fs_1.default.promises.readlink(path,options)}realpath(path,options){return fs_1.default.promises.realpath(path,options)}rename(oldPath,newPath){return fs_1.default.promises.rename(oldPath,newPath)}rmdir(path){return fs_1.default.promises.rmdir(path)}stat(path){return fs_1.default.promises.stat(path)}symlink(target,path,type){return fs_1.default.promises.symlink(target,path,type)}truncate(path,len){return fs_1.default.promises.truncate(path,len)}unlink(path){return fs_1.default.promises.unlink(path)}utimes(path,atime,mtime){return fs_1.default.promises.utimes(path,atime,mtime)}write(handle,buffer,offset,length,position){fs_1.default.promises.write(handle,buffer,offset,length)}writeFile(path,data,options){return fs_1.default.promises.writeFile(path,data,options)}}exports.default=FsPromisesAPI},71291:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(9372)),__export(__webpack_require__(65964))},65964:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(30306))},30306:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const memfs_1=__webpack_require__(27884);class MemoryFS{constructor(){this.volume=new memfs_1.Volume,this.promises=this.volume.promises}access(path,mode,callback){this.volume.access(path,mode,callback)}accessSync(path,mode){this.volume.accessSync(path,mode)}appendFile(file,data,options,callback){this.volume.appendFile(file,data,options)}mkdirpSync(path){this.volume.mkdirpSync(path)}appendFileSync(file,data,options){this.volume.appendFileSync(file,data,options)}chmod(path,mode,callback){this.volume.chmod(path,mode,callback)}chmodSync(path,mode){this.volume.chmodSync(path,mode)}chown(path,uid,gid,callback){this.volume.chown(path,uid,gid,callback)}chownSync(path,uid,gid){this.volume.chownSync(path,uid,gid)}close(fd,callback){this.volume.close(fd,callback)}closeSync(fd){this.volume.closeSync(fd)}copyFile(src,dest,callback){this.volume.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){this.volume.copyFileSync(src,dest,flags)}createReadStream(path,options){return this.volume.createReadStream(path,options)}createWriteStream(path,options){return this.volume.createWriteStream(path,options)}exists(path,callback){this.volume.exists(path,callback)}existsSync(path){return!1}fchmod(fd,mode,callback){this.volume.fchmod(fd,mode,callback)}fchmodSync(fd,mode){this.volume.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){this.volume.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){this.volume.fchownSync(fd,uid,gid)}fdatasync(fd,callback){this.volume.fdatasync(fd,callback)}fdatasyncSync(fd){this.volume.fdatasyncSync(fd)}fstat(fd,callback){this.volume.fstat(fd,callback)}fstatSync(fd){return this.volume.fstatSync(fd)}fsync(fd,callback){this.volume.fsync(fd,callback)}fsyncSync(fd){this.volume.fsyncSync(fd)}ftruncate(fd,len,callback){this.volume.ftruncate(fd,len,callback)}ftruncateSync(fd,len){this.volume.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){this.volume.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){this.volume.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){this.volume.lchmod(path,mode,callback)}lchmodSync(path,mode){this.volume.lchmodSync(path,mode)}lchown(path,uid,gid,callback){this.volume.lchown(path,uid,gid,callback)}lchownSync(path,uid,gid){this.volume.lchownSync(path,uid,gid)}link(existingPath,newPath,callback){this.volume.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){this.volume.linkSync(existingPath,newPath)}lstat(path,callback){this.volume.lstat(path,callback)}lstatSync(path){return this.volume.lstatSync(path)}mkdir(path,options,callback){this.volume.mkdir(path,options,callback)}mkdirSync(path,options){this.volume.mkdirSync(path,options)}mkdtemp(prefix,options,callback){this.volume.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return this.volume.mkdtempSync(prefix,options)}open(path,flags,mode,callback){this.volume.open(path,flags,mode,callback)}openSync(path,flags,mode){return this.volume.openSync(path,flags,mode)}read(fd,buffer,offset,length,position,callback){this.volume.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return this.volume.readFileSync(path)}readSync(fd,buffer,offset,length,position){return this.volume.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){this.volume.readdir(path,options,callback)}readdirSync(path,options){return this.volume.readdirSync(path,options)}readlink(path,options,callback){this.volume.readlink(path,options,callback)}readlinkSync(path,options){return this.volume.readlinkSync(path,options)}realpath(path,options,callback){this.volume.realpath(path,options,callback)}realpathSync(path,options){return this.volume.realpathSync(path,options)}rename(oldPath,newPath,callback){this.volume.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){this.volume.renameSync(oldPath,newPath)}rmdir(path,callback){this.volume.rmdir(path,callback)}rmdirSync(path){this.volume.rmdirSync(path)}stat(path,callback){this.volume.stat(path,callback)}statSync(path){return this.volume.statSync(path)}symlink(target,path,type,callback){this.volume.symlink(target,path,type,callback)}symlinkSync(target,path,type){this.volume.symlinkSync(target,path,type)}truncate(path,len,callback){this.volume.truncate(path,len,callback)}truncateSync(path,len){this.volume.truncateSync(path,len)}unlink(path,callback){this.volume.unlink(path,callback)}unlinkSync(path){this.volume.unlinkSync(path)}unwatchFile(filename,listener){this.volume.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){this.volume.utimes(path,atime,mtime,callback)}utimesSync(path,atime,mtime){this.volume.utimesSync(path,atime,mtime)}watch(filename,options,listener){return this.volume.watch(filename,options,listener)}watchFile(filename,options,listener){this.volume.watchFile(filename,options,listener)}writeFile(path,data,options,callback){this.volume.writeFile(path,data,options)}writeFileSync(path,data,options){this.volume.writeFileSync(path,data,options)}writeSync(fd,buffer,offset,length,position){return this.volume.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.MemoryFS=MemoryFS},90658:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Row=void 0;var row_1=__webpack_require__(4762);Object.defineProperty(exports,"Row",{enumerable:!0,get:function(){return row_1.Row}})},4762:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Row=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),row_module_scss_1=__importDefault(__webpack_require__(1208));function Row(_a){var{children,className}=_a,rest=__rest(_a,["children","className"]);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(row_module_scss_1.default.row,className)},rest),children)}exports.Row=Row},6231:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_1=__webpack_require__(99981);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_1.Link}});var use_location_1=__webpack_require__(18750);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_1.useLocation}});var use_navigate_1=__webpack_require__(94671);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_1.useNavigate}});var navigation_provider_1=__webpack_require__(85258);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_1.NavigationProvider}})},99981:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(59496)),navigation_provider_1=__webpack_require__(85258),native_link_1=__webpack_require__(75473);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_1.useNavigation)().Link||native_link_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},75473:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),base_ui_routing_compare_url_1=__webpack_require__(50194),use_location_1=__webpack_require__(18750),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const location=(0,use_location_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,base_ui_routing_compare_url_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}))})},85258:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.NavigationContext=void 0;const react_1=__importStar(__webpack_require__(59496));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}exports.useNavigation=useNavigation;function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}exports.NavigationProvider=NavigationProvider},18750:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=void 0;const navigation_provider_1=__webpack_require__(85258);function useLocation(){return((0,navigation_provider_1.useNavigation)().useLocation||NativeUseLocation)()}exports.useLocation=useLocation;function NativeUseLocation(){if(!(typeof window>"u"))return window.location}},94671:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=void 0;const navigation_provider_1=__webpack_require__(85258);function useNavigate(){var _a;const nav=(0,navigation_provider_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}exports.useNavigate=useNavigate;function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}},63281:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.computeCssVars=exports.createThemeProvider=void 0;const react_1=__importStar(__webpack_require__(59496));function createThemeProvider(ThemeContext,options){return _a=>{var{children,overrides,style}=_a,rest=__rest(_a,["children","overrides","style"]);const theme=(0,react_1.useMemo)(()=>Object.assign(Object.assign({},options.theme),overrides),[options.theme,overrides]);if(options.withoutCssVars)return react_1.default.createElement(ThemeContext.Provider,{value:theme},children);const cssVars=computeCssVars(theme,options.prefix);return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},cssVars),style)},rest),react_1.default.createElement(ThemeContext.Provider,{value:theme},children))}}exports.createThemeProvider=createThemeProvider;function computeCssVars(theme,prefix){return Object.entries(theme).map(([key,val])=>{const varName=key.replace(/[A-Z]/g,"-$&").toLowerCase();return[prefix?`--${prefix}-${varName}`:`--${varName}`,val]}).reduce((acc,[key,val])=>(acc[key]=val,acc),{})}exports.computeCssVars=computeCssVars},26375:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createTheme=void 0;const react_1=__webpack_require__(59496),create_theme_provider_1=__webpack_require__(63281);function createTheme({theme,prefix,withoutCssVars}){const ThemeContext=(0,react_1.createContext)(theme);return{ThemeProvider:(0,create_theme_provider_1.createThemeProvider)(ThemeContext,{theme,prefix,withoutCssVars}),useTheme:()=>(0,react_1.useContext)(ThemeContext)}}exports.createTheme=createTheme},14111:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createTheme=void 0;var create_theme_1=__webpack_require__(26375);Object.defineProperty(exports,"createTheme",{enumerable:!0,get:function(){return create_theme_1.createTheme}})},15567:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeToggler=exports.useThemePicker=exports.useThemeByName=exports.useNextTheme=exports.ThemePickerContext=exports.ThemeSwitcher=void 0;var theme_switcher_1=__webpack_require__(61617);Object.defineProperty(exports,"ThemeSwitcher",{enumerable:!0,get:function(){return theme_switcher_1.ThemeSwitcher}});var theme_picker_context_1=__webpack_require__(68668);Object.defineProperty(exports,"ThemePickerContext",{enumerable:!0,get:function(){return theme_picker_context_1.ThemePickerContext}}),Object.defineProperty(exports,"useNextTheme",{enumerable:!0,get:function(){return theme_picker_context_1.useNextTheme}}),Object.defineProperty(exports,"useThemeByName",{enumerable:!0,get:function(){return theme_picker_context_1.useThemeByName}}),Object.defineProperty(exports,"useThemePicker",{enumerable:!0,get:function(){return theme_picker_context_1.useThemePicker}});var theme_toggler_1=__webpack_require__(87718);Object.defineProperty(exports,"ThemeToggler",{enumerable:!0,get:function(){return theme_toggler_1.ThemeToggler}})},68668:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNextTheme=exports.useThemeByName=exports.useThemePicker=exports.ThemePickerContext=void 0;const react_1=__webpack_require__(59496);exports.ThemePickerContext=(0,react_1.createContext)(void 0);function useThemePicker(){return(0,react_1.useContext)(exports.ThemePickerContext)}exports.useThemePicker=useThemePicker;function useThemeByName(themeName){const themes=useThemePicker();if(!(!themeName||!themes))return themes.options.find(theme=>theme.themeName===themeName)}exports.useThemeByName=useThemeByName;function useNextTheme(){const themes=useThemePicker();return(0,react_1.useCallback)(()=>{if(!themes)return;const{options,setTheme,currentIdx}=themes,nextIdx=(currentIdx+1)%options.length,next=options[nextIdx];setTheme(next)},[themes])}exports.useNextTheme=useNextTheme},61617:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeSwitcher=void 0;const react_1=__importStar(__webpack_require__(59496)),theme_picker_context_1=__webpack_require__(68668);function ThemeSwitcher(_a){var{children,themes,activeTheme,handleThemeChange,defaultTheme}=_a,props=__rest(_a,["children","themes","activeTheme","handleThemeChange","defaultTheme"]);let explicitValue=typeof activeTheme=="string"?themes.find(x=>x.themeName===activeTheme):activeTheme;const getInitialOption=()=>explicitValue||defaultTheme&&themes.find(x=>x.themeName===defaultTheme)||themes[0],[theme,setTheme]=(0,react_1.useState)(getInitialOption),currentTheme=explicitValue||theme,picker={setTheme:themeTarget=>{handleThemeChange?.(themeTarget),setTheme(()=>themeTarget)},current:currentTheme,get currentIdx(){return this.current?this.options.indexOf(this.current):-1},options:themes},Provider=currentTheme,forwardProps=props;return react_1.default.createElement(theme_picker_context_1.ThemePickerContext.Provider,{value:picker},Provider?react_1.default.createElement(Provider,Object.assign({},forwardProps),children):children)}exports.ThemeSwitcher=ThemeSwitcher},87718:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeToggler=void 0;const react_1=__importDefault(__webpack_require__(59496)),theme_picker_context_1=__webpack_require__(68668);function ThemeToggler(_a){var{onClick}=_a,props=__rest(_a,["onClick"]);const applyNextTheme=(0,theme_picker_context_1.useNextTheme)(),handleClick=e=>{onClick?.(e),!e.defaultPrevented&&applyNextTheme()};return react_1.default.createElement("button",Object.assign({},props,{onClick:handleClick}))}exports.ThemeToggler=ThemeToggler},24708:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0})},63368:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.elevationClass=void 0;const elevations_module_scss_1=__importDefault(__webpack_require__(64028));__exportStar(__webpack_require__(24708),exports),exports.elevationClass={low:elevations_module_scss_1.default.low,medium:elevations_module_scss_1.default.medium,high:elevations_module_scss_1.default.high,none:void 0}},54187:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0})},75210:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.elevationClass=void 0;const elevations_module_scss_1=__importDefault(__webpack_require__(78083));__exportStar(__webpack_require__(54187),exports),exports.elevationClass={low:elevations_module_scss_1.default.low,medium:elevations_module_scss_1.default.medium,high:elevations_module_scss_1.default.high,none:void 0}},69725:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.roundnessClass=void 0;const roundness_module_scss_1=__importDefault(__webpack_require__(77500));__exportStar(__webpack_require__(71760),exports),exports.roundnessClass={circle:roundness_module_scss_1.default.circle,default:roundness_module_scss_1.default.default,small:roundness_module_scss_1.default.small,medium:roundness_module_scss_1.default.medium,sharp:roundness_module_scss_1.default.sharp}},71760:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0})},78676:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DotsLoader=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),dots_loader_module_scss_1=__importDefault(__webpack_require__(87408));function DotsLoader(_a){var{className}=_a,rest=__rest(_a,["className"]);return react_1.default.createElement("span",Object.assign({},rest,{className:classnames_1.default(className,dots_loader_module_scss_1.default.dotsLoader)}),react_1.default.createElement("span",null,"\u25CF"),react_1.default.createElement("span",null,"\u25CF"),react_1.default.createElement("span",null,"\u25CF"))}exports.DotsLoader=DotsLoader},62656:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(78676),exports)},33472:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.BaseIcon=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754));function BaseIcon(_a){var{of:iconName,className}=_a,rest=__rest(_a,["of","className"]);return react_1.default.createElement("span",Object.assign({"data-bit-id":"teambit.base-ui/elements/icon",className:classnames_1.default(iconName,className)},rest))}exports.BaseIcon=BaseIcon},34211:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(33472),exports)},17905:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickOutside=void 0;const react_1=__webpack_require__(59496);class ClickOutside extends react_1.Component{constructor(){super(...arguments);this.listener=event=>{const{targetRef,handler}=this.props,element=event.target;!targetRef.current||!element||targetRef.current.contains(element)||handler(event)}}componentDidMount(){this.props.enabled&&this.enable()}componentWillUnmount(){this.disable()}componentDidUpdate(prevProps){const nextProps=this.props;prevProps.enabled!==nextProps.enabled&&(nextProps.enabled?this.enable():this.disable())}enable(){document.addEventListener("mousedown",this.listener),document.addEventListener("touchstart",this.listener)}disable(){document.removeEventListener("mousedown",this.listener),document.removeEventListener("touchstart",this.listener)}render(){return null}}exports.ClickOutside=ClickOutside,ClickOutside.defaultProps={enabled:!0}},91546:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=exports.ClickOutside=void 0;var click_outside_1=__webpack_require__(17905);Object.defineProperty(exports,"ClickOutside",{enumerable:!0,get:function(){return click_outside_1.ClickOutside}});var use_click_outside_1=__webpack_require__(20469);Object.defineProperty(exports,"useClickOutside",{enumerable:!0,get:function(){return use_click_outside_1.useClickOutside}})},20469:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=void 0;const react_1=__webpack_require__(59496);function useClickOutside(ref,handler,enabled=!0){react_1.useEffect(()=>{const listener=event=>{const element=event.target;!ref.current||!element||ref.current.contains(element)||handler(event)};return enabled&&(document.addEventListener("mousedown",listener),document.addEventListener("touchstart",listener)),()=>{document.removeEventListener("mousedown",listener),document.removeEventListener("touchstart",listener)}},[ref,handler,enabled])}exports.useClickOutside=useClickOutside},54841:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickOutside=void 0;const react_1=__webpack_require__(59496);class ClickOutside extends react_1.Component{constructor(){super(...arguments);this.listener=event=>{const{targetRef,handler}=this.props,element=event.target;!targetRef.current||!element||targetRef.current.contains(element)||handler(event)}}componentDidMount(){this.props.enabled&&this.enable()}componentWillUnmount(){this.disable()}componentDidUpdate(prevProps){const nextProps=this.props;prevProps.enabled!==nextProps.enabled&&(nextProps.enabled?this.enable():this.disable())}enable(){document.addEventListener("mousedown",this.listener),document.addEventListener("touchstart",this.listener)}disable(){document.removeEventListener("mousedown",this.listener),document.removeEventListener("touchstart",this.listener)}render(){return null}}exports.ClickOutside=ClickOutside,ClickOutside.defaultProps={enabled:!0}},31354:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=exports.ClickOutside=void 0;var click_outside_1=__webpack_require__(54841);Object.defineProperty(exports,"ClickOutside",{enumerable:!0,get:function(){return click_outside_1.ClickOutside}});var use_click_outside_1=__webpack_require__(14031);Object.defineProperty(exports,"useClickOutside",{enumerable:!0,get:function(){return use_click_outside_1.useClickOutside}})},14031:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=void 0;const react_1=__webpack_require__(59496);function useClickOutside(ref,handler,enabled=!0){(0,react_1.useEffect)(()=>{const listener=event=>{const element=event.target;!ref.current||!element||ref.current.contains(element)||handler(event)};return enabled&&(document.addEventListener("mousedown",listener),document.addEventListener("touchstart",listener)),()=>{document.removeEventListener("mousedown",listener),document.removeEventListener("touchstart",listener)}},[ref,handler,enabled])}exports.useClickOutside=useClickOutside},21126:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),button_module_scss_1=__importDefault(__webpack_require__(9157)),base_ui_elements_dots_loader_1=__webpack_require__(62656);class Button extends react_1.Component{constructor(){super(...arguments);this.state={isLoading:!1},this.activePromises=new Set,this.unmounted=!1,this.handleClick=event=>{const{onClick}=this.props;if(!onClick)return;this.setState({isLoading:!0});const promise=Promise.resolve(onClick.call(this,event)).catch(()=>{});this.activePromises.add(promise),promise.then(()=>this.handleResolve(promise))}}componentWillUnmount(){this.unmounted=!0,this.activePromises=new Set}handleResolve(p){this.unmounted||(this.activePromises.delete(p),this.activePromises.size===0&&this.setState({isLoading:!1}))}render(){const _a=this.props,{onClick,className,children,loader,loading,disabled,activeWhenLoading=!1}=_a,rest=__rest(_a,["onClick","className","children","loader","loading","disabled","activeWhenLoading"]),isLoading=loading!==void 0&&loading||this.state.isLoading,content=isLoading?loader:children,disabledByLoading=isLoading&&!activeWhenLoading;return react_1.default.createElement("button",Object.assign({"data-bit-id":"teambit.base-ui/input/button"},rest,{disabled:disabled||disabledByLoading,onClick:this.handleClick,className:(0,classnames_1.default)(className,button_module_scss_1.default.vanillaButton)}),content)}}exports.default=Button,Button.defaultProps={loader:react_1.default.createElement(base_ui_elements_dots_loader_1.DotsLoader,null),loading:!1}},22319:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var button_1=__webpack_require__(21126);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(button_1).default}}),__exportStar(__webpack_require__(21126),exports)},25105:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Error=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),error_module_scss_1=__importDefault(__webpack_require__(48730));function Error2(props){const{className,children}=props,rest=__rest(props,["className","children"]);return children?react_1.default.createElement("div",Object.assign({className:classnames_1.default(error_module_scss_1.default.error,className)},rest),children):null}exports.Error=Error2},75006:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(25105),exports)},77338:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.colGridXl=exports.colGridLg=exports.colGridL=exports.colGridMd=exports.colGridSm=exports.colGridXs=exports.colGrid=void 0;const grid_template_module_scss_1=__importDefault(__webpack_require__(49005));exports.colGrid=makePreset("all"),exports.colGridXs=makePreset("xs"),exports.colGridSm=makePreset("sm"),exports.colGridMd=makePreset("md"),exports.colGridL=makePreset("l"),exports.colGridLg=makePreset("lg"),exports.colGridXl=makePreset("xl");function makePreset(breakPoints){const obj={};for(var i=1;i<=12;i++)obj[i]=grid_template_module_scss_1.default[`colTemplate--${breakPoints}-${i}`];return obj}},66386:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Grid=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),grid_module_scss_1=__importDefault(__webpack_require__(5082)),grid_template_1=__webpack_require__(77338);class Grid extends react_1.PureComponent{render(){const _a=this.props,{className,col,colL,colLg,colMd,colSm,colXl,colXs}=_a,rest=__rest(_a,["className","col","colL","colLg","colMd","colSm","colXl","colXs"]),classes=[className,grid_module_scss_1.default.gridContainer];return col!==void 0&&classes.push(grid_template_1.colGrid[col]),colL!==void 0&&classes.push(grid_template_1.colGridL[colL]),colLg!==void 0&&classes.push(grid_template_1.colGridLg[colLg]),colMd!==void 0&&classes.push(grid_template_1.colGridMd[colMd]),colSm!==void 0&&classes.push(grid_template_1.colGridSm[colSm]),colXl!==void 0&&classes.push(grid_template_1.colGridXl[colXl]),colXs!==void 0&&classes.push(grid_template_1.colGridXs[colXs]),react_1.default.createElement("div",Object.assign({"data-bit-id":"teambit.base-ui/layout/grid-component"},rest,{className:(0,classnames_1.default)(...classes)}))}}exports.Grid=Grid},95420:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.r=void 0;var grid_1=__webpack_require__(66386);Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return grid_1.Grid}})},68459:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.textColumn=exports.wideColumn=exports.centerColumn=void 0;const page_frame_module_scss_1=__importDefault(__webpack_require__(91560));exports.centerColumn=page_frame_module_scss_1.default.centerColumn,exports.wideColumn=page_frame_module_scss_1.default.wideColumn,exports.textColumn=page_frame_module_scss_1.default.textColumn},20298:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WordSkeleton=exports.LineSkeleton=exports.CircleSkeleton=exports.BlockSkeleton=exports.Skeleton=void 0;var skeleton_1=__webpack_require__(4267);Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:function(){return skeleton_1.Skeleton}}),Object.defineProperty(exports,"BlockSkeleton",{enumerable:!0,get:function(){return skeleton_1.BlockSkeleton}}),Object.defineProperty(exports,"CircleSkeleton",{enumerable:!0,get:function(){return skeleton_1.CircleSkeleton}}),Object.defineProperty(exports,"LineSkeleton",{enumerable:!0,get:function(){return skeleton_1.LineSkeleton}}),Object.defineProperty(exports,"WordSkeleton",{enumerable:!0,get:function(){return skeleton_1.WordSkeleton}})},4267:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.title=exports.BlockSkeleton=exports.CircleSkeleton=exports.LineSkeleton=exports.WordSkeleton=exports.Skeleton=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),skeleton_module_scss_1=__importDefault(__webpack_require__(70654)),skeleton_design_module_scss_1=__importDefault(__webpack_require__(73908)),NBSP="\xA0";function Skeleton(_a){var{designClass=skeleton_design_module_scss_1.default.skeleton,className}=_a,rest=__rest(_a,["designClass","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.skeleton,designClass,className)}))}exports.Skeleton=Skeleton;function WordSkeleton(_a){var{length=5,designClass=skeleton_design_module_scss_1.default.word,className,style}=_a,rest=__rest(_a,["length","designClass","className","style"]);return react_1.default.createElement("span",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.word,className,designClass),style:Object.assign({},style)}),react_1.default.createElement("span",null,Array.from({length}).map(()=>NBSP)))}exports.WordSkeleton=WordSkeleton;function LineSkeleton(_a){var{width,count=1,designClass=skeleton_design_module_scss_1.default.line,className,style}=_a,rest=__rest(_a,["width","count","designClass","className","style"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.line,designClass,className),style:Object.assign({width},style)}),Array.from({length:count}).map((x,index)=>react_1.default.createElement("div",{key:index},NBSP)))}exports.LineSkeleton=LineSkeleton;function CircleSkeleton(_a){var{size=2,designClass=skeleton_design_module_scss_1.default.circle,className,style}=_a,rest=__rest(_a,["size","designClass","className","style"]);return react_1.default.createElement("span",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.circle,className,designClass),style:Object.assign({height:`${size}em`,width:`${size}em`,lineHeight:size},style)}),NBSP)}exports.CircleSkeleton=CircleSkeleton;function BlockSkeleton(_a){var{lines=5,designClass=skeleton_design_module_scss_1.default.block,className,style}=_a,rest=__rest(_a,["lines","designClass","className","style"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.block,designClass,className),style:Object.assign({height:`${lines}em`},style)}))}exports.BlockSkeleton=BlockSkeleton;function title(){return react_1.default.createElement("div",{style:{marginBottom:"1em"}},react_1.default.createElement(WordSkeleton,{style:{fontSize:18}}))}exports.title=title},18669:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;const url_parse_1=__importDefault(__webpack_require__(52296));function compareUrl(baseUrl,toMatchUrl,{exact,strict}={}){if(baseUrl===toMatchUrl)return!0;strict||(baseUrl=baseUrl.replace(/\/(?=[?#]|$)/,""),toMatchUrl=toMatchUrl.replace(/\/(?=[?#]|$)/,""));const base=(0,url_parse_1.default)(baseUrl),match=(0,url_parse_1.default)(toMatchUrl),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}exports.compareUrl=compareUrl;function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.query||isSubObject(match.query,base.query))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.query||isSubObject(base.query,match.query))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function isSubObject(source,target){return Object.keys(source).every(key=>source[key]===target[key])}},50194:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;var compare_url_1=__webpack_require__(18669);Object.defineProperty(exports,"compareUrl",{enumerable:!0,get:function(){return compare_url_1.compareUrl}})},15764:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.flexCenter=void 0;const flex_center_module_scss_1=__importDefault(__webpack_require__(66921));exports.flexCenter=flex_center_module_scss_1.default.flexCenter},84399:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Containee=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_create_ref_1=__importDefault(__webpack_require__(32398)),abs_container_module_scss_1=__importDefault(__webpack_require__(77327)),positions_module_scss_1=__importDefault(__webpack_require__(6780)),displacement_module_scss_1=__importDefault(__webpack_require__(64377));class Containee extends react_1.Component{constructor(){super(...arguments);this.ref=react_create_ref_1.default()}render(){const _a=this.props,{className,position="bottom"}=_a,rest=__rest(_a,["className","position"]),positionClass=positions_module_scss_1.default[position],displacement=displacement_module_scss_1.default.displacement;return react_1.default.createElement("div",Object.assign({ref:this.ref,className:classnames_1.default(abs_container_module_scss_1.default.containee,displacement,positionClass,className),"data-position":position},rest))}}exports.Containee=Containee},8094:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(84399),exports)},60499:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Container=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),abs_container_module_scss_1=__importDefault(__webpack_require__(77327));exports.Container=react_1.forwardRef(function(_a,ref){var{className,open}=_a,rest=__rest(_a,["className","open"]);return react_1.default.createElement("div",Object.assign({ref,className:classnames_1.default(abs_container_module_scss_1.default.container,className),"data-open":open},rest))})},13303:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(60499),exports)},67737:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.containeeClass=exports.containerClass=void 0;const abs_container_module_scss_1=__importDefault(__webpack_require__(77327));__exportStar(__webpack_require__(8094),exports),__exportStar(__webpack_require__(13303),exports),exports.containerClass=abs_container_module_scss_1.default.container,exports.containeeClass=abs_container_module_scss_1.default.containee},77787:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Containee=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_create_ref_1=__importDefault(__webpack_require__(32398)),abs_container_module_scss_1=__importDefault(__webpack_require__(59563)),positions_module_scss_1=__importDefault(__webpack_require__(70489)),displacement_module_scss_1=__importDefault(__webpack_require__(59257));class Containee extends react_1.Component{constructor(){super(...arguments);this.ref=react_create_ref_1.default()}render(){const _a=this.props,{className,position="bottom"}=_a,rest=__rest(_a,["className","position"]),positionClass=positions_module_scss_1.default[position],displacement=displacement_module_scss_1.default.displacement;return react_1.default.createElement("div",Object.assign({ref:this.ref,className:classnames_1.default(abs_container_module_scss_1.default.containee,displacement,positionClass,className),"data-position":position},rest))}}exports.Containee=Containee},72822:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(77787),exports)},79494:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Container=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),abs_container_module_scss_1=__importDefault(__webpack_require__(59563));function Container(_a){var{className,open,margin,indent,forwardRef,style}=_a,rest=__rest(_a,["className","open","margin","indent","forwardRef","style"]);return react_1.default.createElement("div",Object.assign({ref:forwardRef,className:classnames_1.default(abs_container_module_scss_1.default.container,className),"data-open":open,style:addDisplacement(margin,indent,style)},rest))}exports.Container=Container;function addDisplacement(margin,indent,baseStyles){if(!margin&&!indent)return baseStyles;const displacement={"--bit-drawer-margin":pixalize(margin),"--bit-drawer-indent":pixalize(indent)};return Object.assign(Object.assign({},baseStyles),displacement)}function pixalize(value){return typeof value=="number"?`${value}px`:value}},21048:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(79494),exports)},63146:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.containeeClass=exports.containerClass=void 0;const abs_container_module_scss_1=__importDefault(__webpack_require__(59563));__exportStar(__webpack_require__(72822),exports),__exportStar(__webpack_require__(21048),exports),exports.containerClass=abs_container_module_scss_1.default.container,exports.containeeClass=abs_container_module_scss_1.default.containee},84733:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.backgrounds=void 0;const background_module_scss_1=__importDefault(__webpack_require__(72770));exports.backgrounds={bedrock:background_module_scss_1.default.bedrock,base:background_module_scss_1.default.base,layer:background_module_scss_1.default.layer,crust:background_module_scss_1.default.crust,topping:background_module_scss_1.default.topping,dent:background_module_scss_1.default.dent}},79300:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.backgrounds=void 0;const background_module_scss_1=__importDefault(__webpack_require__(69447));exports.backgrounds={bedrock:background_module_scss_1.default.bedrock,base:background_module_scss_1.default.base,layer:background_module_scss_1.default.layer,crust:background_module_scss_1.default.crust,topping:background_module_scss_1.default.topping,dent:background_module_scss_1.default.dent}},75882:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Card=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),card_module_scss_1=__importDefault(__webpack_require__(99518)),base_ui_css_components_elevation_1=__webpack_require__(63368),base_ui_css_components_roundness_1=__webpack_require__(69725),base_ui_surfaces_background_1=__webpack_require__(84733);function Card(_a){var{className,elevation="low",roundness="default"}=_a,rest=__rest(_a,["className","elevation","roundness"]);return react_1.default.createElement("div",Object.assign({"data-bit-id":"teambit.base-ui/surfaces/card",className:classnames_1.default(card_module_scss_1.default.card,base_ui_surfaces_background_1.backgrounds.layer,base_ui_css_components_elevation_1.elevationClass[elevation],base_ui_css_components_roundness_1.roundnessClass[roundness],className)},rest))}exports.Card=Card,Card.defaultProps={elevation:"low",roundness:"default"}},19537:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(75882),exports)},59339:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultPlaceholder=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),drawer_module_scss_1=__importDefault(__webpack_require__(48122));function DefaultPlaceholder(props){return react_1.default.createElement("div",Object.assign({},props,{className:classnames_1.default(props.className,drawer_module_scss_1.default.placeholder)}))}exports.DefaultPlaceholder=DefaultPlaceholder},40953:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Drawer=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_surfaces_abs_container_1=__webpack_require__(67737),base_ui_hook_use_click_outside_1=__webpack_require__(91546),react_create_ref_1=__importDefault(__webpack_require__(32398)),default_placeholder_1=__webpack_require__(59339);class Drawer extends react_1.Component{constructor(){super(...arguments);this.state={isOpen:this.props.open||!1},this.ref=react_create_ref_1.default(),this.toggle=evt=>{const{isOpen}=this.state,nextOpen=!isOpen;this.isControlled||this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.close=evt=>{const{isOpen}=this.state,nextOpen=!1;!this.isControlled&&isOpen&&this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.open=evt=>{const{isOpen}=this.state,nextOpen=!0;!this.isControlled&&!isOpen&&this.setState({isOpen:!0}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.handlePlaceholderClick=e=>{this.props.onPlaceholderToggle&&this.props.onPlaceholderToggle(e),e.defaultPrevented||this.props.clickPlaceholderToggles&&this.toggle(e)},this.handleContainerClick=e=>{this.props.clickToggles&&this.toggle(e),this.props.onClick&&this.props.onClick(e)},this.handleClickOutside=e=>{this.props.onClickOutside&&this.props.onClickOutside(e),e.defaultPrevented||this.props.clickOutside&&this.close()},this.handleLeaveContainer=e=>{this.props.onMouseLeave&&this.props.onMouseLeave(e),e.defaultPrevented||this.props.hoverToOpen&&this.close(e)},this.handleEnterContainer=e=>{this.props.onMouseEnter&&this.props.onMouseEnter(e),e.defaultPrevented||this.props.hoverToOpen&&this.open(e)}}componentWillReceiveProps(nextProps){this.props.open!==nextProps.open&&nextProps.open!==void 0&&this.setState({isOpen:nextProps.open})}get isControlled(){return this.props.open!==void 0}render(){const _a=this.props,{placeholder,children,PlaceholderComponent=default_placeholder_1.DefaultPlaceholder,clickOutside,onMouseEnter,onMouseLeave,open,hoverToOpen,clickPlaceholderToggles,clickToggles,onChange,onPlaceholderToggle,onContainerToggle,onContaineeToggle,onClickOutside}=_a,rest=__rest(_a,["placeholder","children","PlaceholderComponent","clickOutside","onMouseEnter","onMouseLeave","open","hoverToOpen","clickPlaceholderToggles","clickToggles","onChange","onPlaceholderToggle","onContainerToggle","onContaineeToggle","onClickOutside"]),{isOpen}=this.state;return react_1.default.createElement(base_ui_surfaces_abs_container_1.Container,Object.assign({},rest,{ref:this.ref,open:isOpen,onMouseLeave:this.handleLeaveContainer,onMouseEnter:this.handleEnterContainer,onClick:this.handleContainerClick}),children,react_1.default.createElement(PlaceholderComponent,{onClick:this.handlePlaceholderClick},placeholder),react_1.default.createElement(base_ui_hook_use_click_outside_1.ClickOutside,{targetRef:this.ref,enabled:!!clickOutside&&isOpen,handler:this.handleClickOutside}))}}exports.Drawer=Drawer,Drawer.defaultProps={PlaceholderComponent:default_placeholder_1.DefaultPlaceholder,clickPlaceholderToggles:!0,clickOutside:!0,clickToggles:!0}},914:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(40953),exports)},42527:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultPlaceholder=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),drawer_module_scss_1=__importDefault(__webpack_require__(44645));function DefaultPlaceholder(props){return react_1.default.createElement("div",Object.assign({},props,{className:(0,classnames_1.default)(props.className,drawer_module_scss_1.default.placeholder)}))}exports.DefaultPlaceholder=DefaultPlaceholder},9931:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Drawer=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_surfaces_abs_container_1=__webpack_require__(63146),base_ui_hook_use_click_outside_1=__webpack_require__(31354),react_create_ref_1=__importDefault(__webpack_require__(32398)),default_placeholder_1=__webpack_require__(42527);class Drawer extends react_1.Component{constructor(){super(...arguments);this.state={isOpen:this.props.open||!1},this.ref=(0,react_create_ref_1.default)(),this.toggle=evt=>{const{isOpen}=this.state,nextOpen=!isOpen;this.isControlled||this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.close=evt=>{const{isOpen}=this.state,nextOpen=!1;!this.isControlled&&isOpen&&this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.open=evt=>{const{isOpen}=this.state,nextOpen=!0;!this.isControlled&&!isOpen&&this.setState({isOpen:!0}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.handlePlaceholderClick=e=>{this.props.onPlaceholderToggle&&this.props.onPlaceholderToggle(e),e.defaultPrevented||this.props.clickPlaceholderToggles&&this.toggle(e)},this.handleContainerClick=e=>{this.props.clickToggles&&this.toggle(e),this.props.onClick&&this.props.onClick(e)},this.handleClickOutside=e=>{this.props.onClickOutside&&this.props.onClickOutside(e),e.defaultPrevented||this.props.clickOutside&&this.close()},this.handleLeaveContainer=e=>{this.props.onMouseLeave&&this.props.onMouseLeave(e),e.defaultPrevented||this.props.hoverToOpen&&this.close(e)},this.handleEnterContainer=e=>{this.props.onMouseEnter&&this.props.onMouseEnter(e),e.defaultPrevented||this.props.hoverToOpen&&this.open(e)}}componentWillReceiveProps(nextProps){this.props.open!==nextProps.open&&nextProps.open!==void 0&&this.setState({isOpen:nextProps.open})}get isControlled(){return this.props.open!==void 0}render(){const _a=this.props,{placeholderContent="",children,clickOutside,onMouseEnter,onMouseLeave,open,hoverToOpen,clickPlaceholderToggles,clickToggles,onChange,onPlaceholderToggle,onContainerToggle,onContaineeToggle,onClickOutside}=_a,rest=__rest(_a,["placeholderContent","children","clickOutside","onMouseEnter","onMouseLeave","open","hoverToOpen","clickPlaceholderToggles","clickToggles","onChange","onPlaceholderToggle","onContainerToggle","onContaineeToggle","onClickOutside"]),{isOpen}=this.state;return react_1.default.createElement(base_ui_surfaces_abs_container_1.Container,Object.assign({},rest,{forwardRef:this.ref,open:isOpen,onMouseLeave:this.handleLeaveContainer,onMouseEnter:this.handleEnterContainer,onClick:this.handleContainerClick}),children,react_1.default.createElement(default_placeholder_1.DefaultPlaceholder,{onClick:this.handlePlaceholderClick},placeholderContent),react_1.default.createElement(base_ui_hook_use_click_outside_1.ClickOutside,{targetRef:this.ref,enabled:!!clickOutside&&isOpen,handler:this.handleClickOutside}))}}exports.Drawer=Drawer,Drawer.defaultProps={clickPlaceholderToggles:!0,clickOutside:!0,clickToggles:!0}},38073:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(9931),exports)},56007:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(81154),exports)},81154:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HoverSplitter=void 0;const base_ui_surfaces_split_pane_splitter_1=__webpack_require__(74601),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),splitter_module_scss_1=__importDefault(__webpack_require__(19315));function HoverSplitter(_a){var{children,className}=_a,rest=__rest(_a,["children","className"]);return react_1.default.createElement(base_ui_surfaces_split_pane_splitter_1.Splitter,Object.assign({},rest,{className:classnames_1.default(splitter_module_scss_1.default.hoverSplitter,className)}),react_1.default.createElement("div",{className:splitter_module_scss_1.default.highlighter}),children)}exports.HoverSplitter=HoverSplitter},20949:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(14783),exports)},14783:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default_layout=exports.layoutToggleMap=exports.Layout=exports.LayoutFeatures=void 0;var LayoutFeatures;(function(LayoutFeatures2){LayoutFeatures2.row="row",LayoutFeatures2.column="column",LayoutFeatures2.reverse="reverse",LayoutFeatures2.first="first",LayoutFeatures2.last="last"})(LayoutFeatures=exports.LayoutFeatures||(exports.LayoutFeatures={}));var Layout;(function(Layout2){Layout2.row="row",Layout2.rowReverse="row reverse",Layout2.column="column",Layout2.columnReverse="column reverse",Layout2.top="column first",Layout2.bottom="column last",Layout2.topReverse="column reverse first",Layout2.bottomReverse="column reverse last ",Layout2.left="row first",Layout2.right="row last",Layout2.leftReverse="row reverse first",Layout2.rightReverse="row reverse last"})(Layout=exports.Layout||(exports.Layout={})),exports.layoutToggleMap={[Layout.columnReverse]:Layout.row,[Layout.row]:Layout.columnReverse},exports.default_layout=Layout.row},16433:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(78250),exports)},78250:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Pane=void 0;const base_ui_surfaces_split_pane_layout_1=__webpack_require__(20949),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),pane_module_scss_1=__importDefault(__webpack_require__(16324));function Pane(_a){var{size,style,layout,className}=_a,rest=__rest(_a,["size","style","layout","className"]);const runtimeStyles={},sizeProp=layoutToStyle(layout);return sizeProp&&size!==void 0&&(runtimeStyles[sizeProp]=size,runtimeStyles.flexShrink=0),size===void 0&&(runtimeStyles.flexGrow=1,runtimeStyles.flexBasis=0),react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(pane_module_scss_1.default.pane,className),style:Object.assign(Object.assign({},style),runtimeStyles)}))}exports.Pane=Pane;function layoutToStyle(layout){if(!!layout){if(layout.includes(base_ui_surfaces_split_pane_layout_1.LayoutFeatures.column))return"height";if(layout.includes(base_ui_surfaces_split_pane_layout_1.LayoutFeatures.row))return"width"}}},49582:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcSplit=void 0;const base_ui_surfaces_split_pane_layout_1=__webpack_require__(20949);function calcSplit(snapshot,layout,defaultSize){let splitSize=calcPixels(snapshot,layout,defaultSize);return layout.includes(base_ui_surfaces_split_pane_layout_1.LayoutFeatures.reverse)&&splitSize.reverse(),(splitSize[0]===void 0||splitSize[1]===void 0)&&(splitSize=autoCalcComplementary(splitSize)),splitSize}exports.calcSplit=calcSplit;function autoCalcComplementary([a,b]){return a===void 0&&b===void 0?[void 0,void 0]:b===void 0?[a,calcComplemetSize(a)]:a===void 0?[calcComplemetSize(b),b]:[a,b]}function calcComplemetSize(size){if(size!==void 0){if(typeof size=="number")return`calc(100% - ${size}px)`;if(size.endsWith("px"))return`calc(100% - ${size})`;if(size.endsWith("%")){const sizeAsNumber=+size.replace("%","");return Number.isNaN(sizeAsNumber)?void 0:`${100-sizeAsNumber}%`}if(!Number.isNaN(+size))return`calc(100% - ${size}px)`}}function calcPixels(snapshot,layout,defaultSize){const{row,column,first,last}=base_ui_surfaces_split_pane_layout_1.LayoutFeatures,features=new Set(layout.split(" "));return features.has(first)?["100%","0%"]:features.has(last)?["0%","100%"]:features.has(row)?snapshot?.x===void 0?calcDefaultSize(defaultSize):typeof defaultSize=="string"&&defaultSize.endsWith("%")?[`${100*snapshot.x/snapshot.width}%`,void 0]:[snapshot.x,void 0]:features.has(column)?snapshot?.y===void 0?calcDefaultSize(defaultSize):typeof defaultSize=="string"&&defaultSize.endsWith("%")?[`${100*snapshot.y/snapshot.height}%`,void 0]:[snapshot.y,void 0]:[void 0,void 0]}function calcDefaultSize(defaultSize){return defaultSize?typeof defaultSize=="number"&&defaultSize<0?[void 0,-defaultSize]:typeof defaultSize=="string"&&defaultSize.startsWith("-")?[void 0,defaultSize.substring(1)]:[defaultSize,void 0]:[void 0,void 0]}},4792:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SplitPane=void 0,__exportStar(__webpack_require__(20949),exports),__exportStar(__webpack_require__(16433),exports),__exportStar(__webpack_require__(74601),exports);var split_pane_1=__webpack_require__(5283);Object.defineProperty(exports,"SplitPane",{enumerable:!0,get:function(){return split_pane_1.SplitPane}})},22808:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.limit=void 0;function limit(value,min,max){return min!==void 0&&value<min?min:max!==void 0&&value>max?max:value}exports.limit=limit},5283:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SplitPane=void 0;const base_ui_surfaces_split_pane_layout_1=__webpack_require__(20949),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),calc_split_1=__webpack_require__(49582),split_pane_module_scss_1=__importDefault(__webpack_require__(25309)),use_drag_tracker_1=__webpack_require__(48550);function SplitPane(_a){var{layout=base_ui_surfaces_split_pane_layout_1.Layout.column,size="38%",className,children}=_a,rest=__rest(_a,["layout","size","className","children"]);const containerRef=react_1.default.createRef(),[snapshot,isDragging,setDragging]=use_drag_tracker_1.useDragTracker(containerRef),[A,B]=calc_split_1.calcSplit(snapshot,layout,size),[left,splitter,right]=children,leftWithSize=react_1.default.cloneElement(left,{size:A,layout}),rightWithSize=react_1.default.cloneElement(right,{size:B,layout}),splitterWithDrag=react_1.default.cloneElement(splitter,{onDragging:setDragging,isDragging});return react_1.default.createElement("div",Object.assign({},rest,{ref:containerRef,className:classnames_1.default(isDragging&&split_pane_module_scss_1.default.isDragging,split_pane_module_scss_1.default.splitPane,className),"data-is-dragging":isDragging,"data-split-layout":layout}),leftWithSize,splitterWithDrag,rightWithSize)}exports.SplitPane=SplitPane},32209:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toRelativePosition=void 0;const limit_1=__webpack_require__(22808);function toRelativePosition({clientX,clientY,element}){const boundingRect=element.getBoundingClientRect(),{left,top,width=1,height=1}=boundingRect,x=limit_1.limit(clientX-left,0,width),y=limit_1.limit(clientY-top,0,height);return{x,y,width,height}}exports.toRelativePosition=toRelativePosition},48550:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDragTracker=void 0;const react_1=__webpack_require__(59496),to_relative_position_1=__webpack_require__(32209),use_pointer_drag_1=__webpack_require__(65411);function useDragTracker(containerRef){const[snapshot,setSnapshot]=react_1.useState(void 0),handleDrag=react_1.useCallback(({clientX,clientY})=>{if(!containerRef.current)return;const position=to_relative_position_1.toRelativePosition({clientX,clientY,element:containerRef.current});setSnapshot(position)},[containerRef]),[isDragging,setDragging]=use_pointer_drag_1.useDragListener(handleDrag);return[snapshot,isDragging,setDragging]}exports.useDragTracker=useDragTracker},65411:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDragListener=void 0;const react_1=__webpack_require__(59496);function useDragListener(onDrag){const draggingState=react_1.useState(!1),[isDragging,setDragging]=draggingState;return react_1.useEffect(()=>{const handleTouchMove=e=>{const{touches}=e,mainTouch=touches[0];onDrag(mainTouch)},handleMouseMove=e=>{onDrag(e)},handleDragEnded=()=>{setDragging(!1)},handleMouseEnter=e=>{e&&e.buttons===1||handleDragEnded()};return isDragging&&(document.addEventListener("mousemove",handleMouseMove),document.addEventListener("mouseup",handleDragEnded),document.addEventListener("mouseenter",handleMouseEnter),document.addEventListener("touchend",handleDragEnded),document.addEventListener("touchmove",handleTouchMove),document.addEventListener("touchcancel",handleDragEnded)),()=>{document.removeEventListener("mousemove",handleMouseMove),document.removeEventListener("mouseup",handleDragEnded),document.removeEventListener("mouseenter",handleMouseEnter),document.removeEventListener("touchend",handleDragEnded),document.removeEventListener("touchmove",handleTouchMove),document.removeEventListener("touchcancel",handleDragEnded)}},[isDragging,onDrag]),draggingState}exports.useDragListener=useDragListener},74601:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(14630),exports)},14630:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Splitter=void 0;const classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),splitter_module_scss_1=__importDefault(__webpack_require__(69677));function Splitter(_a){var{onDragging,isDragging,className}=_a,rest=__rest(_a,["onDragging","isDragging","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(splitter_module_scss_1.default.splitter,className),onMouseDown:()=>onDragging?.(!0),onTouchStart:()=>onDragging?.(!0)}))}exports.Splitter=Splitter},20141:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;const react_1=__importDefault(__webpack_require__(59496));function Heading(props){const{element}=props,rest=__rest(props,["element"]),Element=element||"h1";return react_1.default.createElement(Element,Object.assign({"data-bit-id":"teambit.base-ui/text/heading"},rest))}exports.Heading=Heading,Heading.defaultProps={element:"h1"}},77739:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(20141),exports)},57441:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;const react_1=__importDefault(__webpack_require__(59496));function Heading(_a){var{element="h1"}=_a,rest=__rest(_a,["element"]);const Element=element;return react_1.default.createElement(Element,Object.assign({"data-bit-id":"teambit.base-ui/text/heading"},rest))}exports.Heading=Heading},18660:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;var heading_1=__webpack_require__(57441);Object.defineProperty(exports,"Heading",{enumerable:!0,get:function(){return heading_1.Heading}})},925:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(37917),exports)},37917:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.mutedText=exports.MutedText=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),muted_text_module_scss_1=__importDefault(__webpack_require__(95534));function MutedText(props){return react_1.default.createElement("span",Object.assign({},props,{className:classnames_1.default(muted_text_module_scss_1.default.mutedText,props.className)}))}exports.MutedText=MutedText,exports.mutedText=muted_text_module_scss_1.default.mutedText},7954:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PossibleSizes=exports.Paragraph=void 0;var paragraph_1=__webpack_require__(65320);Object.defineProperty(exports,"Paragraph",{enumerable:!0,get:function(){return paragraph_1.Paragraph}}),Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return paragraph_1.PossibleSizes}})},65320:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Paragraph=exports.PossibleSizes=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_theme_sizes_1=__webpack_require__(62086);Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return base_ui_theme_sizes_1.PossibleSizes}});const base_ui_text_text_sizes_1=__webpack_require__(75589);function Paragraph(_a){var{className,size,element:Element}=_a,rest=__rest(_a,["className","size","element"]);return react_1.default.createElement(Element,Object.assign({className:classnames_1.default(base_ui_text_text_sizes_1.textSize[size],className),"data-bit-id":"teambit.base-ui/text/paragraph"},rest))}exports.Paragraph=Paragraph,Paragraph.defaultProps={size:"md",element:"p"}},71491:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PossibleSizes=exports.Paragraph=void 0;var paragraph_1=__webpack_require__(33909);Object.defineProperty(exports,"Paragraph",{enumerable:!0,get:function(){return paragraph_1.Paragraph}}),Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return paragraph_1.PossibleSizes}})},33909:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Paragraph=exports.PossibleSizes=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_theme_sizes_1=__webpack_require__(62086);Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return base_ui_theme_sizes_1.PossibleSizes}});const base_ui_text_text_sizes_1=__webpack_require__(75589);function Paragraph(_a){var{className,size,element:Element}=_a,rest=__rest(_a,["className","size","element"]);return react_1.default.createElement(Element,Object.assign({className:classnames_1.default(base_ui_text_text_sizes_1.textSize[size],className),"data-bit-id":"teambit.base-ui/text/paragraph"},rest))}exports.Paragraph=Paragraph,Paragraph.defaultProps={size:"md",element:"p"}},75589:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.textSize=void 0;const text_sizes_module_scss_1=__importDefault(__webpack_require__(6428)),sizes={xxs:text_sizes_module_scss_1.default.xxs,xs:text_sizes_module_scss_1.default.xs,sm:text_sizes_module_scss_1.default.sm,md:text_sizes_module_scss_1.default.md,lg:text_sizes_module_scss_1.default.lg,xl:text_sizes_module_scss_1.default.xl,xxl:text_sizes_module_scss_1.default.xxl};exports.textSize=sizes},64899:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(45448),exports)},45448:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.themedText=exports.ThemedText=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),themed_text_module_scss_1=__importDefault(__webpack_require__(99383));function ThemedText(props){return react_1.default.createElement("span",Object.assign({},props,{className:classnames_1.default(props.className,themed_text_module_scss_1.default.themedText),"data-bit-id":"teambit.base-ui/text/themed-text"}))}exports.ThemedText=ThemedText,exports.themedText=themed_text_module_scss_1.default.themedText},63411:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.colorPalette=void 0;const accent_color_module_scss_1=__importDefault(__webpack_require__(98762));exports.colorPalette={primary:accent_color_module_scss_1.default.primary,complementary:accent_color_module_scss_1.default.complementary,neutral:accent_color_module_scss_1.default.neutral,neutralHeavy:accent_color_module_scss_1.default.emphasized,error:accent_color_module_scss_1.default.impulsive,warning:accent_color_module_scss_1.default.hungry,success:accent_color_module_scss_1.default.success,action:accent_color_module_scss_1.default.impulsive,consider:accent_color_module_scss_1.default.hungry,continue:accent_color_module_scss_1.default.success,process:accent_color_module_scss_1.default.process}},66509:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildStepPalette=void 0;const accent_color_module_scss_1=__importDefault(__webpack_require__(98762));exports.buildStepPalette={success:accent_color_module_scss_1.default.success,failure:accent_color_module_scss_1.default.impulsive,pending:accent_color_module_scss_1.default.neutral,processing:accent_color_module_scss_1.default.process,skipped:accent_color_module_scss_1.default.hungry,unknown:accent_color_module_scss_1.default.neutral,SUCCESS:accent_color_module_scss_1.default.success,FAILURE:accent_color_module_scss_1.default.impulsive,PENDING:accent_color_module_scss_1.default.neutral,PROCESSING:accent_color_module_scss_1.default.process,SKIPPED:accent_color_module_scss_1.default.hungry,UNKNOWN:accent_color_module_scss_1.default.neutral}},11796:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildStepPalette=exports.colorPalette=void 0;var accent_color_1=__webpack_require__(63411);Object.defineProperty(exports,"colorPalette",{enumerable:!0,get:function(){return accent_color_1.colorPalette}});var build_step_accents_1=__webpack_require__(66509);Object.defineProperty(exports,"buildStepPalette",{enumerable:!0,get:function(){return build_step_accents_1.buildStepPalette}})},58280:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.brands=void 0;const brand_definition_module_scss_1=__importDefault(__webpack_require__(89032)),{brands}=brand_definition_module_scss_1.default;exports.brands=brands},19829:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.primaryPalette=void 0;const color_definition_module_scss_1=__importDefault(__webpack_require__(43300)),{primaryPalette}=color_definition_module_scss_1.default;exports.primaryPalette=primaryPalette},12880:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.darkMode=void 0;const dark_theme_module_scss_1=__importDefault(__webpack_require__(76344));exports.darkMode=dark_theme_module_scss_1.default.darkMod},23895:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.bookFont=void 0;const book_font_module_scss_1=__importDefault(__webpack_require__(34491)),{bookFont}=book_font_module_scss_1.default;exports.bookFont=bookFont},31165:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(30120),exports)},30120:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Roboto=void 0;const react_1=__importDefault(__webpack_require__(59496)),Roboto=()=>react_1.default.createElement("link",{href:"https://fonts.googleapis.com/css?family=Roboto+Mono",rel:"stylesheet"});exports.Roboto=Roboto},50662:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.headingMargins=void 0;const heading_margin_definition_module_scss_1=__importDefault(__webpack_require__(99855)),{headingMargins}=heading_margin_definition_module_scss_1.default;exports.headingMargins=headingMargins},6722:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.shadowTheme=void 0;const shadow_definition_module_scss_1=__importDefault(__webpack_require__(72192)),{shadowTheme}=shadow_definition_module_scss_1.default;exports.shadowTheme=shadowTheme},65548:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.textFontSize=exports.headingFontSize=void 0;const size_definition_module_scss_1=__importDefault(__webpack_require__(50538)),{headingFontSize,textFontSize}=size_definition_module_scss_1.default;exports.headingFontSize=headingFontSize,exports.textFontSize=textFontSize},62086:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PossibleSizes=void 0;var PossibleSizes;(function(PossibleSizes2){PossibleSizes2.xxs="xxs",PossibleSizes2.xs="xs",PossibleSizes2.sm="sm",PossibleSizes2.md="md",PossibleSizes2.lg="lg",PossibleSizes2.xl="xl",PossibleSizes2.xxl="xxl"})(PossibleSizes=exports.PossibleSizes||(exports.PossibleSizes={}))},625:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Theme=void 0;var theme_provider_1=__webpack_require__(710);Object.defineProperty(exports,"Theme",{enumerable:!0,get:function(){return theme_provider_1.Theme}})},710:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Theme=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_theme_size_definition_1=__webpack_require__(65548),base_ui_theme_shadow_definition_1=__webpack_require__(6722),base_ui_theme_color_definition_1=__webpack_require__(19829),base_ui_theme_brand_definition_1=__webpack_require__(58280),base_ui_theme_heading_margin_definition_1=__webpack_require__(50662),base_ui_theme_fonts_book_1=__webpack_require__(23895),texts_module_scss_1=__importDefault(__webpack_require__(32881));function Theme(props){return react_1.default.createElement("div",Object.assign({},props,{className:classnames_1.default(base_ui_theme_size_definition_1.headingFontSize,base_ui_theme_size_definition_1.textFontSize,base_ui_theme_fonts_book_1.bookFont,base_ui_theme_shadow_definition_1.shadowTheme,base_ui_theme_color_definition_1.primaryPalette,base_ui_theme_brand_definition_1.brands,base_ui_theme_heading_margin_definition_1.headingMargins,texts_module_scss_1.default.defaults,props.className)}))}exports.Theme=Theme},72149:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var time_ago_1=__webpack_require__(49651);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(time_ago_1).default}})},49651:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const javascript_time_ago_1=__importDefault(__webpack_require__(38419)),en_1=__importDefault(__webpack_require__(36192));exports.default=date=>{const now=new Date,versionDate=new Date(date);javascript_time_ago_1.default.addLocale(en_1.default);const timeAgo=new javascript_time_ago_1.default("en-EN"),diff=new Date(now.getTime()-versionDate.getTime()),res=timeAgo.format(now.getTime()-diff.getTime());return res.slice(0,2)==="a "?`${res[0].toUpperCase()}${res.slice(1)}`:res}},57419:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.BadgeSection=exports.ComponentOverview=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_layout_page_frame_1=__webpack_require__(68459),documenter_ui_heading_1=__webpack_require__(37742),documenter_ui_label_list_1=__webpack_require__(13232),documenter_ui_section_1=__webpack_require__(94761),documenter_ui_copy_box_1=__webpack_require__(754),design_ui_separator_1=__webpack_require__(12563),design_navigation_content_tabs_1=__webpack_require__(9382),documenter_ui_sub_title_1=__webpack_require__(36408),ui_foundation_ui_is_browser_1=__webpack_require__(92900),base_react_layout_row_1=__webpack_require__(90658),docs_1=__webpack_require__(84723),component_overview_module_scss_1=__importDefault(__webpack_require__(59136));function ComponentOverview(_a){var{displayName,abstract,titleBadges,labels,packageName,elementsUrl,componentDescriptor,component}=_a,rest=__rest(_a,["displayName","abstract","titleBadges","labels","packageName","elementsUrl","componentDescriptor","component"]);const componentId=component?.id,tabsComponentId=[{component:function(){return react_1.default.createElement("span",null,"Component ID")},content:react_1.default.createElement(documenter_ui_copy_box_1.CopyBox,{className:component_overview_module_scss_1.default.copyBox},componentId?componentId.toStringWithoutVersion():"")},{component:function(){return react_1.default.createElement("span",null,"Package")},content:react_1.default.createElement(documenter_ui_copy_box_1.CopyBox,{className:component_overview_module_scss_1.default.copyBox},packageName)}];let finalElementsUrl=elementsUrl;if(finalElementsUrl&&!finalElementsUrl.startsWith("http")){const origin=ui_foundation_ui_is_browser_1.isBrowser?window.location.origin:void 0;finalElementsUrl=origin&&elementsUrl?`${origin}${elementsUrl}`:void 0,finalElementsUrl&&tabsComponentId.push({component:function(){return react_1.default.createElement("span",null,"Elements url")},content:react_1.default.createElement(documenter_ui_copy_box_1.CopyBox,{className:component_overview_module_scss_1.default.copyBox},finalElementsUrl)})}return react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement("div",{className:base_ui_layout_page_frame_1.textColumn},react_1.default.createElement(base_react_layout_row_1.Row,{className:component_overview_module_scss_1.default.titleRow},react_1.default.createElement("div",{className:component_overview_module_scss_1.default.componentTitle},react_1.default.createElement(documenter_ui_heading_1.H1,{className:component_overview_module_scss_1.default.title},displayName)),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.Title,componentDescriptor,component,badges:titleBadges})),react_1.default.createElement(base_react_layout_row_1.Row,null,abstract&&react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(documenter_ui_sub_title_1.Subtitle,{className:component_overview_module_scss_1.default.subTitle},abstract),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.SubTitle,componentDescriptor,component,badges:titleBadges}))),react_1.default.createElement(base_react_layout_row_1.Row,null,react_1.default.createElement(documenter_ui_label_list_1.LabelList,null,labels),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.Labels,componentDescriptor,component,badges:titleBadges})),react_1.default.createElement(base_react_layout_row_1.Row,null,react_1.default.createElement("div",{className:component_overview_module_scss_1.default.contentTabs},react_1.default.createElement(design_navigation_content_tabs_1.ContentTabs,{priority:"folder",tabs:tabsComponentId,navClassName:component_overview_module_scss_1.default.nav,tabClassName:component_overview_module_scss_1.default.tab})),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.Package,componentDescriptor,component,badges:titleBadges}))),react_1.default.createElement(design_ui_separator_1.Separator,{isPresentational:!0}))}exports.ComponentOverview=ComponentOverview;function BadgeSection({badges,position,componentDescriptor,component}){var _a,_b;return react_1.default.createElement("div",{className:component_overview_module_scss_1.default.badgeContainer},(_b=(_a=badges?.filter(badge=>position===docs_1.BadgePosition.Title&&!badge.position||badge.position===position))===null||_a===void 0?void 0:_a.sort((a,b)=>a?.weight-b?.weight))===null||_b===void 0?void 0:_b.map((titleBadge,index)=>react_1.default.createElement(titleBadge.component,{key:index,componentDescriptor,legacyComponentModel:component})))}exports.BadgeSection=BadgeSection},20884:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BadgeSection=exports.ComponentOverview=void 0;var component_overview_1=__webpack_require__(57419);Object.defineProperty(exports,"ComponentOverview",{enumerable:!0,get:function(){return component_overview_1.ComponentOverview}}),Object.defineProperty(exports,"BadgeSection",{enumerable:!0,get:function(){return component_overview_1.BadgeSection}})},23087:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFetchDocs=void 0;var use_fetch_docs_1=__webpack_require__(1692);Object.defineProperty(exports,"useFetchDocs",{enumerable:!0,get:function(){return use_fetch_docs_1.useFetchDocs}})},1692:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFetchDocs=void 0;const react_1=__webpack_require__(59496),graphql_hooks_use_query_light_1=__webpack_require__(95791),GQL_SERVER="/graphql",DOCS_QUERY=(0,graphql_hooks_use_query_light_1.gql)`
|
11
|
+
`},""):String(opts.body);return{path,submission:{formMethod,formAction,formEncType:opts.formEncType,formData:void 0,json:void 0,text}}}else if(opts.formEncType==="application/json"){if(!isMutationMethod(formMethod))return getInvalidBodyError();try{let json2=typeof opts.body=="string"?JSON.parse(opts.body):opts.body;return{path,submission:{formMethod,formAction,formEncType:opts.formEncType,formData:void 0,json:json2,text:void 0}}}catch{return getInvalidBodyError()}}}invariant(typeof FormData=="function","FormData is not available in this environment");let searchParams,formData;if(opts.formData)searchParams=convertFormDataToSearchParams(opts.formData),formData=opts.formData;else if(opts.body instanceof FormData)searchParams=convertFormDataToSearchParams(opts.body),formData=opts.body;else if(opts.body instanceof URLSearchParams)searchParams=opts.body,formData=convertSearchParamsToFormData(searchParams);else if(opts.body==null)searchParams=new URLSearchParams,formData=new FormData;else try{searchParams=new URLSearchParams(opts.body),formData=convertSearchParamsToFormData(searchParams)}catch{return getInvalidBodyError()}let submission={formMethod,formAction,formEncType:opts&&opts.formEncType||"application/x-www-form-urlencoded",formData,json:void 0,text:void 0};if(isMutationMethod(submission.formMethod))return{path,submission};let parsedPath=parsePath(path);return isFetcher&&parsedPath.search&&hasNakedIndexQuery(parsedPath.search)&&searchParams.append("index",""),parsedPath.search="?"+searchParams,{path:createPath(parsedPath),submission}}function getLoaderMatchesUntilBoundary(matches,boundaryId){let boundaryMatches=matches;if(boundaryId){let index=matches.findIndex(m=>m.route.id===boundaryId);index>=0&&(boundaryMatches=matches.slice(0,index))}return boundaryMatches}function getMatchesToLoad(history,state,matches,submission,location,isInitialLoad,skipActionErrorRevalidation,isRevalidationRequired,cancelledDeferredRoutes,cancelledFetcherLoads,deletedFetchers,fetchLoadMatches,fetchRedirectIds,routesToUse,basename,pendingActionResult){let actionResult=pendingActionResult?isErrorResult(pendingActionResult[1])?pendingActionResult[1].error:pendingActionResult[1].data:void 0,currentUrl=history.createURL(state.location),nextUrl=history.createURL(location),boundaryId=pendingActionResult&&isErrorResult(pendingActionResult[1])?pendingActionResult[0]:void 0,boundaryMatches=boundaryId?getLoaderMatchesUntilBoundary(matches,boundaryId):matches,actionStatus=pendingActionResult?pendingActionResult[1].statusCode:void 0,shouldSkipRevalidation=skipActionErrorRevalidation&&actionStatus&&actionStatus>=400,navigationMatches=boundaryMatches.filter((match,index)=>{let{route}=match;if(route.lazy)return!0;if(route.loader==null)return!1;if(isInitialLoad)return typeof route.loader!="function"||route.loader.hydrate?!0:state.loaderData[route.id]===void 0&&(!state.errors||state.errors[route.id]===void 0);if(isNewLoader(state.loaderData,state.matches[index],match)||cancelledDeferredRoutes.some(id=>id===match.route.id))return!0;let currentRouteMatch=state.matches[index],nextRouteMatch=match;return shouldRevalidateLoader(match,_extends({currentUrl,currentParams:currentRouteMatch.params,nextUrl,nextParams:nextRouteMatch.params},submission,{actionResult,unstable_actionStatus:actionStatus,defaultShouldRevalidate:shouldSkipRevalidation?!1:isRevalidationRequired||currentUrl.pathname+currentUrl.search===nextUrl.pathname+nextUrl.search||currentUrl.search!==nextUrl.search||isNewRouteInstance(currentRouteMatch,nextRouteMatch)}))}),revalidatingFetchers=[];return fetchLoadMatches.forEach((f,key)=>{if(isInitialLoad||!matches.some(m=>m.route.id===f.routeId)||deletedFetchers.has(key))return;let fetcherMatches=matchRoutes(routesToUse,f.path,basename);if(!fetcherMatches){revalidatingFetchers.push({key,routeId:f.routeId,path:f.path,matches:null,match:null,controller:null});return}let fetcher=state.fetchers.get(key),fetcherMatch=getTargetMatch(fetcherMatches,f.path),shouldRevalidate=!1;fetchRedirectIds.has(key)?shouldRevalidate=!1:cancelledFetcherLoads.includes(key)?shouldRevalidate=!0:fetcher&&fetcher.state!=="idle"&&fetcher.data===void 0?shouldRevalidate=isRevalidationRequired:shouldRevalidate=shouldRevalidateLoader(fetcherMatch,_extends({currentUrl,currentParams:state.matches[state.matches.length-1].params,nextUrl,nextParams:matches[matches.length-1].params},submission,{actionResult,unstable_actionStatus:actionStatus,defaultShouldRevalidate:shouldSkipRevalidation?!1:isRevalidationRequired})),shouldRevalidate&&revalidatingFetchers.push({key,routeId:f.routeId,path:f.path,matches:fetcherMatches,match:fetcherMatch,controller:new AbortController})}),[navigationMatches,revalidatingFetchers]}function isNewLoader(currentLoaderData,currentMatch,match){let isNew=!currentMatch||match.route.id!==currentMatch.route.id,isMissingData=currentLoaderData[match.route.id]===void 0;return isNew||isMissingData}function isNewRouteInstance(currentMatch,match){let currentPath=currentMatch.route.path;return currentMatch.pathname!==match.pathname||currentPath!=null&¤tPath.endsWith("*")&¤tMatch.params["*"]!==match.params["*"]}function shouldRevalidateLoader(loaderMatch,arg){if(loaderMatch.route.shouldRevalidate){let routeChoice=loaderMatch.route.shouldRevalidate(arg);if(typeof routeChoice=="boolean")return routeChoice}return arg.defaultShouldRevalidate}async function loadLazyRouteModule(route,mapRouteProperties,manifest){if(!route.lazy)return;let lazyRoute=await route.lazy();if(!route.lazy)return;let routeToUpdate=manifest[route.id];invariant(routeToUpdate,"No route found in manifest");let routeUpdates={};for(let lazyRouteProperty in lazyRoute){let isPropertyStaticallyDefined=routeToUpdate[lazyRouteProperty]!==void 0&&lazyRouteProperty!=="hasErrorBoundary";warning(!isPropertyStaticallyDefined,'Route "'+routeToUpdate.id+'" has a static property "'+lazyRouteProperty+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+lazyRouteProperty+'" will be ignored.')),!isPropertyStaticallyDefined&&!immutableRouteKeys.has(lazyRouteProperty)&&(routeUpdates[lazyRouteProperty]=lazyRoute[lazyRouteProperty])}Object.assign(routeToUpdate,routeUpdates),Object.assign(routeToUpdate,_extends({},mapRouteProperties(routeToUpdate),{lazy:void 0}))}function defaultDataStrategy(opts){return Promise.all(opts.matches.map(m=>m.resolve()))}async function callDataStrategyImpl(dataStrategyImpl,type,request,matchesToLoad,matches,manifest,mapRouteProperties,requestContext){let routeIdsToLoad=matchesToLoad.reduce((acc,m)=>acc.add(m.route.id),new Set),loadedMatches=new Set,results=await dataStrategyImpl({matches:matches.map(match=>{let shouldLoad=routeIdsToLoad.has(match.route.id);return _extends({},match,{shouldLoad,resolve:handlerOverride=>(loadedMatches.add(match.route.id),shouldLoad?callLoaderOrAction(type,request,match,manifest,mapRouteProperties,handlerOverride,requestContext):Promise.resolve({type:ResultType.data,result:void 0}))})}),request,params:matches[0].params,context:requestContext});return matches.forEach(m=>invariant(loadedMatches.has(m.route.id),'`match.resolve()` was not called for route id "'+m.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),results.filter((_,i)=>routeIdsToLoad.has(matches[i].route.id))}async function callLoaderOrAction(type,request,match,manifest,mapRouteProperties,handlerOverride,staticContext){let result,onReject,runHandler=handler=>{let reject,abortPromise=new Promise((_,r)=>reject=r);onReject=()=>reject(),request.signal.addEventListener("abort",onReject);let actualHandler=ctx=>typeof handler!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+type+'" [routeId: '+match.route.id+"]"))):handler({request,params:match.params,context:staticContext},...ctx!==void 0?[ctx]:[]),handlerPromise;return handlerOverride?handlerPromise=handlerOverride(ctx=>actualHandler(ctx)):handlerPromise=(async()=>{try{let val=await actualHandler();return{type:"data",result:val}}catch(e){return{type:"error",result:e}}})(),Promise.race([handlerPromise,abortPromise])};try{let handler=match.route[type];if(match.route.lazy)if(handler){let handlerError,[value]=await Promise.all([runHandler(handler).catch(e=>{handlerError=e}),loadLazyRouteModule(match.route,mapRouteProperties,manifest)]);if(handlerError!==void 0)throw handlerError;result=value}else if(await loadLazyRouteModule(match.route,mapRouteProperties,manifest),handler=match.route[type],handler)result=await runHandler(handler);else if(type==="action"){let url=new URL(request.url),pathname=url.pathname+url.search;throw getInternalRouterError(405,{method:request.method,pathname,routeId:match.route.id})}else return{type:ResultType.data,result:void 0};else if(handler)result=await runHandler(handler);else{let url=new URL(request.url),pathname=url.pathname+url.search;throw getInternalRouterError(404,{pathname})}invariant(result.result!==void 0,"You defined "+(type==="action"?"an action":"a loader")+" for route "+('"'+match.route.id+"\" but didn't return anything from your `"+type+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:ResultType.error,result:e}}finally{onReject&&request.signal.removeEventListener("abort",onReject)}return result}async function convertHandlerResultToDataResult(handlerResult){let{result,type,status}=handlerResult;if(isResponse(result)){let data;try{let contentType=result.headers.get("Content-Type");contentType&&/\bapplication\/json\b/.test(contentType)?result.body==null?data=null:data=await result.json():data=await result.text()}catch(e){return{type:ResultType.error,error:e}}return type===ResultType.error?{type:ResultType.error,error:new ErrorResponseImpl(result.status,result.statusText,data),statusCode:result.status,headers:result.headers}:{type:ResultType.data,data,statusCode:result.status,headers:result.headers}}if(type===ResultType.error)return{type:ResultType.error,error:result,statusCode:isRouteErrorResponse(result)?result.status:status};if(isDeferredData(result)){var _result$init,_result$init2;return{type:ResultType.deferred,deferredData:result,statusCode:(_result$init=result.init)==null?void 0:_result$init.status,headers:((_result$init2=result.init)==null?void 0:_result$init2.headers)&&new Headers(result.init.headers)}}return{type:ResultType.data,data:result,statusCode:status}}function normalizeRelativeRoutingRedirectResponse(response,request,routeId,matches,basename,v7_relativeSplatPath){let location=response.headers.get("Location");if(invariant(location,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX.test(location)){let trimmedMatches=matches.slice(0,matches.findIndex(m=>m.route.id===routeId)+1);location=normalizeTo(new URL(request.url),trimmedMatches,basename,!0,location,v7_relativeSplatPath),response.headers.set("Location",location)}return response}function normalizeRedirectLocation(location,currentUrl,basename){if(ABSOLUTE_URL_REGEX.test(location)){let normalizedLocation=location,url=normalizedLocation.startsWith("//")?new URL(currentUrl.protocol+normalizedLocation):new URL(normalizedLocation),isSameBasename=stripBasename(url.pathname,basename)!=null;if(url.origin===currentUrl.origin&&isSameBasename)return url.pathname+url.search+url.hash}return location}function createClientSideRequest(history,location,signal,submission){let url=history.createURL(stripHashFromPath(location)).toString(),init={signal};if(submission&&isMutationMethod(submission.formMethod)){let{formMethod,formEncType}=submission;init.method=formMethod.toUpperCase(),formEncType==="application/json"?(init.headers=new Headers({"Content-Type":formEncType}),init.body=JSON.stringify(submission.json)):formEncType==="text/plain"?init.body=submission.text:formEncType==="application/x-www-form-urlencoded"&&submission.formData?init.body=convertFormDataToSearchParams(submission.formData):init.body=submission.formData}return new Request(url,init)}function convertFormDataToSearchParams(formData){let searchParams=new URLSearchParams;for(let[key,value]of formData.entries())searchParams.append(key,typeof value=="string"?value:value.name);return searchParams}function convertSearchParamsToFormData(searchParams){let formData=new FormData;for(let[key,value]of searchParams.entries())formData.append(key,value);return formData}function processRouteLoaderData(matches,matchesToLoad,results,pendingActionResult,activeDeferreds,skipLoaderErrorBubbling){let loaderData={},errors=null,statusCode,foundError=!1,loaderHeaders={},pendingError=pendingActionResult&&isErrorResult(pendingActionResult[1])?pendingActionResult[1].error:void 0;return results.forEach((result,index)=>{let id=matchesToLoad[index].route.id;if(invariant(!isRedirectResult(result),"Cannot handle redirect results in processLoaderData"),isErrorResult(result)){let error=result.error;if(pendingError!==void 0&&(error=pendingError,pendingError=void 0),errors=errors||{},skipLoaderErrorBubbling)errors[id]=error;else{let boundaryMatch=findNearestBoundary(matches,id);errors[boundaryMatch.route.id]==null&&(errors[boundaryMatch.route.id]=error)}loaderData[id]=void 0,foundError||(foundError=!0,statusCode=isRouteErrorResponse(result.error)?result.error.status:500),result.headers&&(loaderHeaders[id]=result.headers)}else isDeferredResult(result)?(activeDeferreds.set(id,result.deferredData),loaderData[id]=result.deferredData.data,result.statusCode!=null&&result.statusCode!==200&&!foundError&&(statusCode=result.statusCode),result.headers&&(loaderHeaders[id]=result.headers)):(loaderData[id]=result.data,result.statusCode&&result.statusCode!==200&&!foundError&&(statusCode=result.statusCode),result.headers&&(loaderHeaders[id]=result.headers))}),pendingError!==void 0&&pendingActionResult&&(errors={[pendingActionResult[0]]:pendingError},loaderData[pendingActionResult[0]]=void 0),{loaderData,errors,statusCode:statusCode||200,loaderHeaders}}function processLoaderData(state,matches,matchesToLoad,results,pendingActionResult,revalidatingFetchers,fetcherResults,activeDeferreds){let{loaderData,errors}=processRouteLoaderData(matches,matchesToLoad,results,pendingActionResult,activeDeferreds,!1);for(let index=0;index<revalidatingFetchers.length;index++){let{key,match,controller}=revalidatingFetchers[index];invariant(fetcherResults!==void 0&&fetcherResults[index]!==void 0,"Did not find corresponding fetcher result");let result=fetcherResults[index];if(!(controller&&controller.signal.aborted))if(isErrorResult(result)){let boundaryMatch=findNearestBoundary(state.matches,match?.route.id);errors&&errors[boundaryMatch.route.id]||(errors=_extends({},errors,{[boundaryMatch.route.id]:result.error})),state.fetchers.delete(key)}else if(isRedirectResult(result))invariant(!1,"Unhandled fetcher revalidation redirect");else if(isDeferredResult(result))invariant(!1,"Unhandled fetcher deferred data");else{let doneFetcher=getDoneFetcher(result.data);state.fetchers.set(key,doneFetcher)}}return{loaderData,errors}}function mergeLoaderData(loaderData,newLoaderData,matches,errors){let mergedLoaderData=_extends({},newLoaderData);for(let match of matches){let id=match.route.id;if(newLoaderData.hasOwnProperty(id)?newLoaderData[id]!==void 0&&(mergedLoaderData[id]=newLoaderData[id]):loaderData[id]!==void 0&&match.route.loader&&(mergedLoaderData[id]=loaderData[id]),errors&&errors.hasOwnProperty(id))break}return mergedLoaderData}function getActionDataForCommit(pendingActionResult){return pendingActionResult?isErrorResult(pendingActionResult[1])?{actionData:{}}:{actionData:{[pendingActionResult[0]]:pendingActionResult[1].data}}:{}}function findNearestBoundary(matches,routeId){return(routeId?matches.slice(0,matches.findIndex(m=>m.route.id===routeId)+1):[...matches]).reverse().find(m=>m.route.hasErrorBoundary===!0)||matches[0]}function getShortCircuitMatches(routes){let route=routes.length===1?routes[0]:routes.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route}],route}}function getInternalRouterError(status,_temp5){let{pathname,routeId,method,type}=_temp5===void 0?{}:_temp5,statusText="Unknown Server Error",errorMessage="Unknown @remix-run/router error";return status===400?(statusText="Bad Request",method&&pathname&&routeId?errorMessage="You made a "+method+' request to "'+pathname+'" but '+('did not provide a `loader` for route "'+routeId+'", ')+"so there is no way to handle the request.":type==="defer-action"?errorMessage="defer() is not supported in actions":type==="invalid-body"&&(errorMessage="Unable to encode submission body")):status===403?(statusText="Forbidden",errorMessage='Route "'+routeId+'" does not match URL "'+pathname+'"'):status===404?(statusText="Not Found",errorMessage='No route matches URL "'+pathname+'"'):status===405&&(statusText="Method Not Allowed",method&&pathname&&routeId?errorMessage="You made a "+method.toUpperCase()+' request to "'+pathname+'" but '+('did not provide an `action` for route "'+routeId+'", ')+"so there is no way to handle the request.":method&&(errorMessage='Invalid request method "'+method.toUpperCase()+'"')),new ErrorResponseImpl(status||500,statusText,new Error(errorMessage),!0)}function findRedirect(results){for(let i=results.length-1;i>=0;i--){let result=results[i];if(isRedirectResult(result))return{result,idx:i}}}function stripHashFromPath(path){let parsedPath=typeof path=="string"?parsePath(path):path;return createPath(_extends({},parsedPath,{hash:""}))}function isHashChangeOnly(a,b){return a.pathname!==b.pathname||a.search!==b.search?!1:a.hash===""?b.hash!=="":a.hash===b.hash?!0:b.hash!==""}function isHandlerResult(result){return result!=null&&typeof result=="object"&&"type"in result&&"result"in result&&(result.type===ResultType.data||result.type===ResultType.error)}function isRedirectHandlerResult(result){return isResponse(result.result)&&redirectStatusCodes.has(result.result.status)}function isDeferredResult(result){return result.type===ResultType.deferred}function isErrorResult(result){return result.type===ResultType.error}function isRedirectResult(result){return(result&&result.type)===ResultType.redirect}function isDeferredData(value){let deferred=value;return deferred&&typeof deferred=="object"&&typeof deferred.data=="object"&&typeof deferred.subscribe=="function"&&typeof deferred.cancel=="function"&&typeof deferred.resolveData=="function"}function isResponse(value){return value!=null&&typeof value.status=="number"&&typeof value.statusText=="string"&&typeof value.headers=="object"&&typeof value.body<"u"}function isRedirectResponse(result){if(!isResponse(result))return!1;let status=result.status,location=result.headers.get("Location");return status>=300&&status<=399&&location!=null}function isValidMethod(method){return validRequestMethods.has(method.toLowerCase())}function isMutationMethod(method){return validMutationMethods.has(method.toLowerCase())}async function resolveDeferredResults(currentMatches,matchesToLoad,results,signals,isFetcher,currentLoaderData){for(let index=0;index<results.length;index++){let result=results[index],match=matchesToLoad[index];if(!match)continue;let currentMatch=currentMatches.find(m=>m.route.id===match.route.id),isRevalidatingLoader=currentMatch!=null&&!isNewRouteInstance(currentMatch,match)&&(currentLoaderData&¤tLoaderData[match.route.id])!==void 0;if(isDeferredResult(result)&&(isFetcher||isRevalidatingLoader)){let signal=signals[index];invariant(signal,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(result,signal,isFetcher).then(result2=>{result2&&(results[index]=result2||results[index])})}}}async function resolveDeferredData(result,signal,unwrap){if(unwrap===void 0&&(unwrap=!1),!await result.deferredData.resolveData(signal)){if(unwrap)try{return{type:ResultType.data,data:result.deferredData.unwrappedData}}catch(e){return{type:ResultType.error,error:e}}return{type:ResultType.data,data:result.deferredData.data}}}function hasNakedIndexQuery(search){return new URLSearchParams(search).getAll("index").some(v=>v==="")}function getTargetMatch(matches,location){let search=typeof location=="string"?parsePath(location).search:location.search;if(matches[matches.length-1].route.index&&hasNakedIndexQuery(search||""))return matches[matches.length-1];let pathMatches=getPathContributingMatches(matches);return pathMatches[pathMatches.length-1]}function getSubmissionFromNavigation(navigation){let{formMethod,formAction,formEncType,text,formData,json:json2}=navigation;if(!(!formMethod||!formAction||!formEncType)){if(text!=null)return{formMethod,formAction,formEncType,formData:void 0,json:void 0,text};if(formData!=null)return{formMethod,formAction,formEncType,formData,json:void 0,text:void 0};if(json2!==void 0)return{formMethod,formAction,formEncType,formData:void 0,json:json2,text:void 0}}}function getLoadingNavigation(location,submission){return submission?{state:"loading",location,formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text}:{state:"loading",location,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(location,submission){return{state:"submitting",location,formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text}}function getLoadingFetcher(submission,data){return submission?{state:"loading",formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text,data}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data}}function getSubmittingFetcher(submission,existingFetcher){return{state:"submitting",formMethod:submission.formMethod,formAction:submission.formAction,formEncType:submission.formEncType,formData:submission.formData,json:submission.json,text:submission.text,data:existingFetcher?existingFetcher.data:void 0}}function getDoneFetcher(data){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data}}function restoreAppliedTransitions(_window,transitions){try{let sessionPositions=_window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY);if(sessionPositions){let json2=JSON.parse(sessionPositions);for(let[k,v]of Object.entries(json2||{}))v&&Array.isArray(v)&&transitions.set(k,new Set(v||[]))}}catch{}}function persistAppliedTransitions(_window,transitions){if(transitions.size>0){let json2={};for(let[k,v]of transitions)json2[k]=[...v];try{_window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY,JSON.stringify(json2))}catch(error){warning(!1,"Failed to save applied view transitions in sessionStorage ("+error+").")}}}},21186:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(71291))},9372:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0});var node_fs_1=__webpack_require__(13860);exports.NodeFS=node_fs_1.NodeFS,__export(__webpack_require__(54673))},13860:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const path_1=__webpack_require__(62005),fs_1=__importDefault(__webpack_require__(27127)),promises_1=__importDefault(__webpack_require__(54673));class NodeFS{constructor(workingDir){this.workingDir=workingDir,this.promises=new promises_1.default}getPath(path){return path_1.join(this.workingDir,path)}access(path,mode,callback){fs_1.default.access(this.getPath(path),mode,callback)}accessSync(path,mode){fs_1.default.accessSync(this.getPath(path),mode)}appendFile(file,data,options,callback){fs_1.default.appendFile(this.getPath(file),data,options)}appendFileSync(file,data,options){fs_1.default.appendFileSync(this.getPath(file),data,options)}chmod(path,mode,callback){fs_1.default.chmod(this.getPath(path),mode,callback)}chmodSync(path,mode){fs_1.default.chmodSync(this.getPath(path),mode)}chown(path,uid,gid,callback){fs_1.default.chown(this.getPath(path),uid,gid,callback)}chownSync(path,uid,gid){fs_1.default.chownSync(this.getPath(path),uid,gid)}close(fd,callback){fs_1.default.close(fd,callback)}closeSync(fd){fs_1.default.closeSync(fd)}copyFile(src,dest,callback){fs_1.default.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){fs_1.default.copyFileSync(src,dest,flags)}createReadStream(path,options){return fs_1.default.createReadStream(this.getPath(path),options)}createWriteStream(path,options){return fs_1.default.createWriteStream(this.getPath(path),options)}exists(path,callback){fs_1.default.exists(this.getPath(path),callback)}existsSync(path){return fs_1.default.existsSync(this.getPath(path))}fchmod(fd,mode,callback){fs_1.default.fchmod(fd,mode,callback)}fchmodSync(fd,mode){fs_1.default.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){fs_1.default.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){fs_1.default.fchownSync(fd,uid,gid)}fdatasync(fd,callback){fs_1.default.fdatasync(fd,callback)}fdatasyncSync(fd){fs_1.default.fdatasyncSync(fd)}fstat(fd,callback){fs_1.default.fstat(fd,callback)}fstatSync(fd){return fs_1.default.fstatSync(fd)}fsync(fd,callback){fs_1.default.fsync(fd,callback)}fsyncSync(fd){fs_1.default.fsyncSync(fd)}ftruncate(fd,len,callback){fs_1.default.ftruncate(fd,len,callback)}ftruncateSync(fd,len){fs_1.default.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){fs_1.default.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){fs_1.default.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){fs_1.default.lchmod(this.getPath(path),mode,callback)}lchmodSync(path,mode){fs_1.default.lchmodSync(this.getPath(path),mode)}lchown(path,uid,gid,callback){fs_1.default.lchown(this.getPath(path),uid,gid,callback)}lchownSync(path,uid,gid){fs_1.default.lchownSync(this.getPath(path),uid,gid)}link(existingPath,newPath,callback){fs_1.default.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){fs_1.default.linkSync(existingPath,newPath)}lstat(path,callback){fs_1.default.lstat(this.getPath(path),callback)}lstatSync(path){return fs_1.default.lstatSync(path)}mkdir(path,options,callback){fs_1.default.mkdir(this.getPath(path),options,callback)}mkdirSync(path,options){fs_1.default.mkdirSync(this.getPath(path),options)}mkdtemp(prefix,options,callback){fs_1.default.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return fs_1.default.mkdtempSync(prefix,options)}open(path,flags,mode,callback){fs_1.default.open(this.getPath(path),flags,mode,callback)}openSync(path,flags,mode){return fs_1.default.openSync(this.getPath(path),flags,mode)}read(fd,buffer,offset,length,position,callback){fs_1.default.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return fs_1.default.readFileSync(this.getPath(path))}readSync(fd,buffer,offset,length,position){return fs_1.default.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){fs_1.default.readdir(this.getPath(path),options,callback)}readdirSync(path,options){return fs_1.default.readdirSync(this.getPath(path),options)}readlink(path,options,callback){fs_1.default.readlink(this.getPath(path),options,callback)}readlinkSync(path,options){return fs_1.default.readlinkSync(this.getPath(path),options)}realpath(path,options,callback){fs_1.default.realpath(this.getPath(path),options,callback)}realpathSync(path,options){return fs_1.default.realpathSync(this.getPath(path),options)}rename(oldPath,newPath,callback){fs_1.default.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){fs_1.default.renameSync(oldPath,newPath)}rmdir(path,callback){fs_1.default.rmdir(this.getPath(path),callback)}rmdirSync(path){fs_1.default.rmdirSync(this.getPath(path))}stat(path,callback){fs_1.default.stat(this.getPath(path),callback)}statSync(path){return fs_1.default.statSync(path)}symlink(target,path,type,callback){fs_1.default.symlink(target,this.getPath(path),type,callback)}symlinkSync(target,path,type){fs_1.default.symlinkSync(target,this.getPath(path),type)}truncate(path,len,callback){fs_1.default.truncate(this.getPath(path),len,callback)}truncateSync(path,len){fs_1.default.truncateSync(this.getPath(path),len)}unlink(path,callback){fs_1.default.unlink(this.getPath(path),callback)}unlinkSync(path){fs_1.default.unlinkSync(this.getPath(path))}unwatchFile(filename,listener){fs_1.default.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){fs_1.default.utimes(this.getPath(path),atime,mtime,callback)}utimesSync(path,atime,mtime){fs_1.default.utimesSync(this.getPath(path),atime,mtime)}watch(filename,options,listener){return fs_1.default.watch(filename,options,listener)}watchFile(filename,options,listener){fs_1.default.watchFile(filename,options,listener)}writeFile(path,data,options,callback){fs_1.default.writeFile(this.getPath(path),data,options)}writeFileSync(path,data,options){fs_1.default.writeFileSync(this.getPath(path),data,options)}writeSync(fd,buffer,offset,length,position){return fs_1.default.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.NodeFS=NodeFS},54673:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const fs_1=__importDefault(__webpack_require__(27127));class FsPromisesAPI{access(path,mode){return fs_1.default.promises.access(path,mode)}appendFile(path,data,options){return fs_1.default.promises.appendFile(path,data)}chmod(path,mode){return fs_1.default.promises.chmod(path,mode)}chown(path,uid,gid){return fs_1.default.promises.chown(path,uid,gid)}copyFile(src,dest,flags){return fs_1.default.promises.copyFile(src,dest,flags)}fchmod(handle,mode){return fs_1.default.promises.fchmod(handle,mode)}fchown(handle,uid,gid){return fs_1.default.promises.fchown(handle,uid,gid)}fdatasync(handle){return fs_1.default.promises.fdatasync(handle)}fstat(handle){return fs_1.default.promises.fstat(handle)}fsync(handle){return fs_1.default.promises.fsync(handle)}ftruncate(handle,len){return fs_1.default.promises.ftruncate(handle,len)}futimes(handle,atime,mtime){return fs_1.default.promises.futimes(handle,atime,mtime)}lchmod(path,mode){return fs_1.default.promises.lchmod(path,mode)}lchown(path,uid,gid){return fs_1.default.promises.lchown(path,uid,gid)}link(existingPath,newPath){return fs_1.default.promises.link(existingPath,newPath)}lstat(path){return fs_1.default.promises.lstat(path)}mkdir(path,options){return fs_1.default.promises.mkdir(path,options)}mkdtemp(prefix,options){return fs_1.default.promises.mkdtemp(prefix,options)}open(path,flags,mode){return fs_1.default.promises.open(path,flags,mode)}read(handle,buffer,offset,length,position){return fs_1.default.promises.read(handle,buffer,offset,length,position)}readFile(path,options){return fs_1.default.promises.readFile(path,options)}readdir(path,options){return fs_1.default.promises.readdir(path,options)}readlink(path,options){return fs_1.default.promises.readlink(path,options)}realpath(path,options){return fs_1.default.promises.realpath(path,options)}rename(oldPath,newPath){return fs_1.default.promises.rename(oldPath,newPath)}rmdir(path){return fs_1.default.promises.rmdir(path)}stat(path){return fs_1.default.promises.stat(path)}symlink(target,path,type){return fs_1.default.promises.symlink(target,path,type)}truncate(path,len){return fs_1.default.promises.truncate(path,len)}unlink(path){return fs_1.default.promises.unlink(path)}utimes(path,atime,mtime){return fs_1.default.promises.utimes(path,atime,mtime)}write(handle,buffer,offset,length,position){fs_1.default.promises.write(handle,buffer,offset,length)}writeFile(path,data,options){return fs_1.default.promises.writeFile(path,data,options)}}exports.default=FsPromisesAPI},71291:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(9372)),__export(__webpack_require__(65964))},65964:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(30306))},30306:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const memfs_1=__webpack_require__(27884);class MemoryFS{constructor(){this.volume=new memfs_1.Volume,this.promises=this.volume.promises}access(path,mode,callback){this.volume.access(path,mode,callback)}accessSync(path,mode){this.volume.accessSync(path,mode)}appendFile(file,data,options,callback){this.volume.appendFile(file,data,options)}mkdirpSync(path){this.volume.mkdirpSync(path)}appendFileSync(file,data,options){this.volume.appendFileSync(file,data,options)}chmod(path,mode,callback){this.volume.chmod(path,mode,callback)}chmodSync(path,mode){this.volume.chmodSync(path,mode)}chown(path,uid,gid,callback){this.volume.chown(path,uid,gid,callback)}chownSync(path,uid,gid){this.volume.chownSync(path,uid,gid)}close(fd,callback){this.volume.close(fd,callback)}closeSync(fd){this.volume.closeSync(fd)}copyFile(src,dest,callback){this.volume.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){this.volume.copyFileSync(src,dest,flags)}createReadStream(path,options){return this.volume.createReadStream(path,options)}createWriteStream(path,options){return this.volume.createWriteStream(path,options)}exists(path,callback){this.volume.exists(path,callback)}existsSync(path){return!1}fchmod(fd,mode,callback){this.volume.fchmod(fd,mode,callback)}fchmodSync(fd,mode){this.volume.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){this.volume.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){this.volume.fchownSync(fd,uid,gid)}fdatasync(fd,callback){this.volume.fdatasync(fd,callback)}fdatasyncSync(fd){this.volume.fdatasyncSync(fd)}fstat(fd,callback){this.volume.fstat(fd,callback)}fstatSync(fd){return this.volume.fstatSync(fd)}fsync(fd,callback){this.volume.fsync(fd,callback)}fsyncSync(fd){this.volume.fsyncSync(fd)}ftruncate(fd,len,callback){this.volume.ftruncate(fd,len,callback)}ftruncateSync(fd,len){this.volume.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){this.volume.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){this.volume.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){this.volume.lchmod(path,mode,callback)}lchmodSync(path,mode){this.volume.lchmodSync(path,mode)}lchown(path,uid,gid,callback){this.volume.lchown(path,uid,gid,callback)}lchownSync(path,uid,gid){this.volume.lchownSync(path,uid,gid)}link(existingPath,newPath,callback){this.volume.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){this.volume.linkSync(existingPath,newPath)}lstat(path,callback){this.volume.lstat(path,callback)}lstatSync(path){return this.volume.lstatSync(path)}mkdir(path,options,callback){this.volume.mkdir(path,options,callback)}mkdirSync(path,options){this.volume.mkdirSync(path,options)}mkdtemp(prefix,options,callback){this.volume.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return this.volume.mkdtempSync(prefix,options)}open(path,flags,mode,callback){this.volume.open(path,flags,mode,callback)}openSync(path,flags,mode){return this.volume.openSync(path,flags,mode)}read(fd,buffer,offset,length,position,callback){this.volume.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return this.volume.readFileSync(path)}readSync(fd,buffer,offset,length,position){return this.volume.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){this.volume.readdir(path,options,callback)}readdirSync(path,options){return this.volume.readdirSync(path,options)}readlink(path,options,callback){this.volume.readlink(path,options,callback)}readlinkSync(path,options){return this.volume.readlinkSync(path,options)}realpath(path,options,callback){this.volume.realpath(path,options,callback)}realpathSync(path,options){return this.volume.realpathSync(path,options)}rename(oldPath,newPath,callback){this.volume.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){this.volume.renameSync(oldPath,newPath)}rmdir(path,callback){this.volume.rmdir(path,callback)}rmdirSync(path){this.volume.rmdirSync(path)}stat(path,callback){this.volume.stat(path,callback)}statSync(path){return this.volume.statSync(path)}symlink(target,path,type,callback){this.volume.symlink(target,path,type,callback)}symlinkSync(target,path,type){this.volume.symlinkSync(target,path,type)}truncate(path,len,callback){this.volume.truncate(path,len,callback)}truncateSync(path,len){this.volume.truncateSync(path,len)}unlink(path,callback){this.volume.unlink(path,callback)}unlinkSync(path){this.volume.unlinkSync(path)}unwatchFile(filename,listener){this.volume.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){this.volume.utimes(path,atime,mtime,callback)}utimesSync(path,atime,mtime){this.volume.utimesSync(path,atime,mtime)}watch(filename,options,listener){return this.volume.watch(filename,options,listener)}watchFile(filename,options,listener){this.volume.watchFile(filename,options,listener)}writeFile(path,data,options,callback){this.volume.writeFile(path,data,options)}writeFileSync(path,data,options){this.volume.writeFileSync(path,data,options)}writeSync(fd,buffer,offset,length,position){return this.volume.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.MemoryFS=MemoryFS},90658:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Row=void 0;var row_1=__webpack_require__(4762);Object.defineProperty(exports,"Row",{enumerable:!0,get:function(){return row_1.Row}})},4762:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Row=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),row_module_scss_1=__importDefault(__webpack_require__(1208));function Row(_a){var{children,className}=_a,rest=__rest(_a,["children","className"]);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(row_module_scss_1.default.row,className)},rest),children)}exports.Row=Row},6231:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_1=__webpack_require__(99981);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_1.Link}});var use_location_1=__webpack_require__(18750);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_1.useLocation}});var use_navigate_1=__webpack_require__(94671);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_1.useNavigate}});var navigation_provider_1=__webpack_require__(85258);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_1.NavigationProvider}})},99981:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(59496)),navigation_provider_1=__webpack_require__(85258),native_link_1=__webpack_require__(75473);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_1.useNavigation)().Link||native_link_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},75473:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(19803)),base_ui_routing_compare_url_1=__webpack_require__(50194),use_location_1=__webpack_require__(18750),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","exact","href","external","native","state"]);const location=(0,use_location_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,base_ui_routing_compare_url_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}))})},85258:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.NavigationContext=void 0;const react_1=__importStar(__webpack_require__(59496));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}exports.useNavigation=useNavigation;function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}exports.NavigationProvider=NavigationProvider},18750:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=void 0;const navigation_provider_1=__webpack_require__(85258);function useLocation(){return((0,navigation_provider_1.useNavigation)().useLocation||NativeUseLocation)()}exports.useLocation=useLocation;function NativeUseLocation(){if(!(typeof window>"u"))return window.location}},94671:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=void 0;const navigation_provider_1=__webpack_require__(85258);function useNavigate(){var _a;const nav=(0,navigation_provider_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}exports.useNavigate=useNavigate;function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}},63281:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.computeCssVars=exports.createThemeProvider=void 0;const react_1=__importStar(__webpack_require__(59496));function createThemeProvider(ThemeContext,options){return _a=>{var{children,overrides,style}=_a,rest=__rest(_a,["children","overrides","style"]);const theme=(0,react_1.useMemo)(()=>Object.assign(Object.assign({},options.theme),overrides),[options.theme,overrides]);if(options.withoutCssVars)return react_1.default.createElement(ThemeContext.Provider,{value:theme},children);const cssVars=computeCssVars(theme,options.prefix);return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},cssVars),style)},rest),react_1.default.createElement(ThemeContext.Provider,{value:theme},children))}}exports.createThemeProvider=createThemeProvider;function computeCssVars(theme,prefix){return Object.entries(theme).map(([key,val])=>{const varName=key.replace(/[A-Z]/g,"-$&").toLowerCase();return[prefix?`--${prefix}-${varName}`:`--${varName}`,val]}).reduce((acc,[key,val])=>(acc[key]=val,acc),{})}exports.computeCssVars=computeCssVars},26375:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createTheme=void 0;const react_1=__webpack_require__(59496),create_theme_provider_1=__webpack_require__(63281);function createTheme({theme,prefix,withoutCssVars}){const ThemeContext=(0,react_1.createContext)(theme);return{ThemeProvider:(0,create_theme_provider_1.createThemeProvider)(ThemeContext,{theme,prefix,withoutCssVars}),useTheme:()=>(0,react_1.useContext)(ThemeContext)}}exports.createTheme=createTheme},14111:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createTheme=void 0;var create_theme_1=__webpack_require__(26375);Object.defineProperty(exports,"createTheme",{enumerable:!0,get:function(){return create_theme_1.createTheme}})},15567:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeToggler=exports.useThemePicker=exports.useThemeByName=exports.useNextTheme=exports.ThemePickerContext=exports.ThemeSwitcher=void 0;var theme_switcher_1=__webpack_require__(61617);Object.defineProperty(exports,"ThemeSwitcher",{enumerable:!0,get:function(){return theme_switcher_1.ThemeSwitcher}});var theme_picker_context_1=__webpack_require__(68668);Object.defineProperty(exports,"ThemePickerContext",{enumerable:!0,get:function(){return theme_picker_context_1.ThemePickerContext}}),Object.defineProperty(exports,"useNextTheme",{enumerable:!0,get:function(){return theme_picker_context_1.useNextTheme}}),Object.defineProperty(exports,"useThemeByName",{enumerable:!0,get:function(){return theme_picker_context_1.useThemeByName}}),Object.defineProperty(exports,"useThemePicker",{enumerable:!0,get:function(){return theme_picker_context_1.useThemePicker}});var theme_toggler_1=__webpack_require__(87718);Object.defineProperty(exports,"ThemeToggler",{enumerable:!0,get:function(){return theme_toggler_1.ThemeToggler}})},68668:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNextTheme=exports.useThemeByName=exports.useThemePicker=exports.ThemePickerContext=void 0;const react_1=__webpack_require__(59496);exports.ThemePickerContext=(0,react_1.createContext)(void 0);function useThemePicker(){return(0,react_1.useContext)(exports.ThemePickerContext)}exports.useThemePicker=useThemePicker;function useThemeByName(themeName){const themes=useThemePicker();if(!(!themeName||!themes))return themes.options.find(theme=>theme.themeName===themeName)}exports.useThemeByName=useThemeByName;function useNextTheme(){const themes=useThemePicker();return(0,react_1.useCallback)(()=>{if(!themes)return;const{options,setTheme,currentIdx}=themes,nextIdx=(currentIdx+1)%options.length,next=options[nextIdx];setTheme(next)},[themes])}exports.useNextTheme=useNextTheme},61617:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeSwitcher=void 0;const react_1=__importStar(__webpack_require__(59496)),theme_picker_context_1=__webpack_require__(68668);function ThemeSwitcher(_a){var{children,themes,activeTheme,handleThemeChange,defaultTheme}=_a,props=__rest(_a,["children","themes","activeTheme","handleThemeChange","defaultTheme"]);let explicitValue=typeof activeTheme=="string"?themes.find(x=>x.themeName===activeTheme):activeTheme;const getInitialOption=()=>explicitValue||defaultTheme&&themes.find(x=>x.themeName===defaultTheme)||themes[0],[theme,setTheme]=(0,react_1.useState)(getInitialOption),currentTheme=explicitValue||theme,picker={setTheme:themeTarget=>{handleThemeChange?.(themeTarget),setTheme(()=>themeTarget)},current:currentTheme,get currentIdx(){return this.current?this.options.indexOf(this.current):-1},options:themes},Provider=currentTheme,forwardProps=props;return react_1.default.createElement(theme_picker_context_1.ThemePickerContext.Provider,{value:picker},Provider?react_1.default.createElement(Provider,Object.assign({},forwardProps),children):children)}exports.ThemeSwitcher=ThemeSwitcher},87718:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeToggler=void 0;const react_1=__importDefault(__webpack_require__(59496)),theme_picker_context_1=__webpack_require__(68668);function ThemeToggler(_a){var{onClick}=_a,props=__rest(_a,["onClick"]);const applyNextTheme=(0,theme_picker_context_1.useNextTheme)(),handleClick=e=>{onClick?.(e),!e.defaultPrevented&&applyNextTheme()};return react_1.default.createElement("button",Object.assign({},props,{onClick:handleClick}))}exports.ThemeToggler=ThemeToggler},24708:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0})},63368:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.elevationClass=void 0;const elevations_module_scss_1=__importDefault(__webpack_require__(64028));__exportStar(__webpack_require__(24708),exports),exports.elevationClass={low:elevations_module_scss_1.default.low,medium:elevations_module_scss_1.default.medium,high:elevations_module_scss_1.default.high,none:void 0}},54187:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0})},75210:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.elevationClass=void 0;const elevations_module_scss_1=__importDefault(__webpack_require__(78083));__exportStar(__webpack_require__(54187),exports),exports.elevationClass={low:elevations_module_scss_1.default.low,medium:elevations_module_scss_1.default.medium,high:elevations_module_scss_1.default.high,none:void 0}},69725:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.roundnessClass=void 0;const roundness_module_scss_1=__importDefault(__webpack_require__(77500));__exportStar(__webpack_require__(71760),exports),exports.roundnessClass={circle:roundness_module_scss_1.default.circle,default:roundness_module_scss_1.default.default,small:roundness_module_scss_1.default.small,medium:roundness_module_scss_1.default.medium,sharp:roundness_module_scss_1.default.sharp}},71760:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0})},78676:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DotsLoader=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),dots_loader_module_scss_1=__importDefault(__webpack_require__(87408));function DotsLoader(_a){var{className}=_a,rest=__rest(_a,["className"]);return react_1.default.createElement("span",Object.assign({},rest,{className:classnames_1.default(className,dots_loader_module_scss_1.default.dotsLoader)}),react_1.default.createElement("span",null,"\u25CF"),react_1.default.createElement("span",null,"\u25CF"),react_1.default.createElement("span",null,"\u25CF"))}exports.DotsLoader=DotsLoader},62656:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(78676),exports)},33472:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.BaseIcon=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754));function BaseIcon(_a){var{of:iconName,className}=_a,rest=__rest(_a,["of","className"]);return react_1.default.createElement("span",Object.assign({"data-bit-id":"teambit.base-ui/elements/icon",className:classnames_1.default(iconName,className)},rest))}exports.BaseIcon=BaseIcon},34211:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(33472),exports)},17905:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickOutside=void 0;const react_1=__webpack_require__(59496);class ClickOutside extends react_1.Component{constructor(){super(...arguments);this.listener=event=>{const{targetRef,handler}=this.props,element=event.target;!targetRef.current||!element||targetRef.current.contains(element)||handler(event)}}componentDidMount(){this.props.enabled&&this.enable()}componentWillUnmount(){this.disable()}componentDidUpdate(prevProps){const nextProps=this.props;prevProps.enabled!==nextProps.enabled&&(nextProps.enabled?this.enable():this.disable())}enable(){document.addEventListener("mousedown",this.listener),document.addEventListener("touchstart",this.listener)}disable(){document.removeEventListener("mousedown",this.listener),document.removeEventListener("touchstart",this.listener)}render(){return null}}exports.ClickOutside=ClickOutside,ClickOutside.defaultProps={enabled:!0}},91546:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=exports.ClickOutside=void 0;var click_outside_1=__webpack_require__(17905);Object.defineProperty(exports,"ClickOutside",{enumerable:!0,get:function(){return click_outside_1.ClickOutside}});var use_click_outside_1=__webpack_require__(20469);Object.defineProperty(exports,"useClickOutside",{enumerable:!0,get:function(){return use_click_outside_1.useClickOutside}})},20469:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=void 0;const react_1=__webpack_require__(59496);function useClickOutside(ref,handler,enabled=!0){react_1.useEffect(()=>{const listener=event=>{const element=event.target;!ref.current||!element||ref.current.contains(element)||handler(event)};return enabled&&(document.addEventListener("mousedown",listener),document.addEventListener("touchstart",listener)),()=>{document.removeEventListener("mousedown",listener),document.removeEventListener("touchstart",listener)}},[ref,handler,enabled])}exports.useClickOutside=useClickOutside},54841:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClickOutside=void 0;const react_1=__webpack_require__(59496);class ClickOutside extends react_1.Component{constructor(){super(...arguments);this.listener=event=>{const{targetRef,handler}=this.props,element=event.target;!targetRef.current||!element||targetRef.current.contains(element)||handler(event)}}componentDidMount(){this.props.enabled&&this.enable()}componentWillUnmount(){this.disable()}componentDidUpdate(prevProps){const nextProps=this.props;prevProps.enabled!==nextProps.enabled&&(nextProps.enabled?this.enable():this.disable())}enable(){document.addEventListener("mousedown",this.listener),document.addEventListener("touchstart",this.listener)}disable(){document.removeEventListener("mousedown",this.listener),document.removeEventListener("touchstart",this.listener)}render(){return null}}exports.ClickOutside=ClickOutside,ClickOutside.defaultProps={enabled:!0}},31354:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=exports.ClickOutside=void 0;var click_outside_1=__webpack_require__(54841);Object.defineProperty(exports,"ClickOutside",{enumerable:!0,get:function(){return click_outside_1.ClickOutside}});var use_click_outside_1=__webpack_require__(14031);Object.defineProperty(exports,"useClickOutside",{enumerable:!0,get:function(){return use_click_outside_1.useClickOutside}})},14031:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useClickOutside=void 0;const react_1=__webpack_require__(59496);function useClickOutside(ref,handler,enabled=!0){(0,react_1.useEffect)(()=>{const listener=event=>{const element=event.target;!ref.current||!element||ref.current.contains(element)||handler(event)};return enabled&&(document.addEventListener("mousedown",listener),document.addEventListener("touchstart",listener)),()=>{document.removeEventListener("mousedown",listener),document.removeEventListener("touchstart",listener)}},[ref,handler,enabled])}exports.useClickOutside=useClickOutside},21126:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),button_module_scss_1=__importDefault(__webpack_require__(9157)),base_ui_elements_dots_loader_1=__webpack_require__(62656);class Button extends react_1.Component{constructor(){super(...arguments);this.state={isLoading:!1},this.activePromises=new Set,this.unmounted=!1,this.handleClick=event=>{const{onClick}=this.props;if(!onClick)return;this.setState({isLoading:!0});const promise=Promise.resolve(onClick.call(this,event)).catch(()=>{});this.activePromises.add(promise),promise.then(()=>this.handleResolve(promise))}}componentWillUnmount(){this.unmounted=!0,this.activePromises=new Set}handleResolve(p){this.unmounted||(this.activePromises.delete(p),this.activePromises.size===0&&this.setState({isLoading:!1}))}render(){const _a=this.props,{onClick,className,children,loader,loading,disabled,activeWhenLoading=!1}=_a,rest=__rest(_a,["onClick","className","children","loader","loading","disabled","activeWhenLoading"]),isLoading=loading!==void 0&&loading||this.state.isLoading,content=isLoading?loader:children,disabledByLoading=isLoading&&!activeWhenLoading;return react_1.default.createElement("button",Object.assign({"data-bit-id":"teambit.base-ui/input/button"},rest,{disabled:disabled||disabledByLoading,onClick:this.handleClick,className:(0,classnames_1.default)(className,button_module_scss_1.default.vanillaButton)}),content)}}exports.default=Button,Button.defaultProps={loader:react_1.default.createElement(base_ui_elements_dots_loader_1.DotsLoader,null),loading:!1}},22319:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var button_1=__webpack_require__(21126);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(button_1).default}}),__exportStar(__webpack_require__(21126),exports)},25105:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Error=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),error_module_scss_1=__importDefault(__webpack_require__(48730));function Error2(props){const{className,children}=props,rest=__rest(props,["className","children"]);return children?react_1.default.createElement("div",Object.assign({className:classnames_1.default(error_module_scss_1.default.error,className)},rest),children):null}exports.Error=Error2},75006:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(25105),exports)},77338:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.colGridXl=exports.colGridLg=exports.colGridL=exports.colGridMd=exports.colGridSm=exports.colGridXs=exports.colGrid=void 0;const grid_template_module_scss_1=__importDefault(__webpack_require__(49005));exports.colGrid=makePreset("all"),exports.colGridXs=makePreset("xs"),exports.colGridSm=makePreset("sm"),exports.colGridMd=makePreset("md"),exports.colGridL=makePreset("l"),exports.colGridLg=makePreset("lg"),exports.colGridXl=makePreset("xl");function makePreset(breakPoints){const obj={};for(var i=1;i<=12;i++)obj[i]=grid_template_module_scss_1.default[`colTemplate--${breakPoints}-${i}`];return obj}},66386:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Grid=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),grid_module_scss_1=__importDefault(__webpack_require__(5082)),grid_template_1=__webpack_require__(77338);class Grid extends react_1.PureComponent{render(){const _a=this.props,{className,col,colL,colLg,colMd,colSm,colXl,colXs}=_a,rest=__rest(_a,["className","col","colL","colLg","colMd","colSm","colXl","colXs"]),classes=[className,grid_module_scss_1.default.gridContainer];return col!==void 0&&classes.push(grid_template_1.colGrid[col]),colL!==void 0&&classes.push(grid_template_1.colGridL[colL]),colLg!==void 0&&classes.push(grid_template_1.colGridLg[colLg]),colMd!==void 0&&classes.push(grid_template_1.colGridMd[colMd]),colSm!==void 0&&classes.push(grid_template_1.colGridSm[colSm]),colXl!==void 0&&classes.push(grid_template_1.colGridXl[colXl]),colXs!==void 0&&classes.push(grid_template_1.colGridXs[colXs]),react_1.default.createElement("div",Object.assign({"data-bit-id":"teambit.base-ui/layout/grid-component"},rest,{className:(0,classnames_1.default)(...classes)}))}}exports.Grid=Grid},95420:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.r=void 0;var grid_1=__webpack_require__(66386);Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return grid_1.Grid}})},68459:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.textColumn=exports.wideColumn=exports.centerColumn=void 0;const page_frame_module_scss_1=__importDefault(__webpack_require__(91560));exports.centerColumn=page_frame_module_scss_1.default.centerColumn,exports.wideColumn=page_frame_module_scss_1.default.wideColumn,exports.textColumn=page_frame_module_scss_1.default.textColumn},20298:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WordSkeleton=exports.LineSkeleton=exports.CircleSkeleton=exports.BlockSkeleton=exports.Skeleton=void 0;var skeleton_1=__webpack_require__(4267);Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:function(){return skeleton_1.Skeleton}}),Object.defineProperty(exports,"BlockSkeleton",{enumerable:!0,get:function(){return skeleton_1.BlockSkeleton}}),Object.defineProperty(exports,"CircleSkeleton",{enumerable:!0,get:function(){return skeleton_1.CircleSkeleton}}),Object.defineProperty(exports,"LineSkeleton",{enumerable:!0,get:function(){return skeleton_1.LineSkeleton}}),Object.defineProperty(exports,"WordSkeleton",{enumerable:!0,get:function(){return skeleton_1.WordSkeleton}})},4267:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.title=exports.BlockSkeleton=exports.CircleSkeleton=exports.LineSkeleton=exports.WordSkeleton=exports.Skeleton=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),skeleton_module_scss_1=__importDefault(__webpack_require__(70654)),skeleton_design_module_scss_1=__importDefault(__webpack_require__(73908)),NBSP="\xA0";function Skeleton(_a){var{designClass=skeleton_design_module_scss_1.default.skeleton,className}=_a,rest=__rest(_a,["designClass","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.skeleton,designClass,className)}))}exports.Skeleton=Skeleton;function WordSkeleton(_a){var{length=5,designClass=skeleton_design_module_scss_1.default.word,className,style}=_a,rest=__rest(_a,["length","designClass","className","style"]);return react_1.default.createElement("span",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.word,className,designClass),style:Object.assign({},style)}),react_1.default.createElement("span",null,Array.from({length}).map(()=>NBSP)))}exports.WordSkeleton=WordSkeleton;function LineSkeleton(_a){var{width,count=1,designClass=skeleton_design_module_scss_1.default.line,className,style}=_a,rest=__rest(_a,["width","count","designClass","className","style"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.line,designClass,className),style:Object.assign({width},style)}),Array.from({length:count}).map((x,index)=>react_1.default.createElement("div",{key:index},NBSP)))}exports.LineSkeleton=LineSkeleton;function CircleSkeleton(_a){var{size=2,designClass=skeleton_design_module_scss_1.default.circle,className,style}=_a,rest=__rest(_a,["size","designClass","className","style"]);return react_1.default.createElement("span",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.circle,className,designClass),style:Object.assign({height:`${size}em`,width:`${size}em`,lineHeight:size},style)}),NBSP)}exports.CircleSkeleton=CircleSkeleton;function BlockSkeleton(_a){var{lines=5,designClass=skeleton_design_module_scss_1.default.block,className,style}=_a,rest=__rest(_a,["lines","designClass","className","style"]);return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(skeleton_module_scss_1.default.block,designClass,className),style:Object.assign({height:`${lines}em`},style)}))}exports.BlockSkeleton=BlockSkeleton;function title(){return react_1.default.createElement("div",{style:{marginBottom:"1em"}},react_1.default.createElement(WordSkeleton,{style:{fontSize:18}}))}exports.title=title},18669:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;const url_parse_1=__importDefault(__webpack_require__(52296));function compareUrl(baseUrl,toMatchUrl,{exact,strict}={}){if(baseUrl===toMatchUrl)return!0;strict||(baseUrl=baseUrl.replace(/\/(?=[?#]|$)/,""),toMatchUrl=toMatchUrl.replace(/\/(?=[?#]|$)/,""));const base=(0,url_parse_1.default)(baseUrl),match=(0,url_parse_1.default)(toMatchUrl),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}exports.compareUrl=compareUrl;function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.query||isSubObject(match.query,base.query))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.query||isSubObject(base.query,match.query))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function isSubObject(source,target){return Object.keys(source).every(key=>source[key]===target[key])}},50194:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.compareUrl=void 0;var compare_url_1=__webpack_require__(18669);Object.defineProperty(exports,"compareUrl",{enumerable:!0,get:function(){return compare_url_1.compareUrl}})},15764:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.flexCenter=void 0;const flex_center_module_scss_1=__importDefault(__webpack_require__(66921));exports.flexCenter=flex_center_module_scss_1.default.flexCenter},84399:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Containee=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_create_ref_1=__importDefault(__webpack_require__(32398)),abs_container_module_scss_1=__importDefault(__webpack_require__(77327)),positions_module_scss_1=__importDefault(__webpack_require__(6780)),displacement_module_scss_1=__importDefault(__webpack_require__(64377));class Containee extends react_1.Component{constructor(){super(...arguments);this.ref=react_create_ref_1.default()}render(){const _a=this.props,{className,position="bottom"}=_a,rest=__rest(_a,["className","position"]),positionClass=positions_module_scss_1.default[position],displacement=displacement_module_scss_1.default.displacement;return react_1.default.createElement("div",Object.assign({ref:this.ref,className:classnames_1.default(abs_container_module_scss_1.default.containee,displacement,positionClass,className),"data-position":position},rest))}}exports.Containee=Containee},67904:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(84399),exports)},60499:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Container=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),abs_container_module_scss_1=__importDefault(__webpack_require__(77327));exports.Container=react_1.forwardRef(function(_a,ref){var{className,open}=_a,rest=__rest(_a,["className","open"]);return react_1.default.createElement("div",Object.assign({ref,className:classnames_1.default(abs_container_module_scss_1.default.container,className),"data-open":open},rest))})},13303:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(60499),exports)},67737:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.containeeClass=exports.containerClass=void 0;const abs_container_module_scss_1=__importDefault(__webpack_require__(77327));__exportStar(__webpack_require__(67904),exports),__exportStar(__webpack_require__(13303),exports),exports.containerClass=abs_container_module_scss_1.default.container,exports.containeeClass=abs_container_module_scss_1.default.containee},77787:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Containee=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),react_create_ref_1=__importDefault(__webpack_require__(32398)),abs_container_module_scss_1=__importDefault(__webpack_require__(59563)),positions_module_scss_1=__importDefault(__webpack_require__(70489)),displacement_module_scss_1=__importDefault(__webpack_require__(59257));class Containee extends react_1.Component{constructor(){super(...arguments);this.ref=react_create_ref_1.default()}render(){const _a=this.props,{className,position="bottom"}=_a,rest=__rest(_a,["className","position"]),positionClass=positions_module_scss_1.default[position],displacement=displacement_module_scss_1.default.displacement;return react_1.default.createElement("div",Object.assign({ref:this.ref,className:classnames_1.default(abs_container_module_scss_1.default.containee,displacement,positionClass,className),"data-position":position},rest))}}exports.Containee=Containee},72822:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(77787),exports)},79494:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Container=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),abs_container_module_scss_1=__importDefault(__webpack_require__(59563));function Container(_a){var{className,open,margin,indent,forwardRef,style}=_a,rest=__rest(_a,["className","open","margin","indent","forwardRef","style"]);return react_1.default.createElement("div",Object.assign({ref:forwardRef,className:classnames_1.default(abs_container_module_scss_1.default.container,className),"data-open":open,style:addDisplacement(margin,indent,style)},rest))}exports.Container=Container;function addDisplacement(margin,indent,baseStyles){if(!margin&&!indent)return baseStyles;const displacement={"--bit-drawer-margin":pixalize(margin),"--bit-drawer-indent":pixalize(indent)};return Object.assign(Object.assign({},baseStyles),displacement)}function pixalize(value){return typeof value=="number"?`${value}px`:value}},21048:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(79494),exports)},63146:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.containeeClass=exports.containerClass=void 0;const abs_container_module_scss_1=__importDefault(__webpack_require__(59563));__exportStar(__webpack_require__(72822),exports),__exportStar(__webpack_require__(21048),exports),exports.containerClass=abs_container_module_scss_1.default.container,exports.containeeClass=abs_container_module_scss_1.default.containee},84733:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.backgrounds=void 0;const background_module_scss_1=__importDefault(__webpack_require__(72770));exports.backgrounds={bedrock:background_module_scss_1.default.bedrock,base:background_module_scss_1.default.base,layer:background_module_scss_1.default.layer,crust:background_module_scss_1.default.crust,topping:background_module_scss_1.default.topping,dent:background_module_scss_1.default.dent}},79300:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.backgrounds=void 0;const background_module_scss_1=__importDefault(__webpack_require__(69447));exports.backgrounds={bedrock:background_module_scss_1.default.bedrock,base:background_module_scss_1.default.base,layer:background_module_scss_1.default.layer,crust:background_module_scss_1.default.crust,topping:background_module_scss_1.default.topping,dent:background_module_scss_1.default.dent}},75882:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Card=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),card_module_scss_1=__importDefault(__webpack_require__(99518)),base_ui_css_components_elevation_1=__webpack_require__(63368),base_ui_css_components_roundness_1=__webpack_require__(69725),base_ui_surfaces_background_1=__webpack_require__(84733);function Card(_a){var{className,elevation="low",roundness="default"}=_a,rest=__rest(_a,["className","elevation","roundness"]);return react_1.default.createElement("div",Object.assign({"data-bit-id":"teambit.base-ui/surfaces/card",className:classnames_1.default(card_module_scss_1.default.card,base_ui_surfaces_background_1.backgrounds.layer,base_ui_css_components_elevation_1.elevationClass[elevation],base_ui_css_components_roundness_1.roundnessClass[roundness],className)},rest))}exports.Card=Card,Card.defaultProps={elevation:"low",roundness:"default"}},19537:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(75882),exports)},59339:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultPlaceholder=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),drawer_module_scss_1=__importDefault(__webpack_require__(48122));function DefaultPlaceholder(props){return react_1.default.createElement("div",Object.assign({},props,{className:classnames_1.default(props.className,drawer_module_scss_1.default.placeholder)}))}exports.DefaultPlaceholder=DefaultPlaceholder},40953:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Drawer=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_surfaces_abs_container_1=__webpack_require__(67737),base_ui_hook_use_click_outside_1=__webpack_require__(91546),react_create_ref_1=__importDefault(__webpack_require__(32398)),default_placeholder_1=__webpack_require__(59339);class Drawer extends react_1.Component{constructor(){super(...arguments);this.state={isOpen:this.props.open||!1},this.ref=react_create_ref_1.default(),this.toggle=evt=>{const{isOpen}=this.state,nextOpen=!isOpen;this.isControlled||this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.close=evt=>{const{isOpen}=this.state,nextOpen=!1;!this.isControlled&&isOpen&&this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.open=evt=>{const{isOpen}=this.state,nextOpen=!0;!this.isControlled&&!isOpen&&this.setState({isOpen:!0}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.handlePlaceholderClick=e=>{this.props.onPlaceholderToggle&&this.props.onPlaceholderToggle(e),e.defaultPrevented||this.props.clickPlaceholderToggles&&this.toggle(e)},this.handleContainerClick=e=>{this.props.clickToggles&&this.toggle(e),this.props.onClick&&this.props.onClick(e)},this.handleClickOutside=e=>{this.props.onClickOutside&&this.props.onClickOutside(e),e.defaultPrevented||this.props.clickOutside&&this.close()},this.handleLeaveContainer=e=>{this.props.onMouseLeave&&this.props.onMouseLeave(e),e.defaultPrevented||this.props.hoverToOpen&&this.close(e)},this.handleEnterContainer=e=>{this.props.onMouseEnter&&this.props.onMouseEnter(e),e.defaultPrevented||this.props.hoverToOpen&&this.open(e)}}componentWillReceiveProps(nextProps){this.props.open!==nextProps.open&&nextProps.open!==void 0&&this.setState({isOpen:nextProps.open})}get isControlled(){return this.props.open!==void 0}render(){const _a=this.props,{placeholder,children,PlaceholderComponent=default_placeholder_1.DefaultPlaceholder,clickOutside,onMouseEnter,onMouseLeave,open,hoverToOpen,clickPlaceholderToggles,clickToggles,onChange,onPlaceholderToggle,onContainerToggle,onContaineeToggle,onClickOutside}=_a,rest=__rest(_a,["placeholder","children","PlaceholderComponent","clickOutside","onMouseEnter","onMouseLeave","open","hoverToOpen","clickPlaceholderToggles","clickToggles","onChange","onPlaceholderToggle","onContainerToggle","onContaineeToggle","onClickOutside"]),{isOpen}=this.state;return react_1.default.createElement(base_ui_surfaces_abs_container_1.Container,Object.assign({},rest,{ref:this.ref,open:isOpen,onMouseLeave:this.handleLeaveContainer,onMouseEnter:this.handleEnterContainer,onClick:this.handleContainerClick}),children,react_1.default.createElement(PlaceholderComponent,{onClick:this.handlePlaceholderClick},placeholder),react_1.default.createElement(base_ui_hook_use_click_outside_1.ClickOutside,{targetRef:this.ref,enabled:!!clickOutside&&isOpen,handler:this.handleClickOutside}))}}exports.Drawer=Drawer,Drawer.defaultProps={PlaceholderComponent:default_placeholder_1.DefaultPlaceholder,clickPlaceholderToggles:!0,clickOutside:!0,clickToggles:!0}},914:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(40953),exports)},42527:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultPlaceholder=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),drawer_module_scss_1=__importDefault(__webpack_require__(44645));function DefaultPlaceholder(props){return react_1.default.createElement("div",Object.assign({},props,{className:(0,classnames_1.default)(props.className,drawer_module_scss_1.default.placeholder)}))}exports.DefaultPlaceholder=DefaultPlaceholder},9931:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Drawer=void 0;const react_1=__importStar(__webpack_require__(59496)),base_ui_surfaces_abs_container_1=__webpack_require__(63146),base_ui_hook_use_click_outside_1=__webpack_require__(31354),react_create_ref_1=__importDefault(__webpack_require__(32398)),default_placeholder_1=__webpack_require__(42527);class Drawer extends react_1.Component{constructor(){super(...arguments);this.state={isOpen:this.props.open||!1},this.ref=(0,react_create_ref_1.default)(),this.toggle=evt=>{const{isOpen}=this.state,nextOpen=!isOpen;this.isControlled||this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.close=evt=>{const{isOpen}=this.state,nextOpen=!1;!this.isControlled&&isOpen&&this.setState({isOpen:nextOpen}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.open=evt=>{const{isOpen}=this.state,nextOpen=!0;!this.isControlled&&!isOpen&&this.setState({isOpen:!0}),this.props.onChange&&this.props.onChange(evt,nextOpen)},this.handlePlaceholderClick=e=>{this.props.onPlaceholderToggle&&this.props.onPlaceholderToggle(e),e.defaultPrevented||this.props.clickPlaceholderToggles&&this.toggle(e)},this.handleContainerClick=e=>{this.props.clickToggles&&this.toggle(e),this.props.onClick&&this.props.onClick(e)},this.handleClickOutside=e=>{this.props.onClickOutside&&this.props.onClickOutside(e),e.defaultPrevented||this.props.clickOutside&&this.close()},this.handleLeaveContainer=e=>{this.props.onMouseLeave&&this.props.onMouseLeave(e),e.defaultPrevented||this.props.hoverToOpen&&this.close(e)},this.handleEnterContainer=e=>{this.props.onMouseEnter&&this.props.onMouseEnter(e),e.defaultPrevented||this.props.hoverToOpen&&this.open(e)}}componentWillReceiveProps(nextProps){this.props.open!==nextProps.open&&nextProps.open!==void 0&&this.setState({isOpen:nextProps.open})}get isControlled(){return this.props.open!==void 0}render(){const _a=this.props,{placeholderContent="",children,clickOutside,onMouseEnter,onMouseLeave,open,hoverToOpen,clickPlaceholderToggles,clickToggles,onChange,onPlaceholderToggle,onContainerToggle,onContaineeToggle,onClickOutside}=_a,rest=__rest(_a,["placeholderContent","children","clickOutside","onMouseEnter","onMouseLeave","open","hoverToOpen","clickPlaceholderToggles","clickToggles","onChange","onPlaceholderToggle","onContainerToggle","onContaineeToggle","onClickOutside"]),{isOpen}=this.state;return react_1.default.createElement(base_ui_surfaces_abs_container_1.Container,Object.assign({},rest,{forwardRef:this.ref,open:isOpen,onMouseLeave:this.handleLeaveContainer,onMouseEnter:this.handleEnterContainer,onClick:this.handleContainerClick}),children,react_1.default.createElement(default_placeholder_1.DefaultPlaceholder,{onClick:this.handlePlaceholderClick},placeholderContent),react_1.default.createElement(base_ui_hook_use_click_outside_1.ClickOutside,{targetRef:this.ref,enabled:!!clickOutside&&isOpen,handler:this.handleClickOutside}))}}exports.Drawer=Drawer,Drawer.defaultProps={clickPlaceholderToggles:!0,clickOutside:!0,clickToggles:!0}},38073:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(9931),exports)},56007:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(81154),exports)},81154:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.HoverSplitter=void 0;const base_ui_surfaces_split_pane_splitter_1=__webpack_require__(74601),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),splitter_module_scss_1=__importDefault(__webpack_require__(19315));function HoverSplitter(_a){var{children,className}=_a,rest=__rest(_a,["children","className"]);return react_1.default.createElement(base_ui_surfaces_split_pane_splitter_1.Splitter,Object.assign({},rest,{className:classnames_1.default(splitter_module_scss_1.default.hoverSplitter,className)}),react_1.default.createElement("div",{className:splitter_module_scss_1.default.highlighter}),children)}exports.HoverSplitter=HoverSplitter},20949:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(14783),exports)},14783:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default_layout=exports.layoutToggleMap=exports.Layout=exports.LayoutFeatures=void 0;var LayoutFeatures;(function(LayoutFeatures2){LayoutFeatures2.row="row",LayoutFeatures2.column="column",LayoutFeatures2.reverse="reverse",LayoutFeatures2.first="first",LayoutFeatures2.last="last"})(LayoutFeatures=exports.LayoutFeatures||(exports.LayoutFeatures={}));var Layout;(function(Layout2){Layout2.row="row",Layout2.rowReverse="row reverse",Layout2.column="column",Layout2.columnReverse="column reverse",Layout2.top="column first",Layout2.bottom="column last",Layout2.topReverse="column reverse first",Layout2.bottomReverse="column reverse last ",Layout2.left="row first",Layout2.right="row last",Layout2.leftReverse="row reverse first",Layout2.rightReverse="row reverse last"})(Layout=exports.Layout||(exports.Layout={})),exports.layoutToggleMap={[Layout.columnReverse]:Layout.row,[Layout.row]:Layout.columnReverse},exports.default_layout=Layout.row},16433:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(78250),exports)},78250:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Pane=void 0;const base_ui_surfaces_split_pane_layout_1=__webpack_require__(20949),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),pane_module_scss_1=__importDefault(__webpack_require__(16324));function Pane(_a){var{size,style,layout,className}=_a,rest=__rest(_a,["size","style","layout","className"]);const runtimeStyles={},sizeProp=layoutToStyle(layout);return sizeProp&&size!==void 0&&(runtimeStyles[sizeProp]=size,runtimeStyles.flexShrink=0),size===void 0&&(runtimeStyles.flexGrow=1,runtimeStyles.flexBasis=0),react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(pane_module_scss_1.default.pane,className),style:Object.assign(Object.assign({},style),runtimeStyles)}))}exports.Pane=Pane;function layoutToStyle(layout){if(!!layout){if(layout.includes(base_ui_surfaces_split_pane_layout_1.LayoutFeatures.column))return"height";if(layout.includes(base_ui_surfaces_split_pane_layout_1.LayoutFeatures.row))return"width"}}},49582:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcSplit=void 0;const base_ui_surfaces_split_pane_layout_1=__webpack_require__(20949);function calcSplit(snapshot,layout,defaultSize){let splitSize=calcPixels(snapshot,layout,defaultSize);return layout.includes(base_ui_surfaces_split_pane_layout_1.LayoutFeatures.reverse)&&splitSize.reverse(),(splitSize[0]===void 0||splitSize[1]===void 0)&&(splitSize=autoCalcComplementary(splitSize)),splitSize}exports.calcSplit=calcSplit;function autoCalcComplementary([a,b]){return a===void 0&&b===void 0?[void 0,void 0]:b===void 0?[a,calcComplemetSize(a)]:a===void 0?[calcComplemetSize(b),b]:[a,b]}function calcComplemetSize(size){if(size!==void 0){if(typeof size=="number")return`calc(100% - ${size}px)`;if(size.endsWith("px"))return`calc(100% - ${size})`;if(size.endsWith("%")){const sizeAsNumber=+size.replace("%","");return Number.isNaN(sizeAsNumber)?void 0:`${100-sizeAsNumber}%`}if(!Number.isNaN(+size))return`calc(100% - ${size}px)`}}function calcPixels(snapshot,layout,defaultSize){const{row,column,first,last}=base_ui_surfaces_split_pane_layout_1.LayoutFeatures,features=new Set(layout.split(" "));return features.has(first)?["100%","0%"]:features.has(last)?["0%","100%"]:features.has(row)?snapshot?.x===void 0?calcDefaultSize(defaultSize):typeof defaultSize=="string"&&defaultSize.endsWith("%")?[`${100*snapshot.x/snapshot.width}%`,void 0]:[snapshot.x,void 0]:features.has(column)?snapshot?.y===void 0?calcDefaultSize(defaultSize):typeof defaultSize=="string"&&defaultSize.endsWith("%")?[`${100*snapshot.y/snapshot.height}%`,void 0]:[snapshot.y,void 0]:[void 0,void 0]}function calcDefaultSize(defaultSize){return defaultSize?typeof defaultSize=="number"&&defaultSize<0?[void 0,-defaultSize]:typeof defaultSize=="string"&&defaultSize.startsWith("-")?[void 0,defaultSize.substring(1)]:[defaultSize,void 0]:[void 0,void 0]}},4792:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SplitPane=void 0,__exportStar(__webpack_require__(20949),exports),__exportStar(__webpack_require__(16433),exports),__exportStar(__webpack_require__(74601),exports);var split_pane_1=__webpack_require__(5283);Object.defineProperty(exports,"SplitPane",{enumerable:!0,get:function(){return split_pane_1.SplitPane}})},22808:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.limit=void 0;function limit(value,min,max){return min!==void 0&&value<min?min:max!==void 0&&value>max?max:value}exports.limit=limit},5283:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SplitPane=void 0;const base_ui_surfaces_split_pane_layout_1=__webpack_require__(20949),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),calc_split_1=__webpack_require__(49582),split_pane_module_scss_1=__importDefault(__webpack_require__(25309)),use_drag_tracker_1=__webpack_require__(48550);function SplitPane(_a){var{layout=base_ui_surfaces_split_pane_layout_1.Layout.column,size="38%",className,children}=_a,rest=__rest(_a,["layout","size","className","children"]);const containerRef=react_1.default.createRef(),[snapshot,isDragging,setDragging]=use_drag_tracker_1.useDragTracker(containerRef),[A,B]=calc_split_1.calcSplit(snapshot,layout,size),[left,splitter,right]=children,leftWithSize=react_1.default.cloneElement(left,{size:A,layout}),rightWithSize=react_1.default.cloneElement(right,{size:B,layout}),splitterWithDrag=react_1.default.cloneElement(splitter,{onDragging:setDragging,isDragging});return react_1.default.createElement("div",Object.assign({},rest,{ref:containerRef,className:classnames_1.default(isDragging&&split_pane_module_scss_1.default.isDragging,split_pane_module_scss_1.default.splitPane,className),"data-is-dragging":isDragging,"data-split-layout":layout}),leftWithSize,splitterWithDrag,rightWithSize)}exports.SplitPane=SplitPane},32209:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toRelativePosition=void 0;const limit_1=__webpack_require__(22808);function toRelativePosition({clientX,clientY,element}){const boundingRect=element.getBoundingClientRect(),{left,top,width=1,height=1}=boundingRect,x=limit_1.limit(clientX-left,0,width),y=limit_1.limit(clientY-top,0,height);return{x,y,width,height}}exports.toRelativePosition=toRelativePosition},48550:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDragTracker=void 0;const react_1=__webpack_require__(59496),to_relative_position_1=__webpack_require__(32209),use_pointer_drag_1=__webpack_require__(65411);function useDragTracker(containerRef){const[snapshot,setSnapshot]=react_1.useState(void 0),handleDrag=react_1.useCallback(({clientX,clientY})=>{if(!containerRef.current)return;const position=to_relative_position_1.toRelativePosition({clientX,clientY,element:containerRef.current});setSnapshot(position)},[containerRef]),[isDragging,setDragging]=use_pointer_drag_1.useDragListener(handleDrag);return[snapshot,isDragging,setDragging]}exports.useDragTracker=useDragTracker},65411:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDragListener=void 0;const react_1=__webpack_require__(59496);function useDragListener(onDrag){const draggingState=react_1.useState(!1),[isDragging,setDragging]=draggingState;return react_1.useEffect(()=>{const handleTouchMove=e=>{const{touches}=e,mainTouch=touches[0];onDrag(mainTouch)},handleMouseMove=e=>{onDrag(e)},handleDragEnded=()=>{setDragging(!1)},handleMouseEnter=e=>{e&&e.buttons===1||handleDragEnded()};return isDragging&&(document.addEventListener("mousemove",handleMouseMove),document.addEventListener("mouseup",handleDragEnded),document.addEventListener("mouseenter",handleMouseEnter),document.addEventListener("touchend",handleDragEnded),document.addEventListener("touchmove",handleTouchMove),document.addEventListener("touchcancel",handleDragEnded)),()=>{document.removeEventListener("mousemove",handleMouseMove),document.removeEventListener("mouseup",handleDragEnded),document.removeEventListener("mouseenter",handleMouseEnter),document.removeEventListener("touchend",handleDragEnded),document.removeEventListener("touchmove",handleTouchMove),document.removeEventListener("touchcancel",handleDragEnded)}},[isDragging,onDrag]),draggingState}exports.useDragListener=useDragListener},74601:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(14630),exports)},14630:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Splitter=void 0;const classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),splitter_module_scss_1=__importDefault(__webpack_require__(69677));function Splitter(_a){var{onDragging,isDragging,className}=_a,rest=__rest(_a,["onDragging","isDragging","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(splitter_module_scss_1.default.splitter,className),onMouseDown:()=>onDragging?.(!0),onTouchStart:()=>onDragging?.(!0)}))}exports.Splitter=Splitter},20141:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;const react_1=__importDefault(__webpack_require__(59496));function Heading(props){const{element}=props,rest=__rest(props,["element"]),Element=element||"h1";return react_1.default.createElement(Element,Object.assign({"data-bit-id":"teambit.base-ui/text/heading"},rest))}exports.Heading=Heading,Heading.defaultProps={element:"h1"}},77739:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(20141),exports)},57441:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;const react_1=__importDefault(__webpack_require__(59496));function Heading(_a){var{element="h1"}=_a,rest=__rest(_a,["element"]);const Element=element;return react_1.default.createElement(Element,Object.assign({"data-bit-id":"teambit.base-ui/text/heading"},rest))}exports.Heading=Heading},18660:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Heading=void 0;var heading_1=__webpack_require__(57441);Object.defineProperty(exports,"Heading",{enumerable:!0,get:function(){return heading_1.Heading}})},925:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(37917),exports)},37917:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.mutedText=exports.MutedText=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),muted_text_module_scss_1=__importDefault(__webpack_require__(95534));function MutedText(props){return react_1.default.createElement("span",Object.assign({},props,{className:classnames_1.default(muted_text_module_scss_1.default.mutedText,props.className)}))}exports.MutedText=MutedText,exports.mutedText=muted_text_module_scss_1.default.mutedText},7954:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PossibleSizes=exports.Paragraph=void 0;var paragraph_1=__webpack_require__(65320);Object.defineProperty(exports,"Paragraph",{enumerable:!0,get:function(){return paragraph_1.Paragraph}}),Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return paragraph_1.PossibleSizes}})},65320:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Paragraph=exports.PossibleSizes=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_theme_sizes_1=__webpack_require__(62086);Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return base_ui_theme_sizes_1.PossibleSizes}});const base_ui_text_text_sizes_1=__webpack_require__(75589);function Paragraph(_a){var{className,size,element:Element}=_a,rest=__rest(_a,["className","size","element"]);return react_1.default.createElement(Element,Object.assign({className:classnames_1.default(base_ui_text_text_sizes_1.textSize[size],className),"data-bit-id":"teambit.base-ui/text/paragraph"},rest))}exports.Paragraph=Paragraph,Paragraph.defaultProps={size:"md",element:"p"}},71491:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PossibleSizes=exports.Paragraph=void 0;var paragraph_1=__webpack_require__(33909);Object.defineProperty(exports,"Paragraph",{enumerable:!0,get:function(){return paragraph_1.Paragraph}}),Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return paragraph_1.PossibleSizes}})},33909:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Paragraph=exports.PossibleSizes=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_theme_sizes_1=__webpack_require__(62086);Object.defineProperty(exports,"PossibleSizes",{enumerable:!0,get:function(){return base_ui_theme_sizes_1.PossibleSizes}});const base_ui_text_text_sizes_1=__webpack_require__(75589);function Paragraph(_a){var{className,size,element:Element}=_a,rest=__rest(_a,["className","size","element"]);return react_1.default.createElement(Element,Object.assign({className:classnames_1.default(base_ui_text_text_sizes_1.textSize[size],className),"data-bit-id":"teambit.base-ui/text/paragraph"},rest))}exports.Paragraph=Paragraph,Paragraph.defaultProps={size:"md",element:"p"}},75589:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.textSize=void 0;const text_sizes_module_scss_1=__importDefault(__webpack_require__(6428)),sizes={xxs:text_sizes_module_scss_1.default.xxs,xs:text_sizes_module_scss_1.default.xs,sm:text_sizes_module_scss_1.default.sm,md:text_sizes_module_scss_1.default.md,lg:text_sizes_module_scss_1.default.lg,xl:text_sizes_module_scss_1.default.xl,xxl:text_sizes_module_scss_1.default.xxl};exports.textSize=sizes},64899:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(45448),exports)},45448:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.themedText=exports.ThemedText=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),themed_text_module_scss_1=__importDefault(__webpack_require__(99383));function ThemedText(props){return react_1.default.createElement("span",Object.assign({},props,{className:classnames_1.default(props.className,themed_text_module_scss_1.default.themedText),"data-bit-id":"teambit.base-ui/text/themed-text"}))}exports.ThemedText=ThemedText,exports.themedText=themed_text_module_scss_1.default.themedText},63411:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.colorPalette=void 0;const accent_color_module_scss_1=__importDefault(__webpack_require__(98762));exports.colorPalette={primary:accent_color_module_scss_1.default.primary,complementary:accent_color_module_scss_1.default.complementary,neutral:accent_color_module_scss_1.default.neutral,neutralHeavy:accent_color_module_scss_1.default.emphasized,error:accent_color_module_scss_1.default.impulsive,warning:accent_color_module_scss_1.default.hungry,success:accent_color_module_scss_1.default.success,action:accent_color_module_scss_1.default.impulsive,consider:accent_color_module_scss_1.default.hungry,continue:accent_color_module_scss_1.default.success,process:accent_color_module_scss_1.default.process}},66509:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildStepPalette=void 0;const accent_color_module_scss_1=__importDefault(__webpack_require__(98762));exports.buildStepPalette={success:accent_color_module_scss_1.default.success,failure:accent_color_module_scss_1.default.impulsive,pending:accent_color_module_scss_1.default.neutral,processing:accent_color_module_scss_1.default.process,skipped:accent_color_module_scss_1.default.hungry,unknown:accent_color_module_scss_1.default.neutral,SUCCESS:accent_color_module_scss_1.default.success,FAILURE:accent_color_module_scss_1.default.impulsive,PENDING:accent_color_module_scss_1.default.neutral,PROCESSING:accent_color_module_scss_1.default.process,SKIPPED:accent_color_module_scss_1.default.hungry,UNKNOWN:accent_color_module_scss_1.default.neutral}},11796:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.buildStepPalette=exports.colorPalette=void 0;var accent_color_1=__webpack_require__(63411);Object.defineProperty(exports,"colorPalette",{enumerable:!0,get:function(){return accent_color_1.colorPalette}});var build_step_accents_1=__webpack_require__(66509);Object.defineProperty(exports,"buildStepPalette",{enumerable:!0,get:function(){return build_step_accents_1.buildStepPalette}})},58280:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.brands=void 0;const brand_definition_module_scss_1=__importDefault(__webpack_require__(89032)),{brands}=brand_definition_module_scss_1.default;exports.brands=brands},19829:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.primaryPalette=void 0;const color_definition_module_scss_1=__importDefault(__webpack_require__(43300)),{primaryPalette}=color_definition_module_scss_1.default;exports.primaryPalette=primaryPalette},12880:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.darkMode=void 0;const dark_theme_module_scss_1=__importDefault(__webpack_require__(76344));exports.darkMode=dark_theme_module_scss_1.default.darkMod},23895:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.bookFont=void 0;const book_font_module_scss_1=__importDefault(__webpack_require__(34491)),{bookFont}=book_font_module_scss_1.default;exports.bookFont=bookFont},31165:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(30120),exports)},30120:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Roboto=void 0;const react_1=__importDefault(__webpack_require__(59496)),Roboto=()=>react_1.default.createElement("link",{href:"https://fonts.googleapis.com/css?family=Roboto+Mono",rel:"stylesheet"});exports.Roboto=Roboto},50662:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.headingMargins=void 0;const heading_margin_definition_module_scss_1=__importDefault(__webpack_require__(99855)),{headingMargins}=heading_margin_definition_module_scss_1.default;exports.headingMargins=headingMargins},6722:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.shadowTheme=void 0;const shadow_definition_module_scss_1=__importDefault(__webpack_require__(72192)),{shadowTheme}=shadow_definition_module_scss_1.default;exports.shadowTheme=shadowTheme},65548:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.textFontSize=exports.headingFontSize=void 0;const size_definition_module_scss_1=__importDefault(__webpack_require__(50538)),{headingFontSize,textFontSize}=size_definition_module_scss_1.default;exports.headingFontSize=headingFontSize,exports.textFontSize=textFontSize},62086:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PossibleSizes=void 0;var PossibleSizes;(function(PossibleSizes2){PossibleSizes2.xxs="xxs",PossibleSizes2.xs="xs",PossibleSizes2.sm="sm",PossibleSizes2.md="md",PossibleSizes2.lg="lg",PossibleSizes2.xl="xl",PossibleSizes2.xxl="xxl"})(PossibleSizes=exports.PossibleSizes||(exports.PossibleSizes={}))},625:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Theme=void 0;var theme_provider_1=__webpack_require__(710);Object.defineProperty(exports,"Theme",{enumerable:!0,get:function(){return theme_provider_1.Theme}})},710:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Theme=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_theme_size_definition_1=__webpack_require__(65548),base_ui_theme_shadow_definition_1=__webpack_require__(6722),base_ui_theme_color_definition_1=__webpack_require__(19829),base_ui_theme_brand_definition_1=__webpack_require__(58280),base_ui_theme_heading_margin_definition_1=__webpack_require__(50662),base_ui_theme_fonts_book_1=__webpack_require__(23895),texts_module_scss_1=__importDefault(__webpack_require__(32881));function Theme(props){return react_1.default.createElement("div",Object.assign({},props,{className:classnames_1.default(base_ui_theme_size_definition_1.headingFontSize,base_ui_theme_size_definition_1.textFontSize,base_ui_theme_fonts_book_1.bookFont,base_ui_theme_shadow_definition_1.shadowTheme,base_ui_theme_color_definition_1.primaryPalette,base_ui_theme_brand_definition_1.brands,base_ui_theme_heading_margin_definition_1.headingMargins,texts_module_scss_1.default.defaults,props.className)}))}exports.Theme=Theme},72149:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var time_ago_1=__webpack_require__(49651);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(time_ago_1).default}})},49651:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const javascript_time_ago_1=__importDefault(__webpack_require__(38419)),en_1=__importDefault(__webpack_require__(36192));exports.default=date=>{const now=new Date,versionDate=new Date(date);javascript_time_ago_1.default.addLocale(en_1.default);const timeAgo=new javascript_time_ago_1.default("en-EN"),diff=new Date(now.getTime()-versionDate.getTime()),res=timeAgo.format(now.getTime()-diff.getTime());return res.slice(0,2)==="a "?`${res[0].toUpperCase()}${res.slice(1)}`:res}},57419:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.BadgeSection=exports.ComponentOverview=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_layout_page_frame_1=__webpack_require__(68459),documenter_ui_heading_1=__webpack_require__(37742),documenter_ui_label_list_1=__webpack_require__(13232),documenter_ui_section_1=__webpack_require__(94761),documenter_ui_copy_box_1=__webpack_require__(754),design_ui_separator_1=__webpack_require__(12563),design_navigation_content_tabs_1=__webpack_require__(9382),documenter_ui_sub_title_1=__webpack_require__(36408),ui_foundation_ui_is_browser_1=__webpack_require__(92900),base_react_layout_row_1=__webpack_require__(90658),docs_1=__webpack_require__(84723),component_overview_module_scss_1=__importDefault(__webpack_require__(59136));function ComponentOverview(_a){var{displayName,abstract,titleBadges,labels,packageName,elementsUrl,componentDescriptor,component}=_a,rest=__rest(_a,["displayName","abstract","titleBadges","labels","packageName","elementsUrl","componentDescriptor","component"]);const componentId=component?.id,tabsComponentId=[{component:function(){return react_1.default.createElement("span",null,"Component ID")},content:react_1.default.createElement(documenter_ui_copy_box_1.CopyBox,{className:component_overview_module_scss_1.default.copyBox},componentId?componentId.toStringWithoutVersion():"")},{component:function(){return react_1.default.createElement("span",null,"Package")},content:react_1.default.createElement(documenter_ui_copy_box_1.CopyBox,{className:component_overview_module_scss_1.default.copyBox},packageName)}];let finalElementsUrl=elementsUrl;if(finalElementsUrl&&!finalElementsUrl.startsWith("http")){const origin=ui_foundation_ui_is_browser_1.isBrowser?window.location.origin:void 0;finalElementsUrl=origin&&elementsUrl?`${origin}${elementsUrl}`:void 0,finalElementsUrl&&tabsComponentId.push({component:function(){return react_1.default.createElement("span",null,"Elements url")},content:react_1.default.createElement(documenter_ui_copy_box_1.CopyBox,{className:component_overview_module_scss_1.default.copyBox},finalElementsUrl)})}return react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement("div",{className:base_ui_layout_page_frame_1.textColumn},react_1.default.createElement(base_react_layout_row_1.Row,{className:component_overview_module_scss_1.default.titleRow},react_1.default.createElement("div",{className:component_overview_module_scss_1.default.componentTitle},react_1.default.createElement(documenter_ui_heading_1.H1,{className:component_overview_module_scss_1.default.title},displayName)),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.Title,componentDescriptor,component,badges:titleBadges})),react_1.default.createElement(base_react_layout_row_1.Row,null,abstract&&react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(documenter_ui_sub_title_1.Subtitle,{className:component_overview_module_scss_1.default.subTitle},abstract),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.SubTitle,componentDescriptor,component,badges:titleBadges}))),react_1.default.createElement(base_react_layout_row_1.Row,null,react_1.default.createElement(documenter_ui_label_list_1.LabelList,null,labels),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.Labels,componentDescriptor,component,badges:titleBadges})),react_1.default.createElement(base_react_layout_row_1.Row,null,react_1.default.createElement("div",{className:component_overview_module_scss_1.default.contentTabs},react_1.default.createElement(design_navigation_content_tabs_1.ContentTabs,{priority:"folder",tabs:tabsComponentId,navClassName:component_overview_module_scss_1.default.nav,tabClassName:component_overview_module_scss_1.default.tab})),react_1.default.createElement(BadgeSection,{position:docs_1.BadgePosition.Package,componentDescriptor,component,badges:titleBadges}))),react_1.default.createElement(design_ui_separator_1.Separator,{isPresentational:!0}))}exports.ComponentOverview=ComponentOverview;function BadgeSection({badges,position,componentDescriptor,component}){var _a,_b;return react_1.default.createElement("div",{className:component_overview_module_scss_1.default.badgeContainer},(_b=(_a=badges?.filter(badge=>position===docs_1.BadgePosition.Title&&!badge.position||badge.position===position))===null||_a===void 0?void 0:_a.sort((a,b)=>a?.weight-b?.weight))===null||_b===void 0?void 0:_b.map((titleBadge,index)=>react_1.default.createElement(titleBadge.component,{key:index,componentDescriptor,legacyComponentModel:component})))}exports.BadgeSection=BadgeSection},20884:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BadgeSection=exports.ComponentOverview=void 0;var component_overview_1=__webpack_require__(57419);Object.defineProperty(exports,"ComponentOverview",{enumerable:!0,get:function(){return component_overview_1.ComponentOverview}}),Object.defineProperty(exports,"BadgeSection",{enumerable:!0,get:function(){return component_overview_1.BadgeSection}})},23087:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFetchDocs=void 0;var use_fetch_docs_1=__webpack_require__(1692);Object.defineProperty(exports,"useFetchDocs",{enumerable:!0,get:function(){return use_fetch_docs_1.useFetchDocs}})},1692:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useFetchDocs=void 0;const react_1=__webpack_require__(59496),graphql_hooks_use_query_light_1=__webpack_require__(95791),GQL_SERVER="/graphql",DOCS_QUERY=(0,graphql_hooks_use_query_light_1.gql)`
|
12
12
|
query getComponentDocs($id: String!) {
|
13
13
|
getHost {
|
14
14
|
id # for gql caching
|
@@ -301,7 +301,7 @@ ${namesToRegister.map(({variableName,uniqueLocalName})=>` reactHotLoader.regist
|
|
301
301
|
`))})}function AllLineNumbers(_ref2){var codeString=_ref2.codeString,codeStyle=_ref2.codeStyle,_ref2$containerStyle=_ref2.containerStyle,containerStyle=_ref2$containerStyle===void 0?{float:"left",paddingRight:"10px"}:_ref2$containerStyle,_ref2$numberStyle=_ref2.numberStyle,numberStyle=_ref2$numberStyle===void 0?{}:_ref2$numberStyle,startingLineNumber=_ref2.startingLineNumber;return react.createElement("code",{style:Object.assign({},codeStyle,containerStyle)},getAllLineNumbers({lines:codeString.replace(/\n$/,"").split(`
|
302
302
|
`),style:numberStyle,startingLineNumber}))}function getEmWidthOfNumber(num){var len=num.toString().length;return"".concat(len,"em")}function getInlineLineNumber(lineNumber,inlineLineNumberStyle){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(lineNumber),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:inlineLineNumberStyle},children:[{type:"text",value:lineNumber}]}}function assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber){var defaultLineNumberStyle={display:"inline-block",minWidth:getEmWidthOfNumber(largestLineNumber),paddingRight:"1em",textAlign:"right",userSelect:"none"},customLineNumberStyle=typeof lineNumberStyle=="function"?lineNumberStyle(lineNumber):lineNumberStyle,assembledStyle=(0,objectSpread.Z)({},defaultLineNumberStyle,customLineNumberStyle);return assembledStyle}function createLineElement(_ref3){var children=_ref3.children,lineNumber=_ref3.lineNumber,lineNumberStyle=_ref3.lineNumberStyle,largestLineNumber=_ref3.largestLineNumber,showInlineLineNumbers=_ref3.showInlineLineNumbers,_ref3$lineProps=_ref3.lineProps,lineProps=_ref3$lineProps===void 0?{}:_ref3$lineProps,_ref3$className=_ref3.className,className=_ref3$className===void 0?[]:_ref3$className,properties=typeof lineProps=="function"?lineProps(lineNumber):lineProps;if(properties.className=className,lineNumber&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber,largestLineNumber);children.unshift(getInlineLineNumber(lineNumber,inlineLineNumberStyle))}return{type:"element",tagName:"span",properties,children}}function flattenCodeTree(tree){for(var className=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],newTree=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i<tree.length;i++){var node=tree[i];if(node.type==="text")newTree.push(createLineElement({children:[node],className}));else if(node.children){var classNames=className.concat(node.properties.className);newTree=newTree.concat(flattenCodeTree(node.children,classNames))}}return newTree}function processLines(codeTree,wrapLines,lineProps,showLineNumbers,showInlineLineNumbers,startingLineNumber,largestLineNumber,lineNumberStyle){var _ref4,tree=flattenCodeTree(codeTree.value),newTree=[],lastLineBreakIndex=-1,index=0;function createWrappedLine(children2,lineNumber2){var className=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:children2,lineNumber:lineNumber2,lineNumberStyle,largestLineNumber,showInlineLineNumbers,lineProps,className})}function createUnwrappedLine(children2,lineNumber2){if(lineNumber2&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber2,largestLineNumber);children2.unshift(getInlineLineNumber(lineNumber2,inlineLineNumberStyle))}return children2}function createLine(children2,lineNumber2){var className=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return wrapLines||className.length>0?createWrappedLine(children2,lineNumber2,className):createUnwrappedLine(children2,lineNumber2)}for(var _loop=function(){var node=tree[index],value=node.children[0].value,newLines=getNewLines(value);if(newLines){var splitValue=value.split(`
|
303
303
|
`);splitValue.forEach(function(text,i){var lineNumber2=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,`
|
304
|
-
`)};if(i===0){var _children=tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),_line=createLine(_children,lineNumber2);newTree.push(_line)}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0];if(stringChild){var lastLineInPreviousSpan={type:"text",value:"".concat(text)},newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _children2=[newChild],_line2=createLine(_children2,lineNumber2,node.properties.className);newTree.push(_line2)}}else{var _children3=[newChild],_line3=createLine(_children3,lineNumber2,node.properties.className);newTree.push(_line3)}}),lastLineBreakIndex=index}index++};index<tree.length;)_loop();if(lastLineBreakIndex!==tree.length-1){var children=tree.slice(lastLineBreakIndex+1,tree.length);if(children&&children.length){var lineNumber=newTree.length+startingLineNumber,line=createLine(children,lineNumber);newTree.push(line)}}return wrapLines?newTree:(_ref4=[]).concat.apply(_ref4,newTree)}function defaultRenderer(_ref5){var rows=_ref5.rows,stylesheet=_ref5.stylesheet,useInlineStyles=_ref5.useInlineStyles;return rows.map(function(node,i){return createElement({node,stylesheet,useInlineStyles,key:"code-segement".concat(i)})})}function isHighlightJs(astGenerator){return astGenerator&&typeof astGenerator.highlightAuto<"u"}function getCodeTree(_ref6){var astGenerator=_ref6.astGenerator,language=_ref6.language,code=_ref6.code,defaultCodeValue=_ref6.defaultCodeValue;if(isHighlightJs(astGenerator)){var hasLanguage=checkForListedLanguage(astGenerator,language);return language==="text"?{value:defaultCodeValue,language:"text"}:hasLanguage?astGenerator.highlight(language,code):astGenerator.highlightAuto(code)}try{return language&&language!=="text"?{value:astGenerator.highlight(code,language)}:{value:defaultCodeValue}}catch{return{value:defaultCodeValue}}}function highlight(defaultAstGenerator,defaultStyle){return function(_ref7){var language=_ref7.language,children=_ref7.children,_ref7$style=_ref7.style,style=_ref7$style===void 0?defaultStyle:_ref7$style,_ref7$customStyle=_ref7.customStyle,customStyle=_ref7$customStyle===void 0?{}:_ref7$customStyle,_ref7$codeTagProps=_ref7.codeTagProps,codeTagProps=_ref7$codeTagProps===void 0?{className:language?"language-".concat(language):void 0,style:style['code[class*="language-"]']}:_ref7$codeTagProps,_ref7$useInlineStyles=_ref7.useInlineStyles,useInlineStyles=_ref7$useInlineStyles===void 0?!0:_ref7$useInlineStyles,_ref7$showLineNumbers=_ref7.showLineNumbers,showLineNumbers=_ref7$showLineNumbers===void 0?!1:_ref7$showLineNumbers,_ref7$showInlineLineN=_ref7.showInlineLineNumbers,showInlineLineNumbers=_ref7$showInlineLineN===void 0?!1:_ref7$showInlineLineN,_ref7$startingLineNum=_ref7.startingLineNumber,startingLineNumber=_ref7$startingLineNum===void 0?1:_ref7$startingLineNum,lineNumberContainerStyle=_ref7.lineNumberContainerStyle,_ref7$lineNumberStyle=_ref7.lineNumberStyle,lineNumberStyle=_ref7$lineNumberStyle===void 0?{}:_ref7$lineNumberStyle,wrapLines=_ref7.wrapLines,_ref7$lineProps=_ref7.lineProps,lineProps=_ref7$lineProps===void 0?{}:_ref7$lineProps,renderer=_ref7.renderer,_ref7$PreTag=_ref7.PreTag,PreTag=_ref7$PreTag===void 0?"pre":_ref7$PreTag,_ref7$CodeTag=_ref7.CodeTag,CodeTag=_ref7$CodeTag===void 0?"code":_ref7$CodeTag,_ref7$code=_ref7.code,code=_ref7$code===void 0?Array.isArray(children)?children[0]:children:_ref7$code,astGenerator=_ref7.astGenerator,rest=(0,objectWithoutProperties.Z)(_ref7,["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"]);astGenerator=astGenerator||defaultAstGenerator;var allLineNumbers=showLineNumbers?react.createElement(AllLineNumbers,{containerStyle:lineNumberContainerStyle,codeStyle:codeTagProps.style||{},numberStyle:lineNumberStyle,startingLineNumber,codeString:code}):null,defaultPreStyle=style.hljs||style['pre[class*="language-"]']||{backgroundColor:"#fff"},generatorClassName=isHighlightJs(astGenerator)?"hljs":"prismjs",preProps=useInlineStyles?Object.assign({},rest,{style:Object.assign({},defaultPreStyle,customStyle)}):Object.assign({},rest,{className:rest.className?"".concat(generatorClassName," ").concat(rest.className):generatorClassName,style:Object.assign({},customStyle)});if(!astGenerator)return react.createElement(PreTag,preProps,allLineNumbers,react.createElement(CodeTag,codeTagProps,code));wrapLines=renderer&&wrapLines===void 0?!0:wrapLines,renderer=renderer||defaultRenderer;var defaultCodeValue=[{type:"text",value:code}],codeTree=getCodeTree({astGenerator,language,code,defaultCodeValue});codeTree.language===null&&(codeTree.value=defaultCodeValue);var largestLineNumber=codeTree.value.length+startingLineNumber,rows=processLines(codeTree,wrapLines,lineProps,showLineNumbers,showInlineLineNumbers,startingLineNumber,largestLineNumber,lineNumberStyle);return react.createElement(PreTag,preProps,react.createElement(CodeTag,codeTagProps,!showInlineLineNumbers&&allLineNumbers,renderer({rows,stylesheet:style,useInlineStyles})))}}var core=__webpack_require__(44678),core_default=__webpack_require__.n(core),SyntaxHighlighter=highlight(core_default(),{});SyntaxHighlighter.registerLanguage=function(_,language){return core_default().register(language)};const prism_light=SyntaxHighlighter},27116:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#f9f2f4"},".namespace":{Opacity:".7"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},doctype:{color:"#6a9955"},cdata:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9CDCFE"},symbol:{color:"#b5cea8"},deleted:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},inserted:{color:"#ce9178"},operator:{color:"#d4d4d4",background:"#1e1e1e"},entity:{color:"#4ec9b0",background:"#1e1e1e",cursor:"unset"},url:{color:"#d4d4d4",background:"#1e1e1e"},".language-css .token.string":{color:"#d4d4d4",background:"#1e1e1e"},".style .token.string":{color:"#d4d4d4",background:"#1e1e1e"},atrule:{color:"#c586c0"},"attr-value":{color:"#ce9178"},keyword:{color:"#c586c0"},function:{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#d16969",fontWeight:"bold"},variable:{color:"#d16969"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#4EC9B0"},parameter:{color:"#9CDCFE"},interpolation:{color:"#9CDCFE"},"punctuation.interpolation-punctuation":{color:"#569cd6"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#4ec9b0"},'code[class*="language-javascript"]':{color:"#4ec9b0"},'pre[class*="language-css"]':{color:"#CE9178"},'code[class*="language-css"]':{color:"#CE9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-html .token.punctuation":{color:"#808080"},"pre[data-line]":{position:"relative"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight":{position:"absolute",left:"0",right:"0",padding:"inherit 0",marginTop:"1em",background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0",pointerEvents:"none",lineHeight:"inherit",whiteSpace:"pre"}}},35493:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Tab:()=>Tab,TabList:()=>TabList,TabPanel:()=>TabPanel,Tabs:()=>Tabs,resetIdCounter:()=>uuid_reset});var react=__webpack_require__(59496);function makeTypeChecker(tabsRole){return function(element){return!!element.type&&element.type.tabsRole===tabsRole}}var elementTypes_isTab=makeTypeChecker("Tab"),elementTypes_isTabList=makeTypeChecker("TabList"),elementTypes_isTabPanel=makeTypeChecker("TabPanel");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function isTabChild(child){return elementTypes_isTab(child)||elementTypes_isTabList(child)||elementTypes_isTabPanel(child)}function deepMap(children,callback){return react.Children.map(children,function(child){return child===null?null:isTabChild(child)?callback(child):child.props&&child.props.children&&typeof child.props.children=="object"?(0,react.cloneElement)(child,_extends({},child.props,{children:deepMap(child.props.children,callback)})):child})}function childrenDeepMap_deepForEach(children,callback){return react.Children.forEach(children,function(child){child!==null&&(elementTypes_isTab(child)||elementTypes_isTabPanel(child)?callback(child):child.props&&child.props.children&&typeof child.props.children=="object"&&(elementTypes_isTabList(child)&&callback(child),childrenDeepMap_deepForEach(child.props.children,callback)))})}function childrenPropType(props,propName,componentName){var error,tabsCount=0,panelsCount=0,tabListFound=!1,listTabs=[],children=props[propName];return deepForEach(children,function(child){isTabList(child)&&(child.props&&child.props.children&&typeof child.props.children=="object"&&deepForEach(child.props.children,function(listChild){return listTabs.push(listChild)}),tabListFound&&(error=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),tabListFound=!0),isTab(child)?((!tabListFound||listTabs.indexOf(child)===-1)&&(error=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),tabsCount++):isTabPanel(child)&&panelsCount++}),!error&&tabsCount!==panelsCount&&(error=new Error("There should be an equal number of 'Tab' and 'TabPanel' in `"+componentName+"`. "+("Received "+tabsCount+" 'Tab' and "+panelsCount+" 'TabPanel'."))),error}function onSelectPropType(props,propName,componentName,location,propFullName){var prop=props[propName],name=propFullName||propName,error=null;return prop&&typeof prop!="function"?error=new Error("Invalid "+location+" `"+name+"` of type `"+typeof prop+"` supplied "+("to `"+componentName+"`, expected `function`.")):props.selectedIndex!=null&&prop==null&&(error=new Error("The "+location+" `"+name+"` is marked as required in `"+componentName+"`, but its value is `undefined` or `null`.\n`onSelect` is required when `selectedIndex` is also set. Not doing so will make the tabs not do anything, as `selectedIndex` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace `selectedIndex` with `defaultIndex`.")),error}function selectedIndexPropType(props,propName,componentName,location,propFullName){var prop=props[propName],name=propFullName||propName,error=null;if(prop!=null&&typeof prop!="number")error=new Error("Invalid "+location+" `"+name+"` of type `"+typeof prop+"` supplied to "+("`"+componentName+"`, expected `number`."));else if(props.defaultIndex!=null&&prop!=null)return new Error("The "+location+" `"+name+"` cannot be used together with `defaultIndex` "+("in `"+componentName+"`.\n")+("Either remove `"+name+"` to let `"+componentName+"` handle the selected ")+"tab internally or remove `defaultIndex` to handle it yourself.");return error}function r(e){var t,f,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}const clsx_m=clsx;var count=0;function uuid(){return"react-tabs-"+count++}function uuid_reset(){count=0}function count_getTabsCount(children){var tabCount=0;return childrenDeepMap_deepForEach(children,function(child){elementTypes_isTab(child)&&tabCount++}),tabCount}function count_getPanelsCount(children){var panelCount=0;return childrenDeepMap_deepForEach(children,function(child){elementTypes_isTabPanel(child)&&panelCount++}),panelCount}function UncontrolledTabs_extends(){return UncontrolledTabs_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},UncontrolledTabs_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function isNode(node){return node&&"getAttribute"in node}function isTabNode(node){return isNode(node)&&node.getAttribute("role")==="tab"}function isTabDisabled(node){return isNode(node)&&node.getAttribute("aria-disabled")==="true"}var canUseActiveElement;function determineCanUseActiveElement(environment){var env=environment||(typeof window<"u"?window:void 0);try{canUseActiveElement=!!(typeof env<"u"&&env.document&&env.document.activeElement)}catch{canUseActiveElement=!1}}var UncontrolledTabs=function(_Component){_inheritsLoose(UncontrolledTabs2,_Component);function UncontrolledTabs2(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=_Component.call.apply(_Component,[this].concat(args))||this,_this.tabNodes=[],_this.handleKeyDown=function(e){var _this$props=_this.props,direction=_this$props.direction,disableUpDownKeys=_this$props.disableUpDownKeys;if(_this.isTabFromContainer(e.target)){var index=_this.props.selectedIndex,preventDefault=!1,useSelectedIndex=!1;(e.keyCode===32||e.keyCode===13)&&(preventDefault=!0,useSelectedIndex=!1,_this.handleClick(e)),e.keyCode===37||!disableUpDownKeys&&e.keyCode===38?(direction==="rtl"?index=_this.getNextTab(index):index=_this.getPrevTab(index),preventDefault=!0,useSelectedIndex=!0):e.keyCode===39||!disableUpDownKeys&&e.keyCode===40?(direction==="rtl"?index=_this.getPrevTab(index):index=_this.getNextTab(index),preventDefault=!0,useSelectedIndex=!0):e.keyCode===35?(index=_this.getLastTab(),preventDefault=!0,useSelectedIndex=!0):e.keyCode===36&&(index=_this.getFirstTab(),preventDefault=!0,useSelectedIndex=!0),preventDefault&&e.preventDefault(),useSelectedIndex&&_this.setSelected(index,e)}},_this.handleClick=function(e){var node=e.target;do if(_this.isTabFromContainer(node)){if(isTabDisabled(node))return;var index=[].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);_this.setSelected(index,e);return}while((node=node.parentNode)!=null)},_this}var _proto=UncontrolledTabs2.prototype;return _proto.setSelected=function(index,event){if(!(index<0||index>=this.getTabsCount())){var _this$props2=this.props,onSelect=_this$props2.onSelect,selectedIndex=_this$props2.selectedIndex;onSelect(index,selectedIndex,event)}},_proto.getNextTab=function(index){for(var count2=this.getTabsCount(),i=index+1;i<count2;i++)if(!isTabDisabled(this.getTab(i)))return i;for(var _i=0;_i<index;_i++)if(!isTabDisabled(this.getTab(_i)))return _i;return index},_proto.getPrevTab=function(index){for(var i=index;i--;)if(!isTabDisabled(this.getTab(i)))return i;for(i=this.getTabsCount();i-- >index;)if(!isTabDisabled(this.getTab(i)))return i;return index},_proto.getFirstTab=function(){for(var count2=this.getTabsCount(),i=0;i<count2;i++)if(!isTabDisabled(this.getTab(i)))return i;return null},_proto.getLastTab=function(){for(var i=this.getTabsCount();i--;)if(!isTabDisabled(this.getTab(i)))return i;return null},_proto.getTabsCount=function(){var children=this.props.children;return count_getTabsCount(children)},_proto.getPanelsCount=function(){var children=this.props.children;return count_getPanelsCount(children)},_proto.getTab=function(index){return this.tabNodes["tabs-"+index]},_proto.getChildren=function(){var _this2=this,index=0,_this$props3=this.props,children=_this$props3.children,disabledTabClassName=_this$props3.disabledTabClassName,focus=_this$props3.focus,forceRenderTabPanel=_this$props3.forceRenderTabPanel,selectedIndex=_this$props3.selectedIndex,selectedTabClassName=_this$props3.selectedTabClassName,selectedTabPanelClassName=_this$props3.selectedTabPanelClassName,environment=_this$props3.environment;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var diff=this.tabIds.length-this.getTabsCount();diff++<0;)this.tabIds.push(uuid()),this.panelIds.push(uuid());return deepMap(children,function(child){var result=child;if(elementTypes_isTabList(child)){var listIndex=0,wasTabFocused=!1;canUseActiveElement==null&&determineCanUseActiveElement(environment),canUseActiveElement&&(wasTabFocused=react.Children.toArray(child.props.children).filter(elementTypes_isTab).some(function(tab,i){var env=environment||(typeof window<"u"?window:void 0);return env&&env.document.activeElement===_this2.getTab(i)})),result=(0,react.cloneElement)(child,{children:deepMap(child.props.children,function(tab){var key="tabs-"+listIndex,selected=selectedIndex===listIndex,props2={tabRef:function(node){_this2.tabNodes[key]=node},id:_this2.tabIds[listIndex],panelId:_this2.panelIds[listIndex],selected,focus:selected&&(focus||wasTabFocused)};return selectedTabClassName&&(props2.selectedClassName=selectedTabClassName),disabledTabClassName&&(props2.disabledClassName=disabledTabClassName),listIndex++,(0,react.cloneElement)(tab,props2)})})}else if(elementTypes_isTabPanel(child)){var props={id:_this2.panelIds[index],tabId:_this2.tabIds[index],selected:selectedIndex===index};forceRenderTabPanel&&(props.forceRender=forceRenderTabPanel),selectedTabPanelClassName&&(props.selectedClassName=selectedTabPanelClassName),index++,result=(0,react.cloneElement)(child,props)}return result})},_proto.isTabFromContainer=function(node){if(!isTabNode(node))return!1;var nodeAncestor=node.parentElement;do{if(nodeAncestor===this.node)return!0;if(nodeAncestor.getAttribute("data-tabs"))break;nodeAncestor=nodeAncestor.parentElement}while(nodeAncestor);return!1},_proto.render=function(){var _this3=this,_this$props4=this.props,children=_this$props4.children,className=_this$props4.className,disabledTabClassName=_this$props4.disabledTabClassName,domRef=_this$props4.domRef,focus=_this$props4.focus,forceRenderTabPanel=_this$props4.forceRenderTabPanel,onSelect=_this$props4.onSelect,selectedIndex=_this$props4.selectedIndex,selectedTabClassName=_this$props4.selectedTabClassName,selectedTabPanelClassName=_this$props4.selectedTabPanelClassName,environment=_this$props4.environment,disableUpDownKeys=_this$props4.disableUpDownKeys,attributes=_objectWithoutPropertiesLoose(_this$props4,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"]);return react.createElement("div",UncontrolledTabs_extends({},attributes,{className:clsx_m(className),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(node){_this3.node=node,domRef&&domRef(node)},"data-tabs":!0}),this.getChildren())},UncontrolledTabs2}(react.Component);UncontrolledTabs.defaultProps={className:"react-tabs",focus:!1},UncontrolledTabs.propTypes={};function Tabs_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function Tabs_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,Tabs_setPrototypeOf(subClass,superClass)}function Tabs_setPrototypeOf(o,p){return Tabs_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},Tabs_setPrototypeOf(o,p)}var MODE_CONTROLLED=0,MODE_UNCONTROLLED=1,Tabs=function(_Component){Tabs_inheritsLoose(Tabs2,_Component);function Tabs2(props){var _this;return _this=_Component.call(this,props)||this,_this.handleSelected=function(index,last,event){var onSelect=_this.props.onSelect,mode=_this.state.mode;if(!(typeof onSelect=="function"&&onSelect(index,last,event)===!1)){var state={focus:event.type==="keydown"};mode===MODE_UNCONTROLLED&&(state.selectedIndex=index),_this.setState(state)}},_this.state=Tabs2.copyPropsToState(_this.props,{},props.defaultFocus),_this}Tabs2.getDerivedStateFromProps=function(props,state){return Tabs2.copyPropsToState(props,state)},Tabs2.getModeFromProps=function(props){return props.selectedIndex===null?MODE_UNCONTROLLED:MODE_CONTROLLED},Tabs2.copyPropsToState=function(props,state,focus){focus===void 0&&(focus=!1);var newState={focus,mode:Tabs2.getModeFromProps(props)};if(newState.mode===MODE_UNCONTROLLED){var maxTabIndex=count_getTabsCount(props.children)-1,selectedIndex=null;state.selectedIndex!=null?selectedIndex=Math.min(state.selectedIndex,maxTabIndex):selectedIndex=props.defaultIndex||0,newState.selectedIndex=selectedIndex}return newState};var _proto=Tabs2.prototype;return _proto.render=function(){var _this$props=this.props,children=_this$props.children,defaultIndex=_this$props.defaultIndex,defaultFocus=_this$props.defaultFocus,props=Tabs_objectWithoutPropertiesLoose(_this$props,["children","defaultIndex","defaultFocus"]),_this$state=this.state,focus=_this$state.focus,selectedIndex=_this$state.selectedIndex;return props.focus=focus,props.onSelect=this.handleSelected,selectedIndex!=null&&(props.selectedIndex=selectedIndex),react.createElement(UncontrolledTabs,props,children)},Tabs2}(react.Component);Tabs.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1},Tabs.propTypes={},Tabs.tabsRole="Tabs";function TabList_extends(){return TabList_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},TabList_extends.apply(this,arguments)}function TabList_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function TabList_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,TabList_setPrototypeOf(subClass,superClass)}function TabList_setPrototypeOf(o,p){return TabList_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},TabList_setPrototypeOf(o,p)}var TabList=function(_Component){TabList_inheritsLoose(TabList2,_Component);function TabList2(){return _Component.apply(this,arguments)||this}var _proto=TabList2.prototype;return _proto.render=function(){var _this$props=this.props,children=_this$props.children,className=_this$props.className,attributes=TabList_objectWithoutPropertiesLoose(_this$props,["children","className"]);return react.createElement("ul",TabList_extends({},attributes,{className:clsx_m(className),role:"tablist"}),children)},TabList2}(react.Component);TabList.defaultProps={className:"react-tabs__tab-list"},TabList.propTypes={},TabList.tabsRole="TabList";function Tab_extends(){return Tab_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},Tab_extends.apply(this,arguments)}function Tab_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function Tab_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,Tab_setPrototypeOf(subClass,superClass)}function Tab_setPrototypeOf(o,p){return Tab_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},Tab_setPrototypeOf(o,p)}var DEFAULT_CLASS="react-tabs__tab",Tab=function(_Component){Tab_inheritsLoose(Tab2,_Component);function Tab2(){return _Component.apply(this,arguments)||this}var _proto=Tab2.prototype;return _proto.componentDidMount=function(){this.checkFocus()},_proto.componentDidUpdate=function(){this.checkFocus()},_proto.checkFocus=function(){var _this$props=this.props,selected=_this$props.selected,focus=_this$props.focus;selected&&focus&&this.node.focus()},_proto.render=function(){var _cx,_this=this,_this$props2=this.props,children=_this$props2.children,className=_this$props2.className,disabled=_this$props2.disabled,disabledClassName=_this$props2.disabledClassName,focus=_this$props2.focus,id=_this$props2.id,panelId=_this$props2.panelId,selected=_this$props2.selected,selectedClassName=_this$props2.selectedClassName,tabIndex=_this$props2.tabIndex,tabRef=_this$props2.tabRef,attributes=Tab_objectWithoutPropertiesLoose(_this$props2,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return react.createElement("li",Tab_extends({},attributes,{className:clsx_m(className,(_cx={},_cx[selectedClassName]=selected,_cx[disabledClassName]=disabled,_cx)),ref:function(node){_this.node=node,tabRef&&tabRef(node)},role:"tab",id,"aria-selected":selected?"true":"false","aria-disabled":disabled?"true":"false","aria-controls":panelId,tabIndex:tabIndex||(selected?"0":null)}),children)},Tab2}(react.Component);Tab.defaultProps={className:DEFAULT_CLASS,disabledClassName:DEFAULT_CLASS+"--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:DEFAULT_CLASS+"--selected"},Tab.propTypes={},Tab.tabsRole="Tab";function TabPanel_extends(){return TabPanel_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},TabPanel_extends.apply(this,arguments)}function TabPanel_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function TabPanel_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,TabPanel_setPrototypeOf(subClass,superClass)}function TabPanel_setPrototypeOf(o,p){return TabPanel_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},TabPanel_setPrototypeOf(o,p)}var TabPanel_DEFAULT_CLASS="react-tabs__tab-panel",TabPanel=function(_Component){TabPanel_inheritsLoose(TabPanel2,_Component);function TabPanel2(){return _Component.apply(this,arguments)||this}var _proto=TabPanel2.prototype;return _proto.render=function(){var _cx,_this$props=this.props,children=_this$props.children,className=_this$props.className,forceRender=_this$props.forceRender,id=_this$props.id,selected=_this$props.selected,selectedClassName=_this$props.selectedClassName,tabId=_this$props.tabId,attributes=TabPanel_objectWithoutPropertiesLoose(_this$props,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return react.createElement("div",TabPanel_extends({},attributes,{className:clsx_m(className,(_cx={},_cx[selectedClassName]=selected,_cx)),role:"tabpanel",id,"aria-labelledby":tabId}),forceRender||selected?children:null)},TabPanel2}(react.Component);TabPanel.defaultProps={className:TabPanel_DEFAULT_CLASS,forceRender:!1,selectedClassName:TabPanel_DEFAULT_CLASS+"--selected"},TabPanel.propTypes={},TabPanel.tabsRole="TabPanel"},95144:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59496);function getDimensionObject(node){var rect=node.getBoundingClientRect();return{width:rect.width,height:rect.height,top:"x"in rect?rect.x:rect.top,left:"y"in rect?rect.y:rect.left,x:"x"in rect?rect.x:rect.left,y:"y"in rect?rect.y:rect.top,right:rect.right,bottom:rect.bottom}}function useDimensions(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref$liveMeasure=_ref.liveMeasure,liveMeasure=_ref$liveMeasure===void 0?!0:_ref$liveMeasure,_useState=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),dimensions=_useState[0],setDimensions=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),node=_useState2[0],setNode=_useState2[1],ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function(node2){setNode(node2)},[]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(function(){if(node){var measure=function(){return window.requestAnimationFrame(function(){return setDimensions(getDimensionObject(node))})};if(measure(),liveMeasure)return window.addEventListener("resize",measure),window.addEventListener("scroll",measure),function(){window.removeEventListener("resize",measure),window.removeEventListener("scroll",measure)}}},[node]),[ref,dimensions,node]}const __WEBPACK_DEFAULT_EXPORT__=useDimensions},60981:module=>{"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var codes={};function createErrorType(code,message,Base){Base||(Base=Error);function getMessage(arg1,arg2,arg3){return typeof message=="string"?message:message(arg1,arg2,arg3)}var NodeError=function(_Base){_inheritsLoose(NodeError2,_Base);function NodeError2(arg1,arg2,arg3){return _Base.call(this,getMessage(arg1,arg2,arg3))||this}return NodeError2}(Base);NodeError.prototype.name=Base.name,NodeError.prototype.code=code,codes[code]=NodeError}function oneOf(expected,thing){if(Array.isArray(expected)){var len=expected.length;return expected=expected.map(function(i){return String(i)}),len>2?"one of ".concat(thing," ").concat(expected.slice(0,len-1).join(", "),", or ")+expected[len-1]:len===2?"one of ".concat(thing," ").concat(expected[0]," or ").concat(expected[1]):"of ".concat(thing," ").concat(expected[0])}else return"of ".concat(thing," ").concat(String(expected))}function startsWith(str,search,pos){return str.substr(!pos||pos<0?0:+pos,search.length)===search}function endsWith(str,search,this_len){return(this_len===void 0||this_len>str.length)&&(this_len=str.length),str.substring(this_len-search.length,this_len)===search}function includes(str,search,start){return typeof start!="number"&&(start=0),start+search.length>str.length?!1:str.indexOf(search,start)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(name,value){return'The value "'+value+'" is invalid for option "'+name+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(name,expected,actual){var determiner;typeof expected=="string"&&startsWith(expected,"not ")?(determiner="must not be",expected=expected.replace(/^not /,"")):determiner="must be";var msg;if(endsWith(name," argument"))msg="The ".concat(name," ").concat(determiner," ").concat(oneOf(expected,"type"));else{var type=includes(name,".")?"property":"argument";msg='The "'.concat(name,'" ').concat(type," ").concat(determiner," ").concat(oneOf(expected,"type"))}return msg+=". Received type ".concat(typeof actual),msg},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(name){return"The "+name+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(name){return"Cannot call "+name+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(arg){return"Unknown encoding: "+arg},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.q=codes},93337:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),objectKeys=Object.keys||function(obj){var keys2=[];for(var key in obj)keys2.push(key);return keys2};module.exports=Duplex;var Readable=__webpack_require__(25294),Writable=__webpack_require__(86481);__webpack_require__(2937)(Duplex,Readable);for(var keys=objectKeys(Writable.prototype),v=0;v<keys.length;v++){var method=keys[v];Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])}function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options),Writable.call(this,options),this.allowHalfOpen=!0,options&&(options.readable===!1&&(this.readable=!1),options.writable===!1&&(this.writable=!1),options.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",onend)))}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function onend(){this._writableState.ended||process.nextTick(onEndNT,this)}function onEndNT(self2){self2.end()}Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(value){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=value,this._writableState.destroyed=value)}})},68797:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=PassThrough;var Transform=__webpack_require__(41683);__webpack_require__(2937)(PassThrough,Transform);function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},25294:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);module.exports=Readable;var Duplex;Readable.ReadableState=ReadableState;var EE=__webpack_require__(27379).EventEmitter,EElistenerCount=function(emitter,type){return emitter.listeners(type).length},Stream=__webpack_require__(26922),Buffer=__webpack_require__(55872).Buffer,OurUint8Array=(typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk)}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array}var debugUtil=__webpack_require__(82880),debug;debugUtil&&debugUtil.debuglog?debug=debugUtil.debuglog("stream"):debug=function(){};var BufferList=__webpack_require__(96292),destroyImpl=__webpack_require__(87484),_require=__webpack_require__(16084),getHighWaterMark=_require.getHighWaterMark,_require$codes=__webpack_require__(60981).q,ERR_INVALID_ARG_TYPE=_require$codes.ERR_INVALID_ARG_TYPE,ERR_STREAM_PUSH_AFTER_EOF=_require$codes.ERR_STREAM_PUSH_AFTER_EOF,ERR_METHOD_NOT_IMPLEMENTED=_require$codes.ERR_METHOD_NOT_IMPLEMENTED,ERR_STREAM_UNSHIFT_AFTER_END_EVENT=_require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,StringDecoder,createReadableStreamAsyncIterator,from;__webpack_require__(2937)(Readable,Stream);var errorOrDestroy=destroyImpl.errorOrDestroy,kProxyEvents=["error","close","destroy","pause","resume"];function prependListener(emitter,event,fn){if(typeof emitter.prependListener=="function")return emitter.prependListener(event,fn);!emitter._events||!emitter._events[event]?emitter.on(event,fn):Array.isArray(emitter._events[event])?emitter._events[event].unshift(fn):emitter._events[event]=[fn,emitter._events[event]]}function ReadableState(options,stream,isDuplex){Duplex=Duplex||__webpack_require__(93337),options=options||{},typeof isDuplex!="boolean"&&(isDuplex=stream instanceof Duplex),this.objectMode=!!options.objectMode,isDuplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.highWaterMark=getHighWaterMark(this,options,"readableHighWaterMark",isDuplex),this.buffer=new BufferList,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=options.emitClose!==!1,this.autoDestroy=!!options.autoDestroy,this.destroyed=!1,this.defaultEncoding=options.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(72699).s),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){if(Duplex=Duplex||__webpack_require__(93337),!(this instanceof Readable))return new Readable(options);var isDuplex=this instanceof Duplex;this._readableState=new ReadableState(options,this,isDuplex),this.readable=!0,options&&(typeof options.read=="function"&&(this._read=options.read),typeof options.destroy=="function"&&(this._destroy=options.destroy)),Stream.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(value){!this._readableState||(this._readableState.destroyed=value)}}),Readable.prototype.destroy=destroyImpl.destroy,Readable.prototype._undestroy=destroyImpl.undestroy,Readable.prototype._destroy=function(err,cb){cb(err)},Readable.prototype.push=function(chunk,encoding){var state=this._readableState,skipChunkCheck;return state.objectMode?skipChunkCheck=!0:typeof chunk=="string"&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=Buffer.from(chunk,encoding),encoding=""),skipChunkCheck=!0),readableAddChunk(this,chunk,encoding,!1,skipChunkCheck)},Readable.prototype.unshift=function(chunk){return readableAddChunk(this,chunk,null,!0,!1)};function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){debug("readableAddChunk",chunk);var state=stream._readableState;if(chunk===null)state.reading=!1,onEofChunk(stream,state);else{var er;if(skipChunkCheck||(er=chunkInvalid(state,chunk)),er)errorOrDestroy(stream,er);else if(state.objectMode||chunk&&chunk.length>0)if(typeof chunk!="string"&&!state.objectMode&&Object.getPrototypeOf(chunk)!==Buffer.prototype&&(chunk=_uint8ArrayToBuffer(chunk)),addToFront)state.endEmitted?errorOrDestroy(stream,new ERR_STREAM_UNSHIFT_AFTER_END_EVENT):addChunk(stream,state,chunk,!0);else if(state.ended)errorOrDestroy(stream,new ERR_STREAM_PUSH_AFTER_EOF);else{if(state.destroyed)return!1;state.reading=!1,state.decoder&&!encoding?(chunk=state.decoder.write(chunk),state.objectMode||chunk.length!==0?addChunk(stream,state,chunk,!1):maybeReadMore(stream,state)):addChunk(stream,state,chunk,!1)}else addToFront||(state.reading=!1,maybeReadMore(stream,state))}return!state.ended&&(state.length<state.highWaterMark||state.length===0)}function addChunk(stream,state,chunk,addToFront){state.flowing&&state.length===0&&!state.sync?(state.awaitDrain=0,stream.emit("data",chunk)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state)}function chunkInvalid(state,chunk){var er;return!_isUint8Array(chunk)&&typeof chunk!="string"&&chunk!==void 0&&!state.objectMode&&(er=new ERR_INVALID_ARG_TYPE("chunk",["string","Buffer","Uint8Array"],chunk)),er}Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(enc){StringDecoder||(StringDecoder=__webpack_require__(72699).s);var decoder=new StringDecoder(enc);this._readableState.decoder=decoder,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";p!==null;)content+=decoder.write(p.data),p=p.next;return this._readableState.buffer.clear(),content!==""&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};var MAX_HWM=1073741824;function computeNewHighWaterMark(n){return n>=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return n<=0||state.length===0&&state.ended?0:state.objectMode?1:n!==n?state.flowing&&state.length?state.buffer.head.data.length:state.length:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n<=state.length?n:state.ended?state.length:(state.needReadable=!0,0))}Readable.prototype.read=function(n){debug("read",n),n=parseInt(n,10);var state=this._readableState,nOrig=n;if(n!==0&&(state.emittedReadable=!1),n===0&&state.needReadable&&((state.highWaterMark!==0?state.length>=state.highWaterMark:state.length>0)||state.ended))return debug("read: emitReadable",state.length,state.ended),state.length===0&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),n===0&&state.ended)return state.length===0&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(state.length===0||state.length-n<state.highWaterMark)&&(doRead=!0,debug("length less than watermark",doRead)),state.ended||state.reading?(doRead=!1,debug("reading or ended",doRead)):doRead&&(debug("do read"),state.reading=!0,state.sync=!0,state.length===0&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1,state.reading||(n=howMuchToRead(nOrig,state)));var ret;return n>0?ret=fromList(n,state):ret=null,ret===null?(state.needReadable=state.length<=state.highWaterMark,n=0):(state.length-=n,state.awaitDrain=0),state.length===0&&(state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&endReadable(this)),ret!==null&&this.emit("data",ret),ret};function onEofChunk(stream,state){if(debug("onEofChunk"),!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,state.sync?emitReadable(stream):(state.needReadable=!1,state.emittedReadable||(state.emittedReadable=!0,emitReadable_(stream)))}}function emitReadable(stream){var state=stream._readableState;debug("emitReadable",state.needReadable,state.emittedReadable),state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,process.nextTick(emitReadable_,stream))}function emitReadable_(stream){var state=stream._readableState;debug("emitReadable_",state.destroyed,state.length,state.ended),!state.destroyed&&(state.length||state.ended)&&(stream.emit("readable"),state.emittedReadable=!1),state.needReadable=!state.flowing&&!state.ended&&state.length<=state.highWaterMark,flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(;!state.reading&&!state.ended&&(state.length<state.highWaterMark||state.flowing&&state.length===0);){var len=state.length;if(debug("maybeReadMore read 0"),stream.read(0),len===state.length)break}state.readingMore=!1}Readable.prototype._read=function(n){errorOrDestroy(this,new ERR_METHOD_NOT_IMPLEMENTED("_read()"))},Readable.prototype.pipe=function(dest,pipeOpts){var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest);break}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:unpipe;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);function onunpipe(readable,unpipeInfo){debug("onunpipe"),readable===src&&unpipeInfo&&unpipeInfo.hasUnpiped===!1&&(unpipeInfo.hasUnpiped=!0,cleanup())}function onend(){debug("onend"),dest.end()}var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",unpipe),src.removeListener("data",ondata),cleanedUp=!0,state.awaitDrain&&(!dest._writableState||dest._writableState.needDrain)&&ondrain()}src.on("data",ondata);function ondata(chunk){debug("ondata");var ret=dest.write(chunk);debug("dest.write",ret),ret===!1&&((state.pipesCount===1&&state.pipes===dest||state.pipesCount>1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp&&(debug("false write response, pause",state.awaitDrain),state.awaitDrain++),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),EElistenerCount(dest,"error")===0&&errorOrDestroy(dest,er)}prependListener(dest,"error",onerror);function onclose(){dest.removeListener("finish",onfinish),unpipe()}dest.once("close",onclose);function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}dest.once("finish",onfinish);function unpipe(){debug("unpipe"),src.unpipe(dest)}return dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest};function pipeOnDrain(src){return function(){var state=src._readableState;debug("pipeOnDrain",state.awaitDrain),state.awaitDrain&&state.awaitDrain--,state.awaitDrain===0&&EElistenerCount(src,"data")&&(state.flowing=!0,flow(src))}}Readable.prototype.unpipe=function(dest){var state=this._readableState,unpipeInfo={hasUnpiped:!1};if(state.pipesCount===0)return this;if(state.pipesCount===1)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this,unpipeInfo),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;i<len;i++)dests[i].emit("unpipe",this,{hasUnpiped:!1});return this}var index=indexOf(state.pipes,dest);return index===-1?this:(state.pipes.splice(index,1),state.pipesCount-=1,state.pipesCount===1&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this,unpipeInfo),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn),state=this._readableState;return ev==="data"?(state.readableListening=this.listenerCount("readable")>0,state.flowing!==!1&&this.resume()):ev==="readable"&&!state.endEmitted&&!state.readableListening&&(state.readableListening=state.needReadable=!0,state.flowing=!1,state.emittedReadable=!1,debug("on readable",state.length,state.reading),state.length?emitReadable(this):state.reading||process.nextTick(nReadingNextTick,this)),res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(ev,fn){var res=Stream.prototype.removeListener.call(this,ev,fn);return ev==="readable"&&process.nextTick(updateReadableListening,this),res},Readable.prototype.removeAllListeners=function(ev){var res=Stream.prototype.removeAllListeners.apply(this,arguments);return(ev==="readable"||ev===void 0)&&process.nextTick(updateReadableListening,this),res};function updateReadableListening(self2){var state=self2._readableState;state.readableListening=self2.listenerCount("readable")>0,state.resumeScheduled&&!state.paused?state.flowing=!0:self2.listenerCount("data")>0&&self2.resume()}function nReadingNextTick(self2){debug("readable nexttick read 0"),self2.read(0)}Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!state.readableListening,resume(this,state)),state.paused=!1,this};function resume(stream,state){state.resumeScheduled||(state.resumeScheduled=!0,process.nextTick(resume_,stream,state))}function resume_(stream,state){debug("resume",state.reading),state.reading||stream.read(0),state.resumeScheduled=!1,stream.emit("resume"),flow(stream),state.flowing&&!state.reading&&stream.read(0)}Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function flow(stream){var state=stream._readableState;for(debug("flow",state.flowing);state.flowing&&stream.read()!==null;);}Readable.prototype.wrap=function(stream){var _this=this,state=this._readableState,paused=!1;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&_this.push(chunk)}_this.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),!(state.objectMode&&chunk==null)&&!(!state.objectMode&&(!chunk||!chunk.length))){var ret=_this.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)this[i]===void 0&&typeof stream[i]=="function"&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));for(var n=0;n<kProxyEvents.length;n++)stream.on(kProxyEvents[n],this.emit.bind(this,kProxyEvents[n]));return this._read=function(n2){debug("wrapped _read",n2),paused&&(paused=!1,stream.resume())},this},typeof Symbol=="function"&&(Readable.prototype[Symbol.asyncIterator]=function(){return createReadableStreamAsyncIterator===void 0&&(createReadableStreamAsyncIterator=__webpack_require__(29954)),createReadableStreamAsyncIterator(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(state){this._readableState&&(this._readableState.flowing=state)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function fromList(n,state){if(state.length===0)return null;var ret;return state.objectMode?ret=state.buffer.shift():!n||n>=state.length?(state.decoder?ret=state.buffer.join(""):state.buffer.length===1?ret=state.buffer.first():ret=state.buffer.concat(state.length),state.buffer.clear()):ret=state.buffer.consume(n,state.decoder),ret}function endReadable(stream){var state=stream._readableState;debug("endReadable",state.endEmitted),state.endEmitted||(state.ended=!0,process.nextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){if(debug("endReadableNT",state.endEmitted,state.length),!state.endEmitted&&state.length===0&&(state.endEmitted=!0,stream.readable=!1,stream.emit("end"),state.autoDestroy)){var wState=stream._writableState;(!wState||wState.autoDestroy&&wState.finished)&&stream.destroy()}}typeof Symbol=="function"&&(Readable.from=function(iterable,opts){return from===void 0&&(from=__webpack_require__(82037)),from(Readable,iterable,opts)});function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++)if(xs[i]===x)return i;return-1}},41683:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Transform;var _require$codes=__webpack_require__(60981).q,ERR_METHOD_NOT_IMPLEMENTED=_require$codes.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=__webpack_require__(93337);__webpack_require__(2937)(Transform,Duplex);function afterTransform(er,data){var ts=this._transformState;ts.transforming=!1;var cb=ts.writecb;if(cb===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);ts.writechunk=null,ts.writecb=null,data!=null&&this.push(data),cb(er);var rs=this._readableState;rs.reading=!1,(rs.needReadable||rs.length<rs.highWaterMark)&&this._read(rs.highWaterMark)}function Transform(options){if(!(this instanceof Transform))return new Transform(options);Duplex.call(this,options),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,options&&(typeof options.transform=="function"&&(this._transform=options.transform),typeof options.flush=="function"&&(this._flush=options.flush)),this.on("prefinish",prefinish)}function prefinish(){var _this=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(er,data){done(_this,er,data)}):done(this,null,null)}Transform.prototype.push=function(chunk,encoding){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,chunk,encoding)},Transform.prototype._transform=function(chunk,encoding,cb){cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))},Transform.prototype._write=function(chunk,encoding,cb){var ts=this._transformState;if(ts.writecb=cb,ts.writechunk=chunk,ts.writeencoding=encoding,!ts.transforming){var rs=this._readableState;(ts.needTransform||rs.needReadable||rs.length<rs.highWaterMark)&&this._read(rs.highWaterMark)}},Transform.prototype._read=function(n){var ts=this._transformState;ts.writechunk!==null&&!ts.transforming?(ts.transforming=!0,this._transform(ts.writechunk,ts.writeencoding,ts.afterTransform)):ts.needTransform=!0},Transform.prototype._destroy=function(err,cb){Duplex.prototype._destroy.call(this,err,function(err2){cb(err2)})};function done(stream,er,data){if(er)return stream.emit("error",er);if(data!=null&&stream.push(data),stream._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(stream._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return stream.push(null)}},86481:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);module.exports=Writable;function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb,this.next=null}function CorkedRequest(state){var _this=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(_this,state)}}var Duplex;Writable.WritableState=WritableState;var internalUtil={deprecate:__webpack_require__(48863)},Stream=__webpack_require__(26922),Buffer=__webpack_require__(55872).Buffer,OurUint8Array=(typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk)}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array}var destroyImpl=__webpack_require__(87484),_require=__webpack_require__(16084),getHighWaterMark=_require.getHighWaterMark,_require$codes=__webpack_require__(60981).q,ERR_INVALID_ARG_TYPE=_require$codes.ERR_INVALID_ARG_TYPE,ERR_METHOD_NOT_IMPLEMENTED=_require$codes.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes.ERR_MULTIPLE_CALLBACK,ERR_STREAM_CANNOT_PIPE=_require$codes.ERR_STREAM_CANNOT_PIPE,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED,ERR_STREAM_NULL_VALUES=_require$codes.ERR_STREAM_NULL_VALUES,ERR_STREAM_WRITE_AFTER_END=_require$codes.ERR_STREAM_WRITE_AFTER_END,ERR_UNKNOWN_ENCODING=_require$codes.ERR_UNKNOWN_ENCODING,errorOrDestroy=destroyImpl.errorOrDestroy;__webpack_require__(2937)(Writable,Stream);function nop(){}function WritableState(options,stream,isDuplex){Duplex=Duplex||__webpack_require__(93337),options=options||{},typeof isDuplex!="boolean"&&(isDuplex=stream instanceof Duplex),this.objectMode=!!options.objectMode,isDuplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode),this.highWaterMark=getHighWaterMark(this,options,"writableHighWaterMark",isDuplex),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var noDecode=options.decodeStrings===!1;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=options.emitClose!==!1,this.autoDestroy=!!options.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var realHasInstance;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(realHasInstance=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){return realHasInstance.call(this,object)?!0:this!==Writable?!1:object&&object._writableState instanceof WritableState}})):realHasInstance=function(object){return object instanceof this};function Writable(options){Duplex=Duplex||__webpack_require__(93337);var isDuplex=this instanceof Duplex;if(!isDuplex&&!realHasInstance.call(Writable,this))return new Writable(options);this._writableState=new WritableState(options,this,isDuplex),this.writable=!0,options&&(typeof options.write=="function"&&(this._write=options.write),typeof options.writev=="function"&&(this._writev=options.writev),typeof options.destroy=="function"&&(this._destroy=options.destroy),typeof options.final=="function"&&(this._final=options.final)),Stream.call(this)}Writable.prototype.pipe=function(){errorOrDestroy(this,new ERR_STREAM_CANNOT_PIPE)};function writeAfterEnd(stream,cb){var er=new ERR_STREAM_WRITE_AFTER_END;errorOrDestroy(stream,er),process.nextTick(cb,er)}function validChunk(stream,state,chunk,cb){var er;return chunk===null?er=new ERR_STREAM_NULL_VALUES:typeof chunk!="string"&&!state.objectMode&&(er=new ERR_INVALID_ARG_TYPE("chunk",["string","Buffer"],chunk)),er?(errorOrDestroy(stream,er),process.nextTick(cb,er),!1):!0}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState,ret=!1,isBuf=!state.objectMode&&_isUint8Array(chunk);return isBuf&&!Buffer.isBuffer(chunk)&&(chunk=_uint8ArrayToBuffer(chunk)),typeof encoding=="function"&&(cb=encoding,encoding=null),isBuf?encoding="buffer":encoding||(encoding=state.defaultEncoding),typeof cb!="function"&&(cb=nop),state.ending?writeAfterEnd(this,cb):(isBuf||validChunk(this,state,chunk,cb))&&(state.pendingcb++,ret=writeOrBuffer(this,state,isBuf,chunk,encoding,cb)),ret},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,!state.writing&&!state.corked&&!state.bufferProcessing&&state.bufferedRequest&&clearBuffer(this,state))},Writable.prototype.setDefaultEncoding=function(encoding){if(typeof encoding=="string"&&(encoding=encoding.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((encoding+"").toLowerCase())>-1))throw new ERR_UNKNOWN_ENCODING(encoding);return this._writableState.defaultEncoding=encoding,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(state,chunk,encoding){return!state.objectMode&&state.decodeStrings!==!1&&typeof chunk=="string"&&(chunk=Buffer.from(chunk,encoding)),chunk}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(stream,state,isBuf,chunk,encoding,cb){if(!isBuf){var newChunk=decodeChunk(state,chunk,encoding);chunk!==newChunk&&(isBuf=!0,encoding="buffer",chunk=newChunk)}var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length<state.highWaterMark;if(ret||(state.needDrain=!0),state.writing||state.corked){var last=state.lastBufferedRequest;state.lastBufferedRequest={chunk,encoding,isBuf,callback:cb,next:null},last?last.next=state.lastBufferedRequest:state.bufferedRequest=state.lastBufferedRequest,state.bufferedRequestCount+=1}else doWrite(stream,state,!1,len,chunk,encoding,cb);return ret}function doWrite(stream,state,writev,len,chunk,encoding,cb){state.writelen=len,state.writecb=cb,state.writing=!0,state.sync=!0,state.destroyed?state.onwrite(new ERR_STREAM_DESTROYED("write")):writev?stream._writev(chunk,state.onwrite):stream._write(chunk,encoding,state.onwrite),state.sync=!1}function onwriteError(stream,state,sync,er,cb){--state.pendingcb,sync?(process.nextTick(cb,er),process.nextTick(finishMaybe,stream,state),stream._writableState.errorEmitted=!0,errorOrDestroy(stream,er)):(cb(er),stream._writableState.errorEmitted=!0,errorOrDestroy(stream,er),finishMaybe(stream,state))}function onwriteStateUpdate(state){state.writing=!1,state.writecb=null,state.length-=state.writelen,state.writelen=0}function onwrite(stream,er){var state=stream._writableState,sync=state.sync,cb=state.writecb;if(typeof cb!="function")throw new ERR_MULTIPLE_CALLBACK;if(onwriteStateUpdate(state),er)onwriteError(stream,state,sync,er,cb);else{var finished=needFinish(state)||stream.destroyed;!finished&&!state.corked&&!state.bufferProcessing&&state.bufferedRequest&&clearBuffer(stream,state),sync?process.nextTick(afterWrite,stream,state,finished,cb):afterWrite(stream,state,finished,cb)}}function afterWrite(stream,state,finished,cb){finished||onwriteDrain(stream,state),state.pendingcb--,cb(),finishMaybe(stream,state)}function onwriteDrain(stream,state){state.length===0&&state.needDrain&&(state.needDrain=!1,stream.emit("drain"))}function clearBuffer(stream,state){state.bufferProcessing=!0;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){var l=state.bufferedRequestCount,buffer=new Array(l),holder=state.corkedRequestsFree;holder.entry=entry;for(var count=0,allBuffers=!0;entry;)buffer[count]=entry,entry.isBuf||(allBuffers=!1),entry=entry.next,count+=1;buffer.allBuffers=allBuffers,doWrite(stream,state,!0,state.length,buffer,"",holder.finish),state.pendingcb++,state.lastBufferedRequest=null,holder.next?(state.corkedRequestsFree=holder.next,holder.next=null):state.corkedRequestsFree=new CorkedRequest(state),state.bufferedRequestCount=0}else{for(;entry;){var chunk=entry.chunk,encoding=entry.encoding,cb=entry.callback,len=state.objectMode?1:chunk.length;if(doWrite(stream,state,!1,len,chunk,encoding,cb),entry=entry.next,state.bufferedRequestCount--,state.writing)break}entry===null&&(state.lastBufferedRequest=null)}state.bufferedRequest=entry,state.bufferProcessing=!1}Writable.prototype._write=function(chunk,encoding,cb){cb(new ERR_METHOD_NOT_IMPLEMENTED("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;return typeof chunk=="function"?(cb=chunk,chunk=null,encoding=null):typeof encoding=="function"&&(cb=encoding,encoding=null),chunk!=null&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||endWritable(this,state,cb),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function needFinish(state){return state.ending&&state.length===0&&state.bufferedRequest===null&&!state.finished&&!state.writing}function callFinal(stream,state){stream._final(function(err){state.pendingcb--,err&&errorOrDestroy(stream,err),state.prefinished=!0,stream.emit("prefinish"),finishMaybe(stream,state)})}function prefinish(stream,state){!state.prefinished&&!state.finalCalled&&(typeof stream._final=="function"&&!state.destroyed?(state.pendingcb++,state.finalCalled=!0,process.nextTick(callFinal,stream,state)):(state.prefinished=!0,stream.emit("prefinish")))}function finishMaybe(stream,state){var need=needFinish(state);if(need&&(prefinish(stream,state),state.pendingcb===0&&(state.finished=!0,stream.emit("finish"),state.autoDestroy))){var rState=stream._readableState;(!rState||rState.autoDestroy&&rState.endEmitted)&&stream.destroy()}return need}function endWritable(stream,state,cb){state.ending=!0,finishMaybe(stream,state),cb&&(state.finished?process.nextTick(cb):stream.once("finish",cb)),state.ended=!0,stream.writable=!1}function onCorkedFinish(corkReq,state,err){var entry=corkReq.entry;for(corkReq.entry=null;entry;){var cb=entry.callback;state.pendingcb--,cb(err),entry=entry.next}state.corkedRequestsFree.next=corkReq}Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(value){!this._writableState||(this._writableState.destroyed=value)}}),Writable.prototype.destroy=destroyImpl.destroy,Writable.prototype._undestroy=destroyImpl.undestroy,Writable.prototype._destroy=function(err,cb){cb(err)}},29954:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),_Object$setPrototypeO;function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key=="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(typeof res!="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var finished=__webpack_require__(43675),kLastResolve=Symbol("lastResolve"),kLastReject=Symbol("lastReject"),kError=Symbol("error"),kEnded=Symbol("ended"),kLastPromise=Symbol("lastPromise"),kHandlePromise=Symbol("handlePromise"),kStream=Symbol("stream");function createIterResult(value,done){return{value,done}}function readAndResolve(iter){var resolve=iter[kLastResolve];if(resolve!==null){var data=iter[kStream].read();data!==null&&(iter[kLastPromise]=null,iter[kLastResolve]=null,iter[kLastReject]=null,resolve(createIterResult(data,!1)))}}function onReadable(iter){process.nextTick(readAndResolve,iter)}function wrapForNext(lastPromise,iter){return function(resolve,reject){lastPromise.then(function(){if(iter[kEnded]){resolve(createIterResult(void 0,!0));return}iter[kHandlePromise](resolve,reject)},reject)}}var AsyncIteratorPrototype=Object.getPrototypeOf(function(){}),ReadableStreamAsyncIteratorPrototype=Object.setPrototypeOf((_Object$setPrototypeO={get stream(){return this[kStream]},next:function(){var _this=this,error=this[kError];if(error!==null)return Promise.reject(error);if(this[kEnded])return Promise.resolve(createIterResult(void 0,!0));if(this[kStream].destroyed)return new Promise(function(resolve,reject){process.nextTick(function(){_this[kError]?reject(_this[kError]):resolve(createIterResult(void 0,!0))})});var lastPromise=this[kLastPromise],promise;if(lastPromise)promise=new Promise(wrapForNext(lastPromise,this));else{var data=this[kStream].read();if(data!==null)return Promise.resolve(createIterResult(data,!1));promise=new Promise(this[kHandlePromise])}return this[kLastPromise]=promise,promise}},_defineProperty(_Object$setPrototypeO,Symbol.asyncIterator,function(){return this}),_defineProperty(_Object$setPrototypeO,"return",function(){var _this2=this;return new Promise(function(resolve,reject){_this2[kStream].destroy(null,function(err){if(err){reject(err);return}resolve(createIterResult(void 0,!0))})})}),_Object$setPrototypeO),AsyncIteratorPrototype),createReadableStreamAsyncIterator=function(stream){var _Object$create,iterator=Object.create(ReadableStreamAsyncIteratorPrototype,(_Object$create={},_defineProperty(_Object$create,kStream,{value:stream,writable:!0}),_defineProperty(_Object$create,kLastResolve,{value:null,writable:!0}),_defineProperty(_Object$create,kLastReject,{value:null,writable:!0}),_defineProperty(_Object$create,kError,{value:null,writable:!0}),_defineProperty(_Object$create,kEnded,{value:stream._readableState.endEmitted,writable:!0}),_defineProperty(_Object$create,kHandlePromise,{value:function(resolve,reject){var data=iterator[kStream].read();data?(iterator[kLastPromise]=null,iterator[kLastResolve]=null,iterator[kLastReject]=null,resolve(createIterResult(data,!1))):(iterator[kLastResolve]=resolve,iterator[kLastReject]=reject)},writable:!0}),_Object$create));return iterator[kLastPromise]=null,finished(stream,function(err){if(err&&err.code!=="ERR_STREAM_PREMATURE_CLOSE"){var reject=iterator[kLastReject];reject!==null&&(iterator[kLastPromise]=null,iterator[kLastResolve]=null,iterator[kLastReject]=null,reject(err)),iterator[kError]=err;return}var resolve=iterator[kLastResolve];resolve!==null&&(iterator[kLastPromise]=null,iterator[kLastResolve]=null,iterator[kLastReject]=null,resolve(createIterResult(void 0,!0))),iterator[kEnded]=!0}),stream.on("readable",onReadable.bind(null,iterator)),iterator};module.exports=createReadableStreamAsyncIterator},96292:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key=="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(typeof res!="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var _require=__webpack_require__(55872),Buffer=_require.Buffer,_require2=__webpack_require__(87942),inspect=_require2.inspect,custom=inspect&&inspect.custom||"inspect";function copyBuffer(src,target,offset){Buffer.prototype.copy.call(src,target,offset)}module.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return _createClass(BufferList,[{key:"push",value:function(v){var entry={data:v,next:null};this.length>0?this.tail.next=entry:this.head=entry,this.tail=entry,++this.length}},{key:"unshift",value:function(v){var entry={data:v,next:this.head};this.length===0&&(this.tail=entry),this.head=entry,++this.length}},{key:"shift",value:function(){if(this.length!==0){var ret=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ret}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(this.length===0)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret}},{key:"concat",value:function(n){if(this.length===0)return Buffer.alloc(0);for(var ret=Buffer.allocUnsafe(n>>>0),p=this.head,i=0;p;)copyBuffer(p.data,ret,i),i+=p.data.length,p=p.next;return ret}},{key:"consume",value:function(n,hasStrings){var ret;return n<this.head.data.length?(ret=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?ret=this.shift():ret=hasStrings?this._getString(n):this._getBuffer(n),ret}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var p=this.head,c=1,ret=p.data;for(n-=ret.length;p=p.next;){var str=p.data,nb=n>str.length?str.length:n;if(nb===str.length?ret+=str:ret+=str.slice(0,n),n-=nb,n===0){nb===str.length?(++c,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=str.slice(nb));break}++c}return this.length-=c,ret}},{key:"_getBuffer",value:function(n){var ret=Buffer.allocUnsafe(n),p=this.head,c=1;for(p.data.copy(ret),n-=p.data.length;p=p.next;){var buf=p.data,nb=n>buf.length?buf.length:n;if(buf.copy(ret,ret.length-n,0,nb),n-=nb,n===0){nb===buf.length?(++c,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=buf.slice(nb));break}++c}return this.length-=c,ret}},{key:custom,value:function(_,options){return inspect(this,_objectSpread(_objectSpread({},options),{},{depth:0,customInspect:!1}))}}]),BufferList}()},87484:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);function destroy(err,cb){var _this=this,readableDestroyed=this._readableState&&this._readableState.destroyed,writableDestroyed=this._writableState&&this._writableState.destroyed;return readableDestroyed||writableDestroyed?(cb?cb(err):err&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,err)):process.nextTick(emitErrorNT,this,err)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(err||null,function(err2){!cb&&err2?_this._writableState?_this._writableState.errorEmitted?process.nextTick(emitCloseNT,_this):(_this._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,_this,err2)):process.nextTick(emitErrorAndCloseNT,_this,err2):cb?(process.nextTick(emitCloseNT,_this),cb(err2)):process.nextTick(emitCloseNT,_this)}),this)}function emitErrorAndCloseNT(self2,err){emitErrorNT(self2,err),emitCloseNT(self2)}function emitCloseNT(self2){self2._writableState&&!self2._writableState.emitClose||self2._readableState&&!self2._readableState.emitClose||self2.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(self2,err){self2.emit("error",err)}function errorOrDestroy(stream,err){var rState=stream._readableState,wState=stream._writableState;rState&&rState.autoDestroy||wState&&wState.autoDestroy?stream.destroy(err):stream.emit("error",err)}module.exports={destroy,undestroy,errorOrDestroy}},43675:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ERR_STREAM_PREMATURE_CLOSE=__webpack_require__(60981).q.ERR_STREAM_PREMATURE_CLOSE;function once(callback){var called=!1;return function(){if(!called){called=!0;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];callback.apply(this,args)}}}function noop(){}function isRequest(stream){return stream.setHeader&&typeof stream.abort=="function"}function eos(stream,opts,callback){if(typeof opts=="function")return eos(stream,null,opts);opts||(opts={}),callback=once(callback||noop);var readable=opts.readable||opts.readable!==!1&&stream.readable,writable=opts.writable||opts.writable!==!1&&stream.writable,onlegacyfinish=function(){stream.writable||onfinish()},writableEnded=stream._writableState&&stream._writableState.finished,onfinish=function(){writable=!1,writableEnded=!0,readable||callback.call(stream)},readableEnded=stream._readableState&&stream._readableState.endEmitted,onend=function(){readable=!1,readableEnded=!0,writable||callback.call(stream)},onerror=function(err){callback.call(stream,err)},onclose=function(){var err;if(readable&&!readableEnded)return(!stream._readableState||!stream._readableState.ended)&&(err=new ERR_STREAM_PREMATURE_CLOSE),callback.call(stream,err);if(writable&&!writableEnded)return(!stream._writableState||!stream._writableState.ended)&&(err=new ERR_STREAM_PREMATURE_CLOSE),callback.call(stream,err)},onrequest=function(){stream.req.on("finish",onfinish)};return isRequest(stream)?(stream.on("complete",onfinish),stream.on("abort",onclose),stream.req?onrequest():stream.on("request",onrequest)):writable&&!stream._writableState&&(stream.on("end",onlegacyfinish),stream.on("close",onlegacyfinish)),stream.on("end",onend),stream.on("finish",onfinish),opts.error!==!1&&stream.on("error",onerror),stream.on("close",onclose),function(){stream.removeListener("complete",onfinish),stream.removeListener("abort",onclose),stream.removeListener("request",onrequest),stream.req&&stream.req.removeListener("finish",onfinish),stream.removeListener("end",onlegacyfinish),stream.removeListener("close",onlegacyfinish),stream.removeListener("finish",onfinish),stream.removeListener("end",onend),stream.removeListener("error",onerror),stream.removeListener("close",onclose)}}module.exports=eos},82037:module=>{module.exports=function(){throw new Error("Readable.from is not available in the browser")}},95597:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var eos;function once(callback){var called=!1;return function(){called||(called=!0,callback.apply(void 0,arguments))}}var _require$codes=__webpack_require__(60981).q,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop(err){if(err)throw err}function isRequest(stream){return stream.setHeader&&typeof stream.abort=="function"}function destroyer(stream,reading,writing,callback){callback=once(callback);var closed=!1;stream.on("close",function(){closed=!0}),eos===void 0&&(eos=__webpack_require__(43675)),eos(stream,{readable:reading,writable:writing},function(err){if(err)return callback(err);closed=!0,callback()});var destroyed=!1;return function(err){if(!closed&&!destroyed){if(destroyed=!0,isRequest(stream))return stream.abort();if(typeof stream.destroy=="function")return stream.destroy();callback(err||new ERR_STREAM_DESTROYED("pipe"))}}}function call(fn){fn()}function pipe(from,to){return from.pipe(to)}function popCallback(streams){return!streams.length||typeof streams[streams.length-1]!="function"?noop:streams.pop()}function pipeline(){for(var _len=arguments.length,streams=new Array(_len),_key=0;_key<_len;_key++)streams[_key]=arguments[_key];var callback=popCallback(streams);if(Array.isArray(streams[0])&&(streams=streams[0]),streams.length<2)throw new ERR_MISSING_ARGS("streams");var error,destroys=streams.map(function(stream,i){var reading=i<streams.length-1,writing=i>0;return destroyer(stream,reading,writing,function(err){error||(error=err),err&&destroys.forEach(call),!reading&&(destroys.forEach(call),callback(error))})});return streams.reduce(pipe)}module.exports=pipeline},16084:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ERR_INVALID_OPT_VALUE=__webpack_require__(60981).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(options,isDuplex,duplexKey){return options.highWaterMark!=null?options.highWaterMark:isDuplex?options[duplexKey]:null}function getHighWaterMark(state,options,duplexKey,isDuplex){var hwm=highWaterMarkFrom(options,isDuplex,duplexKey);if(hwm!=null){if(!(isFinite(hwm)&&Math.floor(hwm)===hwm)||hwm<0){var name=isDuplex?duplexKey:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(name,hwm)}return Math.floor(hwm)}return state.objectMode?16:16*1024}module.exports={getHighWaterMark}},26922:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__(27379).EventEmitter},44678:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ctx=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof __webpack_require__.g=="object"?__webpack_require__.g:{},restore=capture();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=__webpack_require__(86675),decode=__webpack_require__(3177),Prism=__webpack_require__(58925),markup=__webpack_require__(21042),css=__webpack_require__(40579),clike=__webpack_require__(21625),js=__webpack_require__(57600);restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor;module.exports=refract,refract.highlight=highlight,refract.register=register,refract.alias=alias,refract.registered=registered,refract.listLanguages=listLanguages,register(markup),register(css),register(clike),register(js),refract.util.encode=encode,refract.Token.stringify=stringify;function register(grammar){if(typeof grammar!="function"||!grammar.displayName)throw new Error("Expected `function` for `grammar`, got `"+grammar+"`");refract.languages[grammar.displayName]===void 0&&grammar(refract)}function alias(name,alias2){var languages=refract.languages,map=name,key,list,length,index;alias2&&(map={},map[name]=alias2);for(key in map)for(list=map[key],list=typeof list=="string"?[list]:list,length=list.length,index=-1;++index<length;)languages[list[index]]=languages[key]}function highlight(value,name){var sup=Prism.highlight,grammar;if(typeof value!="string")throw new Error("Expected `string` for `value`, got `"+value+"`");if(refract.util.type(name)==="Object")grammar=name,name=null;else{if(typeof name!="string")throw new Error("Expected `string` for `name`, got `"+name+"`");if(own.call(refract.languages,name))grammar=refract.languages[name];else throw new Error("Unknown language: `"+name+"` is not registered")}return sup.call(this,value,grammar,name)}function registered(language){if(typeof language!="string")throw new Error("Expected `string` for `language`, got `"+language+"`");return own.call(refract.languages,language)}function listLanguages(){var languages=refract.languages,list=[],language;for(language in languages)own.call(languages,language)&&typeof languages[language]=="object"&&list.push(language);return list}function stringify(value,language,parent){var env;return typeof value=="string"?{type:"text",value}:refract.util.type(value)==="Array"?stringifyAll(value,language):(env={type:value.type,content:refract.Token.stringify(value.content,language,parent),tag:"span",classes:["token",value.type],attributes:{},language,parent},value.alias&&(env.classes=env.classes.concat(value.alias)),refract.hooks.run("wrap",env),h(env.tag+"."+env.classes.join("."),attributes(env.attributes),env.content))}function stringifyAll(values,language){for(var result=[],length=values.length,index=-1,value;++index<length;)value=values[index],value!==""&&value!==null&&value!==void 0&&result.push(value);for(index=-1,length=result.length;++index<length;)value=result[index],result[index]=refract.Token.stringify(value,language,result);return result}function encode(tokens){return tokens}function attributes(attrs){var key;for(key in attrs)attrs[key]=decode(attrs[key]);return attrs}function capture(){var defined="Prism"in ctx,current=defined?ctx.Prism:void 0;return restore2;function restore2(){defined?ctx.Prism=current:delete ctx.Prism,defined=void 0,current=void 0}}},21625:module=>{"use strict";module.exports=clike,clike.displayName="clike",clike.aliases=[];function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},40579:module=>{"use strict";module.exports=css,css.displayName="css",css.aliases=[];function css(Prism){(function(Prism2){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism2.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"))})(Prism)}},57600:module=>{"use strict";module.exports=javascript,javascript.displayName="javascript",javascript.aliases=["js"];function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}},82961:module=>{"use strict";module.exports=jsx,jsx.displayName="jsx",jsx.aliases=[];function jsx(Prism){(function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function re(source,flags){return source=source.replace(/<S>/g,function(){return space}).replace(/<BRACES>/g,function(){return braces}).replace(/<SPREAD>/g,function(){return spread}),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend("markup",javascript),Prism2.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism2.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism2.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore("inside","attr-name",{spread:{pattern:re(/<SPREAD>/.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token=="string"?token:typeof token.content=="string"?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function(tokens){for(var openedTags=[],i=0;i<tokens.length;i++){var token=tokens[i],notTagNorBrace=!1;if(typeof token!="string"&&(token.type==="tag"&&token.content[0]&&token.content[0].type==="tag"?token.content[0].content[0].content==="</"?openedTags.length>0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content==="/>"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type==="punctuation"&&token.content==="{"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type==="punctuation"&&token.content==="}"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token=="string")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i<tokens.length-1&&(typeof tokens[i+1]=="string"||tokens[i+1].type==="plain-text")&&(plainText+=stringifyToken(tokens[i+1]),tokens.splice(i+1,1)),i>0&&(typeof tokens[i-1]=="string"||tokens[i-1].type==="plain-text")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token("plain-text",plainText,null,plainText)}token.content&&typeof token.content!="string"&&walkTokens(token.content)}};Prism2.hooks.add("after-tokenize",function(env){env.language!=="jsx"&&env.language!=="tsx"||walkTokens(env.tokens)})})(Prism)}},21042:module=>{"use strict";module.exports=markup,markup.displayName="markup",markup.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function markup(Prism){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(env){env.type==="entity"&&(env.attributes.title=env.content.value.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^<!\[CDATA\[|\]\]>$/i;var inside={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return tagName}),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}},72663:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var refractorJsx=__webpack_require__(82961),refractorTypescript=__webpack_require__(66409);module.exports=tsx,tsx.displayName="tsx",tsx.aliases=[];function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend("jsx",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx["literal-property"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}},66409:module=>{"use strict";module.exports=typescript,typescript.displayName="typescript",typescript.aliases=["ts"];function typescript(Prism){(function(Prism2){Prism2.languages.typescript=Prism2.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript["literal-property"];var typeInside=Prism2.languages.extend("typescript",{});delete typeInside["class-name"],Prism2.languages.typescript["class-name"].inside=typeInside,Prism2.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript})(Prism)}},39360:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,module.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,module.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(module.exports,__webpack_require__(59496))},69540:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports={locale:"en",long:__webpack_require__(45641),short:__webpack_require__(30963),narrow:__webpack_require__(97009),quantify:__webpack_require__(47931)}},47931:module=>{module.exports=function(n){var r=!String(n).split(".")[1];return n==1&&r?"one":"other"}},61874:(module,exports,__webpack_require__)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var buffer=__webpack_require__(55872),Buffer=buffer.Buffer;function copyProps(src,dst){for(var key in src)dst[key]=src[key]}Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,exports),exports.Buffer=SafeBuffer);function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}SafeBuffer.prototype=Object.create(Buffer.prototype),copyProps(Buffer,SafeBuffer),SafeBuffer.from=function(arg,encodingOrOffset,length){if(typeof arg=="number")throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)},SafeBuffer.alloc=function(size,fill,encoding){if(typeof size!="number")throw new TypeError("Argument must be a number");var buf=Buffer(size);return fill!==void 0?typeof encoding=="string"?buf.fill(fill,encoding):buf.fill(fill):buf.fill(0),buf},SafeBuffer.allocUnsafe=function(size){if(typeof size!="number")throw new TypeError("Argument must be a number");return Buffer(size)},SafeBuffer.allocUnsafeSlow=function(size){if(typeof size!="number")throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},1118:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var GetIntrinsic=__webpack_require__(67415),define=__webpack_require__(18003),hasDescriptors=__webpack_require__(94074)(),gOPD=__webpack_require__(70658),$TypeError=__webpack_require__(29837),$floor=GetIntrinsic("%Math.floor%");module.exports=function(fn,length){if(typeof fn!="function")throw new $TypeError("`fn` is not a function");if(typeof length!="number"||length<0||length>4294967295||$floor(length)!==length)throw new $TypeError("`length` must be a positive 32-bit integer");var loose=arguments.length>2&&!!arguments[2],functionLengthIsConfigurable=!0,functionLengthIsWritable=!0;if("length"in fn&&gOPD){var desc=gOPD(fn,"length");desc&&!desc.configurable&&(functionLengthIsConfigurable=!1),desc&&!desc.writable&&(functionLengthIsWritable=!1)}return(functionLengthIsConfigurable||functionLengthIsWritable||!loose)&&(hasDescriptors?define(fn,"length",length,!0,!0):define(fn,"length",length)),fn}},77700:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var GetIntrinsic=__webpack_require__(67415),callBound=__webpack_require__(74161),inspect=__webpack_require__(85306),$TypeError=__webpack_require__(29837),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(list,key){for(var prev=list,curr;(curr=prev.next)!==null;prev=curr)if(curr.key===key)return prev.next=curr.next,curr.next=list.next,list.next=curr,curr},listGet=function(objects,key){var node=listGetNode(objects,key);return node&&node.value},listSet=function(objects,key,value){var node=listGetNode(objects,key);node?node.value=value:objects.next={key,next:objects.next,value}},listHas=function(objects,key){return!!listGetNode(objects,key)};module.exports=function(){var $wm,$m,$o,channel={assert:function(key){if(!channel.has(key))throw new $TypeError("Side channel does not contain "+inspect(key))},get:function(key){if($WeakMap&&key&&(typeof key=="object"||typeof key=="function")){if($wm)return $weakMapGet($wm,key)}else if($Map){if($m)return $mapGet($m,key)}else if($o)return listGet($o,key)},has:function(key){if($WeakMap&&key&&(typeof key=="object"||typeof key=="function")){if($wm)return $weakMapHas($wm,key)}else if($Map){if($m)return $mapHas($m,key)}else if($o)return listHas($o,key);return!1},set:function(key,value){$WeakMap&&key&&(typeof key=="object"||typeof key=="function")?($wm||($wm=new $WeakMap),$weakMapSet($wm,key,value)):$Map?($m||($m=new $Map),$mapSet($m,key,value)):($o||($o={key:{},next:null}),listSet($o,key,value))}};return channel}},92868:(__unused_webpack_module,exports)=>{"use strict";var __webpack_unused_export__;exports.Q=parse,__webpack_unused_export__=stringify;var empty="",space=" ",whiteSpace=/[ \t\n\r\f]+/g;function parse(value){var input=String(value||empty).trim();return input===empty?[]:input.split(whiteSpace)}function stringify(values){return values.join(space).trim()}},76835:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=Stream;var EE=__webpack_require__(27379).EventEmitter,inherits=__webpack_require__(2937);inherits(Stream,EE),Stream.Readable=__webpack_require__(25294),Stream.Writable=__webpack_require__(86481),Stream.Duplex=__webpack_require__(93337),Stream.Transform=__webpack_require__(41683),Stream.PassThrough=__webpack_require__(68797),Stream.finished=__webpack_require__(43675),Stream.pipeline=__webpack_require__(95597),Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(dest,options){var source=this;function ondata(chunk){dest.writable&&dest.write(chunk)===!1&&source.pause&&source.pause()}source.on("data",ondata);function ondrain(){source.readable&&source.resume&&source.resume()}dest.on("drain",ondrain),!dest._isStdio&&(!options||options.end!==!1)&&(source.on("end",onend),source.on("close",onclose));var didOnEnd=!1;function onend(){didOnEnd||(didOnEnd=!0,dest.end())}function onclose(){didOnEnd||(didOnEnd=!0,typeof dest.destroy=="function"&&dest.destroy())}function onerror(er){if(cleanup(),EE.listenerCount(this,"error")===0)throw er}source.on("error",onerror),dest.on("error",onerror);function cleanup(){source.removeListener("data",ondata),dest.removeListener("drain",ondrain),source.removeListener("end",onend),source.removeListener("close",onclose),source.removeListener("error",onerror),dest.removeListener("error",onerror),source.removeListener("end",cleanup),source.removeListener("close",cleanup),dest.removeListener("close",cleanup)}return source.on("end",cleanup),source.on("close",cleanup),dest.on("close",cleanup),dest.emit("pipe",source),dest}},72699:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var Buffer=__webpack_require__(61874).Buffer,isEncoding=Buffer.isEncoding||function(encoding){switch(encoding=""+encoding,encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(enc){if(!enc)return"utf8";for(var retried;;)switch(enc){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase(),retried=!0}}function normalizeEncoding(enc){var nenc=_normalizeEncoding(enc);if(typeof nenc!="string"&&(Buffer.isEncoding===isEncoding||!isEncoding(enc)))throw new Error("Unknown encoding: "+enc);return nenc||enc}exports.s=StringDecoder;function StringDecoder(encoding){this.encoding=normalizeEncoding(encoding);var nb;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,nb=4;break;case"utf8":this.fillLast=utf8FillLast,nb=4;break;case"base64":this.text=base64Text,this.end=base64End,nb=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer.allocUnsafe(nb)}StringDecoder.prototype.write=function(buf){if(buf.length===0)return"";var r,i;if(this.lastNeed){if(r=this.fillLast(buf),r===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<buf.length?r?r+this.text(buf,i):this.text(buf,i):r||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(buf){if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,buf.length),this.lastNeed-=buf.length};function utf8CheckByte(byte){return byte<=127?0:byte>>5===6?2:byte>>4===14?3:byte>>3===30?4:byte>>6===2?-1:-2}function utf8CheckIncomplete(self2,buf,i){var j=buf.length-1;if(j<i)return 0;var nb=utf8CheckByte(buf[j]);return nb>=0?(nb>0&&(self2.lastNeed=nb-1),nb):--j<i||nb===-2?0:(nb=utf8CheckByte(buf[j]),nb>=0?(nb>0&&(self2.lastNeed=nb-2),nb):--j<i||nb===-2?0:(nb=utf8CheckByte(buf[j]),nb>=0?(nb>0&&(nb===2?nb=0:self2.lastNeed=nb-3),nb):0))}function utf8CheckExtraBytes(self2,buf,p){if((buf[0]&192)!==128)return self2.lastNeed=0,"\uFFFD";if(self2.lastNeed>1&&buf.length>1){if((buf[1]&192)!==128)return self2.lastNeed=1,"\uFFFD";if(self2.lastNeed>2&&buf.length>2&&(buf[2]&192)!==128)return self2.lastNeed=2,"\uFFFD"}}function utf8FillLast(buf){var p=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,buf,p);if(r!==void 0)return r;if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,p,0,buf.length),this.lastNeed-=buf.length}function utf8Text(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString("utf8",i);this.lastTotal=total;var end=buf.length-(total-this.lastNeed);return buf.copy(this.lastChar,0,end),buf.toString("utf8",i,end)}function utf8End(buf){var r=buf&&buf.length?this.write(buf):"";return this.lastNeed?r+"\uFFFD":r}function utf16Text(buf,i){if((buf.length-i)%2===0){var r=buf.toString("utf16le",i);if(r){var c=r.charCodeAt(r.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=buf[buf.length-1],buf.toString("utf16le",i,buf.length-1)}function utf16End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed){var end=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,end)}return r}function base64Text(buf,i){var n=(buf.length-i)%3;return n===0?buf.toString("base64",i):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=buf[buf.length-1]:(this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1]),buf.toString("base64",i,buf.length-n))}function base64End(buf){var r=buf&&buf.length?this.write(buf):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function simpleWrite(buf){return buf.toString(this.encoding)}function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}},98950:module=>{"use strict";module.exports={stdout:!1,stderr:!1}},48199:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{animateFill:()=>animateFill,createSingleton:()=>createSingleton,default:()=>__WEBPACK_DEFAULT_EXPORT__,delegate:()=>delegate,followCursor:()=>followCursor,hideAll:()=>hideAll,inlinePositioning:()=>inlinePositioning,roundArrow:()=>ROUND_ARROW,sticky:()=>sticky});var _popperjs_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60510),ROUND_ARROW='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0};function hasOwnProperty(obj,key){return{}.hasOwnProperty.call(obj,key)}function getValueAtIndexOrReturn(value,index,defaultValue){if(Array.isArray(value)){var v=value[index];return v??(Array.isArray(defaultValue)?defaultValue[index]:defaultValue)}return value}function isType(value,type){var str={}.toString.call(value);return str.indexOf("[object")===0&&str.indexOf(type+"]")>-1}function invokeWithArgsOrReturn(value,args){return typeof value=="function"?value.apply(void 0,args):value}function debounce(fn,ms){if(ms===0)return fn;var timeout;return function(arg){clearTimeout(timeout),timeout=setTimeout(function(){fn(arg)},ms)}}function removeProperties(obj,keys){var clone=Object.assign({},obj);return keys.forEach(function(key){delete clone[key]}),clone}function splitBySpaces(value){return value.split(/\s+/).filter(Boolean)}function normalizeToArray(value){return[].concat(value)}function pushIfUnique(arr,value){arr.indexOf(value)===-1&&arr.push(value)}function unique(arr){return arr.filter(function(item,index){return arr.indexOf(item)===index})}function getBasePlacement(placement){return placement.split("-")[0]}function arrayFrom(value){return[].slice.call(value)}function removeUndefinedProps(obj){return Object.keys(obj).reduce(function(acc,key){return obj[key]!==void 0&&(acc[key]=obj[key]),acc},{})}function div(){return document.createElement("div")}function isElement(value){return["Element","Fragment"].some(function(type){return isType(value,type)})}function isNodeList(value){return isType(value,"NodeList")}function isMouseEvent(value){return isType(value,"MouseEvent")}function isReferenceElement(value){return!!(value&&value._tippy&&value._tippy.reference===value)}function getArrayOfElements(value){return isElement(value)?[value]:isNodeList(value)?arrayFrom(value):Array.isArray(value)?value:arrayFrom(document.querySelectorAll(value))}function setTransitionDuration(els,value){els.forEach(function(el){el&&(el.style.transitionDuration=value+"ms")})}function setVisibilityState(els,state){els.forEach(function(el){el&&el.setAttribute("data-state",state)})}function getOwnerDocument(elementOrElements){var _normalizeToArray=normalizeToArray(elementOrElements),element=_normalizeToArray[0];return element&&element.ownerDocument||document}function isCursorOutsideInteractiveBorder(popperTreeData,event){var clientX=event.clientX,clientY=event.clientY;return popperTreeData.every(function(_ref){var popperRect=_ref.popperRect,popperState=_ref.popperState,props=_ref.props,interactiveBorder=props.interactiveBorder,basePlacement=getBasePlacement(popperState.placement),offsetData=popperState.modifiersData.offset;if(!offsetData)return!0;var topDistance=basePlacement==="bottom"?offsetData.top.y:0,bottomDistance=basePlacement==="top"?offsetData.bottom.y:0,leftDistance=basePlacement==="right"?offsetData.left.x:0,rightDistance=basePlacement==="left"?offsetData.right.x:0,exceedsTop=popperRect.top-clientY+topDistance>interactiveBorder,exceedsBottom=clientY-popperRect.bottom-bottomDistance>interactiveBorder,exceedsLeft=popperRect.left-clientX+leftDistance>interactiveBorder,exceedsRight=clientX-popperRect.right-rightDistance>interactiveBorder;return exceedsTop||exceedsBottom||exceedsLeft||exceedsRight})}function updateTransitionEndListener(box,action,listener){var method=action+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(event){box[method](event,listener)})}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var now=performance.now();now-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=now}function onWindowBlur(){var activeElement=document.activeElement;if(isReferenceElement(activeElement)){var instance=activeElement._tippy;activeElement.blur&&!instance.state.isVisible&&activeElement.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",ua=isBrowser?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua);function createMemoryLeakWarning(method){var txt=method==="destroy"?"n already-":" ";return[method+"() was called on a"+txt+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function clean(value){var spacesAndTabs=/[ \t]{2,}/g,lineStartWithSpaces=/^[ \t]*/gm;return value.replace(spacesAndTabs," ").replace(lineStartWithSpaces,"").trim()}function getDevMessage(message){return clean(`
|
304
|
+
`)};if(i===0){var _children=tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),_line=createLine(_children,lineNumber2);newTree.push(_line)}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0];if(stringChild){var lastLineInPreviousSpan={type:"text",value:"".concat(text)},newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _children2=[newChild],_line2=createLine(_children2,lineNumber2,node.properties.className);newTree.push(_line2)}}else{var _children3=[newChild],_line3=createLine(_children3,lineNumber2,node.properties.className);newTree.push(_line3)}}),lastLineBreakIndex=index}index++};index<tree.length;)_loop();if(lastLineBreakIndex!==tree.length-1){var children=tree.slice(lastLineBreakIndex+1,tree.length);if(children&&children.length){var lineNumber=newTree.length+startingLineNumber,line=createLine(children,lineNumber);newTree.push(line)}}return wrapLines?newTree:(_ref4=[]).concat.apply(_ref4,newTree)}function defaultRenderer(_ref5){var rows=_ref5.rows,stylesheet=_ref5.stylesheet,useInlineStyles=_ref5.useInlineStyles;return rows.map(function(node,i){return createElement({node,stylesheet,useInlineStyles,key:"code-segement".concat(i)})})}function isHighlightJs(astGenerator){return astGenerator&&typeof astGenerator.highlightAuto<"u"}function getCodeTree(_ref6){var astGenerator=_ref6.astGenerator,language=_ref6.language,code=_ref6.code,defaultCodeValue=_ref6.defaultCodeValue;if(isHighlightJs(astGenerator)){var hasLanguage=checkForListedLanguage(astGenerator,language);return language==="text"?{value:defaultCodeValue,language:"text"}:hasLanguage?astGenerator.highlight(language,code):astGenerator.highlightAuto(code)}try{return language&&language!=="text"?{value:astGenerator.highlight(code,language)}:{value:defaultCodeValue}}catch{return{value:defaultCodeValue}}}function highlight(defaultAstGenerator,defaultStyle){return function(_ref7){var language=_ref7.language,children=_ref7.children,_ref7$style=_ref7.style,style=_ref7$style===void 0?defaultStyle:_ref7$style,_ref7$customStyle=_ref7.customStyle,customStyle=_ref7$customStyle===void 0?{}:_ref7$customStyle,_ref7$codeTagProps=_ref7.codeTagProps,codeTagProps=_ref7$codeTagProps===void 0?{className:language?"language-".concat(language):void 0,style:style['code[class*="language-"]']}:_ref7$codeTagProps,_ref7$useInlineStyles=_ref7.useInlineStyles,useInlineStyles=_ref7$useInlineStyles===void 0?!0:_ref7$useInlineStyles,_ref7$showLineNumbers=_ref7.showLineNumbers,showLineNumbers=_ref7$showLineNumbers===void 0?!1:_ref7$showLineNumbers,_ref7$showInlineLineN=_ref7.showInlineLineNumbers,showInlineLineNumbers=_ref7$showInlineLineN===void 0?!1:_ref7$showInlineLineN,_ref7$startingLineNum=_ref7.startingLineNumber,startingLineNumber=_ref7$startingLineNum===void 0?1:_ref7$startingLineNum,lineNumberContainerStyle=_ref7.lineNumberContainerStyle,_ref7$lineNumberStyle=_ref7.lineNumberStyle,lineNumberStyle=_ref7$lineNumberStyle===void 0?{}:_ref7$lineNumberStyle,wrapLines=_ref7.wrapLines,_ref7$lineProps=_ref7.lineProps,lineProps=_ref7$lineProps===void 0?{}:_ref7$lineProps,renderer=_ref7.renderer,_ref7$PreTag=_ref7.PreTag,PreTag=_ref7$PreTag===void 0?"pre":_ref7$PreTag,_ref7$CodeTag=_ref7.CodeTag,CodeTag=_ref7$CodeTag===void 0?"code":_ref7$CodeTag,_ref7$code=_ref7.code,code=_ref7$code===void 0?Array.isArray(children)?children[0]:children:_ref7$code,astGenerator=_ref7.astGenerator,rest=(0,objectWithoutProperties.Z)(_ref7,["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"]);astGenerator=astGenerator||defaultAstGenerator;var allLineNumbers=showLineNumbers?react.createElement(AllLineNumbers,{containerStyle:lineNumberContainerStyle,codeStyle:codeTagProps.style||{},numberStyle:lineNumberStyle,startingLineNumber,codeString:code}):null,defaultPreStyle=style.hljs||style['pre[class*="language-"]']||{backgroundColor:"#fff"},generatorClassName=isHighlightJs(astGenerator)?"hljs":"prismjs",preProps=useInlineStyles?Object.assign({},rest,{style:Object.assign({},defaultPreStyle,customStyle)}):Object.assign({},rest,{className:rest.className?"".concat(generatorClassName," ").concat(rest.className):generatorClassName,style:Object.assign({},customStyle)});if(!astGenerator)return react.createElement(PreTag,preProps,allLineNumbers,react.createElement(CodeTag,codeTagProps,code));wrapLines=renderer&&wrapLines===void 0?!0:wrapLines,renderer=renderer||defaultRenderer;var defaultCodeValue=[{type:"text",value:code}],codeTree=getCodeTree({astGenerator,language,code,defaultCodeValue});codeTree.language===null&&(codeTree.value=defaultCodeValue);var largestLineNumber=codeTree.value.length+startingLineNumber,rows=processLines(codeTree,wrapLines,lineProps,showLineNumbers,showInlineLineNumbers,startingLineNumber,largestLineNumber,lineNumberStyle);return react.createElement(PreTag,preProps,react.createElement(CodeTag,codeTagProps,!showInlineLineNumbers&&allLineNumbers,renderer({rows,stylesheet:style,useInlineStyles})))}}var core=__webpack_require__(44678),core_default=__webpack_require__.n(core),SyntaxHighlighter=highlight(core_default(),{});SyntaxHighlighter.registerLanguage=function(_,language){return core_default().register(language)};const prism_light=SyntaxHighlighter},27116:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#f9f2f4"},".namespace":{Opacity:".7"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},doctype:{color:"#6a9955"},cdata:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9CDCFE"},symbol:{color:"#b5cea8"},deleted:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},inserted:{color:"#ce9178"},operator:{color:"#d4d4d4",background:"#1e1e1e"},entity:{color:"#4ec9b0",background:"#1e1e1e",cursor:"unset"},url:{color:"#d4d4d4",background:"#1e1e1e"},".language-css .token.string":{color:"#d4d4d4",background:"#1e1e1e"},".style .token.string":{color:"#d4d4d4",background:"#1e1e1e"},atrule:{color:"#c586c0"},"attr-value":{color:"#ce9178"},keyword:{color:"#c586c0"},function:{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#d16969",fontWeight:"bold"},variable:{color:"#d16969"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"class-name":{color:"#4EC9B0"},parameter:{color:"#9CDCFE"},interpolation:{color:"#9CDCFE"},"punctuation.interpolation-punctuation":{color:"#569cd6"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#4ec9b0"},'code[class*="language-javascript"]':{color:"#4ec9b0"},'pre[class*="language-css"]':{color:"#CE9178"},'code[class*="language-css"]':{color:"#CE9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-html .token.punctuation":{color:"#808080"},"pre[data-line]":{position:"relative"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight":{position:"absolute",left:"0",right:"0",padding:"inherit 0",marginTop:"1em",background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0",pointerEvents:"none",lineHeight:"inherit",whiteSpace:"pre"}}},34940:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Tab:()=>Tab,TabList:()=>TabList,TabPanel:()=>TabPanel,Tabs:()=>Tabs,resetIdCounter:()=>uuid_reset});var react=__webpack_require__(59496);function makeTypeChecker(tabsRole){return function(element){return!!element.type&&element.type.tabsRole===tabsRole}}var elementTypes_isTab=makeTypeChecker("Tab"),elementTypes_isTabList=makeTypeChecker("TabList"),elementTypes_isTabPanel=makeTypeChecker("TabPanel");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}function isTabChild(child){return elementTypes_isTab(child)||elementTypes_isTabList(child)||elementTypes_isTabPanel(child)}function deepMap(children,callback){return react.Children.map(children,function(child){return child===null?null:isTabChild(child)?callback(child):child.props&&child.props.children&&typeof child.props.children=="object"?(0,react.cloneElement)(child,_extends({},child.props,{children:deepMap(child.props.children,callback)})):child})}function childrenDeepMap_deepForEach(children,callback){return react.Children.forEach(children,function(child){child!==null&&(elementTypes_isTab(child)||elementTypes_isTabPanel(child)?callback(child):child.props&&child.props.children&&typeof child.props.children=="object"&&(elementTypes_isTabList(child)&&callback(child),childrenDeepMap_deepForEach(child.props.children,callback)))})}function childrenPropType(props,propName,componentName){var error,tabsCount=0,panelsCount=0,tabListFound=!1,listTabs=[],children=props[propName];return deepForEach(children,function(child){isTabList(child)&&(child.props&&child.props.children&&typeof child.props.children=="object"&&deepForEach(child.props.children,function(listChild){return listTabs.push(listChild)}),tabListFound&&(error=new Error("Found multiple 'TabList' components inside 'Tabs'. Only one is allowed.")),tabListFound=!0),isTab(child)?((!tabListFound||listTabs.indexOf(child)===-1)&&(error=new Error("Found a 'Tab' component outside of the 'TabList' component. 'Tab' components have to be inside the 'TabList' component.")),tabsCount++):isTabPanel(child)&&panelsCount++}),!error&&tabsCount!==panelsCount&&(error=new Error("There should be an equal number of 'Tab' and 'TabPanel' in `"+componentName+"`. "+("Received "+tabsCount+" 'Tab' and "+panelsCount+" 'TabPanel'."))),error}function onSelectPropType(props,propName,componentName,location,propFullName){var prop=props[propName],name=propFullName||propName,error=null;return prop&&typeof prop!="function"?error=new Error("Invalid "+location+" `"+name+"` of type `"+typeof prop+"` supplied "+("to `"+componentName+"`, expected `function`.")):props.selectedIndex!=null&&prop==null&&(error=new Error("The "+location+" `"+name+"` is marked as required in `"+componentName+"`, but its value is `undefined` or `null`.\n`onSelect` is required when `selectedIndex` is also set. Not doing so will make the tabs not do anything, as `selectedIndex` indicates that you want to handle the selected tab yourself.\nIf you only want to set the inital tab replace `selectedIndex` with `defaultIndex`.")),error}function selectedIndexPropType(props,propName,componentName,location,propFullName){var prop=props[propName],name=propFullName||propName,error=null;if(prop!=null&&typeof prop!="number")error=new Error("Invalid "+location+" `"+name+"` of type `"+typeof prop+"` supplied to "+("`"+componentName+"`, expected `number`."));else if(props.defaultIndex!=null&&prop!=null)return new Error("The "+location+" `"+name+"` cannot be used together with `defaultIndex` "+("in `"+componentName+"`.\n")+("Either remove `"+name+"` to let `"+componentName+"` handle the selected ")+"tab internally or remove `defaultIndex` to handle it yourself.");return error}function r(e){var t,f,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}const clsx_m=clsx;var count=0;function uuid(){return"react-tabs-"+count++}function uuid_reset(){count=0}function count_getTabsCount(children){var tabCount=0;return childrenDeepMap_deepForEach(children,function(child){elementTypes_isTab(child)&&tabCount++}),tabCount}function count_getPanelsCount(children){var panelCount=0;return childrenDeepMap_deepForEach(children,function(child){elementTypes_isTabPanel(child)&&panelCount++}),panelCount}function UncontrolledTabs_extends(){return UncontrolledTabs_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},UncontrolledTabs_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}function isNode(node){return node&&"getAttribute"in node}function isTabNode(node){return isNode(node)&&node.getAttribute("role")==="tab"}function isTabDisabled(node){return isNode(node)&&node.getAttribute("aria-disabled")==="true"}var canUseActiveElement;function determineCanUseActiveElement(environment){var env=environment||(typeof window<"u"?window:void 0);try{canUseActiveElement=!!(typeof env<"u"&&env.document&&env.document.activeElement)}catch{canUseActiveElement=!1}}var UncontrolledTabs=function(_Component){_inheritsLoose(UncontrolledTabs2,_Component);function UncontrolledTabs2(){for(var _this,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return _this=_Component.call.apply(_Component,[this].concat(args))||this,_this.tabNodes=[],_this.handleKeyDown=function(e){var _this$props=_this.props,direction=_this$props.direction,disableUpDownKeys=_this$props.disableUpDownKeys;if(_this.isTabFromContainer(e.target)){var index=_this.props.selectedIndex,preventDefault=!1,useSelectedIndex=!1;(e.keyCode===32||e.keyCode===13)&&(preventDefault=!0,useSelectedIndex=!1,_this.handleClick(e)),e.keyCode===37||!disableUpDownKeys&&e.keyCode===38?(direction==="rtl"?index=_this.getNextTab(index):index=_this.getPrevTab(index),preventDefault=!0,useSelectedIndex=!0):e.keyCode===39||!disableUpDownKeys&&e.keyCode===40?(direction==="rtl"?index=_this.getPrevTab(index):index=_this.getNextTab(index),preventDefault=!0,useSelectedIndex=!0):e.keyCode===35?(index=_this.getLastTab(),preventDefault=!0,useSelectedIndex=!0):e.keyCode===36&&(index=_this.getFirstTab(),preventDefault=!0,useSelectedIndex=!0),preventDefault&&e.preventDefault(),useSelectedIndex&&_this.setSelected(index,e)}},_this.handleClick=function(e){var node=e.target;do if(_this.isTabFromContainer(node)){if(isTabDisabled(node))return;var index=[].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);_this.setSelected(index,e);return}while((node=node.parentNode)!=null)},_this}var _proto=UncontrolledTabs2.prototype;return _proto.setSelected=function(index,event){if(!(index<0||index>=this.getTabsCount())){var _this$props2=this.props,onSelect=_this$props2.onSelect,selectedIndex=_this$props2.selectedIndex;onSelect(index,selectedIndex,event)}},_proto.getNextTab=function(index){for(var count2=this.getTabsCount(),i=index+1;i<count2;i++)if(!isTabDisabled(this.getTab(i)))return i;for(var _i=0;_i<index;_i++)if(!isTabDisabled(this.getTab(_i)))return _i;return index},_proto.getPrevTab=function(index){for(var i=index;i--;)if(!isTabDisabled(this.getTab(i)))return i;for(i=this.getTabsCount();i-- >index;)if(!isTabDisabled(this.getTab(i)))return i;return index},_proto.getFirstTab=function(){for(var count2=this.getTabsCount(),i=0;i<count2;i++)if(!isTabDisabled(this.getTab(i)))return i;return null},_proto.getLastTab=function(){for(var i=this.getTabsCount();i--;)if(!isTabDisabled(this.getTab(i)))return i;return null},_proto.getTabsCount=function(){var children=this.props.children;return count_getTabsCount(children)},_proto.getPanelsCount=function(){var children=this.props.children;return count_getPanelsCount(children)},_proto.getTab=function(index){return this.tabNodes["tabs-"+index]},_proto.getChildren=function(){var _this2=this,index=0,_this$props3=this.props,children=_this$props3.children,disabledTabClassName=_this$props3.disabledTabClassName,focus=_this$props3.focus,forceRenderTabPanel=_this$props3.forceRenderTabPanel,selectedIndex=_this$props3.selectedIndex,selectedTabClassName=_this$props3.selectedTabClassName,selectedTabPanelClassName=_this$props3.selectedTabPanelClassName,environment=_this$props3.environment;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];for(var diff=this.tabIds.length-this.getTabsCount();diff++<0;)this.tabIds.push(uuid()),this.panelIds.push(uuid());return deepMap(children,function(child){var result=child;if(elementTypes_isTabList(child)){var listIndex=0,wasTabFocused=!1;canUseActiveElement==null&&determineCanUseActiveElement(environment),canUseActiveElement&&(wasTabFocused=react.Children.toArray(child.props.children).filter(elementTypes_isTab).some(function(tab,i){var env=environment||(typeof window<"u"?window:void 0);return env&&env.document.activeElement===_this2.getTab(i)})),result=(0,react.cloneElement)(child,{children:deepMap(child.props.children,function(tab){var key="tabs-"+listIndex,selected=selectedIndex===listIndex,props2={tabRef:function(node){_this2.tabNodes[key]=node},id:_this2.tabIds[listIndex],panelId:_this2.panelIds[listIndex],selected,focus:selected&&(focus||wasTabFocused)};return selectedTabClassName&&(props2.selectedClassName=selectedTabClassName),disabledTabClassName&&(props2.disabledClassName=disabledTabClassName),listIndex++,(0,react.cloneElement)(tab,props2)})})}else if(elementTypes_isTabPanel(child)){var props={id:_this2.panelIds[index],tabId:_this2.tabIds[index],selected:selectedIndex===index};forceRenderTabPanel&&(props.forceRender=forceRenderTabPanel),selectedTabPanelClassName&&(props.selectedClassName=selectedTabPanelClassName),index++,result=(0,react.cloneElement)(child,props)}return result})},_proto.isTabFromContainer=function(node){if(!isTabNode(node))return!1;var nodeAncestor=node.parentElement;do{if(nodeAncestor===this.node)return!0;if(nodeAncestor.getAttribute("data-tabs"))break;nodeAncestor=nodeAncestor.parentElement}while(nodeAncestor);return!1},_proto.render=function(){var _this3=this,_this$props4=this.props,children=_this$props4.children,className=_this$props4.className,disabledTabClassName=_this$props4.disabledTabClassName,domRef=_this$props4.domRef,focus=_this$props4.focus,forceRenderTabPanel=_this$props4.forceRenderTabPanel,onSelect=_this$props4.onSelect,selectedIndex=_this$props4.selectedIndex,selectedTabClassName=_this$props4.selectedTabClassName,selectedTabPanelClassName=_this$props4.selectedTabPanelClassName,environment=_this$props4.environment,disableUpDownKeys=_this$props4.disableUpDownKeys,attributes=_objectWithoutPropertiesLoose(_this$props4,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"]);return react.createElement("div",UncontrolledTabs_extends({},attributes,{className:clsx_m(className),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(node){_this3.node=node,domRef&&domRef(node)},"data-tabs":!0}),this.getChildren())},UncontrolledTabs2}(react.Component);UncontrolledTabs.defaultProps={className:"react-tabs",focus:!1},UncontrolledTabs.propTypes={};function Tabs_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function Tabs_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,Tabs_setPrototypeOf(subClass,superClass)}function Tabs_setPrototypeOf(o,p){return Tabs_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},Tabs_setPrototypeOf(o,p)}var MODE_CONTROLLED=0,MODE_UNCONTROLLED=1,Tabs=function(_Component){Tabs_inheritsLoose(Tabs2,_Component);function Tabs2(props){var _this;return _this=_Component.call(this,props)||this,_this.handleSelected=function(index,last,event){var onSelect=_this.props.onSelect,mode=_this.state.mode;if(!(typeof onSelect=="function"&&onSelect(index,last,event)===!1)){var state={focus:event.type==="keydown"};mode===MODE_UNCONTROLLED&&(state.selectedIndex=index),_this.setState(state)}},_this.state=Tabs2.copyPropsToState(_this.props,{},props.defaultFocus),_this}Tabs2.getDerivedStateFromProps=function(props,state){return Tabs2.copyPropsToState(props,state)},Tabs2.getModeFromProps=function(props){return props.selectedIndex===null?MODE_UNCONTROLLED:MODE_CONTROLLED},Tabs2.copyPropsToState=function(props,state,focus){focus===void 0&&(focus=!1);var newState={focus,mode:Tabs2.getModeFromProps(props)};if(newState.mode===MODE_UNCONTROLLED){var maxTabIndex=count_getTabsCount(props.children)-1,selectedIndex=null;state.selectedIndex!=null?selectedIndex=Math.min(state.selectedIndex,maxTabIndex):selectedIndex=props.defaultIndex||0,newState.selectedIndex=selectedIndex}return newState};var _proto=Tabs2.prototype;return _proto.render=function(){var _this$props=this.props,children=_this$props.children,defaultIndex=_this$props.defaultIndex,defaultFocus=_this$props.defaultFocus,props=Tabs_objectWithoutPropertiesLoose(_this$props,["children","defaultIndex","defaultFocus"]),_this$state=this.state,focus=_this$state.focus,selectedIndex=_this$state.selectedIndex;return props.focus=focus,props.onSelect=this.handleSelected,selectedIndex!=null&&(props.selectedIndex=selectedIndex),react.createElement(UncontrolledTabs,props,children)},Tabs2}(react.Component);Tabs.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null,environment:null,disableUpDownKeys:!1},Tabs.propTypes={},Tabs.tabsRole="Tabs";function TabList_extends(){return TabList_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},TabList_extends.apply(this,arguments)}function TabList_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function TabList_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,TabList_setPrototypeOf(subClass,superClass)}function TabList_setPrototypeOf(o,p){return TabList_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},TabList_setPrototypeOf(o,p)}var TabList=function(_Component){TabList_inheritsLoose(TabList2,_Component);function TabList2(){return _Component.apply(this,arguments)||this}var _proto=TabList2.prototype;return _proto.render=function(){var _this$props=this.props,children=_this$props.children,className=_this$props.className,attributes=TabList_objectWithoutPropertiesLoose(_this$props,["children","className"]);return react.createElement("ul",TabList_extends({},attributes,{className:clsx_m(className),role:"tablist"}),children)},TabList2}(react.Component);TabList.defaultProps={className:"react-tabs__tab-list"},TabList.propTypes={},TabList.tabsRole="TabList";function Tab_extends(){return Tab_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},Tab_extends.apply(this,arguments)}function Tab_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function Tab_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,Tab_setPrototypeOf(subClass,superClass)}function Tab_setPrototypeOf(o,p){return Tab_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},Tab_setPrototypeOf(o,p)}var DEFAULT_CLASS="react-tabs__tab",Tab=function(_Component){Tab_inheritsLoose(Tab2,_Component);function Tab2(){return _Component.apply(this,arguments)||this}var _proto=Tab2.prototype;return _proto.componentDidMount=function(){this.checkFocus()},_proto.componentDidUpdate=function(){this.checkFocus()},_proto.checkFocus=function(){var _this$props=this.props,selected=_this$props.selected,focus=_this$props.focus;selected&&focus&&this.node.focus()},_proto.render=function(){var _cx,_this=this,_this$props2=this.props,children=_this$props2.children,className=_this$props2.className,disabled=_this$props2.disabled,disabledClassName=_this$props2.disabledClassName,focus=_this$props2.focus,id=_this$props2.id,panelId=_this$props2.panelId,selected=_this$props2.selected,selectedClassName=_this$props2.selectedClassName,tabIndex=_this$props2.tabIndex,tabRef=_this$props2.tabRef,attributes=Tab_objectWithoutPropertiesLoose(_this$props2,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return react.createElement("li",Tab_extends({},attributes,{className:clsx_m(className,(_cx={},_cx[selectedClassName]=selected,_cx[disabledClassName]=disabled,_cx)),ref:function(node){_this.node=node,tabRef&&tabRef(node)},role:"tab",id,"aria-selected":selected?"true":"false","aria-disabled":disabled?"true":"false","aria-controls":panelId,tabIndex:tabIndex||(selected?"0":null)}),children)},Tab2}(react.Component);Tab.defaultProps={className:DEFAULT_CLASS,disabledClassName:DEFAULT_CLASS+"--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:DEFAULT_CLASS+"--selected"},Tab.propTypes={},Tab.tabsRole="Tab";function TabPanel_extends(){return TabPanel_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},TabPanel_extends.apply(this,arguments)}function TabPanel_objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function TabPanel_inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,TabPanel_setPrototypeOf(subClass,superClass)}function TabPanel_setPrototypeOf(o,p){return TabPanel_setPrototypeOf=Object.setPrototypeOf||function(o2,p2){return o2.__proto__=p2,o2},TabPanel_setPrototypeOf(o,p)}var TabPanel_DEFAULT_CLASS="react-tabs__tab-panel",TabPanel=function(_Component){TabPanel_inheritsLoose(TabPanel2,_Component);function TabPanel2(){return _Component.apply(this,arguments)||this}var _proto=TabPanel2.prototype;return _proto.render=function(){var _cx,_this$props=this.props,children=_this$props.children,className=_this$props.className,forceRender=_this$props.forceRender,id=_this$props.id,selected=_this$props.selected,selectedClassName=_this$props.selectedClassName,tabId=_this$props.tabId,attributes=TabPanel_objectWithoutPropertiesLoose(_this$props,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return react.createElement("div",TabPanel_extends({},attributes,{className:clsx_m(className,(_cx={},_cx[selectedClassName]=selected,_cx)),role:"tabpanel",id,"aria-labelledby":tabId}),forceRender||selected?children:null)},TabPanel2}(react.Component);TabPanel.defaultProps={className:TabPanel_DEFAULT_CLASS,forceRender:!1,selectedClassName:TabPanel_DEFAULT_CLASS+"--selected"},TabPanel.propTypes={},TabPanel.tabsRole="TabPanel"},95144:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59496);function getDimensionObject(node){var rect=node.getBoundingClientRect();return{width:rect.width,height:rect.height,top:"x"in rect?rect.x:rect.top,left:"y"in rect?rect.y:rect.left,x:"x"in rect?rect.x:rect.left,y:"y"in rect?rect.y:rect.top,right:rect.right,bottom:rect.bottom}}function useDimensions(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref$liveMeasure=_ref.liveMeasure,liveMeasure=_ref$liveMeasure===void 0?!0:_ref$liveMeasure,_useState=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({}),dimensions=_useState[0],setDimensions=_useState[1],_useState2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),node=_useState2[0],setNode=_useState2[1],ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(function(node2){setNode(node2)},[]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(function(){if(node){var measure=function(){return window.requestAnimationFrame(function(){return setDimensions(getDimensionObject(node))})};if(measure(),liveMeasure)return window.addEventListener("resize",measure),window.addEventListener("scroll",measure),function(){window.removeEventListener("resize",measure),window.removeEventListener("scroll",measure)}}},[node]),[ref,dimensions,node]}const __WEBPACK_DEFAULT_EXPORT__=useDimensions},60981:module=>{"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,subClass.__proto__=superClass}var codes={};function createErrorType(code,message,Base){Base||(Base=Error);function getMessage(arg1,arg2,arg3){return typeof message=="string"?message:message(arg1,arg2,arg3)}var NodeError=function(_Base){_inheritsLoose(NodeError2,_Base);function NodeError2(arg1,arg2,arg3){return _Base.call(this,getMessage(arg1,arg2,arg3))||this}return NodeError2}(Base);NodeError.prototype.name=Base.name,NodeError.prototype.code=code,codes[code]=NodeError}function oneOf(expected,thing){if(Array.isArray(expected)){var len=expected.length;return expected=expected.map(function(i){return String(i)}),len>2?"one of ".concat(thing," ").concat(expected.slice(0,len-1).join(", "),", or ")+expected[len-1]:len===2?"one of ".concat(thing," ").concat(expected[0]," or ").concat(expected[1]):"of ".concat(thing," ").concat(expected[0])}else return"of ".concat(thing," ").concat(String(expected))}function startsWith(str,search,pos){return str.substr(!pos||pos<0?0:+pos,search.length)===search}function endsWith(str,search,this_len){return(this_len===void 0||this_len>str.length)&&(this_len=str.length),str.substring(this_len-search.length,this_len)===search}function includes(str,search,start){return typeof start!="number"&&(start=0),start+search.length>str.length?!1:str.indexOf(search,start)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(name,value){return'The value "'+value+'" is invalid for option "'+name+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(name,expected,actual){var determiner;typeof expected=="string"&&startsWith(expected,"not ")?(determiner="must not be",expected=expected.replace(/^not /,"")):determiner="must be";var msg;if(endsWith(name," argument"))msg="The ".concat(name," ").concat(determiner," ").concat(oneOf(expected,"type"));else{var type=includes(name,".")?"property":"argument";msg='The "'.concat(name,'" ').concat(type," ").concat(determiner," ").concat(oneOf(expected,"type"))}return msg+=". Received type ".concat(typeof actual),msg},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(name){return"The "+name+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(name){return"Cannot call "+name+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(arg){return"Unknown encoding: "+arg},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.q=codes},93337:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),objectKeys=Object.keys||function(obj){var keys2=[];for(var key in obj)keys2.push(key);return keys2};module.exports=Duplex;var Readable=__webpack_require__(25294),Writable=__webpack_require__(86481);__webpack_require__(2937)(Duplex,Readable);for(var keys=objectKeys(Writable.prototype),v=0;v<keys.length;v++){var method=keys[v];Duplex.prototype[method]||(Duplex.prototype[method]=Writable.prototype[method])}function Duplex(options){if(!(this instanceof Duplex))return new Duplex(options);Readable.call(this,options),Writable.call(this,options),this.allowHalfOpen=!0,options&&(options.readable===!1&&(this.readable=!1),options.writable===!1&&(this.writable=!1),options.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",onend)))}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function onend(){this._writableState.ended||process.nextTick(onEndNT,this)}function onEndNT(self2){self2.end()}Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(value){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=value,this._writableState.destroyed=value)}})},68797:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=PassThrough;var Transform=__webpack_require__(41683);__webpack_require__(2937)(PassThrough,Transform);function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},25294:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);module.exports=Readable;var Duplex;Readable.ReadableState=ReadableState;var EE=__webpack_require__(27379).EventEmitter,EElistenerCount=function(emitter,type){return emitter.listeners(type).length},Stream=__webpack_require__(26922),Buffer=__webpack_require__(55872).Buffer,OurUint8Array=(typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk)}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array}var debugUtil=__webpack_require__(82880),debug;debugUtil&&debugUtil.debuglog?debug=debugUtil.debuglog("stream"):debug=function(){};var BufferList=__webpack_require__(96292),destroyImpl=__webpack_require__(87484),_require=__webpack_require__(16084),getHighWaterMark=_require.getHighWaterMark,_require$codes=__webpack_require__(60981).q,ERR_INVALID_ARG_TYPE=_require$codes.ERR_INVALID_ARG_TYPE,ERR_STREAM_PUSH_AFTER_EOF=_require$codes.ERR_STREAM_PUSH_AFTER_EOF,ERR_METHOD_NOT_IMPLEMENTED=_require$codes.ERR_METHOD_NOT_IMPLEMENTED,ERR_STREAM_UNSHIFT_AFTER_END_EVENT=_require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,StringDecoder,createReadableStreamAsyncIterator,from;__webpack_require__(2937)(Readable,Stream);var errorOrDestroy=destroyImpl.errorOrDestroy,kProxyEvents=["error","close","destroy","pause","resume"];function prependListener(emitter,event,fn){if(typeof emitter.prependListener=="function")return emitter.prependListener(event,fn);!emitter._events||!emitter._events[event]?emitter.on(event,fn):Array.isArray(emitter._events[event])?emitter._events[event].unshift(fn):emitter._events[event]=[fn,emitter._events[event]]}function ReadableState(options,stream,isDuplex){Duplex=Duplex||__webpack_require__(93337),options=options||{},typeof isDuplex!="boolean"&&(isDuplex=stream instanceof Duplex),this.objectMode=!!options.objectMode,isDuplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode),this.highWaterMark=getHighWaterMark(this,options,"readableHighWaterMark",isDuplex),this.buffer=new BufferList,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=options.emitClose!==!1,this.autoDestroy=!!options.autoDestroy,this.destroyed=!1,this.defaultEncoding=options.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(72699).s),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){if(Duplex=Duplex||__webpack_require__(93337),!(this instanceof Readable))return new Readable(options);var isDuplex=this instanceof Duplex;this._readableState=new ReadableState(options,this,isDuplex),this.readable=!0,options&&(typeof options.read=="function"&&(this._read=options.read),typeof options.destroy=="function"&&(this._destroy=options.destroy)),Stream.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(value){!this._readableState||(this._readableState.destroyed=value)}}),Readable.prototype.destroy=destroyImpl.destroy,Readable.prototype._undestroy=destroyImpl.undestroy,Readable.prototype._destroy=function(err,cb){cb(err)},Readable.prototype.push=function(chunk,encoding){var state=this._readableState,skipChunkCheck;return state.objectMode?skipChunkCheck=!0:typeof chunk=="string"&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=Buffer.from(chunk,encoding),encoding=""),skipChunkCheck=!0),readableAddChunk(this,chunk,encoding,!1,skipChunkCheck)},Readable.prototype.unshift=function(chunk){return readableAddChunk(this,chunk,null,!0,!1)};function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){debug("readableAddChunk",chunk);var state=stream._readableState;if(chunk===null)state.reading=!1,onEofChunk(stream,state);else{var er;if(skipChunkCheck||(er=chunkInvalid(state,chunk)),er)errorOrDestroy(stream,er);else if(state.objectMode||chunk&&chunk.length>0)if(typeof chunk!="string"&&!state.objectMode&&Object.getPrototypeOf(chunk)!==Buffer.prototype&&(chunk=_uint8ArrayToBuffer(chunk)),addToFront)state.endEmitted?errorOrDestroy(stream,new ERR_STREAM_UNSHIFT_AFTER_END_EVENT):addChunk(stream,state,chunk,!0);else if(state.ended)errorOrDestroy(stream,new ERR_STREAM_PUSH_AFTER_EOF);else{if(state.destroyed)return!1;state.reading=!1,state.decoder&&!encoding?(chunk=state.decoder.write(chunk),state.objectMode||chunk.length!==0?addChunk(stream,state,chunk,!1):maybeReadMore(stream,state)):addChunk(stream,state,chunk,!1)}else addToFront||(state.reading=!1,maybeReadMore(stream,state))}return!state.ended&&(state.length<state.highWaterMark||state.length===0)}function addChunk(stream,state,chunk,addToFront){state.flowing&&state.length===0&&!state.sync?(state.awaitDrain=0,stream.emit("data",chunk)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream)),maybeReadMore(stream,state)}function chunkInvalid(state,chunk){var er;return!_isUint8Array(chunk)&&typeof chunk!="string"&&chunk!==void 0&&!state.objectMode&&(er=new ERR_INVALID_ARG_TYPE("chunk",["string","Buffer","Uint8Array"],chunk)),er}Readable.prototype.isPaused=function(){return this._readableState.flowing===!1},Readable.prototype.setEncoding=function(enc){StringDecoder||(StringDecoder=__webpack_require__(72699).s);var decoder=new StringDecoder(enc);this._readableState.decoder=decoder,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,content="";p!==null;)content+=decoder.write(p.data),p=p.next;return this._readableState.buffer.clear(),content!==""&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};var MAX_HWM=1073741824;function computeNewHighWaterMark(n){return n>=MAX_HWM?n=MAX_HWM:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function howMuchToRead(n,state){return n<=0||state.length===0&&state.ended?0:state.objectMode?1:n!==n?state.flowing&&state.length?state.buffer.head.data.length:state.length:(n>state.highWaterMark&&(state.highWaterMark=computeNewHighWaterMark(n)),n<=state.length?n:state.ended?state.length:(state.needReadable=!0,0))}Readable.prototype.read=function(n){debug("read",n),n=parseInt(n,10);var state=this._readableState,nOrig=n;if(n!==0&&(state.emittedReadable=!1),n===0&&state.needReadable&&((state.highWaterMark!==0?state.length>=state.highWaterMark:state.length>0)||state.ended))return debug("read: emitReadable",state.length,state.ended),state.length===0&&state.ended?endReadable(this):emitReadable(this),null;if(n=howMuchToRead(n,state),n===0&&state.ended)return state.length===0&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead),(state.length===0||state.length-n<state.highWaterMark)&&(doRead=!0,debug("length less than watermark",doRead)),state.ended||state.reading?(doRead=!1,debug("reading or ended",doRead)):doRead&&(debug("do read"),state.reading=!0,state.sync=!0,state.length===0&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1,state.reading||(n=howMuchToRead(nOrig,state)));var ret;return n>0?ret=fromList(n,state):ret=null,ret===null?(state.needReadable=state.length<=state.highWaterMark,n=0):(state.length-=n,state.awaitDrain=0),state.length===0&&(state.ended||(state.needReadable=!0),nOrig!==n&&state.ended&&endReadable(this)),ret!==null&&this.emit("data",ret),ret};function onEofChunk(stream,state){if(debug("onEofChunk"),!state.ended){if(state.decoder){var chunk=state.decoder.end();chunk&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length)}state.ended=!0,state.sync?emitReadable(stream):(state.needReadable=!1,state.emittedReadable||(state.emittedReadable=!0,emitReadable_(stream)))}}function emitReadable(stream){var state=stream._readableState;debug("emitReadable",state.needReadable,state.emittedReadable),state.needReadable=!1,state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,process.nextTick(emitReadable_,stream))}function emitReadable_(stream){var state=stream._readableState;debug("emitReadable_",state.destroyed,state.length,state.ended),!state.destroyed&&(state.length||state.ended)&&(stream.emit("readable"),state.emittedReadable=!1),state.needReadable=!state.flowing&&!state.ended&&state.length<=state.highWaterMark,flow(stream)}function maybeReadMore(stream,state){state.readingMore||(state.readingMore=!0,process.nextTick(maybeReadMore_,stream,state))}function maybeReadMore_(stream,state){for(;!state.reading&&!state.ended&&(state.length<state.highWaterMark||state.flowing&&state.length===0);){var len=state.length;if(debug("maybeReadMore read 0"),stream.read(0),len===state.length)break}state.readingMore=!1}Readable.prototype._read=function(n){errorOrDestroy(this,new ERR_METHOD_NOT_IMPLEMENTED("_read()"))},Readable.prototype.pipe=function(dest,pipeOpts){var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest);break}state.pipesCount+=1,debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);var doEnd=(!pipeOpts||pipeOpts.end!==!1)&&dest!==process.stdout&&dest!==process.stderr,endFn=doEnd?onend:unpipe;state.endEmitted?process.nextTick(endFn):src.once("end",endFn),dest.on("unpipe",onunpipe);function onunpipe(readable,unpipeInfo){debug("onunpipe"),readable===src&&unpipeInfo&&unpipeInfo.hasUnpiped===!1&&(unpipeInfo.hasUnpiped=!0,cleanup())}function onend(){debug("onend"),dest.end()}var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=!1;function cleanup(){debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",unpipe),src.removeListener("data",ondata),cleanedUp=!0,state.awaitDrain&&(!dest._writableState||dest._writableState.needDrain)&&ondrain()}src.on("data",ondata);function ondata(chunk){debug("ondata");var ret=dest.write(chunk);debug("dest.write",ret),ret===!1&&((state.pipesCount===1&&state.pipes===dest||state.pipesCount>1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp&&(debug("false write response, pause",state.awaitDrain),state.awaitDrain++),src.pause())}function onerror(er){debug("onerror",er),unpipe(),dest.removeListener("error",onerror),EElistenerCount(dest,"error")===0&&errorOrDestroy(dest,er)}prependListener(dest,"error",onerror);function onclose(){dest.removeListener("finish",onfinish),unpipe()}dest.once("close",onclose);function onfinish(){debug("onfinish"),dest.removeListener("close",onclose),unpipe()}dest.once("finish",onfinish);function unpipe(){debug("unpipe"),src.unpipe(dest)}return dest.emit("pipe",src),state.flowing||(debug("pipe resume"),src.resume()),dest};function pipeOnDrain(src){return function(){var state=src._readableState;debug("pipeOnDrain",state.awaitDrain),state.awaitDrain&&state.awaitDrain--,state.awaitDrain===0&&EElistenerCount(src,"data")&&(state.flowing=!0,flow(src))}}Readable.prototype.unpipe=function(dest){var state=this._readableState,unpipeInfo={hasUnpiped:!1};if(state.pipesCount===0)return this;if(state.pipesCount===1)return dest&&dest!==state.pipes?this:(dest||(dest=state.pipes),state.pipes=null,state.pipesCount=0,state.flowing=!1,dest&&dest.emit("unpipe",this,unpipeInfo),this);if(!dest){var dests=state.pipes,len=state.pipesCount;state.pipes=null,state.pipesCount=0,state.flowing=!1;for(var i=0;i<len;i++)dests[i].emit("unpipe",this,{hasUnpiped:!1});return this}var index=indexOf(state.pipes,dest);return index===-1?this:(state.pipes.splice(index,1),state.pipesCount-=1,state.pipesCount===1&&(state.pipes=state.pipes[0]),dest.emit("unpipe",this,unpipeInfo),this)},Readable.prototype.on=function(ev,fn){var res=Stream.prototype.on.call(this,ev,fn),state=this._readableState;return ev==="data"?(state.readableListening=this.listenerCount("readable")>0,state.flowing!==!1&&this.resume()):ev==="readable"&&!state.endEmitted&&!state.readableListening&&(state.readableListening=state.needReadable=!0,state.flowing=!1,state.emittedReadable=!1,debug("on readable",state.length,state.reading),state.length?emitReadable(this):state.reading||process.nextTick(nReadingNextTick,this)),res},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(ev,fn){var res=Stream.prototype.removeListener.call(this,ev,fn);return ev==="readable"&&process.nextTick(updateReadableListening,this),res},Readable.prototype.removeAllListeners=function(ev){var res=Stream.prototype.removeAllListeners.apply(this,arguments);return(ev==="readable"||ev===void 0)&&process.nextTick(updateReadableListening,this),res};function updateReadableListening(self2){var state=self2._readableState;state.readableListening=self2.listenerCount("readable")>0,state.resumeScheduled&&!state.paused?state.flowing=!0:self2.listenerCount("data")>0&&self2.resume()}function nReadingNextTick(self2){debug("readable nexttick read 0"),self2.read(0)}Readable.prototype.resume=function(){var state=this._readableState;return state.flowing||(debug("resume"),state.flowing=!state.readableListening,resume(this,state)),state.paused=!1,this};function resume(stream,state){state.resumeScheduled||(state.resumeScheduled=!0,process.nextTick(resume_,stream,state))}function resume_(stream,state){debug("resume",state.reading),state.reading||stream.read(0),state.resumeScheduled=!1,stream.emit("resume"),flow(stream),state.flowing&&!state.reading&&stream.read(0)}Readable.prototype.pause=function(){return debug("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function flow(stream){var state=stream._readableState;for(debug("flow",state.flowing);state.flowing&&stream.read()!==null;);}Readable.prototype.wrap=function(stream){var _this=this,state=this._readableState,paused=!1;stream.on("end",function(){if(debug("wrapped end"),state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&_this.push(chunk)}_this.push(null)}),stream.on("data",function(chunk){if(debug("wrapped data"),state.decoder&&(chunk=state.decoder.write(chunk)),!(state.objectMode&&chunk==null)&&!(!state.objectMode&&(!chunk||!chunk.length))){var ret=_this.push(chunk);ret||(paused=!0,stream.pause())}});for(var i in stream)this[i]===void 0&&typeof stream[i]=="function"&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));for(var n=0;n<kProxyEvents.length;n++)stream.on(kProxyEvents[n],this.emit.bind(this,kProxyEvents[n]));return this._read=function(n2){debug("wrapped _read",n2),paused&&(paused=!1,stream.resume())},this},typeof Symbol=="function"&&(Readable.prototype[Symbol.asyncIterator]=function(){return createReadableStreamAsyncIterator===void 0&&(createReadableStreamAsyncIterator=__webpack_require__(29954)),createReadableStreamAsyncIterator(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(state){this._readableState&&(this._readableState.flowing=state)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function fromList(n,state){if(state.length===0)return null;var ret;return state.objectMode?ret=state.buffer.shift():!n||n>=state.length?(state.decoder?ret=state.buffer.join(""):state.buffer.length===1?ret=state.buffer.first():ret=state.buffer.concat(state.length),state.buffer.clear()):ret=state.buffer.consume(n,state.decoder),ret}function endReadable(stream){var state=stream._readableState;debug("endReadable",state.endEmitted),state.endEmitted||(state.ended=!0,process.nextTick(endReadableNT,state,stream))}function endReadableNT(state,stream){if(debug("endReadableNT",state.endEmitted,state.length),!state.endEmitted&&state.length===0&&(state.endEmitted=!0,stream.readable=!1,stream.emit("end"),state.autoDestroy)){var wState=stream._writableState;(!wState||wState.autoDestroy&&wState.finished)&&stream.destroy()}}typeof Symbol=="function"&&(Readable.from=function(iterable,opts){return from===void 0&&(from=__webpack_require__(82037)),from(Readable,iterable,opts)});function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++)if(xs[i]===x)return i;return-1}},41683:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=Transform;var _require$codes=__webpack_require__(60981).q,ERR_METHOD_NOT_IMPLEMENTED=_require$codes.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes.ERR_MULTIPLE_CALLBACK,ERR_TRANSFORM_ALREADY_TRANSFORMING=_require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,ERR_TRANSFORM_WITH_LENGTH_0=_require$codes.ERR_TRANSFORM_WITH_LENGTH_0,Duplex=__webpack_require__(93337);__webpack_require__(2937)(Transform,Duplex);function afterTransform(er,data){var ts=this._transformState;ts.transforming=!1;var cb=ts.writecb;if(cb===null)return this.emit("error",new ERR_MULTIPLE_CALLBACK);ts.writechunk=null,ts.writecb=null,data!=null&&this.push(data),cb(er);var rs=this._readableState;rs.reading=!1,(rs.needReadable||rs.length<rs.highWaterMark)&&this._read(rs.highWaterMark)}function Transform(options){if(!(this instanceof Transform))return new Transform(options);Duplex.call(this,options),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,options&&(typeof options.transform=="function"&&(this._transform=options.transform),typeof options.flush=="function"&&(this._flush=options.flush)),this.on("prefinish",prefinish)}function prefinish(){var _this=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(er,data){done(_this,er,data)}):done(this,null,null)}Transform.prototype.push=function(chunk,encoding){return this._transformState.needTransform=!1,Duplex.prototype.push.call(this,chunk,encoding)},Transform.prototype._transform=function(chunk,encoding,cb){cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"))},Transform.prototype._write=function(chunk,encoding,cb){var ts=this._transformState;if(ts.writecb=cb,ts.writechunk=chunk,ts.writeencoding=encoding,!ts.transforming){var rs=this._readableState;(ts.needTransform||rs.needReadable||rs.length<rs.highWaterMark)&&this._read(rs.highWaterMark)}},Transform.prototype._read=function(n){var ts=this._transformState;ts.writechunk!==null&&!ts.transforming?(ts.transforming=!0,this._transform(ts.writechunk,ts.writeencoding,ts.afterTransform)):ts.needTransform=!0},Transform.prototype._destroy=function(err,cb){Duplex.prototype._destroy.call(this,err,function(err2){cb(err2)})};function done(stream,er,data){if(er)return stream.emit("error",er);if(data!=null&&stream.push(data),stream._writableState.length)throw new ERR_TRANSFORM_WITH_LENGTH_0;if(stream._transformState.transforming)throw new ERR_TRANSFORM_ALREADY_TRANSFORMING;return stream.push(null)}},86481:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);module.exports=Writable;function WriteReq(chunk,encoding,cb){this.chunk=chunk,this.encoding=encoding,this.callback=cb,this.next=null}function CorkedRequest(state){var _this=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(_this,state)}}var Duplex;Writable.WritableState=WritableState;var internalUtil={deprecate:__webpack_require__(48863)},Stream=__webpack_require__(26922),Buffer=__webpack_require__(55872).Buffer,OurUint8Array=(typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk)}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array}var destroyImpl=__webpack_require__(87484),_require=__webpack_require__(16084),getHighWaterMark=_require.getHighWaterMark,_require$codes=__webpack_require__(60981).q,ERR_INVALID_ARG_TYPE=_require$codes.ERR_INVALID_ARG_TYPE,ERR_METHOD_NOT_IMPLEMENTED=_require$codes.ERR_METHOD_NOT_IMPLEMENTED,ERR_MULTIPLE_CALLBACK=_require$codes.ERR_MULTIPLE_CALLBACK,ERR_STREAM_CANNOT_PIPE=_require$codes.ERR_STREAM_CANNOT_PIPE,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED,ERR_STREAM_NULL_VALUES=_require$codes.ERR_STREAM_NULL_VALUES,ERR_STREAM_WRITE_AFTER_END=_require$codes.ERR_STREAM_WRITE_AFTER_END,ERR_UNKNOWN_ENCODING=_require$codes.ERR_UNKNOWN_ENCODING,errorOrDestroy=destroyImpl.errorOrDestroy;__webpack_require__(2937)(Writable,Stream);function nop(){}function WritableState(options,stream,isDuplex){Duplex=Duplex||__webpack_require__(93337),options=options||{},typeof isDuplex!="boolean"&&(isDuplex=stream instanceof Duplex),this.objectMode=!!options.objectMode,isDuplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode),this.highWaterMark=getHighWaterMark(this,options,"writableHighWaterMark",isDuplex),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var noDecode=options.decodeStrings===!1;this.decodeStrings=!noDecode,this.defaultEncoding=options.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(er){onwrite(stream,er)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=options.emitClose!==!1,this.autoDestroy=!!options.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var realHasInstance;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(realHasInstance=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){return realHasInstance.call(this,object)?!0:this!==Writable?!1:object&&object._writableState instanceof WritableState}})):realHasInstance=function(object){return object instanceof this};function Writable(options){Duplex=Duplex||__webpack_require__(93337);var isDuplex=this instanceof Duplex;if(!isDuplex&&!realHasInstance.call(Writable,this))return new Writable(options);this._writableState=new WritableState(options,this,isDuplex),this.writable=!0,options&&(typeof options.write=="function"&&(this._write=options.write),typeof options.writev=="function"&&(this._writev=options.writev),typeof options.destroy=="function"&&(this._destroy=options.destroy),typeof options.final=="function"&&(this._final=options.final)),Stream.call(this)}Writable.prototype.pipe=function(){errorOrDestroy(this,new ERR_STREAM_CANNOT_PIPE)};function writeAfterEnd(stream,cb){var er=new ERR_STREAM_WRITE_AFTER_END;errorOrDestroy(stream,er),process.nextTick(cb,er)}function validChunk(stream,state,chunk,cb){var er;return chunk===null?er=new ERR_STREAM_NULL_VALUES:typeof chunk!="string"&&!state.objectMode&&(er=new ERR_INVALID_ARG_TYPE("chunk",["string","Buffer"],chunk)),er?(errorOrDestroy(stream,er),process.nextTick(cb,er),!1):!0}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState,ret=!1,isBuf=!state.objectMode&&_isUint8Array(chunk);return isBuf&&!Buffer.isBuffer(chunk)&&(chunk=_uint8ArrayToBuffer(chunk)),typeof encoding=="function"&&(cb=encoding,encoding=null),isBuf?encoding="buffer":encoding||(encoding=state.defaultEncoding),typeof cb!="function"&&(cb=nop),state.ending?writeAfterEnd(this,cb):(isBuf||validChunk(this,state,chunk,cb))&&(state.pendingcb++,ret=writeOrBuffer(this,state,isBuf,chunk,encoding,cb)),ret},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,!state.writing&&!state.corked&&!state.bufferProcessing&&state.bufferedRequest&&clearBuffer(this,state))},Writable.prototype.setDefaultEncoding=function(encoding){if(typeof encoding=="string"&&(encoding=encoding.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((encoding+"").toLowerCase())>-1))throw new ERR_UNKNOWN_ENCODING(encoding);return this._writableState.defaultEncoding=encoding,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(state,chunk,encoding){return!state.objectMode&&state.decodeStrings!==!1&&typeof chunk=="string"&&(chunk=Buffer.from(chunk,encoding)),chunk}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(stream,state,isBuf,chunk,encoding,cb){if(!isBuf){var newChunk=decodeChunk(state,chunk,encoding);chunk!==newChunk&&(isBuf=!0,encoding="buffer",chunk=newChunk)}var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length<state.highWaterMark;if(ret||(state.needDrain=!0),state.writing||state.corked){var last=state.lastBufferedRequest;state.lastBufferedRequest={chunk,encoding,isBuf,callback:cb,next:null},last?last.next=state.lastBufferedRequest:state.bufferedRequest=state.lastBufferedRequest,state.bufferedRequestCount+=1}else doWrite(stream,state,!1,len,chunk,encoding,cb);return ret}function doWrite(stream,state,writev,len,chunk,encoding,cb){state.writelen=len,state.writecb=cb,state.writing=!0,state.sync=!0,state.destroyed?state.onwrite(new ERR_STREAM_DESTROYED("write")):writev?stream._writev(chunk,state.onwrite):stream._write(chunk,encoding,state.onwrite),state.sync=!1}function onwriteError(stream,state,sync,er,cb){--state.pendingcb,sync?(process.nextTick(cb,er),process.nextTick(finishMaybe,stream,state),stream._writableState.errorEmitted=!0,errorOrDestroy(stream,er)):(cb(er),stream._writableState.errorEmitted=!0,errorOrDestroy(stream,er),finishMaybe(stream,state))}function onwriteStateUpdate(state){state.writing=!1,state.writecb=null,state.length-=state.writelen,state.writelen=0}function onwrite(stream,er){var state=stream._writableState,sync=state.sync,cb=state.writecb;if(typeof cb!="function")throw new ERR_MULTIPLE_CALLBACK;if(onwriteStateUpdate(state),er)onwriteError(stream,state,sync,er,cb);else{var finished=needFinish(state)||stream.destroyed;!finished&&!state.corked&&!state.bufferProcessing&&state.bufferedRequest&&clearBuffer(stream,state),sync?process.nextTick(afterWrite,stream,state,finished,cb):afterWrite(stream,state,finished,cb)}}function afterWrite(stream,state,finished,cb){finished||onwriteDrain(stream,state),state.pendingcb--,cb(),finishMaybe(stream,state)}function onwriteDrain(stream,state){state.length===0&&state.needDrain&&(state.needDrain=!1,stream.emit("drain"))}function clearBuffer(stream,state){state.bufferProcessing=!0;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){var l=state.bufferedRequestCount,buffer=new Array(l),holder=state.corkedRequestsFree;holder.entry=entry;for(var count=0,allBuffers=!0;entry;)buffer[count]=entry,entry.isBuf||(allBuffers=!1),entry=entry.next,count+=1;buffer.allBuffers=allBuffers,doWrite(stream,state,!0,state.length,buffer,"",holder.finish),state.pendingcb++,state.lastBufferedRequest=null,holder.next?(state.corkedRequestsFree=holder.next,holder.next=null):state.corkedRequestsFree=new CorkedRequest(state),state.bufferedRequestCount=0}else{for(;entry;){var chunk=entry.chunk,encoding=entry.encoding,cb=entry.callback,len=state.objectMode?1:chunk.length;if(doWrite(stream,state,!1,len,chunk,encoding,cb),entry=entry.next,state.bufferedRequestCount--,state.writing)break}entry===null&&(state.lastBufferedRequest=null)}state.bufferedRequest=entry,state.bufferProcessing=!1}Writable.prototype._write=function(chunk,encoding,cb){cb(new ERR_METHOD_NOT_IMPLEMENTED("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;return typeof chunk=="function"?(cb=chunk,chunk=null,encoding=null):typeof encoding=="function"&&(cb=encoding,encoding=null),chunk!=null&&this.write(chunk,encoding),state.corked&&(state.corked=1,this.uncork()),state.ending||endWritable(this,state,cb),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function needFinish(state){return state.ending&&state.length===0&&state.bufferedRequest===null&&!state.finished&&!state.writing}function callFinal(stream,state){stream._final(function(err){state.pendingcb--,err&&errorOrDestroy(stream,err),state.prefinished=!0,stream.emit("prefinish"),finishMaybe(stream,state)})}function prefinish(stream,state){!state.prefinished&&!state.finalCalled&&(typeof stream._final=="function"&&!state.destroyed?(state.pendingcb++,state.finalCalled=!0,process.nextTick(callFinal,stream,state)):(state.prefinished=!0,stream.emit("prefinish")))}function finishMaybe(stream,state){var need=needFinish(state);if(need&&(prefinish(stream,state),state.pendingcb===0&&(state.finished=!0,stream.emit("finish"),state.autoDestroy))){var rState=stream._readableState;(!rState||rState.autoDestroy&&rState.endEmitted)&&stream.destroy()}return need}function endWritable(stream,state,cb){state.ending=!0,finishMaybe(stream,state),cb&&(state.finished?process.nextTick(cb):stream.once("finish",cb)),state.ended=!0,stream.writable=!1}function onCorkedFinish(corkReq,state,err){var entry=corkReq.entry;for(corkReq.entry=null;entry;){var cb=entry.callback;state.pendingcb--,cb(err),entry=entry.next}state.corkedRequestsFree.next=corkReq}Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(value){!this._writableState||(this._writableState.destroyed=value)}}),Writable.prototype.destroy=destroyImpl.destroy,Writable.prototype._undestroy=destroyImpl.undestroy,Writable.prototype._destroy=function(err,cb){cb(err)}},29954:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224),_Object$setPrototypeO;function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key=="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(typeof res!="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var finished=__webpack_require__(43675),kLastResolve=Symbol("lastResolve"),kLastReject=Symbol("lastReject"),kError=Symbol("error"),kEnded=Symbol("ended"),kLastPromise=Symbol("lastPromise"),kHandlePromise=Symbol("handlePromise"),kStream=Symbol("stream");function createIterResult(value,done){return{value,done}}function readAndResolve(iter){var resolve=iter[kLastResolve];if(resolve!==null){var data=iter[kStream].read();data!==null&&(iter[kLastPromise]=null,iter[kLastResolve]=null,iter[kLastReject]=null,resolve(createIterResult(data,!1)))}}function onReadable(iter){process.nextTick(readAndResolve,iter)}function wrapForNext(lastPromise,iter){return function(resolve,reject){lastPromise.then(function(){if(iter[kEnded]){resolve(createIterResult(void 0,!0));return}iter[kHandlePromise](resolve,reject)},reject)}}var AsyncIteratorPrototype=Object.getPrototypeOf(function(){}),ReadableStreamAsyncIteratorPrototype=Object.setPrototypeOf((_Object$setPrototypeO={get stream(){return this[kStream]},next:function(){var _this=this,error=this[kError];if(error!==null)return Promise.reject(error);if(this[kEnded])return Promise.resolve(createIterResult(void 0,!0));if(this[kStream].destroyed)return new Promise(function(resolve,reject){process.nextTick(function(){_this[kError]?reject(_this[kError]):resolve(createIterResult(void 0,!0))})});var lastPromise=this[kLastPromise],promise;if(lastPromise)promise=new Promise(wrapForNext(lastPromise,this));else{var data=this[kStream].read();if(data!==null)return Promise.resolve(createIterResult(data,!1));promise=new Promise(this[kHandlePromise])}return this[kLastPromise]=promise,promise}},_defineProperty(_Object$setPrototypeO,Symbol.asyncIterator,function(){return this}),_defineProperty(_Object$setPrototypeO,"return",function(){var _this2=this;return new Promise(function(resolve,reject){_this2[kStream].destroy(null,function(err){if(err){reject(err);return}resolve(createIterResult(void 0,!0))})})}),_Object$setPrototypeO),AsyncIteratorPrototype),createReadableStreamAsyncIterator=function(stream){var _Object$create,iterator=Object.create(ReadableStreamAsyncIteratorPrototype,(_Object$create={},_defineProperty(_Object$create,kStream,{value:stream,writable:!0}),_defineProperty(_Object$create,kLastResolve,{value:null,writable:!0}),_defineProperty(_Object$create,kLastReject,{value:null,writable:!0}),_defineProperty(_Object$create,kError,{value:null,writable:!0}),_defineProperty(_Object$create,kEnded,{value:stream._readableState.endEmitted,writable:!0}),_defineProperty(_Object$create,kHandlePromise,{value:function(resolve,reject){var data=iterator[kStream].read();data?(iterator[kLastPromise]=null,iterator[kLastResolve]=null,iterator[kLastReject]=null,resolve(createIterResult(data,!1))):(iterator[kLastResolve]=resolve,iterator[kLastReject]=reject)},writable:!0}),_Object$create));return iterator[kLastPromise]=null,finished(stream,function(err){if(err&&err.code!=="ERR_STREAM_PREMATURE_CLOSE"){var reject=iterator[kLastReject];reject!==null&&(iterator[kLastPromise]=null,iterator[kLastResolve]=null,iterator[kLastReject]=null,reject(err)),iterator[kError]=err;return}var resolve=iterator[kLastResolve];resolve!==null&&(iterator[kLastPromise]=null,iterator[kLastResolve]=null,iterator[kLastReject]=null,resolve(createIterResult(void 0,!0))),iterator[kEnded]=!0}),stream.on("readable",onReadable.bind(null,iterator)),iterator};module.exports=createReadableStreamAsyncIterator},96292:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key=="symbol"?key:String(key)}function _toPrimitive(input,hint){if(typeof input!="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(typeof res!="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}var _require=__webpack_require__(55872),Buffer=_require.Buffer,_require2=__webpack_require__(87942),inspect=_require2.inspect,custom=inspect&&inspect.custom||"inspect";function copyBuffer(src,target,offset){Buffer.prototype.copy.call(src,target,offset)}module.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return _createClass(BufferList,[{key:"push",value:function(v){var entry={data:v,next:null};this.length>0?this.tail.next=entry:this.head=entry,this.tail=entry,++this.length}},{key:"unshift",value:function(v){var entry={data:v,next:this.head};this.length===0&&(this.tail=entry),this.head=entry,++this.length}},{key:"shift",value:function(){if(this.length!==0){var ret=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ret}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(this.length===0)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret}},{key:"concat",value:function(n){if(this.length===0)return Buffer.alloc(0);for(var ret=Buffer.allocUnsafe(n>>>0),p=this.head,i=0;p;)copyBuffer(p.data,ret,i),i+=p.data.length,p=p.next;return ret}},{key:"consume",value:function(n,hasStrings){var ret;return n<this.head.data.length?(ret=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n)):n===this.head.data.length?ret=this.shift():ret=hasStrings?this._getString(n):this._getBuffer(n),ret}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var p=this.head,c=1,ret=p.data;for(n-=ret.length;p=p.next;){var str=p.data,nb=n>str.length?str.length:n;if(nb===str.length?ret+=str:ret+=str.slice(0,n),n-=nb,n===0){nb===str.length?(++c,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=str.slice(nb));break}++c}return this.length-=c,ret}},{key:"_getBuffer",value:function(n){var ret=Buffer.allocUnsafe(n),p=this.head,c=1;for(p.data.copy(ret),n-=p.data.length;p=p.next;){var buf=p.data,nb=n>buf.length?buf.length:n;if(buf.copy(ret,ret.length-n,0,nb),n-=nb,n===0){nb===buf.length?(++c,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=buf.slice(nb));break}++c}return this.length-=c,ret}},{key:custom,value:function(_,options){return inspect(this,_objectSpread(_objectSpread({},options),{},{depth:0,customInspect:!1}))}}]),BufferList}()},87484:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var process=__webpack_require__(14224);function destroy(err,cb){var _this=this,readableDestroyed=this._readableState&&this._readableState.destroyed,writableDestroyed=this._writableState&&this._writableState.destroyed;return readableDestroyed||writableDestroyed?(cb?cb(err):err&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,err)):process.nextTick(emitErrorNT,this,err)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(err||null,function(err2){!cb&&err2?_this._writableState?_this._writableState.errorEmitted?process.nextTick(emitCloseNT,_this):(_this._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,_this,err2)):process.nextTick(emitErrorAndCloseNT,_this,err2):cb?(process.nextTick(emitCloseNT,_this),cb(err2)):process.nextTick(emitCloseNT,_this)}),this)}function emitErrorAndCloseNT(self2,err){emitErrorNT(self2,err),emitCloseNT(self2)}function emitCloseNT(self2){self2._writableState&&!self2._writableState.emitClose||self2._readableState&&!self2._readableState.emitClose||self2.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(self2,err){self2.emit("error",err)}function errorOrDestroy(stream,err){var rState=stream._readableState,wState=stream._writableState;rState&&rState.autoDestroy||wState&&wState.autoDestroy?stream.destroy(err):stream.emit("error",err)}module.exports={destroy,undestroy,errorOrDestroy}},43675:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ERR_STREAM_PREMATURE_CLOSE=__webpack_require__(60981).q.ERR_STREAM_PREMATURE_CLOSE;function once(callback){var called=!1;return function(){if(!called){called=!0;for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];callback.apply(this,args)}}}function noop(){}function isRequest(stream){return stream.setHeader&&typeof stream.abort=="function"}function eos(stream,opts,callback){if(typeof opts=="function")return eos(stream,null,opts);opts||(opts={}),callback=once(callback||noop);var readable=opts.readable||opts.readable!==!1&&stream.readable,writable=opts.writable||opts.writable!==!1&&stream.writable,onlegacyfinish=function(){stream.writable||onfinish()},writableEnded=stream._writableState&&stream._writableState.finished,onfinish=function(){writable=!1,writableEnded=!0,readable||callback.call(stream)},readableEnded=stream._readableState&&stream._readableState.endEmitted,onend=function(){readable=!1,readableEnded=!0,writable||callback.call(stream)},onerror=function(err){callback.call(stream,err)},onclose=function(){var err;if(readable&&!readableEnded)return(!stream._readableState||!stream._readableState.ended)&&(err=new ERR_STREAM_PREMATURE_CLOSE),callback.call(stream,err);if(writable&&!writableEnded)return(!stream._writableState||!stream._writableState.ended)&&(err=new ERR_STREAM_PREMATURE_CLOSE),callback.call(stream,err)},onrequest=function(){stream.req.on("finish",onfinish)};return isRequest(stream)?(stream.on("complete",onfinish),stream.on("abort",onclose),stream.req?onrequest():stream.on("request",onrequest)):writable&&!stream._writableState&&(stream.on("end",onlegacyfinish),stream.on("close",onlegacyfinish)),stream.on("end",onend),stream.on("finish",onfinish),opts.error!==!1&&stream.on("error",onerror),stream.on("close",onclose),function(){stream.removeListener("complete",onfinish),stream.removeListener("abort",onclose),stream.removeListener("request",onrequest),stream.req&&stream.req.removeListener("finish",onfinish),stream.removeListener("end",onlegacyfinish),stream.removeListener("close",onlegacyfinish),stream.removeListener("finish",onfinish),stream.removeListener("end",onend),stream.removeListener("error",onerror),stream.removeListener("close",onclose)}}module.exports=eos},82037:module=>{module.exports=function(){throw new Error("Readable.from is not available in the browser")}},95597:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var eos;function once(callback){var called=!1;return function(){called||(called=!0,callback.apply(void 0,arguments))}}var _require$codes=__webpack_require__(60981).q,ERR_MISSING_ARGS=_require$codes.ERR_MISSING_ARGS,ERR_STREAM_DESTROYED=_require$codes.ERR_STREAM_DESTROYED;function noop(err){if(err)throw err}function isRequest(stream){return stream.setHeader&&typeof stream.abort=="function"}function destroyer(stream,reading,writing,callback){callback=once(callback);var closed=!1;stream.on("close",function(){closed=!0}),eos===void 0&&(eos=__webpack_require__(43675)),eos(stream,{readable:reading,writable:writing},function(err){if(err)return callback(err);closed=!0,callback()});var destroyed=!1;return function(err){if(!closed&&!destroyed){if(destroyed=!0,isRequest(stream))return stream.abort();if(typeof stream.destroy=="function")return stream.destroy();callback(err||new ERR_STREAM_DESTROYED("pipe"))}}}function call(fn){fn()}function pipe(from,to){return from.pipe(to)}function popCallback(streams){return!streams.length||typeof streams[streams.length-1]!="function"?noop:streams.pop()}function pipeline(){for(var _len=arguments.length,streams=new Array(_len),_key=0;_key<_len;_key++)streams[_key]=arguments[_key];var callback=popCallback(streams);if(Array.isArray(streams[0])&&(streams=streams[0]),streams.length<2)throw new ERR_MISSING_ARGS("streams");var error,destroys=streams.map(function(stream,i){var reading=i<streams.length-1,writing=i>0;return destroyer(stream,reading,writing,function(err){error||(error=err),err&&destroys.forEach(call),!reading&&(destroys.forEach(call),callback(error))})});return streams.reduce(pipe)}module.exports=pipeline},16084:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ERR_INVALID_OPT_VALUE=__webpack_require__(60981).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(options,isDuplex,duplexKey){return options.highWaterMark!=null?options.highWaterMark:isDuplex?options[duplexKey]:null}function getHighWaterMark(state,options,duplexKey,isDuplex){var hwm=highWaterMarkFrom(options,isDuplex,duplexKey);if(hwm!=null){if(!(isFinite(hwm)&&Math.floor(hwm)===hwm)||hwm<0){var name=isDuplex?duplexKey:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(name,hwm)}return Math.floor(hwm)}return state.objectMode?16:16*1024}module.exports={getHighWaterMark}},26922:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__(27379).EventEmitter},44678:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var ctx=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof __webpack_require__.g=="object"?__webpack_require__.g:{},restore=capture();ctx.Prism={manual:!0,disableWorkerMessageHandler:!0};var h=__webpack_require__(86675),decode=__webpack_require__(3177),Prism=__webpack_require__(58925),markup=__webpack_require__(21042),css=__webpack_require__(40579),clike=__webpack_require__(21625),js=__webpack_require__(57600);restore();var own={}.hasOwnProperty;function Refractor(){}Refractor.prototype=Prism;var refract=new Refractor;module.exports=refract,refract.highlight=highlight,refract.register=register,refract.alias=alias,refract.registered=registered,refract.listLanguages=listLanguages,register(markup),register(css),register(clike),register(js),refract.util.encode=encode,refract.Token.stringify=stringify;function register(grammar){if(typeof grammar!="function"||!grammar.displayName)throw new Error("Expected `function` for `grammar`, got `"+grammar+"`");refract.languages[grammar.displayName]===void 0&&grammar(refract)}function alias(name,alias2){var languages=refract.languages,map=name,key,list,length,index;alias2&&(map={},map[name]=alias2);for(key in map)for(list=map[key],list=typeof list=="string"?[list]:list,length=list.length,index=-1;++index<length;)languages[list[index]]=languages[key]}function highlight(value,name){var sup=Prism.highlight,grammar;if(typeof value!="string")throw new Error("Expected `string` for `value`, got `"+value+"`");if(refract.util.type(name)==="Object")grammar=name,name=null;else{if(typeof name!="string")throw new Error("Expected `string` for `name`, got `"+name+"`");if(own.call(refract.languages,name))grammar=refract.languages[name];else throw new Error("Unknown language: `"+name+"` is not registered")}return sup.call(this,value,grammar,name)}function registered(language){if(typeof language!="string")throw new Error("Expected `string` for `language`, got `"+language+"`");return own.call(refract.languages,language)}function listLanguages(){var languages=refract.languages,list=[],language;for(language in languages)own.call(languages,language)&&typeof languages[language]=="object"&&list.push(language);return list}function stringify(value,language,parent){var env;return typeof value=="string"?{type:"text",value}:refract.util.type(value)==="Array"?stringifyAll(value,language):(env={type:value.type,content:refract.Token.stringify(value.content,language,parent),tag:"span",classes:["token",value.type],attributes:{},language,parent},value.alias&&(env.classes=env.classes.concat(value.alias)),refract.hooks.run("wrap",env),h(env.tag+"."+env.classes.join("."),attributes(env.attributes),env.content))}function stringifyAll(values,language){for(var result=[],length=values.length,index=-1,value;++index<length;)value=values[index],value!==""&&value!==null&&value!==void 0&&result.push(value);for(index=-1,length=result.length;++index<length;)value=result[index],result[index]=refract.Token.stringify(value,language,result);return result}function encode(tokens){return tokens}function attributes(attrs){var key;for(key in attrs)attrs[key]=decode(attrs[key]);return attrs}function capture(){var defined="Prism"in ctx,current=defined?ctx.Prism:void 0;return restore2;function restore2(){defined?ctx.Prism=current:delete ctx.Prism,defined=void 0,current=void 0}}},21625:module=>{"use strict";module.exports=clike,clike.displayName="clike",clike.aliases=[];function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},40579:module=>{"use strict";module.exports=css,css.displayName="css",css.aliases=[];function css(Prism){(function(Prism2){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism2.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"))})(Prism)}},57600:module=>{"use strict";module.exports=javascript,javascript.displayName="javascript",javascript.aliases=["js"];function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}},82961:module=>{"use strict";module.exports=jsx,jsx.displayName="jsx",jsx.aliases=[];function jsx(Prism){(function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function re(source,flags){return source=source.replace(/<S>/g,function(){return space}).replace(/<BRACES>/g,function(){return braces}).replace(/<SPREAD>/g,function(){return spread}),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend("markup",javascript),Prism2.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism2.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism2.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore("inside","attr-name",{spread:{pattern:re(/<SPREAD>/.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token=="string"?token:typeof token.content=="string"?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function(tokens){for(var openedTags=[],i=0;i<tokens.length;i++){var token=tokens[i],notTagNorBrace=!1;if(typeof token!="string"&&(token.type==="tag"&&token.content[0]&&token.content[0].type==="tag"?token.content[0].content[0].content==="</"?openedTags.length>0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content==="/>"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type==="punctuation"&&token.content==="{"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type==="punctuation"&&token.content==="}"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token=="string")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i<tokens.length-1&&(typeof tokens[i+1]=="string"||tokens[i+1].type==="plain-text")&&(plainText+=stringifyToken(tokens[i+1]),tokens.splice(i+1,1)),i>0&&(typeof tokens[i-1]=="string"||tokens[i-1].type==="plain-text")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token("plain-text",plainText,null,plainText)}token.content&&typeof token.content!="string"&&walkTokens(token.content)}};Prism2.hooks.add("after-tokenize",function(env){env.language!=="jsx"&&env.language!=="tsx"||walkTokens(env.tokens)})})(Prism)}},21042:module=>{"use strict";module.exports=markup,markup.displayName="markup",markup.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function markup(Prism){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(env){env.type==="entity"&&(env.attributes.title=env.content.value.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^<!\[CDATA\[|\]\]>$/i;var inside={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return tagName}),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}},72663:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var refractorJsx=__webpack_require__(82961),refractorTypescript=__webpack_require__(66409);module.exports=tsx,tsx.displayName="tsx",tsx.aliases=[];function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend("jsx",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx["literal-property"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}},66409:module=>{"use strict";module.exports=typescript,typescript.displayName="typescript",typescript.aliases=["ts"];function typescript(Prism){(function(Prism2){Prism2.languages.typescript=Prism2.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript["literal-property"];var typeInside=Prism2.languages.extend("typescript",{});delete typeInside["class-name"],Prism2.languages.typescript["class-name"].inside=typeInside,Prism2.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript})(Prism)}},39360:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,module.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,module.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(module.exports,__webpack_require__(59496))},69540:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports={locale:"en",long:__webpack_require__(45641),short:__webpack_require__(30963),narrow:__webpack_require__(97009),quantify:__webpack_require__(47931)}},47931:module=>{module.exports=function(n){var r=!String(n).split(".")[1];return n==1&&r?"one":"other"}},61874:(module,exports,__webpack_require__)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var buffer=__webpack_require__(55872),Buffer=buffer.Buffer;function copyProps(src,dst){for(var key in src)dst[key]=src[key]}Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=buffer:(copyProps(buffer,exports),exports.Buffer=SafeBuffer);function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}SafeBuffer.prototype=Object.create(Buffer.prototype),copyProps(Buffer,SafeBuffer),SafeBuffer.from=function(arg,encodingOrOffset,length){if(typeof arg=="number")throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)},SafeBuffer.alloc=function(size,fill,encoding){if(typeof size!="number")throw new TypeError("Argument must be a number");var buf=Buffer(size);return fill!==void 0?typeof encoding=="string"?buf.fill(fill,encoding):buf.fill(fill):buf.fill(0),buf},SafeBuffer.allocUnsafe=function(size){if(typeof size!="number")throw new TypeError("Argument must be a number");return Buffer(size)},SafeBuffer.allocUnsafeSlow=function(size){if(typeof size!="number")throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},1118:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var GetIntrinsic=__webpack_require__(67415),define=__webpack_require__(18003),hasDescriptors=__webpack_require__(94074)(),gOPD=__webpack_require__(70658),$TypeError=__webpack_require__(29837),$floor=GetIntrinsic("%Math.floor%");module.exports=function(fn,length){if(typeof fn!="function")throw new $TypeError("`fn` is not a function");if(typeof length!="number"||length<0||length>4294967295||$floor(length)!==length)throw new $TypeError("`length` must be a positive 32-bit integer");var loose=arguments.length>2&&!!arguments[2],functionLengthIsConfigurable=!0,functionLengthIsWritable=!0;if("length"in fn&&gOPD){var desc=gOPD(fn,"length");desc&&!desc.configurable&&(functionLengthIsConfigurable=!1),desc&&!desc.writable&&(functionLengthIsWritable=!1)}return(functionLengthIsConfigurable||functionLengthIsWritable||!loose)&&(hasDescriptors?define(fn,"length",length,!0,!0):define(fn,"length",length)),fn}},77700:(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";var GetIntrinsic=__webpack_require__(67415),callBound=__webpack_require__(74161),inspect=__webpack_require__(85306),$TypeError=__webpack_require__(29837),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(list,key){for(var prev=list,curr;(curr=prev.next)!==null;prev=curr)if(curr.key===key)return prev.next=curr.next,curr.next=list.next,list.next=curr,curr},listGet=function(objects,key){var node=listGetNode(objects,key);return node&&node.value},listSet=function(objects,key,value){var node=listGetNode(objects,key);node?node.value=value:objects.next={key,next:objects.next,value}},listHas=function(objects,key){return!!listGetNode(objects,key)};module.exports=function(){var $wm,$m,$o,channel={assert:function(key){if(!channel.has(key))throw new $TypeError("Side channel does not contain "+inspect(key))},get:function(key){if($WeakMap&&key&&(typeof key=="object"||typeof key=="function")){if($wm)return $weakMapGet($wm,key)}else if($Map){if($m)return $mapGet($m,key)}else if($o)return listGet($o,key)},has:function(key){if($WeakMap&&key&&(typeof key=="object"||typeof key=="function")){if($wm)return $weakMapHas($wm,key)}else if($Map){if($m)return $mapHas($m,key)}else if($o)return listHas($o,key);return!1},set:function(key,value){$WeakMap&&key&&(typeof key=="object"||typeof key=="function")?($wm||($wm=new $WeakMap),$weakMapSet($wm,key,value)):$Map?($m||($m=new $Map),$mapSet($m,key,value)):($o||($o={key:{},next:null}),listSet($o,key,value))}};return channel}},92868:(__unused_webpack_module,exports)=>{"use strict";var __webpack_unused_export__;exports.Q=parse,__webpack_unused_export__=stringify;var empty="",space=" ",whiteSpace=/[ \t\n\r\f]+/g;function parse(value){var input=String(value||empty).trim();return input===empty?[]:input.split(whiteSpace)}function stringify(values){return values.join(space).trim()}},76835:(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=Stream;var EE=__webpack_require__(27379).EventEmitter,inherits=__webpack_require__(2937);inherits(Stream,EE),Stream.Readable=__webpack_require__(25294),Stream.Writable=__webpack_require__(86481),Stream.Duplex=__webpack_require__(93337),Stream.Transform=__webpack_require__(41683),Stream.PassThrough=__webpack_require__(68797),Stream.finished=__webpack_require__(43675),Stream.pipeline=__webpack_require__(95597),Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(dest,options){var source=this;function ondata(chunk){dest.writable&&dest.write(chunk)===!1&&source.pause&&source.pause()}source.on("data",ondata);function ondrain(){source.readable&&source.resume&&source.resume()}dest.on("drain",ondrain),!dest._isStdio&&(!options||options.end!==!1)&&(source.on("end",onend),source.on("close",onclose));var didOnEnd=!1;function onend(){didOnEnd||(didOnEnd=!0,dest.end())}function onclose(){didOnEnd||(didOnEnd=!0,typeof dest.destroy=="function"&&dest.destroy())}function onerror(er){if(cleanup(),EE.listenerCount(this,"error")===0)throw er}source.on("error",onerror),dest.on("error",onerror);function cleanup(){source.removeListener("data",ondata),dest.removeListener("drain",ondrain),source.removeListener("end",onend),source.removeListener("close",onclose),source.removeListener("error",onerror),dest.removeListener("error",onerror),source.removeListener("end",cleanup),source.removeListener("close",cleanup),dest.removeListener("close",cleanup)}return source.on("end",cleanup),source.on("close",cleanup),dest.on("close",cleanup),dest.emit("pipe",source),dest}},72699:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var Buffer=__webpack_require__(61874).Buffer,isEncoding=Buffer.isEncoding||function(encoding){switch(encoding=""+encoding,encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(enc){if(!enc)return"utf8";for(var retried;;)switch(enc){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase(),retried=!0}}function normalizeEncoding(enc){var nenc=_normalizeEncoding(enc);if(typeof nenc!="string"&&(Buffer.isEncoding===isEncoding||!isEncoding(enc)))throw new Error("Unknown encoding: "+enc);return nenc||enc}exports.s=StringDecoder;function StringDecoder(encoding){this.encoding=normalizeEncoding(encoding);var nb;switch(this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,nb=4;break;case"utf8":this.fillLast=utf8FillLast,nb=4;break;case"base64":this.text=base64Text,this.end=base64End,nb=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Buffer.allocUnsafe(nb)}StringDecoder.prototype.write=function(buf){if(buf.length===0)return"";var r,i;if(this.lastNeed){if(r=this.fillLast(buf),r===void 0)return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<buf.length?r?r+this.text(buf,i):this.text(buf,i):r||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(buf){if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,buf.length),this.lastNeed-=buf.length};function utf8CheckByte(byte){return byte<=127?0:byte>>5===6?2:byte>>4===14?3:byte>>3===30?4:byte>>6===2?-1:-2}function utf8CheckIncomplete(self2,buf,i){var j=buf.length-1;if(j<i)return 0;var nb=utf8CheckByte(buf[j]);return nb>=0?(nb>0&&(self2.lastNeed=nb-1),nb):--j<i||nb===-2?0:(nb=utf8CheckByte(buf[j]),nb>=0?(nb>0&&(self2.lastNeed=nb-2),nb):--j<i||nb===-2?0:(nb=utf8CheckByte(buf[j]),nb>=0?(nb>0&&(nb===2?nb=0:self2.lastNeed=nb-3),nb):0))}function utf8CheckExtraBytes(self2,buf,p){if((buf[0]&192)!==128)return self2.lastNeed=0,"\uFFFD";if(self2.lastNeed>1&&buf.length>1){if((buf[1]&192)!==128)return self2.lastNeed=1,"\uFFFD";if(self2.lastNeed>2&&buf.length>2&&(buf[2]&192)!==128)return self2.lastNeed=2,"\uFFFD"}}function utf8FillLast(buf){var p=this.lastTotal-this.lastNeed,r=utf8CheckExtraBytes(this,buf,p);if(r!==void 0)return r;if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,p,0,buf.length),this.lastNeed-=buf.length}function utf8Text(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString("utf8",i);this.lastTotal=total;var end=buf.length-(total-this.lastNeed);return buf.copy(this.lastChar,0,end),buf.toString("utf8",i,end)}function utf8End(buf){var r=buf&&buf.length?this.write(buf):"";return this.lastNeed?r+"\uFFFD":r}function utf16Text(buf,i){if((buf.length-i)%2===0){var r=buf.toString("utf16le",i);if(r){var c=r.charCodeAt(r.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=buf[buf.length-1],buf.toString("utf16le",i,buf.length-1)}function utf16End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed){var end=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,end)}return r}function base64Text(buf,i){var n=(buf.length-i)%3;return n===0?buf.toString("base64",i):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=buf[buf.length-1]:(this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1]),buf.toString("base64",i,buf.length-n))}function base64End(buf){var r=buf&&buf.length?this.write(buf):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function simpleWrite(buf){return buf.toString(this.encoding)}function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}},98950:module=>{"use strict";module.exports={stdout:!1,stderr:!1}},48199:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{animateFill:()=>animateFill,createSingleton:()=>createSingleton,default:()=>__WEBPACK_DEFAULT_EXPORT__,delegate:()=>delegate,followCursor:()=>followCursor,hideAll:()=>hideAll,inlinePositioning:()=>inlinePositioning,roundArrow:()=>ROUND_ARROW,sticky:()=>sticky});var _popperjs_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60510),ROUND_ARROW='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0};function hasOwnProperty(obj,key){return{}.hasOwnProperty.call(obj,key)}function getValueAtIndexOrReturn(value,index,defaultValue){if(Array.isArray(value)){var v=value[index];return v??(Array.isArray(defaultValue)?defaultValue[index]:defaultValue)}return value}function isType(value,type){var str={}.toString.call(value);return str.indexOf("[object")===0&&str.indexOf(type+"]")>-1}function invokeWithArgsOrReturn(value,args){return typeof value=="function"?value.apply(void 0,args):value}function debounce(fn,ms){if(ms===0)return fn;var timeout;return function(arg){clearTimeout(timeout),timeout=setTimeout(function(){fn(arg)},ms)}}function removeProperties(obj,keys){var clone=Object.assign({},obj);return keys.forEach(function(key){delete clone[key]}),clone}function splitBySpaces(value){return value.split(/\s+/).filter(Boolean)}function normalizeToArray(value){return[].concat(value)}function pushIfUnique(arr,value){arr.indexOf(value)===-1&&arr.push(value)}function unique(arr){return arr.filter(function(item,index){return arr.indexOf(item)===index})}function getBasePlacement(placement){return placement.split("-")[0]}function arrayFrom(value){return[].slice.call(value)}function removeUndefinedProps(obj){return Object.keys(obj).reduce(function(acc,key){return obj[key]!==void 0&&(acc[key]=obj[key]),acc},{})}function div(){return document.createElement("div")}function isElement(value){return["Element","Fragment"].some(function(type){return isType(value,type)})}function isNodeList(value){return isType(value,"NodeList")}function isMouseEvent(value){return isType(value,"MouseEvent")}function isReferenceElement(value){return!!(value&&value._tippy&&value._tippy.reference===value)}function getArrayOfElements(value){return isElement(value)?[value]:isNodeList(value)?arrayFrom(value):Array.isArray(value)?value:arrayFrom(document.querySelectorAll(value))}function setTransitionDuration(els,value){els.forEach(function(el){el&&(el.style.transitionDuration=value+"ms")})}function setVisibilityState(els,state){els.forEach(function(el){el&&el.setAttribute("data-state",state)})}function getOwnerDocument(elementOrElements){var _normalizeToArray=normalizeToArray(elementOrElements),element=_normalizeToArray[0];return element&&element.ownerDocument||document}function isCursorOutsideInteractiveBorder(popperTreeData,event){var clientX=event.clientX,clientY=event.clientY;return popperTreeData.every(function(_ref){var popperRect=_ref.popperRect,popperState=_ref.popperState,props=_ref.props,interactiveBorder=props.interactiveBorder,basePlacement=getBasePlacement(popperState.placement),offsetData=popperState.modifiersData.offset;if(!offsetData)return!0;var topDistance=basePlacement==="bottom"?offsetData.top.y:0,bottomDistance=basePlacement==="top"?offsetData.bottom.y:0,leftDistance=basePlacement==="right"?offsetData.left.x:0,rightDistance=basePlacement==="left"?offsetData.right.x:0,exceedsTop=popperRect.top-clientY+topDistance>interactiveBorder,exceedsBottom=clientY-popperRect.bottom-bottomDistance>interactiveBorder,exceedsLeft=popperRect.left-clientX+leftDistance>interactiveBorder,exceedsRight=clientX-popperRect.right-rightDistance>interactiveBorder;return exceedsTop||exceedsBottom||exceedsLeft||exceedsRight})}function updateTransitionEndListener(box,action,listener){var method=action+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(event){box[method](event,listener)})}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var now=performance.now();now-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=now}function onWindowBlur(){var activeElement=document.activeElement;if(isReferenceElement(activeElement)){var instance=activeElement._tippy;activeElement.blur&&!instance.state.isVisible&&activeElement.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",ua=isBrowser?navigator.userAgent:"",isIE=/MSIE |Trident\//.test(ua);function createMemoryLeakWarning(method){var txt=method==="destroy"?"n already-":" ";return[method+"() was called on a"+txt+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function clean(value){var spacesAndTabs=/[ \t]{2,}/g,lineStartWithSpaces=/^[ \t]*/gm;return value.replace(spacesAndTabs," ").replace(lineStartWithSpaces,"").trim()}function getDevMessage(message){return clean(`
|
305
305
|
%ctippy.js
|
306
306
|
|
307
307
|
%c`+clean(message)+`
|
@@ -535,7 +535,7 @@ the following are permitted ${Object.keys(exports.IssuesClasses).join(", ")}`);c
|
|
535
535
|
}
|
536
536
|
}
|
537
537
|
${componentIdFields}
|
538
|
-
`},21268:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Filters",{enumerable:!0,get:function(){return _useComponent().Filters}}),Object.defineProperty(exports,"UseComponentType",{enumerable:!0,get:function(){return _useComponent().UseComponentType}}),exports.useComponent=useComponent;function _uiFoundationUiReactRouter(){const data=__webpack_require__(46718);return _uiFoundationUiReactRouter=function(){return data},data}function _useComponentQuery(){const data=__webpack_require__(62589);return _useComponentQuery=function(){return data},data}function _useComponent(){const data=__webpack_require__(48166);return _useComponent=function(){return data},data}function useComponent(host,id,options){const query=(0,_uiFoundationUiReactRouter().useQuery)(),{version,logFilters,customUseComponent,skip}=options||{},componentVersion=(version||query.get("version"))??void 0,componentIdStr=id&&withVersion(id,componentVersion);return(customUseComponent||_useComponentQuery().useComponentQuery)(componentIdStr||"",host,logFilters,skip||!id)}function withVersion(id,version){return!version||id.includes("@")?id:`${id}@${version}`}},48166:()=>{"use strict"},12645:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getOffsetValue=getOffsetValue;function getOffsetValue(offset,limit,backwards=!1){if(offset!==void 0)return backwards?-(offset+limit):offset;if(limit!==void 0)return 0}},25408:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewSkeleton=exports.CompositionCardSkeleton=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_loaders_skeleton_1=__webpack_require__(20298),composition_card_skeleton_module_scss_1=__importDefault(__webpack_require__(4192));function CompositionCardSkeleton(){return react_1.default.createElement("div",{className:composition_card_skeleton_module_scss_1.default.compositionCardSkeleton},react_1.default.createElement(PreviewSkeleton,null),react_1.default.createElement("div",{className:composition_card_skeleton_module_scss_1.default.bottom},react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"104px"})))}exports.CompositionCardSkeleton=CompositionCardSkeleton;function PreviewSkeleton(){return react_1.default.createElement("div",{className:composition_card_skeleton_module_scss_1.default.preview},react_1.default.createElement(base_ui_loaders_skeleton_1.BlockSkeleton,{lines:2,className:composition_card_skeleton_module_scss_1.default.block}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"208px"}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"152px"}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"88px"}))}exports.PreviewSkeleton=PreviewSkeleton},78647:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewSkeleton=exports.CompositionCardSkeleton=void 0;var composition_card_skeleton_1=__webpack_require__(25408);Object.defineProperty(exports,"CompositionCardSkeleton",{enumerable:!0,get:function(){return composition_card_skeleton_1.CompositionCardSkeleton}}),Object.defineProperty(exports,"PreviewSkeleton",{enumerable:!0,get:function(){return composition_card_skeleton_1.PreviewSkeleton}})},94075:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionCard=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),evangelist_elements_icon_1=__webpack_require__(86144),compositions_1=__webpack_require__(32552),design_ui_styles_ellipsis_1=__webpack_require__(2997),composition_card_module_scss_1=__importDefault(__webpack_require__(87342));exports.CompositionCard=react_1.default.memo(_CompositionCard);function _CompositionCard(_a){var{composition,component,className,openCompositionLink,previewClass}=_a,rest=__rest(_a,["composition","component","className","openCompositionLink","previewClass"]);const Composition=react_1.default.useMemo(()=>react_1.default.createElement(compositions_1.ComponentComposition,{className:previewClass,includeEnv:!1,loading:"lazy",composition,component,viewport:1280,scrolling:"no",previewName:"compositions"}),[composition.identifier,component.id.toString(),previewClass]);return react_1.default.createElement("div",Object.assign({},rest,{key:composition.identifier,className:(0,classnames_1.default)(composition_card_module_scss_1.default.compositionCard,className)}),react_1.default.createElement("div",{className:composition_card_module_scss_1.default.compositionPreview},Composition),react_1.default.createElement("div",{className:composition_card_module_scss_1.default.bottom},react_1.default.createElement("span",{className:(0,classnames_1.default)(design_ui_styles_ellipsis_1.ellipsis,composition_card_module_scss_1.default.displayName)},composition.displayName),openCompositionLink&&react_1.default.createElement("a",{className:composition_card_module_scss_1.default.link,target:"_blank",rel:"noopener noreferrer",href:openCompositionLink},react_1.default.createElement(evangelist_elements_icon_1.Icon,{className:composition_card_module_scss_1.default.icon,of:"open-tab"}))))}},75797:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionCardSkeleton=exports.CompositionCard=void 0;var composition_card_1=__webpack_require__(94075);Object.defineProperty(exports,"CompositionCard",{enumerable:!0,get:function(){return composition_card_1.CompositionCard}});var composition_card_skeleton_1=__webpack_require__(78647);Object.defineProperty(exports,"CompositionCardSkeleton",{enumerable:!0,get:function(){return composition_card_skeleton_1.CompositionCardSkeleton}})},4405:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.humanizeCompositionId=void 0;const humanize_string_1=__importDefault(__webpack_require__(28583));function humanizeCompositionId(rawId){return(0,humanize_string_1.default)(rawId)}exports.humanizeCompositionId=humanizeCompositionId},91888:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.humanizeCompositionId=void 0;var humanize_1=__webpack_require__(4405);Object.defineProperty(exports,"humanizeCompositionId",{enumerable:!0,get:function(){return humanize_1.humanizeCompositionId}})},94659:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallerySkeleton=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_loaders_skeleton_1=__webpack_require__(20298),composition_card_1=__webpack_require__(75797),composition_gallery_skeleton_module_scss_1=__importDefault(__webpack_require__(7975));function CompositionGallerySkeleton(_a){var{compositionsLength,className}=_a,rest=__rest(_a,["compositionsLength","className"]);const length=Array.from(Array(compositionsLength));return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(composition_gallery_skeleton_module_scss_1.default.compositionGallerySkeleton,className)}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"100px",className:composition_gallery_skeleton_module_scss_1.default.title}),react_1.default.createElement("div",{className:(0,classnames_1.default)(composition_gallery_skeleton_module_scss_1.default.compositionGalleryGrid)},length.map((_,index)=>react_1.default.createElement(composition_card_1.CompositionCardSkeleton,{key:`comp-card-skeleton-${index}`}))))}exports.CompositionGallerySkeleton=CompositionGallerySkeleton},67343:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallerySkeleton=void 0;var composition_gallery_skeleton_1=__webpack_require__(94659);Object.defineProperty(exports,"CompositionGallerySkeleton",{enumerable:!0,get:function(){return composition_gallery_skeleton_1.CompositionGallerySkeleton}})},94478:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallery=void 0;const react_1=__importDefault(__webpack_require__(59496)),design_elements_icon_1=__webpack_require__(29284),documenter_ui_linked_heading_1=__webpack_require__(19058),base_react_navigation_link_1=__webpack_require__(98560),composition_card_1=__webpack_require__(75797),composition_gallery_module_scss_1=__importDefault(__webpack_require__(47128));function CompositionGallery({component}){const navigate=(0,base_react_navigation_link_1.useNavigate)();return component.compositions.length>0?react_1.default.createElement("div",{className:composition_gallery_module_scss_1.default.compositionGallery},react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,{size:"sm",className:composition_gallery_module_scss_1.default.title},react_1.default.createElement(design_elements_icon_1.Icon,{of:"eye"})," ",react_1.default.createElement("span",null,"PREVIEW")),react_1.default.createElement("div",{className:composition_gallery_module_scss_1.default.carousel},component.compositions.map(composition=>react_1.default.createElement(composition_card_1.CompositionCard,{key:composition.identifier.toLowerCase(),onClick:()=>navigate(`~compositions/${composition.identifier.toLowerCase()}`),className:composition_gallery_module_scss_1.default.compositionGalleryCard,previewClass:composition_gallery_module_scss_1.default.preview,composition,component})))):null}exports.CompositionGallery=CompositionGallery},10726:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallerySkeleton=exports.CompositionGallery=void 0;var composition_gallery_1=__webpack_require__(94478);Object.defineProperty(exports,"CompositionGallery",{enumerable:!0,get:function(){return composition_gallery_1.CompositionGallery}});var composition_gallery_skeleton_1=__webpack_require__(67343);Object.defineProperty(exports,"CompositionGallerySkeleton",{enumerable:!0,get:function(){return composition_gallery_skeleton_1.CompositionGallerySkeleton}})},39708:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composition=void 0;function _compositionsModel(){const data=__webpack_require__(91888);return _compositionsModel=function(){return data},data}class Composition{constructor(identifier,filepath,_displayName){this.identifier=identifier,this.filepath=filepath,this._displayName=_displayName}get displayName(){return this._displayName||(0,_compositionsModel().humanizeCompositionId)(this.identifier)}toObject(){return{identifier:this.identifier,filepath:this.filepath,displayName:this._displayName}}toBrowserMetaDataObject(){return{identifier:this.identifier,displayName:this._displayName}}static fromArray(compositions){return compositions.map(composition=>new Composition(composition.identifier,composition.filepath,composition.displayName))}}exports.Composition=Composition},82704:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionContent=CompositionContent,exports.Compositions=Compositions;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _reactRouterDom(){const data=__webpack_require__(6152);return _reactRouterDom=function(){return data},data}function _lodash(){const data=_interopRequireDefault(__webpack_require__(40733));return _lodash=function(){return data},data}function _queryString(){const data=_interopRequireDefault(__webpack_require__(42546));return _queryString=function(){return data},data}function _documenterTheme(){const data=__webpack_require__(18170);return _documenterTheme=function(){return data},data}function _baseUiSurfacesSplitPane(){const data=__webpack_require__(4792);return _baseUiSurfacesSplitPane=function(){return data},data}function _baseUiSurfacesSplitPane2(){const data=__webpack_require__(56007);return _baseUiSurfacesSplitPane2=function(){return data},data}function _component(){const data=__webpack_require__(68211);return _component=function(){return data},data}function _documenterUi(){const data=__webpack_require__(6990);return _documenterUi=function(){return data},data}function _panels(){const data=__webpack_require__(52515);return _panels=function(){return data},data}function _docsUiQueries(){const data=__webpack_require__(82718);return _docsUiQueries=function(){return data},data}function _uiFoundationUiButtons(){const data=__webpack_require__(32098);return _uiFoundationUiButtons=function(){return data},data}function _designUi(){const data=__webpack_require__(89673);return _designUi=function(){return data},data}function _previewUi(){const data=__webpack_require__(27699);return _previewUi=function(){return data},data}function _uiFoundationUiHooks(){const data=__webpack_require__(87082);return _uiFoundationUiHooks=function(){return data},data}function _compositionsUi(){const data=__webpack_require__(10421);return _compositionsUi=function(){return data},data}function _compositionsUiHooks(){const data=__webpack_require__(77972);return _compositionsUiHooks=function(){return data},data}function _mdxUi(){const data=__webpack_require__(69909);return _mdxUi=function(){return data},data}function _designUi2(){const data=__webpack_require__(12563);return _designUi2=function(){return data},data}function _documenterUi2(){const data=__webpack_require__(37742);return _documenterUi2=function(){return data},data}function _designUi3(){const data=__webpack_require__(35682);return _designUi3=function(){return data},data}function _baseReactNavigation(){const data=__webpack_require__(98560);return _baseReactNavigation=function(){return data},data}function _designUiInput(){const data=__webpack_require__(11276);return _designUiInput=function(){return data},data}function _designUiSurfaces(){const data=__webpack_require__(56493);return _designUiSurfaces=function(){return data},data}function _compositionsModule(){const data=_interopRequireDefault(__webpack_require__(96484));return _compositionsModule=function(){return data},data}function _ui(){const data=__webpack_require__(29066);return _ui=function(){return data},data}function _compositionsPanel(){const data=__webpack_require__(14427);return _compositionsPanel=function(){return data},data}const _excluded=["component","selected","queryParams","emptyState"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _objectWithoutProperties(e,t){if(e==null)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _objectWithoutPropertiesLoose(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}const Link=_baseReactNavigation().Link;function Compositions({menuBarWidgets,emptyState}){const component=(0,_react().useContext)(_component().ComponentContext),[searchParams]=(0,_reactRouterDom().useSearchParams)(),params=(0,_reactRouterDom().useParams)(),versionFromQueryParams=searchParams.get("version"),navigate=(0,_baseReactNavigation().useNavigate)(),location=(0,_baseReactNavigation().useLocation)(),currentCompositionName=params["*"],currentComposition=component.compositions.find(composition=>composition.identifier.toLowerCase()===currentCompositionName)||(0,_lodash().default)(component.compositions),selectedRef=(0,_react().useRef)(currentComposition);selectedRef.current=currentComposition;const properties=(0,_docsUiQueries().useDocs)(component.id),showSidebar=!(0,_uiFoundationUiHooks().useIsMobile)()&&component.compositions.length>0,[isSidebarOpen,setSidebarOpenness]=(0,_react().useState)(showSidebar),sidebarOpenness=isSidebarOpen?_baseUiSurfacesSplitPane().Layout.row:_baseUiSurfacesSplitPane().Layout.left,compositionUrl=(0,_previewUi().toPreviewUrl)(component,"compositions"),isScaling=component?.preview?.isScaling,includesEnvTemplates=component?.preview?.includesEnvTemplate,useNameParam=component?.preview?.useNameParam,compositionIdentifierParam=useNameParam||isScaling&&includesEnvTemplates===!1?`name=${currentComposition?.identifier}`:currentComposition?.identifier,currentCompositionFullUrl=(0,_previewUi().toPreviewUrl)(component,"compositions",compositionIdentifierParam),[compositionParams,setCompositionParams]=(0,_react().useState)({fullscreen:!0}),queryParams=(0,_react().useMemo)(()=>_queryString().default.stringify(compositionParams),[compositionParams]);return(0,_react().useEffect)(()=>setSidebarOpenness(showSidebar),[showSidebar]),_react().default.createElement(_compositionsUiHooks().CompositionContextProvider,{queryParams:compositionParams,setQueryParams:setCompositionParams},_react().default.createElement(_baseUiSurfacesSplitPane().SplitPane,{layout:sidebarOpenness,size:"85%",className:_compositionsModule().default.compositionsPage},_react().default.createElement(_baseUiSurfacesSplitPane().Pane,{className:_compositionsModule().default.left},_react().default.createElement(_compositionsUi().CompositionsMenuBar,{menuBarWidgets,className:_compositionsModule().default.menuBar},_react().default.createElement(Link,{external:!0,href:currentCompositionFullUrl,className:_compositionsModule().default.openInNewTab},_react().default.createElement(_designUiInput().OptionButton,{icon:"open-tab"}))),_react().default.createElement(CompositionContent,{className:_compositionsModule().default.compositionPanel,emptyState,component,selected:currentComposition,queryParams})),_react().default.createElement(_baseUiSurfacesSplitPane2().HoverSplitter,{className:_compositionsModule().default.splitter},_react().default.createElement(_uiFoundationUiButtons().Collapser,{placement:"left",isOpen:isSidebarOpen,onMouseDown:e=>e.stopPropagation(),onClick:()=>setSidebarOpenness(x=>!x),tooltipContent:`${isSidebarOpen?"Hide":"Show"} side compositions`,className:_compositionsModule().default.collapser})),_react().default.createElement(_baseUiSurfacesSplitPane().Pane,{className:_compositionsModule().default.right},_react().default.createElement(_documenterTheme().ThemeContext,null,_react().default.createElement(_panels().TabContainer,{className:_compositionsModule().default.tabsContainer},_react().default.createElement(_panels().TabList,{className:_compositionsModule().default.tabs},_react().default.createElement(_panels().Tab,null,"compositions"),_react().default.createElement(_panels().Tab,null,"properties")),_react().default.createElement(_panels().TabPanel,{className:_compositionsModule().default.tabContent},_react().default.createElement(_compositionsPanel().CompositionsPanel,{isScaling,useNameParam,includesEnvTemplate:component.preview?.includesEnvTemplate,onSelectComposition:composition=>{if(!currentComposition||!location)return;const selectedCompositionFromUrl=params["*"],pathSegments=location.pathname.split("/").filter(x=>x);selectedCompositionFromUrl?pathSegments[pathSegments.length-1]=composition.identifier.toLowerCase():pathSegments.push(composition.identifier.toLowerCase());const urlParams=new URLSearchParams;versionFromQueryParams&&urlParams.set("version",versionFromQueryParams);const newPath=pathSegments.join("/");navigate(`/${newPath}?${urlParams.toString()}`)},url:compositionUrl,compositions:component.compositions,active:currentComposition})),_react().default.createElement(_panels().TabPanel,{className:_compositionsModule().default.tabContent},properties&&properties.length>0?_react().default.createElement(_documenterUi().PropTable,{rows:properties,showListView:!0}):_react().default.createElement("div",null)))))))}function CompositionContent(_ref){let{component,selected,queryParams,emptyState}=_ref,componentCompositionProps=_objectWithoutProperties(_ref,_excluded);const env=component.environment?.id,EmptyStateTemplate=emptyState?.get(env||"");return component.compositions.length===0&&component.host==="teambit.workspace/workspace"&&EmptyStateTemplate?_react().default.createElement("div",{className:_compositionsModule().default.noCompositionsPage},_react().default.createElement("div",null,_react().default.createElement(_documenterUi2().H1,{className:_compositionsModule().default.title},"Compositions"),_react().default.createElement(_designUi2().Separator,{isPresentational:!0,className:_compositionsModule().default.separator}),_react().default.createElement(_designUi3().AlertCard,{level:"info",title:"There are no compositions for this Component. Learn how to add compositions:"},_react().default.createElement(_mdxUi().MDXLayout,null,_react().default.createElement(EmptyStateTemplate,null))))):component?.buildStatus==="pending"&&component?.host==="teambit.scope/scope"?_react().default.createElement(_designUiSurfaces().StatusMessageCard,{className:_compositionsModule().default.buildStatusMessage,status:"PROCESSING",title:"component preview pending"},"this might take some time"):component?.buildStatus==="failed"&&component?.host==="teambit.scope/scope"?_react().default.createElement(_designUiSurfaces().StatusMessageCard,{className:_compositionsModule().default.buildStatusMessage,status:"FAILURE",title:"failed to get component preview "}):component.compositions.length===0?_react().default.createElement(_designUi().EmptyBox,{title:"There are no compositions for this component.",linkText:"Learn how to create compositions",link:"https://bit.dev/reference/dev-services-overview/compositions/compositions-overview"}):_react().default.createElement(_ui().ComponentComposition,_extends({className:_compositionsModule().default.compositionsIframe,viewport:null,component,forceHeight:"100%",composition:selected,fullContentHeight:!0,pubsub:!0,queryParams},componentCompositionProps))}},32552:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ComponentComposition",{enumerable:!0,get:function(){return _ui().ComponentComposition}}),Object.defineProperty(exports,"Composition",{enumerable:!0,get:function(){return _composition().Composition}}),Object.defineProperty(exports,"CompositionContent",{enumerable:!0,get:function(){return _compositions2().CompositionContent}}),Object.defineProperty(exports,"CompositionsAspect",{enumerable:!0,get:function(){return _compositions().CompositionsAspect}}),exports.default=void 0;function _compositions(){const data=__webpack_require__(36717);return _compositions=function(){return data},data}function _composition(){const data=__webpack_require__(39708);return _composition=function(){return data},data}function _compositions2(){const data=__webpack_require__(82704);return _compositions2=function(){return data},data}function _ui(){const data=__webpack_require__(29066);return _ui=function(){return data},data}var _default=exports.default=_compositions().CompositionsAspect},23700:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentComposition=ComponentComposition;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _previewUi(){const data=__webpack_require__(27699);return _previewUi=function(){return data},data}const _excluded=["composition","component","queryParams"];function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _objectWithoutProperties(e,t){if(e==null)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _objectWithoutPropertiesLoose(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}function ComponentComposition(_ref){let{composition,component,queryParams=[]}=_ref,rest=_objectWithoutProperties(_ref,_excluded);const includesEnvTemplate=component.preview?.includesEnvTemplate,isScaling=component.preview?.isScaling,shouldAddNameParam=component.preview?.useNameParam||isScaling&&includesEnvTemplate===!1,compositionParams=(0,_react().useMemo)(()=>(composition?[shouldAddNameParam?`name=${composition.identifier}`:composition.identifier]:[]).concat(queryParams),[composition?.identifier,queryParams]);return _react().default.createElement(_previewUi().ComponentPreview,_extends({},rest,{component,style:{width:"100%",height:"100%"},previewName:"compositions",queryParams:compositionParams}))}},14427:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsPanel=CompositionsPanel;function _evangelistElements(){const data=__webpack_require__(86144);return _evangelistElements=function(){return data},data}function _classnames(){const data=_interopRequireDefault(__webpack_require__(97754));return _classnames=function(){return data},data}function _reactRouterDom(){const data=__webpack_require__(6152);return _reactRouterDom=function(){return data},data}function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _uiFoundationUi(){const data=__webpack_require__(13202);return _uiFoundationUi=function(){return data},data}function _baseReactNavigation(){const data=__webpack_require__(98560);return _baseReactNavigation=function(){return data},data}function _compositionsPanelModule(){const data=_interopRequireDefault(__webpack_require__(10409));return _compositionsPanelModule=function(){return data},data}const _excluded=["url","compositions","isScaling","onSelectComposition","active","includesEnvTemplate","useNameParam","className"];function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _objectWithoutProperties(e,t){if(e==null)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _objectWithoutPropertiesLoose(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}function CompositionsPanel(_ref){let{url,compositions,isScaling,onSelectComposition:onSelect,active,includesEnvTemplate,useNameParam,className}=_ref,rest=_objectWithoutProperties(_ref,_excluded);const shouldAddNameParam=useNameParam||isScaling&&includesEnvTemplate===!1,handleSelect=(0,_react().useCallback)(selected=>{onSelect&&onSelect(selected)},[onSelect]),location=(0,_baseReactNavigation().useLocation)(),[searchParams]=(0,_reactRouterDom().useSearchParams)(),versionFromQueryParams=searchParams.get("version"),navigate=(0,_baseReactNavigation().useNavigate)(),onCompositionCodeClicked=(0,_react().useCallback)(composition=>e=>{e.preventDefault();const queryParams=new URLSearchParams;versionFromQueryParams&&queryParams.set("version",versionFromQueryParams);const basePath=location?.pathname.split("/~compositions")[0];navigate(`${basePath}/~code/${composition.filepath}?${queryParams.toString()}#search=${composition.identifier}`)},[location?.pathname,versionFromQueryParams]);return _react().default.createElement("ul",_extends({},rest,{className:(0,_classnames().default)(className)}),compositions.map(composition=>{const href=shouldAddNameParam?`${url}&name=${composition.identifier}`:`${url}&${composition.identifier}`;return _react().default.createElement("li",{key:composition.identifier,className:(0,_classnames().default)(_compositionsPanelModule().default.linkWrapper,composition===active&&_compositionsPanelModule().default.active)},_react().default.createElement("a",{className:_compositionsPanelModule().default.panelLink,onClick:()=>handleSelect(composition)},_react().default.createElement("span",{className:_compositionsPanelModule().default.box}),_react().default.createElement("span",{className:_compositionsPanelModule().default.name},composition.displayName)),_react().default.createElement("div",{className:_compositionsPanelModule().default.right},_react().default.createElement(_uiFoundationUi().MenuWidgetIcon,{className:_compositionsPanelModule().default.codeLink,icon:"Code",tooltipContent:"Code",onClick:onCompositionCodeClicked(composition)}),_react().default.createElement("a",{className:_compositionsPanelModule().default.panelLink,target:"_blank",rel:"noopener noreferrer",href},_react().default.createElement(_evangelistElements().Icon,{className:_compositionsPanelModule().default.icon,of:"open-tab"}))))}))}},29066:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ComponentComposition",{enumerable:!0,get:function(){return _compositionPreview().ComponentComposition}});function _compositionPreview(){const data=__webpack_require__(23700);return _compositionPreview=function(){return data},data}},69124:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AccountTypes=void 0;const react_1=__importDefault(__webpack_require__(59496)),default_avatar_1=__webpack_require__(27144),org_avatar_1=__webpack_require__(27636),user_avatar_1=__webpack_require__(18088);var AccountTypes;(function(AccountTypes2){AccountTypes2.org="organization",AccountTypes2.user="user",AccountTypes2.default="default"})(AccountTypes||(exports.AccountTypes=AccountTypes={}));function Avatar(props){const{account}=props;switch(account.accountType){case AccountTypes.user:return react_1.default.createElement(user_avatar_1.UserAvatar,Object.assign({},props));case AccountTypes.org:return react_1.default.createElement(org_avatar_1.OrgAvatar,Object.assign({},props));default:return react_1.default.createElement(default_avatar_1.DefaultAvatar,Object.assign({},props))}}exports.default=Avatar},27144:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultAvatar=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),styles_module_scss_1=__importDefault(__webpack_require__(12437));function DefaultAvatar(_a){var{size=32,children,className}=_a,rest=__rest(_a,["size","children","className"]);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(styles_module_scss_1.default.default,styles_module_scss_1.default.avatar,className),style:{width:`${size}px`,height:`${size}px`,fontSize:`${size*.35}px`,lineHeight:`${size}px`}},rest),"?",children)}exports.DefaultAvatar=DefaultAvatar},14452:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultAvatar=exports.OrgAvatar=exports.UserAvatar=void 0,__exportStar(__webpack_require__(69124),exports);var user_avatar_1=__webpack_require__(18088);Object.defineProperty(exports,"UserAvatar",{enumerable:!0,get:function(){return user_avatar_1.UserAvatar}});var org_avatar_1=__webpack_require__(27636);Object.defineProperty(exports,"OrgAvatar",{enumerable:!0,get:function(){return org_avatar_1.OrgAvatar}});var default_avatar_1=__webpack_require__(27144);Object.defineProperty(exports,"DefaultAvatar",{enumerable:!0,get:function(){return default_avatar_1.DefaultAvatar}})},27636:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrgAvatar=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),toolbox_url_add_avatar_query_params_1=__webpack_require__(66045),styles_module_scss_1=__importDefault(__webpack_require__(12437));function OrgAvatar(_a){var{account,size=32,imageSize=size,fontSize=Math.round(size*.4),className,imgClassName,children}=_a,rest=__rest(_a,["account","size","imageSize","fontSize","className","imgClassName","children"]);const{profileImage=""}=account,profileImageWithParams=profileImage&&profileImage.startsWith("blob:")?profileImage:(0,toolbox_url_add_avatar_query_params_1.addAvatarQueryParams)(profileImage,imageSize,styles_module_scss_1.default.defaultAvatarBgColor);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(styles_module_scss_1.default.default,styles_module_scss_1.default.avatar,className),style:{width:`${size}px`,height:`${size}px`}},rest),profileImageWithParams&&react_1.default.createElement("img",{src:profileImageWithParams,className:(0,classnames_1.default)(styles_module_scss_1.default.avatarImg,profileImage.startsWith("blob:")&&styles_module_scss_1.default.blob,imgClassName)}),react_1.default.createElement("span",{className:styles_module_scss_1.default.defaultAvatar},react_1.default.createElement("i",{className:"bitcon-organization",style:{fontSize:`${fontSize}px`,lineHeight:`${size}px`}})),children)}exports.OrgAvatar=OrgAvatar},18088:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserAvatar=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),design_elements_icon_1=__webpack_require__(29284),toolbox_url_add_avatar_query_params_1=__webpack_require__(66045),toolbox_string_get_initials_1=__webpack_require__(85749),design_ui_styles_colors_by_letter_1=__webpack_require__(43754),design_ui_styles_ellipsis_1=__webpack_require__(2997),design_ui_tooltip_1=__webpack_require__(93976),styles_module_scss_1=__importDefault(__webpack_require__(12437));function UserAvatar(_a){var{account,size,imageSize=size,fontSize=Math.round(size*.4),className,imgClassName,showTooltip=!1,children}=_a,rest=__rest(_a,["account","size","imageSize","fontSize","className","imgClassName","showTooltip","children"]);const{profileImage="",name="",displayName=""}=account,firstLetter=name[0]||displayName[0],profileImageWithParams=profileImage&&profileImage.startsWith("blob:")?profileImage:(0,toolbox_url_add_avatar_query_params_1.addAvatarQueryParams)(profileImage,imageSize,styles_module_scss_1.default.defaultAvatarBgColor),colors=firstLetter&&design_ui_styles_colors_by_letter_1.letterBgColors[firstLetter.toLowerCase()],avatar=react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(colors,styles_module_scss_1.default.avatar,className),style:{minWidth:`${size}px`,width:`${size}px`,height:`${size}px`}},rest),profileImageWithParams&&react_1.default.createElement("img",{src:profileImageWithParams,className:(0,classnames_1.default)(styles_module_scss_1.default.avatarImg,profileImage.startsWith("blob:")&&styles_module_scss_1.default.blob,imgClassName)}),(displayName||name)&&react_1.default.createElement("span",{className:styles_module_scss_1.default.letter,style:{fontSize:`${fontSize}px`,lineHeight:`${size}px`}},(0,toolbox_string_get_initials_1.getInitials)(displayName||name)),!displayName&&!name&&!profileImageWithParams&&!firstLetter&&react_1.default.createElement(design_elements_icon_1.Icon,{of:"solo-avatar",style:{fontSize:`${size}px`},className:(0,classnames_1.default)(styles_module_scss_1.default.avatarImg,styles_module_scss_1.default.soloAvatarIcon)}),children);return showTooltip?react_1.default.createElement(design_ui_tooltip_1.Tooltip,{placement:"bottom",content:react_1.default.createElement("div",{className:design_ui_styles_ellipsis_1.ellipsis},displayName?react_1.default.createElement(react_1.default.Fragment,null,displayName," (@",name,")"):react_1.default.createElement(react_1.default.Fragment,null,"@",name))},avatar):avatar}exports.UserAvatar=UserAvatar},59453:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TimeAgo=void 0;var time_ago_1=__webpack_require__(78278);Object.defineProperty(exports,"TimeAgo",{enumerable:!0,get:function(){return time_ago_1.TimeAgo}})},78278:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TimeAgo=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_utils_time_ago_1=__importDefault(__webpack_require__(72149)),design_ui_tooltip_1=__webpack_require__(93976),time_ago_module_scss_1=__importDefault(__webpack_require__(68611));function TimeAgo(_a){var{date,tooltip,className}=_a,rest=__rest(_a,["date","tooltip","className"]);const[refreshIdx,forceUpdate]=(0,react_1.useReducer)(x=>x+1,0);(0,react_1.useEffect)(()=>{const tId=setInterval(()=>forceUpdate(),6e4);return()=>clearInterval(tId)},[]);const formatted=(0,react_1.useMemo)(()=>(0,base_ui_utils_time_ago_1.default)(date),[date,refreshIdx]);return(element=>tooltip===void 0?element:react_1.default.createElement(design_ui_tooltip_1.Tooltip,{className:time_ago_module_scss_1.default.dateTooltip,placement:"top",content:react_1.default.createElement("div",{className:time_ago_module_scss_1.default.dateTooltipContent},tooltip)},element))(react_1.default.createElement("span",Object.assign({},rest,{className:(0,classnames_1.default)(className)}),formatted))}exports.TimeAgo=TimeAgo},93976:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.tippy=exports.useSingleton=exports.TooltipMountPoint=exports.SingletonTooltipProvider=exports.useCtxTooltipInstance=exports.ProvideTooltipInstance=exports.Tooltip=void 0;var tooltip_1=__webpack_require__(34128);Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return tooltip_1.Tooltip}});var shared_instance_1=__webpack_require__(30003);Object.defineProperty(exports,"ProvideTooltipInstance",{enumerable:!0,get:function(){return shared_instance_1.ProvideTooltipInstance}}),Object.defineProperty(exports,"useCtxTooltipInstance",{enumerable:!0,get:function(){return shared_instance_1.useCtxTooltipInstance}});var singleton_instance_1=__webpack_require__(93052);Object.defineProperty(exports,"SingletonTooltipProvider",{enumerable:!0,get:function(){return singleton_instance_1.SingletonTooltipProvider}});var mount_point_1=__webpack_require__(18978);Object.defineProperty(exports,"TooltipMountPoint",{enumerable:!0,get:function(){return mount_point_1.TooltipMountPoint}});var react_1=__webpack_require__(33224);Object.defineProperty(exports,"useSingleton",{enumerable:!0,get:function(){return react_1.useSingleton}}),Object.defineProperty(exports,"tippy",{enumerable:!0,get:function(){return react_1.tippy}})},18978:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TooltipMountPoint=exports.getMountPoint=exports.mountId=void 0;const react_1=__importDefault(__webpack_require__(59496));exports.mountId="tooltip-mount-point";function getMountPoint(ref){return document.getElementById(exports.mountId)||ref.parentElement||document.body}exports.getMountPoint=getMountPoint;function TooltipMountPoint(){return react_1.default.createElement("div",{id:exports.mountId})}exports.TooltipMountPoint=TooltipMountPoint},30003:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useCtxTooltipInstance=exports.ProvideTooltipInstance=void 0;const react_1=__importStar(__webpack_require__(59496)),singletonContext=(0,react_1.createContext)(void 0);function ProvideTooltipInstance({value,children}){return react_1.default.createElement(singletonContext.Provider,{value},children)}exports.ProvideTooltipInstance=ProvideTooltipInstance;function useCtxTooltipInstance(){return(0,react_1.useContext)(singletonContext)}exports.useCtxTooltipInstance=useCtxTooltipInstance},93052:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SingletonTooltipProvider=void 0;const react_1=__importDefault(__webpack_require__(59496)),react_2=__webpack_require__(33224),shared_instance_1=__webpack_require__(30003),tooltip_1=__webpack_require__(34128);function SingletonTooltipProvider(_a){var{children,disabled,overrides}=_a,rest=__rest(_a,["children","disabled","overrides"]);const[tooltipSource,tooltipTarget]=(0,react_2.useSingleton)({disabled,overrides});return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(tooltip_1.Tooltip,Object.assign({},rest,{singleton:tooltipSource})),react_1.default.createElement(shared_instance_1.ProvideTooltipInstance,{value:tooltipTarget},children))}exports.SingletonTooltipProvider=SingletonTooltipProvider},34128:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tooltip=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),ui_foundation_ui_hooks_use_is_mobile_1=__webpack_require__(87082),base_ui_theme_dark_theme_1=__webpack_require__(12880),react_2=__importDefault(__webpack_require__(33224)),tippy_js_1=__webpack_require__(48199);__webpack_require__(95736),__webpack_require__(79425);const mount_point_1=__webpack_require__(18978),shared_instance_1=__webpack_require__(30003);__webpack_require__(22264);const THEME="teambit",popperOptions={modifiers:[{name:"arrow",options:{padding:5}}]};function Tooltip(_a){var{children,breakline,singleton,visibleOnMobile,className}=_a,rest=__rest(_a,["children","breakline","singleton","visibleOnMobile","className"]);const isMobile=(0,ui_foundation_ui_hooks_use_is_mobile_1.useIsMobile)();if(!visibleOnMobile&&isMobile)return react_1.default.createElement(react_1.default.Fragment,null,children);const ctxInstance=(0,shared_instance_1.useCtxTooltipInstance)(),singletonInstance=singleton||ctxInstance,child=typeof children=="string"?react_1.default.createElement("span",null,children):children;return react_1.default.createElement(react_2.default,Object.assign({arrow:tippy_js_1.roundArrow,className:(0,classnames_1.default)(base_ui_theme_dark_theme_1.darkMode,breakline&&"tippy-breakLine",className),theme:THEME,interactive:!0,appendTo:mount_point_1.getMountPoint,popperOptions},rest,{singleton:singletonInstance}),child)}exports.Tooltip=Tooltip},7122:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDocs=exports.docsFields=void 0;const client_1=__webpack_require__(39713);exports.docsFields=(0,client_1.gql)`
|
538
|
+
`},21268:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Filters",{enumerable:!0,get:function(){return _useComponent().Filters}}),Object.defineProperty(exports,"UseComponentType",{enumerable:!0,get:function(){return _useComponent().UseComponentType}}),exports.useComponent=useComponent;function _uiFoundationUiReactRouter(){const data=__webpack_require__(46718);return _uiFoundationUiReactRouter=function(){return data},data}function _useComponentQuery(){const data=__webpack_require__(62589);return _useComponentQuery=function(){return data},data}function _useComponent(){const data=__webpack_require__(48166);return _useComponent=function(){return data},data}function useComponent(host,id,options){const query=(0,_uiFoundationUiReactRouter().useQuery)(),{version,logFilters,customUseComponent,skip}=options||{},componentVersion=(version||query.get("version"))??void 0,componentIdStr=id&&withVersion(id,componentVersion);return(customUseComponent||_useComponentQuery().useComponentQuery)(componentIdStr||"",host,logFilters,skip||!id)}function withVersion(id,version){return!version||id.includes("@")?id:`${id}@${version}`}},48166:()=>{"use strict"},12645:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getOffsetValue=getOffsetValue;function getOffsetValue(offset,limit,backwards=!1){if(offset!==void 0)return backwards?-(offset+limit):offset;if(limit!==void 0)return 0}},25408:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewSkeleton=exports.CompositionCardSkeleton=void 0;const react_1=__importDefault(__webpack_require__(59496)),base_ui_loaders_skeleton_1=__webpack_require__(20298),composition_card_skeleton_module_scss_1=__importDefault(__webpack_require__(4192));function CompositionCardSkeleton(){return react_1.default.createElement("div",{className:composition_card_skeleton_module_scss_1.default.compositionCardSkeleton},react_1.default.createElement(PreviewSkeleton,null),react_1.default.createElement("div",{className:composition_card_skeleton_module_scss_1.default.bottom},react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"104px"})))}exports.CompositionCardSkeleton=CompositionCardSkeleton;function PreviewSkeleton(){return react_1.default.createElement("div",{className:composition_card_skeleton_module_scss_1.default.preview},react_1.default.createElement(base_ui_loaders_skeleton_1.BlockSkeleton,{lines:2,className:composition_card_skeleton_module_scss_1.default.block}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"208px"}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"152px"}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"88px"}))}exports.PreviewSkeleton=PreviewSkeleton},78647:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PreviewSkeleton=exports.CompositionCardSkeleton=void 0;var composition_card_skeleton_1=__webpack_require__(25408);Object.defineProperty(exports,"CompositionCardSkeleton",{enumerable:!0,get:function(){return composition_card_skeleton_1.CompositionCardSkeleton}}),Object.defineProperty(exports,"PreviewSkeleton",{enumerable:!0,get:function(){return composition_card_skeleton_1.PreviewSkeleton}})},94075:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionCard=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),evangelist_elements_icon_1=__webpack_require__(86144),compositions_1=__webpack_require__(32552),design_ui_styles_ellipsis_1=__webpack_require__(2997),composition_card_module_scss_1=__importDefault(__webpack_require__(87342));exports.CompositionCard=react_1.default.memo(_CompositionCard);function _CompositionCard(_a){var{composition,component,className,openCompositionLink,previewClass}=_a,rest=__rest(_a,["composition","component","className","openCompositionLink","previewClass"]);const Composition=react_1.default.useMemo(()=>react_1.default.createElement(compositions_1.ComponentComposition,{className:previewClass,includeEnv:!1,loading:"lazy",composition,component,viewport:1280,scrolling:"no",previewName:"compositions"}),[composition.identifier,component.id.toString(),previewClass]);return react_1.default.createElement("div",Object.assign({},rest,{key:composition.identifier,className:(0,classnames_1.default)(composition_card_module_scss_1.default.compositionCard,className)}),react_1.default.createElement("div",{className:composition_card_module_scss_1.default.compositionPreview},Composition),react_1.default.createElement("div",{className:composition_card_module_scss_1.default.bottom},react_1.default.createElement("span",{className:(0,classnames_1.default)(design_ui_styles_ellipsis_1.ellipsis,composition_card_module_scss_1.default.displayName)},composition.displayName),openCompositionLink&&react_1.default.createElement("a",{className:composition_card_module_scss_1.default.link,target:"_blank",rel:"noopener noreferrer",href:openCompositionLink},react_1.default.createElement(evangelist_elements_icon_1.Icon,{className:composition_card_module_scss_1.default.icon,of:"open-tab"}))))}},75797:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionCardSkeleton=exports.CompositionCard=void 0;var composition_card_1=__webpack_require__(94075);Object.defineProperty(exports,"CompositionCard",{enumerable:!0,get:function(){return composition_card_1.CompositionCard}});var composition_card_skeleton_1=__webpack_require__(78647);Object.defineProperty(exports,"CompositionCardSkeleton",{enumerable:!0,get:function(){return composition_card_skeleton_1.CompositionCardSkeleton}})},4405:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.humanizeCompositionId=void 0;const humanize_string_1=__importDefault(__webpack_require__(28583));function humanizeCompositionId(rawId){return(0,humanize_string_1.default)(rawId)}exports.humanizeCompositionId=humanizeCompositionId},91888:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.humanizeCompositionId=void 0;var humanize_1=__webpack_require__(4405);Object.defineProperty(exports,"humanizeCompositionId",{enumerable:!0,get:function(){return humanize_1.humanizeCompositionId}})},94659:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallerySkeleton=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_loaders_skeleton_1=__webpack_require__(20298),composition_card_1=__webpack_require__(75797),composition_gallery_skeleton_module_scss_1=__importDefault(__webpack_require__(7975));function CompositionGallerySkeleton(_a){var{compositionsLength,className}=_a,rest=__rest(_a,["compositionsLength","className"]);const length=Array.from(Array(compositionsLength));return react_1.default.createElement("div",Object.assign({},rest,{className:(0,classnames_1.default)(composition_gallery_skeleton_module_scss_1.default.compositionGallerySkeleton,className)}),react_1.default.createElement(base_ui_loaders_skeleton_1.LineSkeleton,{width:"100px",className:composition_gallery_skeleton_module_scss_1.default.title}),react_1.default.createElement("div",{className:(0,classnames_1.default)(composition_gallery_skeleton_module_scss_1.default.compositionGalleryGrid)},length.map((_,index)=>react_1.default.createElement(composition_card_1.CompositionCardSkeleton,{key:`comp-card-skeleton-${index}`}))))}exports.CompositionGallerySkeleton=CompositionGallerySkeleton},67343:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallerySkeleton=void 0;var composition_gallery_skeleton_1=__webpack_require__(94659);Object.defineProperty(exports,"CompositionGallerySkeleton",{enumerable:!0,get:function(){return composition_gallery_skeleton_1.CompositionGallerySkeleton}})},94478:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallery=void 0;const react_1=__importDefault(__webpack_require__(59496)),design_elements_icon_1=__webpack_require__(29284),documenter_ui_linked_heading_1=__webpack_require__(19058),base_react_navigation_link_1=__webpack_require__(98560),composition_card_1=__webpack_require__(75797),composition_gallery_module_scss_1=__importDefault(__webpack_require__(47128));function CompositionGallery({component}){const navigate=(0,base_react_navigation_link_1.useNavigate)();return component.compositions.length>0?react_1.default.createElement("div",{className:composition_gallery_module_scss_1.default.compositionGallery},react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,{size:"sm",className:composition_gallery_module_scss_1.default.title},react_1.default.createElement(design_elements_icon_1.Icon,{of:"eye"})," ",react_1.default.createElement("span",null,"PREVIEW")),react_1.default.createElement("div",{className:composition_gallery_module_scss_1.default.carousel},component.compositions.map(composition=>react_1.default.createElement(composition_card_1.CompositionCard,{key:composition.identifier.toLowerCase(),onClick:()=>navigate(`~compositions/${composition.identifier.toLowerCase()}`),className:composition_gallery_module_scss_1.default.compositionGalleryCard,previewClass:composition_gallery_module_scss_1.default.preview,composition,component})))):null}exports.CompositionGallery=CompositionGallery},10726:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionGallerySkeleton=exports.CompositionGallery=void 0;var composition_gallery_1=__webpack_require__(94478);Object.defineProperty(exports,"CompositionGallery",{enumerable:!0,get:function(){return composition_gallery_1.CompositionGallery}});var composition_gallery_skeleton_1=__webpack_require__(67343);Object.defineProperty(exports,"CompositionGallerySkeleton",{enumerable:!0,get:function(){return composition_gallery_skeleton_1.CompositionGallerySkeleton}})},39708:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composition=void 0;function _compositionsModel(){const data=__webpack_require__(91888);return _compositionsModel=function(){return data},data}class Composition{constructor(identifier,filepath,_displayName){this.identifier=identifier,this.filepath=filepath,this._displayName=_displayName}get displayName(){return this._displayName||(0,_compositionsModel().humanizeCompositionId)(this.identifier)}toObject(){return{identifier:this.identifier,filepath:this.filepath,displayName:this._displayName}}toBrowserMetaDataObject(){return{identifier:this.identifier,displayName:this._displayName}}static fromArray(compositions){return compositions.map(composition=>new Composition(composition.identifier,composition.filepath,composition.displayName))}}exports.Composition=Composition},82704:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionContent=CompositionContent,exports.Compositions=Compositions;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _reactRouterDom(){const data=__webpack_require__(6152);return _reactRouterDom=function(){return data},data}function _lodash(){const data=_interopRequireDefault(__webpack_require__(40733));return _lodash=function(){return data},data}function _queryString(){const data=_interopRequireDefault(__webpack_require__(42546));return _queryString=function(){return data},data}function _documenterTheme(){const data=__webpack_require__(18170);return _documenterTheme=function(){return data},data}function _baseUiSurfacesSplitPane(){const data=__webpack_require__(4792);return _baseUiSurfacesSplitPane=function(){return data},data}function _baseUiSurfacesSplitPane2(){const data=__webpack_require__(56007);return _baseUiSurfacesSplitPane2=function(){return data},data}function _component(){const data=__webpack_require__(68211);return _component=function(){return data},data}function _documenterUi(){const data=__webpack_require__(6990);return _documenterUi=function(){return data},data}function _panels(){const data=__webpack_require__(52515);return _panels=function(){return data},data}function _docsUiQueries(){const data=__webpack_require__(82718);return _docsUiQueries=function(){return data},data}function _uiFoundationUiButtons(){const data=__webpack_require__(32098);return _uiFoundationUiButtons=function(){return data},data}function _designUi(){const data=__webpack_require__(89673);return _designUi=function(){return data},data}function _previewUi(){const data=__webpack_require__(27699);return _previewUi=function(){return data},data}function _uiFoundationUiHooks(){const data=__webpack_require__(87082);return _uiFoundationUiHooks=function(){return data},data}function _compositionsUi(){const data=__webpack_require__(10421);return _compositionsUi=function(){return data},data}function _compositionsUiHooks(){const data=__webpack_require__(77972);return _compositionsUiHooks=function(){return data},data}function _mdxUi(){const data=__webpack_require__(69909);return _mdxUi=function(){return data},data}function _designUi2(){const data=__webpack_require__(12563);return _designUi2=function(){return data},data}function _documenterUi2(){const data=__webpack_require__(37742);return _documenterUi2=function(){return data},data}function _designUi3(){const data=__webpack_require__(35682);return _designUi3=function(){return data},data}function _baseReactNavigation(){const data=__webpack_require__(98560);return _baseReactNavigation=function(){return data},data}function _designUiInput(){const data=__webpack_require__(11276);return _designUiInput=function(){return data},data}function _designUiSurfaces(){const data=__webpack_require__(56493);return _designUiSurfaces=function(){return data},data}function _designUi4(){const data=__webpack_require__(93976);return _designUi4=function(){return data},data}function _compositionsModule(){const data=_interopRequireDefault(__webpack_require__(96484));return _compositionsModule=function(){return data},data}function _ui(){const data=__webpack_require__(29066);return _ui=function(){return data},data}function _compositionsPanel(){const data=__webpack_require__(14427);return _compositionsPanel=function(){return data},data}const _excluded=["component","selected","queryParams","emptyState"];function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _objectWithoutProperties(e,t){if(e==null)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _objectWithoutPropertiesLoose(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}const Link=_baseReactNavigation().Link;function Compositions({menuBarWidgets,emptyState}){const component=(0,_react().useContext)(_component().ComponentContext),[searchParams]=(0,_reactRouterDom().useSearchParams)(),params=(0,_reactRouterDom().useParams)(),versionFromQueryParams=searchParams.get("version"),navigate=(0,_baseReactNavigation().useNavigate)(),location=(0,_baseReactNavigation().useLocation)(),currentCompositionName=params["*"],currentComposition=component.compositions.find(composition=>composition.identifier.toLowerCase()===currentCompositionName)||(0,_lodash().default)(component.compositions),selectedRef=(0,_react().useRef)(currentComposition);selectedRef.current=currentComposition;const properties=(0,_docsUiQueries().useDocs)(component.id),showSidebar=!(0,_uiFoundationUiHooks().useIsMobile)()&&component.compositions.length>0,[isSidebarOpen,setSidebarOpenness]=(0,_react().useState)(showSidebar),sidebarOpenness=isSidebarOpen?_baseUiSurfacesSplitPane().Layout.row:_baseUiSurfacesSplitPane().Layout.left,compositionUrl=(0,_previewUi().toPreviewUrl)(component,"compositions"),isScaling=component?.preview?.isScaling,includesEnvTemplates=component?.preview?.includesEnvTemplate,useNameParam=component?.preview?.useNameParam,compositionIdentifierParam=useNameParam||isScaling&&includesEnvTemplates===!1?`name=${currentComposition?.identifier}`:currentComposition?.identifier,currentCompositionFullUrl=(0,_previewUi().toPreviewUrl)(component,"compositions",compositionIdentifierParam),[compositionParams,setCompositionParams]=(0,_react().useState)({fullscreen:!0}),queryParams=(0,_react().useMemo)(()=>_queryString().default.stringify(compositionParams),[compositionParams]);return(0,_react().useEffect)(()=>setSidebarOpenness(showSidebar),[showSidebar]),_react().default.createElement(_compositionsUiHooks().CompositionContextProvider,{queryParams:compositionParams,setQueryParams:setCompositionParams},_react().default.createElement(_baseUiSurfacesSplitPane().SplitPane,{layout:sidebarOpenness,size:"85%",className:_compositionsModule().default.compositionsPage},_react().default.createElement(_baseUiSurfacesSplitPane().Pane,{className:_compositionsModule().default.left},_react().default.createElement(_compositionsUi().CompositionsMenuBar,{menuBarWidgets,className:_compositionsModule().default.menuBar},_react().default.createElement(_designUi4().Tooltip,{content:"Open in new tab",placement:"right"},_react().default.createElement(Link,{external:!0,href:currentCompositionFullUrl,className:_compositionsModule().default.openInNewTab},_react().default.createElement(_designUiInput().OptionButton,{icon:"open-tab"})))),_react().default.createElement(CompositionContent,{className:_compositionsModule().default.compositionPanel,emptyState,component,selected:currentComposition,queryParams})),_react().default.createElement(_baseUiSurfacesSplitPane2().HoverSplitter,{className:_compositionsModule().default.splitter},_react().default.createElement(_uiFoundationUiButtons().Collapser,{placement:"left",isOpen:isSidebarOpen,onMouseDown:e=>e.stopPropagation(),onClick:()=>setSidebarOpenness(x=>!x),tooltipContent:`${isSidebarOpen?"Hide":"Show"} side compositions`,className:_compositionsModule().default.collapser})),_react().default.createElement(_baseUiSurfacesSplitPane().Pane,{className:_compositionsModule().default.right},_react().default.createElement(_documenterTheme().ThemeContext,null,_react().default.createElement(_panels().TabContainer,{className:_compositionsModule().default.tabsContainer},_react().default.createElement(_panels().TabList,{className:_compositionsModule().default.tabs},_react().default.createElement(_panels().Tab,null,"compositions"),_react().default.createElement(_panels().Tab,null,"properties")),_react().default.createElement(_panels().TabPanel,{className:_compositionsModule().default.tabContent},_react().default.createElement(_compositionsPanel().CompositionsPanel,{isScaling,useNameParam,includesEnvTemplate:component.preview?.includesEnvTemplate,onSelectComposition:composition=>{if(!currentComposition||!location)return;const selectedCompositionFromUrl=params["*"],pathSegments=location.pathname.split("/").filter(x=>x);selectedCompositionFromUrl?pathSegments[pathSegments.length-1]=composition.identifier.toLowerCase():pathSegments.push(composition.identifier.toLowerCase());const urlParams=new URLSearchParams;versionFromQueryParams&&urlParams.set("version",versionFromQueryParams);const newPath=pathSegments.join("/");navigate(`/${newPath}?${urlParams.toString()}`)},url:compositionUrl,compositions:component.compositions,active:currentComposition})),_react().default.createElement(_panels().TabPanel,{className:_compositionsModule().default.tabContent},properties&&properties.length>0?_react().default.createElement(_documenterUi().PropTable,{rows:properties,showListView:!0}):_react().default.createElement("div",null)))))))}function CompositionContent(_ref){let{component,selected,queryParams,emptyState}=_ref,componentCompositionProps=_objectWithoutProperties(_ref,_excluded);const env=component.environment?.id,EmptyStateTemplate=emptyState?.get(env||"");return component.compositions.length===0&&component.host==="teambit.workspace/workspace"&&EmptyStateTemplate?_react().default.createElement("div",{className:_compositionsModule().default.noCompositionsPage},_react().default.createElement("div",null,_react().default.createElement(_documenterUi2().H1,{className:_compositionsModule().default.title},"Compositions"),_react().default.createElement(_designUi2().Separator,{isPresentational:!0,className:_compositionsModule().default.separator}),_react().default.createElement(_designUi3().AlertCard,{level:"info",title:"There are no compositions for this Component. Learn how to add compositions:"},_react().default.createElement(_mdxUi().MDXLayout,null,_react().default.createElement(EmptyStateTemplate,null))))):component?.buildStatus==="pending"&&component?.host==="teambit.scope/scope"?_react().default.createElement(_designUiSurfaces().StatusMessageCard,{className:_compositionsModule().default.buildStatusMessage,status:"PROCESSING",title:"component preview pending"},"this might take some time"):component?.buildStatus==="failed"&&component?.host==="teambit.scope/scope"?_react().default.createElement(_designUiSurfaces().StatusMessageCard,{className:_compositionsModule().default.buildStatusMessage,status:"FAILURE",title:"failed to get component preview "}):component.compositions.length===0?_react().default.createElement(_designUi().EmptyBox,{title:"There are no compositions for this component.",linkText:"Learn how to create compositions",link:"https://bit.dev/reference/dev-services-overview/compositions/compositions-overview"}):_react().default.createElement(_ui().ComponentComposition,_extends({className:_compositionsModule().default.compositionsIframe,viewport:null,component,forceHeight:"100%",composition:selected,fullContentHeight:!0,pubsub:!0,queryParams},componentCompositionProps))}},32552:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ComponentComposition",{enumerable:!0,get:function(){return _ui().ComponentComposition}}),Object.defineProperty(exports,"Composition",{enumerable:!0,get:function(){return _composition().Composition}}),Object.defineProperty(exports,"CompositionContent",{enumerable:!0,get:function(){return _compositions2().CompositionContent}}),Object.defineProperty(exports,"CompositionsAspect",{enumerable:!0,get:function(){return _compositions().CompositionsAspect}}),exports.default=void 0;function _compositions(){const data=__webpack_require__(36717);return _compositions=function(){return data},data}function _composition(){const data=__webpack_require__(39708);return _composition=function(){return data},data}function _compositions2(){const data=__webpack_require__(82704);return _compositions2=function(){return data},data}function _ui(){const data=__webpack_require__(29066);return _ui=function(){return data},data}var _default=exports.default=_compositions().CompositionsAspect},23700:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentComposition=ComponentComposition;function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _previewUi(){const data=__webpack_require__(27699);return _previewUi=function(){return data},data}const _excluded=["composition","component","queryParams"];function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _objectWithoutProperties(e,t){if(e==null)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _objectWithoutPropertiesLoose(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}function ComponentComposition(_ref){let{composition,component,queryParams=[]}=_ref,rest=_objectWithoutProperties(_ref,_excluded);const includesEnvTemplate=component.preview?.includesEnvTemplate,isScaling=component.preview?.isScaling,shouldAddNameParam=component.preview?.useNameParam||isScaling&&includesEnvTemplate===!1,compositionParams=(0,_react().useMemo)(()=>(composition?[shouldAddNameParam?`name=${composition.identifier}`:composition.identifier]:[]).concat(queryParams),[composition?.identifier,queryParams]);return _react().default.createElement(_previewUi().ComponentPreview,_extends({},rest,{component,style:{width:"100%",height:"100%"},previewName:"compositions",queryParams:compositionParams}))}},14427:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsPanel=CompositionsPanel;function _evangelistElements(){const data=__webpack_require__(86144);return _evangelistElements=function(){return data},data}function _classnames(){const data=_interopRequireDefault(__webpack_require__(97754));return _classnames=function(){return data},data}function _reactRouterDom(){const data=__webpack_require__(6152);return _reactRouterDom=function(){return data},data}function _react(){const data=_interopRequireWildcard(__webpack_require__(59496));return _react=function(){return data},data}function _uiFoundationUi(){const data=__webpack_require__(13202);return _uiFoundationUi=function(){return data},data}function _designUi(){const data=__webpack_require__(93976);return _designUi=function(){return data},data}function _baseReactNavigation(){const data=__webpack_require__(98560);return _baseReactNavigation=function(){return data},data}function _compositionsPanelModule(){const data=_interopRequireDefault(__webpack_require__(10409));return _compositionsPanelModule=function(){return data},data}const _excluded=["url","compositions","isScaling","onSelectComposition","active","includesEnvTemplate","useNameParam","className"];function _getRequireWildcardCache(e){if(typeof WeakMap!="function")return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e2){return e2?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if(u!=="default"&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function _objectWithoutProperties(e,t){if(e==null)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _objectWithoutPropertiesLoose(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}function CompositionsPanel(_ref){let{url,compositions,isScaling,onSelectComposition:onSelect,active,includesEnvTemplate,useNameParam,className}=_ref,rest=_objectWithoutProperties(_ref,_excluded);const shouldAddNameParam=useNameParam||isScaling&&includesEnvTemplate===!1,handleSelect=(0,_react().useCallback)(selected=>{onSelect&&onSelect(selected)},[onSelect]),location=(0,_baseReactNavigation().useLocation)(),[searchParams]=(0,_reactRouterDom().useSearchParams)(),versionFromQueryParams=searchParams.get("version"),navigate=(0,_baseReactNavigation().useNavigate)(),onCompositionCodeClicked=(0,_react().useCallback)(composition=>e=>{e.preventDefault();const queryParams=new URLSearchParams;versionFromQueryParams&&queryParams.set("version",versionFromQueryParams);const basePath=location?.pathname.split("/~compositions")[0];navigate(`${basePath}/~code/${composition.filepath}?${queryParams.toString()}#search=${composition.identifier}`)},[location?.pathname,versionFromQueryParams]);return _react().default.createElement("ul",_extends({},rest,{className:(0,_classnames().default)(className)}),compositions.map(composition=>{const href=shouldAddNameParam?`${url}&name=${composition.identifier}`:`${url}&${composition.identifier}`;return _react().default.createElement("li",{key:composition.identifier,className:(0,_classnames().default)(_compositionsPanelModule().default.linkWrapper,composition===active&&_compositionsPanelModule().default.active)},_react().default.createElement("a",{className:_compositionsPanelModule().default.panelLink,onClick:()=>handleSelect(composition)},_react().default.createElement("span",{className:_compositionsPanelModule().default.box}),_react().default.createElement("span",{className:_compositionsPanelModule().default.name},composition.displayName)),_react().default.createElement("div",{className:_compositionsPanelModule().default.right},_react().default.createElement(_uiFoundationUi().MenuWidgetIcon,{className:_compositionsPanelModule().default.codeLink,icon:"Code",tooltipContent:"Code",onClick:onCompositionCodeClicked(composition)}),_react().default.createElement(_designUi().Tooltip,{content:"Open in new tab",placement:"bottom"},_react().default.createElement("a",{className:_compositionsPanelModule().default.panelLink,target:"_blank",rel:"noopener noreferrer",href},_react().default.createElement(_evangelistElements().Icon,{className:_compositionsPanelModule().default.icon,of:"open-tab"})))))}))}},29066:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ComponentComposition",{enumerable:!0,get:function(){return _compositionPreview().ComponentComposition}});function _compositionPreview(){const data=__webpack_require__(23700);return _compositionPreview=function(){return data},data}},69124:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AccountTypes=void 0;const react_1=__importDefault(__webpack_require__(59496)),default_avatar_1=__webpack_require__(27144),org_avatar_1=__webpack_require__(27636),user_avatar_1=__webpack_require__(18088);var AccountTypes;(function(AccountTypes2){AccountTypes2.org="organization",AccountTypes2.user="user",AccountTypes2.default="default"})(AccountTypes||(exports.AccountTypes=AccountTypes={}));function Avatar(props){const{account}=props;switch(account.accountType){case AccountTypes.user:return react_1.default.createElement(user_avatar_1.UserAvatar,Object.assign({},props));case AccountTypes.org:return react_1.default.createElement(org_avatar_1.OrgAvatar,Object.assign({},props));default:return react_1.default.createElement(default_avatar_1.DefaultAvatar,Object.assign({},props))}}exports.default=Avatar},27144:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultAvatar=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),styles_module_scss_1=__importDefault(__webpack_require__(12437));function DefaultAvatar(_a){var{size=32,children,className}=_a,rest=__rest(_a,["size","children","className"]);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(styles_module_scss_1.default.default,styles_module_scss_1.default.avatar,className),style:{width:`${size}px`,height:`${size}px`,fontSize:`${size*.35}px`,lineHeight:`${size}px`}},rest),"?",children)}exports.DefaultAvatar=DefaultAvatar},14452:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DefaultAvatar=exports.OrgAvatar=exports.UserAvatar=void 0,__exportStar(__webpack_require__(69124),exports);var user_avatar_1=__webpack_require__(18088);Object.defineProperty(exports,"UserAvatar",{enumerable:!0,get:function(){return user_avatar_1.UserAvatar}});var org_avatar_1=__webpack_require__(27636);Object.defineProperty(exports,"OrgAvatar",{enumerable:!0,get:function(){return org_avatar_1.OrgAvatar}});var default_avatar_1=__webpack_require__(27144);Object.defineProperty(exports,"DefaultAvatar",{enumerable:!0,get:function(){return default_avatar_1.DefaultAvatar}})},27636:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.OrgAvatar=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),toolbox_url_add_avatar_query_params_1=__webpack_require__(66045),styles_module_scss_1=__importDefault(__webpack_require__(12437));function OrgAvatar(_a){var{account,size=32,imageSize=size,fontSize=Math.round(size*.4),className,imgClassName,children}=_a,rest=__rest(_a,["account","size","imageSize","fontSize","className","imgClassName","children"]);const{profileImage=""}=account,profileImageWithParams=profileImage&&profileImage.startsWith("blob:")?profileImage:(0,toolbox_url_add_avatar_query_params_1.addAvatarQueryParams)(profileImage,imageSize,styles_module_scss_1.default.defaultAvatarBgColor);return react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(styles_module_scss_1.default.default,styles_module_scss_1.default.avatar,className),style:{width:`${size}px`,height:`${size}px`}},rest),profileImageWithParams&&react_1.default.createElement("img",{src:profileImageWithParams,className:(0,classnames_1.default)(styles_module_scss_1.default.avatarImg,profileImage.startsWith("blob:")&&styles_module_scss_1.default.blob,imgClassName)}),react_1.default.createElement("span",{className:styles_module_scss_1.default.defaultAvatar},react_1.default.createElement("i",{className:"bitcon-organization",style:{fontSize:`${fontSize}px`,lineHeight:`${size}px`}})),children)}exports.OrgAvatar=OrgAvatar},18088:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserAvatar=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),design_elements_icon_1=__webpack_require__(29284),toolbox_url_add_avatar_query_params_1=__webpack_require__(66045),toolbox_string_get_initials_1=__webpack_require__(85749),design_ui_styles_colors_by_letter_1=__webpack_require__(43754),design_ui_styles_ellipsis_1=__webpack_require__(2997),design_ui_tooltip_1=__webpack_require__(93976),styles_module_scss_1=__importDefault(__webpack_require__(12437));function UserAvatar(_a){var{account,size,imageSize=size,fontSize=Math.round(size*.4),className,imgClassName,showTooltip=!1,children}=_a,rest=__rest(_a,["account","size","imageSize","fontSize","className","imgClassName","showTooltip","children"]);const{profileImage="",name="",displayName=""}=account,firstLetter=name[0]||displayName[0],profileImageWithParams=profileImage&&profileImage.startsWith("blob:")?profileImage:(0,toolbox_url_add_avatar_query_params_1.addAvatarQueryParams)(profileImage,imageSize,styles_module_scss_1.default.defaultAvatarBgColor),colors=firstLetter&&design_ui_styles_colors_by_letter_1.letterBgColors[firstLetter.toLowerCase()],avatar=react_1.default.createElement("div",Object.assign({className:(0,classnames_1.default)(colors,styles_module_scss_1.default.avatar,className),style:{minWidth:`${size}px`,width:`${size}px`,height:`${size}px`}},rest),profileImageWithParams&&react_1.default.createElement("img",{src:profileImageWithParams,className:(0,classnames_1.default)(styles_module_scss_1.default.avatarImg,profileImage.startsWith("blob:")&&styles_module_scss_1.default.blob,imgClassName)}),(displayName||name)&&react_1.default.createElement("span",{className:styles_module_scss_1.default.letter,style:{fontSize:`${fontSize}px`,lineHeight:`${size}px`}},(0,toolbox_string_get_initials_1.getInitials)(displayName||name)),!displayName&&!name&&!profileImageWithParams&&!firstLetter&&react_1.default.createElement(design_elements_icon_1.Icon,{of:"solo-avatar",style:{fontSize:`${size}px`},className:(0,classnames_1.default)(styles_module_scss_1.default.avatarImg,styles_module_scss_1.default.soloAvatarIcon)}),children);return showTooltip?react_1.default.createElement(design_ui_tooltip_1.Tooltip,{placement:"bottom",content:react_1.default.createElement("div",{className:design_ui_styles_ellipsis_1.ellipsis},displayName?react_1.default.createElement(react_1.default.Fragment,null,displayName," (@",name,")"):react_1.default.createElement(react_1.default.Fragment,null,"@",name))},avatar):avatar}exports.UserAvatar=UserAvatar},59453:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TimeAgo=void 0;var time_ago_1=__webpack_require__(78278);Object.defineProperty(exports,"TimeAgo",{enumerable:!0,get:function(){return time_ago_1.TimeAgo}})},78278:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TimeAgo=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),base_ui_utils_time_ago_1=__importDefault(__webpack_require__(72149)),design_ui_tooltip_1=__webpack_require__(93976),time_ago_module_scss_1=__importDefault(__webpack_require__(68611));function TimeAgo(_a){var{date,tooltip,className}=_a,rest=__rest(_a,["date","tooltip","className"]);const[refreshIdx,forceUpdate]=(0,react_1.useReducer)(x=>x+1,0);(0,react_1.useEffect)(()=>{const tId=setInterval(()=>forceUpdate(),6e4);return()=>clearInterval(tId)},[]);const formatted=(0,react_1.useMemo)(()=>(0,base_ui_utils_time_ago_1.default)(date),[date,refreshIdx]);return(element=>tooltip===void 0?element:react_1.default.createElement(design_ui_tooltip_1.Tooltip,{className:time_ago_module_scss_1.default.dateTooltip,placement:"top",content:react_1.default.createElement("div",{className:time_ago_module_scss_1.default.dateTooltipContent},tooltip)},element))(react_1.default.createElement("span",Object.assign({},rest,{className:(0,classnames_1.default)(className)}),formatted))}exports.TimeAgo=TimeAgo},93976:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.tippy=exports.useSingleton=exports.TooltipMountPoint=exports.SingletonTooltipProvider=exports.useCtxTooltipInstance=exports.ProvideTooltipInstance=exports.Tooltip=void 0;var tooltip_1=__webpack_require__(34128);Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return tooltip_1.Tooltip}});var shared_instance_1=__webpack_require__(30003);Object.defineProperty(exports,"ProvideTooltipInstance",{enumerable:!0,get:function(){return shared_instance_1.ProvideTooltipInstance}}),Object.defineProperty(exports,"useCtxTooltipInstance",{enumerable:!0,get:function(){return shared_instance_1.useCtxTooltipInstance}});var singleton_instance_1=__webpack_require__(93052);Object.defineProperty(exports,"SingletonTooltipProvider",{enumerable:!0,get:function(){return singleton_instance_1.SingletonTooltipProvider}});var mount_point_1=__webpack_require__(18978);Object.defineProperty(exports,"TooltipMountPoint",{enumerable:!0,get:function(){return mount_point_1.TooltipMountPoint}});var react_1=__webpack_require__(33224);Object.defineProperty(exports,"useSingleton",{enumerable:!0,get:function(){return react_1.useSingleton}}),Object.defineProperty(exports,"tippy",{enumerable:!0,get:function(){return react_1.tippy}})},18978:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TooltipMountPoint=exports.getMountPoint=exports.mountId=void 0;const react_1=__importDefault(__webpack_require__(59496));exports.mountId="tooltip-mount-point";function getMountPoint(ref){return document.getElementById(exports.mountId)||ref.parentElement||document.body}exports.getMountPoint=getMountPoint;function TooltipMountPoint(){return react_1.default.createElement("div",{id:exports.mountId})}exports.TooltipMountPoint=TooltipMountPoint},30003:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.useCtxTooltipInstance=exports.ProvideTooltipInstance=void 0;const react_1=__importStar(__webpack_require__(59496)),singletonContext=(0,react_1.createContext)(void 0);function ProvideTooltipInstance({value,children}){return react_1.default.createElement(singletonContext.Provider,{value},children)}exports.ProvideTooltipInstance=ProvideTooltipInstance;function useCtxTooltipInstance(){return(0,react_1.useContext)(singletonContext)}exports.useCtxTooltipInstance=useCtxTooltipInstance},93052:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SingletonTooltipProvider=void 0;const react_1=__importDefault(__webpack_require__(59496)),react_2=__webpack_require__(33224),shared_instance_1=__webpack_require__(30003),tooltip_1=__webpack_require__(34128);function SingletonTooltipProvider(_a){var{children,disabled,overrides}=_a,rest=__rest(_a,["children","disabled","overrides"]);const[tooltipSource,tooltipTarget]=(0,react_2.useSingleton)({disabled,overrides});return react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(tooltip_1.Tooltip,Object.assign({},rest,{singleton:tooltipSource})),react_1.default.createElement(shared_instance_1.ProvideTooltipInstance,{value:tooltipTarget},children))}exports.SingletonTooltipProvider=SingletonTooltipProvider},34128:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tooltip=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),ui_foundation_ui_hooks_use_is_mobile_1=__webpack_require__(87082),base_ui_theme_dark_theme_1=__webpack_require__(12880),react_2=__importDefault(__webpack_require__(33224)),tippy_js_1=__webpack_require__(48199);__webpack_require__(95736),__webpack_require__(79425);const mount_point_1=__webpack_require__(18978),shared_instance_1=__webpack_require__(30003);__webpack_require__(22264);const THEME="teambit",popperOptions={modifiers:[{name:"arrow",options:{padding:5}}]};function Tooltip(_a){var{children,breakline,singleton,visibleOnMobile,className}=_a,rest=__rest(_a,["children","breakline","singleton","visibleOnMobile","className"]);const isMobile=(0,ui_foundation_ui_hooks_use_is_mobile_1.useIsMobile)();if(!visibleOnMobile&&isMobile)return react_1.default.createElement(react_1.default.Fragment,null,children);const ctxInstance=(0,shared_instance_1.useCtxTooltipInstance)(),singletonInstance=singleton||ctxInstance,child=typeof children=="string"?react_1.default.createElement("span",null,children):children;return react_1.default.createElement(react_2.default,Object.assign({arrow:tippy_js_1.roundArrow,className:(0,classnames_1.default)(base_ui_theme_dark_theme_1.darkMode,breakline&&"tippy-breakLine",className),theme:THEME,interactive:!0,appendTo:mount_point_1.getMountPoint,popperOptions},rest,{singleton:singletonInstance}),child)}exports.Tooltip=Tooltip},7122:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDocs=exports.docsFields=void 0;const client_1=__webpack_require__(39713);exports.docsFields=(0,client_1.gql)`
|
539
539
|
fragment docsFields on ReactDocs {
|
540
540
|
abstract
|
541
541
|
properties {
|
@@ -660,7 +660,7 @@ the following are permitted ${Object.keys(exports.IssuesClasses).join(", ")}`);c
|
|
660
660
|
id
|
661
661
|
}
|
662
662
|
}
|
663
|
-
`,useRootLanes=(viewedLaneId,skip,options={},scope)=>{const{ids,offset,limit,sort}=options,{data,fetchMore,loading}=(0,ui_foundation_ui_hooks_use_data_query_1.useDataQuery)(GET_LANES,{variables:{laneIds:ids,offset,limit,sort,skipViewedLane:!viewedLaneId||viewedLaneId.isDefault(),viewedLaneId:viewedLaneId?[viewedLaneId?.toString()]:void 0},skip,errorPolicy:"all",fetchPolicy:"cache-and-network"}),lanesModel=(0,react_1.useMemo)(()=>{if(!loading&&!!data)return lanes_ui_models_lanes_model_1.LanesModel.from({data,scope})},[loading,data,viewedLaneId?.toString(),scope]),hasMore=(0,react_1.useMemo)(()=>{var _a,_b,_c,_d,_e,_f;return loading?!0:limit?ids?.length?((_c=(_b=(_a=data?.lanes)===null||_a===void 0?void 0:_a.list)===null||_b===void 0?void 0:_b.length)!==null&&_c!==void 0?_c:0)===ids.length:((_f=(_e=(_d=data?.lanes)===null||_d===void 0?void 0:_d.list)===null||_e===void 0?void 0:_e.length)!==null&&_f!==void 0?_f:0)>=limit:!1},[loading,data]),fetchMoreLanes=(0,react_1.useCallback)((newOffset,newLimit)=>__awaiter(void 0,void 0,void 0,function*(){var _a,_b;if(hasMore)try{const{data:moreData,networkStatus}=yield fetchMore({variables:{offset:newOffset,limit:newLimit,laneIds:[],skipViewedLane:!viewedLaneId||viewedLaneId.isDefault(),viewedLaneId:viewedLaneId?[viewedLaneId?.toString()]:void 0}}),loadingMore=networkStatus===3;return!loadingMore&&moreData.lanes?{lanesModel:lanes_ui_models_lanes_model_1.LanesModel.from({data:moreData}),loading:loadingMore,hasMore:((_b=(_a=moreData.lanes.list)===null||_a===void 0?void 0:_a.length)!==null&&_b!==void 0?_b:0)>=newLimit,nextOffset:newOffset+newLimit}:{lanesModel,loading:loadingMore,nextOffset:newOffset,currentLimit:newLimit}}catch(err){return console.error(err),{}}return{lanesModel,loading:!1,hasMore:!1,nextOffset:newOffset,currentLimit:newLimit}}),[hasMore,viewedLaneId?.toString(),lanesModel]);return{loading,lanesModel,fetchMoreLanes,hasMore,offset,limit}},useSearchLanes=(search,skip)=>{const{data:searchData,loading:loadingSearch}=(0,ui_foundation_ui_hooks_use_data_query_1.useDataQuery)(GET_LANES,{variables:{search,skipViewedLane:!0},skip:skip||!search,errorPolicy:"all",fetchPolicy:"cache-and-network"});return search?{loading:loadingSearch,lanesModel:searchData&&lanes_ui_models_lanes_model_1.LanesModel.from({data:{lanes:Object.assign(Object.assign({},searchData.lanes),{current:void 0,default:void 0})}})}:{}};exports.useSearchLanes=useSearchLanes;const useLanes=(targetLanes,skip,optionsFromProps,useContextFromProps=!0,scope)=>{var _a,_b,_c,_d,_e;const context=(0,lanes_context_1.useLanesContext)()||{},options=optionsFromProps||context?.options,isSameOptions=(0,lodash_1.isEqual)(options,context?.options),useContext=useContextFromProps&&!!context&&isSameOptions,shouldSkip=skip||!!targetLanes||useContext,rootLanesData=useRootLanes((_b=(_a=context?.lanesModel)===null||_a===void 0?void 0:_a.viewedLane)===null||_b===void 0?void 0:_b.id,shouldSkip,options,scope),searchResult=(0,exports.useSearchLanes)(options?.search,shouldSkip);return targetLanes?Object.assign(Object.assign(Object.assign({},context),rootLanesData),{lanesModel:targetLanes,searchResult}):useContext?Object.assign(Object.assign({},context),{searchResult}):((_c=rootLanesData.lanesModel)===null||_c===void 0||_c.setViewedLane((_e=(_d=context?.lanesModel)===null||_d===void 0?void 0:_d.viewedLane)===null||_e===void 0?void 0:_e.id),Object.assign(Object.assign(Object.assign({},context),rootLanesData),{searchResult}))};exports.useLanes=useLanes},97223:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LanesModel=void 0;var lanes_model_1=__webpack_require__(52422);Object.defineProperty(exports,"LanesModel",{enumerable:!0,get:function(){return lanes_model_1.LanesModel}})},52422:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LanesModel=void 0;const component_1=__webpack_require__(68211),lane_id_1=__webpack_require__(2538),component_id_1=__webpack_require__(99978),path_to_regexp_1=__webpack_require__(51419),lodash_1=__webpack_require__(32699);class LanesModel{static mapToLaneModel(laneData){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;const{id,laneComponentIds=[],readmeComponent,hash,createdAt,displayName,updatedAt,createdBy:createdByData,updatedBy:updatedByData}=laneData,componentIds=laneComponentIds?.map(laneComponentId=>component_id_1.ComponentID.fromObject(laneComponentId))||[],readmeComponentModel=readmeComponent&&component_1.ComponentModel.from(Object.assign({},readmeComponent)),createdAtDate=createdAt&&new Date(+createdAt)||void 0,createdBy=createdByData?{name:(_a=createdByData?.name)!==null&&_a!==void 0?_a:void 0,email:(_b=createdByData.email)!==null&&_b!==void 0?_b:void 0,username:(_c=createdByData?.username)!==null&&_c!==void 0?_c:void 0,displayName:(_d=createdByData?.displayName)!==null&&_d!==void 0?_d:void 0,profileImage:(_e=createdByData.profileImage)!==null&&_e!==void 0?_e:void 0}:void 0,updatedAtDate=updatedAt&&new Date(+updatedAt)||void 0,updatedBy=updatedByData?.name?{name:(_f=updatedByData?.name)!==null&&_f!==void 0?_f:void 0,username:(_g=updatedByData?.username)!==null&&_g!==void 0?_g:void 0,displayName:(_h=updatedByData?.displayName)!==null&&_h!==void 0?_h:void 0,email:(_j=updatedByData.email)!==null&&_j!==void 0?_j:void 0,profileImage:(_k=updatedByData.profileImage)!==null&&_k!==void 0?_k:void 0}:void 0;return{id:lane_id_1.LaneId.from(id.name,id.scope),components:componentIds,readmeComponent:readmeComponentModel,createdAt:createdAtDate,updatedAt:updatedAtDate,displayName,hash,updatedBy,createdBy}}static groupLaneIdsByScope(laneIds){const grouped=new Map;return laneIds.forEach(laneId=>{const{scope}=laneId;if(!grouped.has(scope))grouped.set(scope,[laneId]);else{const existing=grouped.get(scope);grouped.set(scope,[...existing,laneId])}}),grouped}static groupLanesByScope(lanes){const grouped=new Map;return lanes.forEach(lane=>{const{scope}=lane.id;if(!grouped.has(scope))grouped.set(scope,[lane]);else{const existing=grouped.get(scope);grouped.set(scope,[...existing,lane])}}),grouped}static groupByComponentNameAndId(lanes){const byName=new Map,byId=new Map;return lanes.forEach(lane=>{const{components}=lane;components.forEach(component=>{const name=component.fullName,id=component.toString(),existingByName=byName.get(name)||[],existingById=byId.get(id)||[];existingByName.push(lane),existingById.push(lane),byName.set(name,existingByName),byId.set(id,existingById)})}),{byName,byId}}static from({data,scope,viewedLaneId}){var _a,_b,_c,_d,_e;const lanes=((_b=(_a=data?.lanes)===null||_a===void 0?void 0:_a.list)===null||_b===void 0?void 0:_b.map(lane=>LanesModel.mapToLaneModel(lane)))||[],currentLane=!((_c=data?.lanes)===null||_c===void 0)&&_c.current?LanesModel.mapToLaneModel(data.lanes.current):void 0,defaultLane=!((_d=data?.lanes)===null||_d===void 0)&&_d.default?LanesModel.mapToLaneModel(data.lanes.default):scope&&LanesModel.mapToLaneModel({id:{name:"main",scope},hash:""})||lanes.find(lane=>lane.id.isDefault())||void 0,viewedLane=viewedLaneId?lanes.find(lane=>lane.id.isEqual(viewedLaneId)):((_e=data?.lanes)===null||_e===void 0?void 0:_e.viewedLane)&&LanesModel.mapToLaneModel(data.lanes.viewedLane[0])||currentLane||defaultLane;return new LanesModel({lanes,currentLane,defaultLane,viewedLane})}constructor({lanes=[],viewedLane,currentLane,defaultLane}){this.getLaneComponentUrlByVersion=(componentId,laneId,addScopeMetadataInUrl)=>{var _a;const defaultLane2=this.getDefaultLane();if(!componentId.version||!laneId||!defaultLane2||laneId&&this.currentLane&&laneId.isEqual(this.currentLane.id))return LanesModel.getMainComponentUrl(componentId,void 0,addScopeMetadataInUrl);const lane=(_a=this.getLanesByComponentId(componentId))===null||_a===void 0?void 0:_a.find(l=>l.id.isEqual(laneId));return lane?lane.id.isDefault()?LanesModel.getMainComponentUrl(componentId,void 0,addScopeMetadataInUrl):LanesModel.getLaneComponentUrl(componentId,lane.id,addScopeMetadataInUrl):defaultLane2.components.find(c=>c.isEqual(componentId))?LanesModel.getMainComponentUrl(componentId,laneId,addScopeMetadataInUrl):void 0},this.setViewedLane=viewedLaneId=>{this.viewedLane=viewedLaneId?this.lanes.find(lane=>lane.id.isEqual(viewedLaneId)):void 0},this.setViewedOrDefaultLane=viewedLaneId=>{this.viewedLane=viewedLaneId?this.lanes.find(lane=>lane.id.isEqual(viewedLaneId)):this.getDefaultLane()},this.resolveComponentFromUrl=(idFromUrl,laneId)=>{var _a;const comps=((_a=laneId&&this.lanes.find(lane=>lane.id.isEqual(laneId))||this.viewedLane)===null||_a===void 0?void 0:_a.components)||[];return idFromUrl.includes(".")?comps.find(component=>component.toStringWithoutVersion()===idFromUrl):comps.find(component=>component.fullName===idFromUrl)},this.getDefaultLane=()=>this.defaultLane,this.getNonMainLanes=()=>this.lanes.filter(lane=>!lane.id.isDefault()),this.isInViewedLane=(componentId,includeVersion)=>{var _a,_b;return includeVersion?(_a=this.viewedLane)===null||_a===void 0?void 0:_a.components.some(comp=>includeVersion&&comp.isEqual(componentId)):(_b=this.viewedLane)===null||_b===void 0?void 0:_b.components.some(comp=>includeVersion&&comp.isEqual(componentId,{ignoreVersion:!0}))},this.isViewingCurrentLane=()=>this.currentLane&&this.viewedLane&&this.currentLane.id.isEqual(this.viewedLane.id),this.isViewingDefaultLane=()=>this.viewedLane&&this.viewedLane.id.isDefault(),this.isViewingNonDefaultLane=()=>this.viewedLane&&!this.viewedLane.id.isDefault(),this.getLanesByComponentName=componentId=>this.lanesByComponentName.get(componentId.fullName),this.getLanesByComponentId=componentId=>this.lanesByComponentId.get(componentId.toString()),this.isComponentOnMain=(componentId,includeVersion)=>{var _a,_b;return includeVersion?!!(!((_a=this.getLanesByComponentId(componentId))===null||_a===void 0)&&_a.some(lane=>lane.id.isDefault())):!!(!((_b=this.getLanesByComponentName(componentId))===null||_b===void 0)&&_b.some(lane=>lane.id.isDefault()))},this.isComponentOnMainButNotOnLane=(componentId,includeVersion,laneId)=>this.isComponentOnMain(componentId,includeVersion)&&!this.isComponentOnNonDefaultLanes(componentId,includeVersion,laneId),this.isComponentOnLaneButNotOnMain=(componentId,includeVersion,laneId)=>!this.isComponentOnMain(componentId,includeVersion)&&this.isComponentOnNonDefaultLanes(componentId,includeVersion,laneId),this.isComponentOnNonDefaultLanes=(componentId,includeVersion,laneId)=>{var _a,_b;return includeVersion?!!(!((_a=this.getLanesByComponentId(componentId))===null||_a===void 0)&&_a.some(lane=>!lane.id.isDefault()&&(!laneId||lane.id.isEqual(laneId)))):!!(!((_b=this.getLanesByComponentName(componentId))===null||_b===void 0)&&_b.some(lane=>!lane.id.isDefault()&&(!laneId||lane.id.isEqual(laneId))))},this.viewedLane=viewedLane,this.currentLane=currentLane,this.defaultLane=defaultLane;const allUniqueLanes=(0,lodash_1.compact)((0,lodash_1.uniqBy)([...lanes,this.defaultLane,this.currentLane,this.viewedLane],lane=>lane?.id.toString()));this.lanes=allUniqueLanes,this.laneIdsByScope=LanesModel.groupLaneIdsByScope(this.lanes.map(lane=>lane.id));const{byId,byName}=LanesModel.groupByComponentNameAndId(this.lanes);this.lanesByComponentId=byId,this.lanesByComponentName=byName}addLanes(newLanes=[]){this.lanes=LanesModel.concatLanes(this.lanes,newLanes),this.laneIdsByScope=LanesModel.groupLaneIdsByScope(this.lanes.map(lane=>lane.id));const{byId,byName}=LanesModel.groupByComponentNameAndId(this.lanes);this.lanesByComponentId=byId,this.lanesByComponentName=byName}static concatLanes(lanes=[],newLanes=[]){return(0,lodash_1.compact)((0,lodash_1.uniqBy)([...lanes,...newLanes],lane=>lane?.id.toString()))}}exports.LanesModel=LanesModel,LanesModel.lanesPrefix="~lane",LanesModel.baseLaneComponentRoute="/~component",LanesModel.lanePath=":scopeId/:laneId",LanesModel.laneUrlParamsKey="lane",LanesModel.laneFromPathRegex=(0,path_to_regexp_1.pathToRegexp)(`${LanesModel.lanesPrefix}/${LanesModel.lanePath}`,void 0,{end:!1,start:!1}),LanesModel.getLaneIdFromPathname=(pathname,urlSearchParams)=>{const matches=LanesModel.laneFromPathRegex.exec(pathname);if(matches){const[,scopeId,laneId]=matches;return lane_id_1.LaneId.from(laneId,scopeId)}if(urlSearchParams){const laneIdQueryParam=urlSearchParams.get(LanesModel.laneUrlParamsKey);return laneIdQueryParam?lane_id_1.LaneId.parse(laneIdQueryParam):void 0}},LanesModel.getLaneUrl=(laneId,relative)=>`${relative?"":"/"}${LanesModel.lanesPrefix}/${laneId.toString()}`,LanesModel.getLaneComponentUrl=(componentId,laneId,addScopeMetadataInUrl)=>{const isExternalComponent=componentId.scope!==laneId.scope,laneUrl=LanesModel.getLaneUrl(laneId),queryParams=new URLSearchParams;return componentId.version&&queryParams.set("version",componentId.version),addScopeMetadataInUrl&&queryParams.set("scope",componentId.scope),`${isExternalComponent?`${laneUrl}${LanesModel.baseLaneComponentRoute}/${componentId.toStringWithoutVersion()}`:`${laneUrl}${LanesModel.baseLaneComponentRoute}/${componentId.fullName}`}?${queryParams.toString()}`},LanesModel.getMainComponentUrl=(componentId,laneId,addScopeMetadataInUrl)=>{const componentUrl=componentId.fullName,queryParams=new URLSearchParams;return laneId&&queryParams.set(LanesModel.laneUrlParamsKey,laneId.toString()),addScopeMetadataInUrl&&queryParams.set("scope",componentId.scope),`${componentUrl}?${queryParams.toString()}`}},52515:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PanelUiAspect",{enumerable:!0,get:function(){return _panelUi().PanelUiAspect}}),Object.defineProperty(exports,"Tab",{enumerable:!0,get:function(){return _tabs().Tab}}),Object.defineProperty(exports,"TabContainer",{enumerable:!0,get:function(){return _tabs().TabContainer}}),Object.defineProperty(exports,"TabList",{enumerable:!0,get:function(){return _tabs().TabList}}),Object.defineProperty(exports,"TabPanel",{enumerable:!0,get:function(){return _tabs().TabPanel}});function _panelUi(){const data=__webpack_require__(9322);return _panelUi=function(){return data},data}function _tabs(){const data=__webpack_require__(63096);return _tabs=function(){return data},data}},9322:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PanelUiAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PanelUiAspect=exports.PanelUiAspect=_harmony().Aspect.create({id:"teambit.ui-foundation/panels",dependencies:[],defaultConfig:{}})},63096:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tab=Tab,exports.TabContainer=void 0,exports.TabList=TabList,exports.TabPanel=void 0;function _classnames(){const data=_interopRequireDefault(__webpack_require__(97754));return _classnames=function(){return data},data}function _react(){const data=_interopRequireDefault(__webpack_require__(59496));return _react=function(){return data},data}function _reactTabs(){const data=__webpack_require__(35493);return _reactTabs=function(){return data},data}function _tabsModule(){const data=_interopRequireDefault(__webpack_require__(42664));return _tabsModule=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}const TabContainer=exports.TabContainer=_reactTabs().Tabs;function TabList(props){return _react().default.createElement(_reactTabs().TabList,_extends({},props,{className:(0,_classnames().default)(_tabsModule().default.tabContainer,props.className)}))}TabList.tabsRole="TabList";const TabPanel=exports.TabPanel=_reactTabs().TabPanel;function Tab(props){return _react().default.createElement(_reactTabs().Tab,_extends({},props,{className:(0,_classnames().default)(props.className,_tabsModule().default.tab),selectedClassName:_tabsModule().default.active,disabledClassName:_tabsModule().default.disabled}))}Tab.tabsRole="Tab"},75665:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.computePreviewScale=void 0;function computePreviewScale(width,containerWidth){const scale=containerWidth*.95/width;return scale>1?"scale(1)":`scale(${scale})`}exports.computePreviewScale=computePreviewScale},27699:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toPreviewHash=exports.toPreviewServer=exports.toPreviewUrl=exports.ComponentPreview=void 0;var preview_1=__webpack_require__(34874);Object.defineProperty(exports,"ComponentPreview",{enumerable:!0,get:function(){return preview_1.ComponentPreview}});var urls_1=__webpack_require__(99768);Object.defineProperty(exports,"toPreviewUrl",{enumerable:!0,get:function(){return urls_1.toPreviewUrl}}),Object.defineProperty(exports,"toPreviewServer",{enumerable:!0,get:function(){return urls_1.toPreviewServer}}),Object.defineProperty(exports,"toPreviewHash",{enumerable:!0,get:function(){return urls_1.toPreviewHash}})},34874:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentPreview=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),lodash_1=__webpack_require__(32699),penpal_1=__webpack_require__(63805),pubsub_1=__webpack_require__(23179),ui_foundation_ui_rendering_html_1=__webpack_require__(91375),urls_1=__webpack_require__(99768),compute_preview_scale_1=__webpack_require__(75665),use_iframe_content_height_1=__webpack_require__(63853),preview_module_scss_1=__importDefault(__webpack_require__(16438));function ComponentPreview(_a){var _b,_c,_d,{component,previewName,className,forceHeight,includeEnv=!0,queryParams,disableScroll=!1,pubsub,innerBottomPadding=0,viewport=1280,fullContentHeight=!1,onLoad,style}=_a,rest=__rest(_a,["component","previewName","className","forceHeight","includeEnv","queryParams","disableScroll","pubsub","innerBottomPadding","viewport","fullContentHeight","onLoad","style"]);const[heightIframeRef,iframeHeight]=(0,use_iframe_content_height_1.useIframeContentHeight)({skip:!1,viewport}),iframeRef=(0,react_1.useRef)(null),[width,setWidth]=(0,react_1.useState)(0),[height,setHeight]=(0,react_1.useState)(0),containerRef=(0,react_1.useRef)(null),isScaling=(_b=component.preview)===null||_b===void 0?void 0:_b.isScaling,currentRef=isScaling?iframeRef:heightIframeRef;(0,pubsub_1.usePubSubIframe)(pubsub?currentRef:void 0),(0,react_1.useEffect)(()=>{const handleLoad=event=>{event.data&&event.data.event===ui_foundation_ui_rendering_html_1.LOAD_EVENT&&onLoad&&onLoad(event)};return window.addEventListener("message",handleLoad),()=>{window.removeEventListener("message",handleLoad)}},[]),(0,react_1.useEffect)(()=>{!iframeRef.current||(0,penpal_1.connectToChild)({iframe:iframeRef.current,methods:{pub:(event,message)=>{message.type==="preview-size"&&(setWidth(message.data.width),setHeight(message.data.height)),onLoad&&event&&onLoad(event,{height:message.data.height,width:message.data.width})}}})},[iframeRef?.current]);const params=Array.isArray(queryParams)?queryParams.concat(`viewport=${viewport}`):(0,lodash_1.compact)([queryParams,`viewport=${viewport}`]),targetParams=viewport===null?queryParams:params,url=(0,urls_1.toPreviewUrl)(component,previewName,isScaling?targetParams:queryParams,includeEnv),containerWidth=((_c=containerRef.current)===null||_c===void 0?void 0:_c.offsetWidth)||0,containerHeight=((_d=containerRef.current)===null||_d===void 0?void 0:_d.offsetHeight)||0,currentWidth=fullContentHeight?"100%":width||1280,legacyCurrentWidth="100%",targetWidth=typeof currentWidth=="string"?currentWidth:Math.max(currentWidth,containerWidth),targetHeight=height!==0?height:5e3,finalHeight=!fullContentHeight&&targetHeight<containerHeight?containerHeight:targetHeight,defaultLegacyHeight=forceHeight||5e3,legacyIframeHeight=(iframeHeight||0)>400?iframeHeight:defaultLegacyHeight;return react_1.default.createElement("div",{ref:containerRef,className:(0,classnames_1.default)(preview_module_scss_1.default.preview,className),style:{height:forceHeight}},react_1.default.createElement("iframe",Object.assign({},rest,{ref:currentRef,style:Object.assign(Object.assign({},style),{height:forceHeight||(isScaling?finalHeight+innerBottomPadding:legacyIframeHeight),width:isScaling?targetWidth:legacyCurrentWidth,visibility:width===0&&isScaling&&!fullContentHeight?"hidden":void 0,transform:fullContentHeight?"":(0,compute_preview_scale_1.computePreviewScale)(width,containerWidth),border:0,transformOrigin:"top left"}),src:url,scrolling:disableScroll?"no":void 0})))}exports.ComponentPreview=ComponentPreview},99768:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toPreviewHash=exports.toPreviewServer=exports.toPreviewUrl=void 0;const base_ui_utils_string_affix_1=__webpack_require__(6480);function toPreviewUrl(component,previewName,additionalParams,includeEnvId=!0){const serverPath=toPreviewServer(component,previewName),envId=getEnvIdQueryParam(component,includeEnvId),hash=toPreviewHash(component,previewName,envId,additionalParams);return`${serverPath}#${hash}`}exports.toPreviewUrl=toPreviewUrl;function toPreviewServer(component,previewName){var _a,_b;const explicitUrl=(_a=component.server)===null||_a===void 0?void 0:_a.url;return explicitUrl&&!component.server.host?explicitUrl:((_b=component.preview)===null||_b===void 0?void 0:_b.includesEnvTemplate)===!1?toEnvTemplatePreviewUrl(component,previewName):toComponentPreviewUrl(component)}exports.toPreviewServer=toPreviewServer;function getEnvIdQueryParam(component,includeEnvId=!0){var _a,_b,_c,_d;if(!!includeEnvId&&!(((_a=component.server)===null||_a===void 0?void 0:_a.host)||((_b=component.server)===null||_b===void 0?void 0:_b.basePath))&&!!(!((_c=component.server)===null||_c===void 0)&&_c.url))return(_d=component.environment)===null||_d===void 0?void 0:_d.id}function toComponentPreviewUrl(component){var _a,_b;return`${createPrefix((_a=component.server)===null||_a===void 0?void 0:_a.basePath,(_b=component.server)===null||_b===void 0?void 0:_b.host)}/${component.id.toString()}/~aspect/preview/`}function createPrefix(basePath,host){const actualBasePath=basePath||"/api",basePathWithSlash=actualBasePath.startsWith("/")?actualBasePath:`/${actualBasePath}`,hostWithoutSlash=host?.endsWith("/")?host.slice(0,-1):host,prefix=hostWithoutSlash?`${hostWithoutSlash}${basePathWithSlash}`:basePathWithSlash;return prefix.endsWith("/")?prefix.slice(0,-1):prefix}function toEnvTemplatePreviewUrl(component,previewName){var _a,_b,_c;const envId=(_a=component.environment)===null||_a===void 0?void 0:_a.id,search=`compId=${component.id.toString()}`;return`${createPrefix((_b=component.server)===null||_b===void 0?void 0:_b.basePath,(_c=component.server)===null||_c===void 0?void 0:_c.host)}/${envId}/~aspect/env-template/${previewName}/?${search}`}function toPreviewHash(component,previewName,envId,queryParams=""){const previewParam=(0,base_ui_utils_string_affix_1.affix)("preview=",previewName),envIdParam=(0,base_ui_utils_string_affix_1.affix)("env=",envId),hashQuery=[previewParam,envIdParam].concat(queryParams).filter(x=>!!x).join("&");return`${component.id.toString()}${(0,base_ui_utils_string_affix_1.affix)("?",hashQuery)}`}exports.toPreviewHash=toPreviewHash},63853:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useInterval=exports.useIframeContentHeight=void 0;const react_1=__webpack_require__(59496);function useIframeContentHeight({interval=250,skip,viewport}){const iframeRef=(0,react_1.useRef)(null),[iframeHeight,setIframeHeight]=(0,react_1.useState)(0),[iframeWidth,setIframeWidth]=(0,react_1.useState)(0);if(skip)return[iframeRef,void 0,iframeWidth];let first=!0;return useInterval(()=>{var _a;try{const iframe=iframeRef.current;viewport!==null&&(iframe.contentWindow.document.body.style.width="fit-content"),!first&&iframe?.style.height==="5000px"&&(iframe.style.height="100%");const newHeight=iframe.contentWindow.document.body.scrollHeight,newWidth=(_a=iframe?.contentWindow)===null||_a===void 0?void 0:_a.document.body.offsetWidth;setIframeHeight(newHeight),setIframeWidth(newWidth||0),first=!1}catch{}},interval),[iframeRef,iframeHeight,iframeWidth]}exports.useIframeContentHeight=useIframeContentHeight;function useInterval(callback,interval){const savedCallback=(0,react_1.useRef)(()=>callback);(0,react_1.useEffect)(()=>{savedCallback.current=callback}),(0,react_1.useEffect)(()=>{function tick(){savedCallback.current()}if(interval!==null){const id=setInterval(tick,interval);return()=>clearInterval(id)}return()=>{}},[interval])}exports.useInterval=useInterval},61286:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsApp=void 0;const react_1=__importDefault(__webpack_require__(59496)),docs_1=__webpack_require__(84723),react_ui_docs_properties_table_1=__webpack_require__(98077),react_ui_docs_compositions_carousel_1=__webpack_require__(54505),react_ui_docs_docs_content_1=__webpack_require__(90036),docs_theme_1=__webpack_require__(35623),docs_app_module_scss_1=__importDefault(__webpack_require__(9033));function DocsApp({componentId,docs=docs_1.defaultDocs,compositions,context}){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?"),renderOnlyOverview=new URLSearchParams(after).get("onlyOverview");return react_1.default.createElement(docs_theme_1.DocsTheme,null,react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(react_ui_docs_docs_content_1.DocsContent,{docs,className:docs_app_module_scss_1.default.mdx}),(!renderOnlyOverview||renderOnlyOverview==="false")&&react_1.default.createElement(react_ui_docs_compositions_carousel_1.CompositionsCarousel,{renderingContext:context,compositions,className:docs_app_module_scss_1.default.compositionSection,compositionCardClass:docs_app_module_scss_1.default.compositionCard}),(!renderOnlyOverview||renderOnlyOverview==="false")&&react_1.default.createElement(react_ui_docs_properties_table_1.PropertiesTable,{componentId})))}exports.DocsApp=DocsApp},35623:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsTheme=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),design_themes_theme_toggler_1=__webpack_require__(68960),design_theme_icons_font_1=__webpack_require__(22975),docs_app_module_scss_1=__importDefault(__webpack_require__(9033));function DocsTheme({children}){const hash=window.location.hash,[,hashQuery]=hash&&hash.split("?"),theme=new URLSearchParams(hashQuery).get("theme")||"light";return react_1.default.createElement(design_themes_theme_toggler_1.ThemeSwitcher,{defaultTheme:theme},react_1.default.createElement(design_theme_icons_font_1.IconFont,{query:"q76y7n"}),react_1.default.createElement("div",{className:(0,classnames_1.default)(docs_app_module_scss_1.default.docsMainBlock)},children))}exports.DocsTheme=DocsTheme},17294:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__(59496)),react_dom_1=__importDefault(__webpack_require__(87995)),docs_app_1=__webpack_require__(61286);function DocsRoot({componentId,docs,compositions,context}){react_dom_1.default.render(react_1.default.createElement(docs_app_1.DocsApp,{componentId,docs,compositions,context}),document.getElementById("root"))}DocsRoot.apiObject=!0,exports.default=DocsRoot},79022:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.docsStyles=exports.DocsApp=exports.default=exports.DocsTheme=void 0;var docs_theme_1=__webpack_require__(35623);Object.defineProperty(exports,"DocsTheme",{enumerable:!0,get:function(){return docs_theme_1.DocsTheme}});var docs_app_root_1=__webpack_require__(17294);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(docs_app_root_1).default}});var docs_app_1=__webpack_require__(61286);Object.defineProperty(exports,"DocsApp",{enumerable:!0,get:function(){return docs_app_1.DocsApp}});var docs_app_module_scss_1=__webpack_require__(9033);Object.defineProperty(exports,"docsStyles",{enumerable:!0,get:function(){return __importDefault(docs_app_module_scss_1).default}})},80849:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApplyProviders=void 0;const react_1=__importDefault(__webpack_require__(59496)),react_error_boundary_1=__webpack_require__(75340),base_ui_utils_composer_1=__webpack_require__(80893),react_ui_error_fallback_1=__webpack_require__(32334),react_2=__webpack_require__(32750);function ApplyProviders(_a){var{renderingContext,children}=_a,rest=__rest(_a,["renderingContext","children"]);const{providers=[]}=renderingContext.get(react_2.ReactAspect.id)||{};return react_1.default.createElement("div",Object.assign({},rest),react_1.default.createElement(react_error_boundary_1.ErrorBoundary,{FallbackComponent:react_ui_error_fallback_1.ErrorFallback},react_1.default.createElement(base_ui_utils_composer_1.Composer,{components:providers},children)))}exports.ApplyProviders=ApplyProviders},95440:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApplyProviders=void 0;var apply_providers_1=__webpack_require__(80849);Object.defineProperty(exports,"ApplyProviders",{enumerable:!0,get:function(){return apply_providers_1.ApplyProviders}})},84218:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsCarousel=void 0;const react_1=__importDefault(__webpack_require__(59496)),react_ui_docs_apply_providers_1=__webpack_require__(95440),compositions_ui_compositions_overview_1=__webpack_require__(31314),documenter_ui_linked_heading_1=__webpack_require__(19058),documenter_ui_section_1=__webpack_require__(94761);function CompositionsCarousel(_a){var{compositions,compositionCardClass,renderingContext}=_a,rest=__rest(_a,["compositions","compositionCardClass","renderingContext"]);return!compositions||Object.keys(compositions).length===0?null:react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,"Compositions"),react_1.default.createElement(react_ui_docs_apply_providers_1.ApplyProviders,{renderingContext},react_1.default.createElement(compositions_ui_compositions_overview_1.CompositionsOverview,{compositions,compositionCardClass})))}exports.CompositionsCarousel=CompositionsCarousel},54505:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsCarousel=void 0;var compositions_carousel_1=__webpack_require__(84218);Object.defineProperty(exports,"CompositionsCarousel",{enumerable:!0,get:function(){return compositions_carousel_1.CompositionsCarousel}})},58715:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsContent=void 0;const react_error_boundary_1=__webpack_require__(75340),lodash_1=__webpack_require__(32699),docs_1=__webpack_require__(84723),react_ui_error_fallback_1=__webpack_require__(32334),mdx_ui_mdx_layout_1=__webpack_require__(69909),react_1=__importDefault(__webpack_require__(59496));function DocsContent(_a){var{docs=docs_1.defaultDocs}=_a,rest=__rest(_a,["docs"]);const Content=(0,lodash_1.isFunction)(docs.default)?docs.default:()=>null;return react_1.default.createElement(react_error_boundary_1.ErrorBoundary,{FallbackComponent:react_ui_error_fallback_1.ErrorFallback},Content.isMDXComponent?react_1.default.createElement(mdx_ui_mdx_layout_1.MDXLayout,Object.assign({},rest),react_1.default.createElement(Content,null)):react_1.default.createElement(Content,null))}exports.DocsContent=DocsContent},90036:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsContent=void 0;var docs_content_1=__webpack_require__(58715);Object.defineProperty(exports,"DocsContent",{enumerable:!0,get:function(){return docs_content_1.DocsContent}})},98077:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertiesTable=void 0;var properties_table_1=__webpack_require__(29784);Object.defineProperty(exports,"PropertiesTable",{enumerable:!0,get:function(){return properties_table_1.PropertiesTable}})},29784:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertiesTable=void 0;const documenter_ui_linked_heading_1=__webpack_require__(19058),documenter_ui_property_table_1=__webpack_require__(6990),documenter_ui_section_1=__webpack_require__(94761),component_ui_hooks_use_fetch_docs_1=__webpack_require__(23087),react_1=__importDefault(__webpack_require__(59496));function PropertiesTable(_a){var{componentId}=_a,rest=__rest(_a,["componentId"]);const{loading,error,data}=(0,component_ui_hooks_use_fetch_docs_1.useFetchDocs)(componentId);if(!data||loading)return null;if(error)return console.error(`failed to fetch docs for ${componentId} in PropertiesTable`,error),null;const{properties}=data.docs;return properties.length===0?react_1.default.createElement("div",null):react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,"Properties"),react_1.default.createElement(documenter_ui_property_table_1.PropTable,{rows:properties}))}exports.PropertiesTable=PropertiesTable},16880:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorFallback=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),design_ui_icon_button_1=__webpack_require__(53330),base_ui_styles_flex_center_1=__webpack_require__(15764),error_fallback_module_scss_1=__importDefault(__webpack_require__(86308));function ErrorFallback({resetErrorBoundary,className,children="Failed to render",cta="try again"}){const handleClick=()=>__awaiter(this,void 0,void 0,function*(){yield new Promise(resolve=>setTimeout(resolve,480)),resetErrorBoundary()});return react_1.default.createElement("div",{className:(0,classnames_1.default)(error_fallback_module_scss_1.default.errorFallback,base_ui_styles_flex_center_1.flexCenter,className)},react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.icon}),react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.message},children),react_1.default.createElement(design_ui_icon_button_1.IconButton,{onClick:handleClick,className:error_fallback_module_scss_1.default.retryButton},cta))}exports.ErrorFallback=ErrorFallback},32334:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorFallback=void 0;var error_fallback_1=__webpack_require__(16880);Object.defineProperty(exports,"ErrorFallback",{enumerable:!0,get:function(){return error_fallback_1.ErrorFallback}})},31461:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.matchPatterns=exports.splitPatterns=void 0;var match_patterns_1=__webpack_require__(36213);Object.defineProperty(exports,"splitPatterns",{enumerable:!0,get:function(){return match_patterns_1.splitPatterns}}),Object.defineProperty(exports,"matchPatterns",{enumerable:!0,get:function(){return match_patterns_1.matchPatterns}})},36213:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.splitPatterns=exports.matchPatterns=void 0;const minimatch_1=__importDefault(__webpack_require__(18455));function matchPatterns(filePath,includePatterns,excludePatterns){const included=includePatterns.some(pattern=>(0,minimatch_1.default)(filePath,pattern)),excluded=excludePatterns.every(pattern=>(0,minimatch_1.default)(filePath,pattern));return included&&excluded}exports.matchPatterns=matchPatterns;function splitPatterns(patterns){return{includePatterns:patterns.filter(pattern=>!pattern.startsWith("!")),excludePatterns:patterns.filter(pattern=>pattern.startsWith("!"))}}exports.splitPatterns=splitPatterns},55044:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalize=void 0;function capitalize(str){return str.charAt(0).toUpperCase()+str.slice(1)}exports.capitalize=capitalize},58315:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalize=void 0;var capitalize_1=__webpack_require__(55044);Object.defineProperty(exports,"capitalize",{enumerable:!0,get:function(){return capitalize_1.capitalize}})},49429:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getInitials=void 0;function getInitials(name){if(!name)return;const words=name.split(" ");return words.length>1?words.slice(0,2).map(word=>word[0]).join(""):name.slice(0,2)}exports.getInitials=getInitials},85749:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getInitials=void 0;var get_initials_1=__webpack_require__(49429);Object.defineProperty(exports,"getInitials",{enumerable:!0,get:function(){return get_initials_1.getInitials}})},18943:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addAvatarQueryParams=void 0;function addAvatarQueryParams(url,size,defaultAvatarBgColor){if(!url)return url;const intSize=typeof size=="string"?parseInt(size):size,controlChar=url.indexOf("?")>-1?"&":"?",gravatarParams=[`size=${size}`],imgixParams=[`w=${intSize*2}`,`h=${intSize*2}`,"crop=faces","fit=crop",`bg=${defaultAvatarBgColor}`],params=[].concat(gravatarParams,imgixParams);return`${url}${controlChar}${params.join("&")}`}exports.addAvatarQueryParams=addAvatarQueryParams},66045:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addAvatarQueryParams=void 0;var add_avatar_query_params_1=__webpack_require__(18943);Object.defineProperty(exports,"addAvatarQueryParams",{enumerable:!0,get:function(){return add_avatar_query_params_1.addAvatarQueryParams}})},90065:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Collapser=void 0;const evangelist_elements_icon_1=__webpack_require__(86144),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),design_ui_tooltip_1=__webpack_require__(93976),collapser_button_module_scss_1=__importDefault(__webpack_require__(18615));function Collapser(_a){var{isOpen,tooltipContent,placement="right",onClick,className}=_a,rest=__rest(_a,["isOpen","tooltipContent","placement","onClick","className"]);const icon=`${placement}-rounded-corners`;return react_1.default.createElement(design_ui_tooltip_1.Tooltip,{content:tooltipContent},react_1.default.createElement("div",Object.assign({},rest,{onClick,className:(0,classnames_1.default)(collapser_button_module_scss_1.default.collapser,collapser_button_module_scss_1.default[placement],isOpen&&collapser_button_module_scss_1.default.open,className)}),react_1.default.createElement("div",{className:collapser_button_module_scss_1.default.circle},react_1.default.createElement("div",null,react_1.default.createElement(evangelist_elements_icon_1.Icon,{of:icon})))))}exports.Collapser=Collapser},32098:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Collapser=void 0;var collapser_button_1=__webpack_require__(90065);Object.defineProperty(exports,"Collapser",{enumerable:!0,get:function(){return collapser_button_1.Collapser}})},24681:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SlotRouter:()=>SlotRouter});var jsx_runtime=__webpack_require__(4637),react=__webpack_require__(59496),dist=__webpack_require__(70024),lodash=__webpack_require__(32699);function toKey(route){return route.path?route.path:route.index?"/":"."}function SlotRouter({routes:routesFromProps,slot,rootRoutes,children,parentPath}){const jsxRoutes=(routesFromProps||slot&&(0,lodash.flatten)(slot.values())||[]).concat(rootRoutes||[]).map(route=>(0,jsx_runtime.jsx)(dist.AW,{...route},toKey(route)));return parentPath?(0,jsx_runtime.jsx)(dist.Z5,{children:(0,jsx_runtime.jsxs)(dist.AW,{path:parentPath,children:[jsxRoutes,children]})}):(0,jsx_runtime.jsx)(dist.Z5,{children:(0,jsx_runtime.jsxs)(dist.AW,{path:parentPath,children:[jsxRoutes,children]})})}},70237:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CrossIframeDevTools=void 0;const react_1=__importDefault(__webpack_require__(59496));function CrossIframeDevTools(){return react_1.default.createElement("script",null,`/* Allow to use react dev-tools inside the examples */
|
663
|
+
`,useRootLanes=(viewedLaneId,skip,options={},scope)=>{const{ids,offset,limit,sort}=options,{data,fetchMore,loading}=(0,ui_foundation_ui_hooks_use_data_query_1.useDataQuery)(GET_LANES,{variables:{laneIds:ids,offset,limit,sort,skipViewedLane:!viewedLaneId||viewedLaneId.isDefault(),viewedLaneId:viewedLaneId?[viewedLaneId?.toString()]:void 0},skip,errorPolicy:"all",fetchPolicy:"cache-and-network"}),lanesModel=(0,react_1.useMemo)(()=>{if(!loading&&!!data)return lanes_ui_models_lanes_model_1.LanesModel.from({data,scope})},[loading,data,viewedLaneId?.toString(),scope]),hasMore=(0,react_1.useMemo)(()=>{var _a,_b,_c,_d,_e,_f;return loading?!0:limit?ids?.length?((_c=(_b=(_a=data?.lanes)===null||_a===void 0?void 0:_a.list)===null||_b===void 0?void 0:_b.length)!==null&&_c!==void 0?_c:0)===ids.length:((_f=(_e=(_d=data?.lanes)===null||_d===void 0?void 0:_d.list)===null||_e===void 0?void 0:_e.length)!==null&&_f!==void 0?_f:0)>=limit:!1},[loading,data]),fetchMoreLanes=(0,react_1.useCallback)((newOffset,newLimit)=>__awaiter(void 0,void 0,void 0,function*(){var _a,_b;if(hasMore)try{const{data:moreData,networkStatus}=yield fetchMore({variables:{offset:newOffset,limit:newLimit,laneIds:[],skipViewedLane:!viewedLaneId||viewedLaneId.isDefault(),viewedLaneId:viewedLaneId?[viewedLaneId?.toString()]:void 0}}),loadingMore=networkStatus===3;return!loadingMore&&moreData.lanes?{lanesModel:lanes_ui_models_lanes_model_1.LanesModel.from({data:moreData}),loading:loadingMore,hasMore:((_b=(_a=moreData.lanes.list)===null||_a===void 0?void 0:_a.length)!==null&&_b!==void 0?_b:0)>=newLimit,nextOffset:newOffset+newLimit}:{lanesModel,loading:loadingMore,nextOffset:newOffset,currentLimit:newLimit}}catch(err){return console.error(err),{}}return{lanesModel,loading:!1,hasMore:!1,nextOffset:newOffset,currentLimit:newLimit}}),[hasMore,viewedLaneId?.toString(),lanesModel]);return{loading,lanesModel,fetchMoreLanes,hasMore,offset,limit}},useSearchLanes=(search,skip)=>{const{data:searchData,loading:loadingSearch}=(0,ui_foundation_ui_hooks_use_data_query_1.useDataQuery)(GET_LANES,{variables:{search,skipViewedLane:!0},skip:skip||!search,errorPolicy:"all",fetchPolicy:"cache-and-network"});return search?{loading:loadingSearch,lanesModel:searchData&&lanes_ui_models_lanes_model_1.LanesModel.from({data:{lanes:Object.assign(Object.assign({},searchData.lanes),{current:void 0,default:void 0})}})}:{}};exports.useSearchLanes=useSearchLanes;const useLanes=(targetLanes,skip,optionsFromProps,useContextFromProps=!0,scope)=>{var _a,_b,_c,_d,_e;const context=(0,lanes_context_1.useLanesContext)()||{},options=optionsFromProps||context?.options,isSameOptions=(0,lodash_1.isEqual)(options,context?.options),useContext=useContextFromProps&&!!context&&isSameOptions,shouldSkip=skip||!!targetLanes||useContext,rootLanesData=useRootLanes((_b=(_a=context?.lanesModel)===null||_a===void 0?void 0:_a.viewedLane)===null||_b===void 0?void 0:_b.id,shouldSkip,options,scope),searchResult=(0,exports.useSearchLanes)(options?.search,shouldSkip);return targetLanes?Object.assign(Object.assign(Object.assign({},context),rootLanesData),{lanesModel:targetLanes,searchResult}):useContext?Object.assign(Object.assign({},context),{searchResult}):((_c=rootLanesData.lanesModel)===null||_c===void 0||_c.setViewedLane((_e=(_d=context?.lanesModel)===null||_d===void 0?void 0:_d.viewedLane)===null||_e===void 0?void 0:_e.id),Object.assign(Object.assign(Object.assign({},context),rootLanesData),{searchResult}))};exports.useLanes=useLanes},97223:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LanesModel=void 0;var lanes_model_1=__webpack_require__(52422);Object.defineProperty(exports,"LanesModel",{enumerable:!0,get:function(){return lanes_model_1.LanesModel}})},52422:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LanesModel=void 0;const component_1=__webpack_require__(68211),lane_id_1=__webpack_require__(2538),component_id_1=__webpack_require__(99978),path_to_regexp_1=__webpack_require__(51419),lodash_1=__webpack_require__(32699);class LanesModel{static mapToLaneModel(laneData){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;const{id,laneComponentIds=[],readmeComponent,hash,createdAt,displayName,updatedAt,createdBy:createdByData,updatedBy:updatedByData}=laneData,componentIds=laneComponentIds?.map(laneComponentId=>component_id_1.ComponentID.fromObject(laneComponentId))||[],readmeComponentModel=readmeComponent&&component_1.ComponentModel.from(Object.assign({},readmeComponent)),createdAtDate=createdAt&&new Date(+createdAt)||void 0,createdBy=createdByData?{name:(_a=createdByData?.name)!==null&&_a!==void 0?_a:void 0,email:(_b=createdByData.email)!==null&&_b!==void 0?_b:void 0,username:(_c=createdByData?.username)!==null&&_c!==void 0?_c:void 0,displayName:(_d=createdByData?.displayName)!==null&&_d!==void 0?_d:void 0,profileImage:(_e=createdByData.profileImage)!==null&&_e!==void 0?_e:void 0}:void 0,updatedAtDate=updatedAt&&new Date(+updatedAt)||void 0,updatedBy=updatedByData?.name?{name:(_f=updatedByData?.name)!==null&&_f!==void 0?_f:void 0,username:(_g=updatedByData?.username)!==null&&_g!==void 0?_g:void 0,displayName:(_h=updatedByData?.displayName)!==null&&_h!==void 0?_h:void 0,email:(_j=updatedByData.email)!==null&&_j!==void 0?_j:void 0,profileImage:(_k=updatedByData.profileImage)!==null&&_k!==void 0?_k:void 0}:void 0;return{id:lane_id_1.LaneId.from(id.name,id.scope),components:componentIds,readmeComponent:readmeComponentModel,createdAt:createdAtDate,updatedAt:updatedAtDate,displayName,hash,updatedBy,createdBy}}static groupLaneIdsByScope(laneIds){const grouped=new Map;return laneIds.forEach(laneId=>{const{scope}=laneId;if(!grouped.has(scope))grouped.set(scope,[laneId]);else{const existing=grouped.get(scope);grouped.set(scope,[...existing,laneId])}}),grouped}static groupLanesByScope(lanes){const grouped=new Map;return lanes.forEach(lane=>{const{scope}=lane.id;if(!grouped.has(scope))grouped.set(scope,[lane]);else{const existing=grouped.get(scope);grouped.set(scope,[...existing,lane])}}),grouped}static groupByComponentNameAndId(lanes){const byName=new Map,byId=new Map;return lanes.forEach(lane=>{const{components}=lane;components.forEach(component=>{const name=component.fullName,id=component.toString(),existingByName=byName.get(name)||[],existingById=byId.get(id)||[];existingByName.push(lane),existingById.push(lane),byName.set(name,existingByName),byId.set(id,existingById)})}),{byName,byId}}static from({data,scope,viewedLaneId}){var _a,_b,_c,_d,_e;const lanes=((_b=(_a=data?.lanes)===null||_a===void 0?void 0:_a.list)===null||_b===void 0?void 0:_b.map(lane=>LanesModel.mapToLaneModel(lane)))||[],currentLane=!((_c=data?.lanes)===null||_c===void 0)&&_c.current?LanesModel.mapToLaneModel(data.lanes.current):void 0,defaultLane=!((_d=data?.lanes)===null||_d===void 0)&&_d.default?LanesModel.mapToLaneModel(data.lanes.default):scope&&LanesModel.mapToLaneModel({id:{name:"main",scope},hash:""})||lanes.find(lane=>lane.id.isDefault())||void 0,viewedLane=viewedLaneId?lanes.find(lane=>lane.id.isEqual(viewedLaneId)):((_e=data?.lanes)===null||_e===void 0?void 0:_e.viewedLane)&&LanesModel.mapToLaneModel(data.lanes.viewedLane[0])||currentLane||defaultLane;return new LanesModel({lanes,currentLane,defaultLane,viewedLane})}constructor({lanes=[],viewedLane,currentLane,defaultLane}){this.getLaneComponentUrlByVersion=(componentId,laneId,addScopeMetadataInUrl)=>{var _a;const defaultLane2=this.getDefaultLane();if(!componentId.version||!laneId||!defaultLane2||laneId&&this.currentLane&&laneId.isEqual(this.currentLane.id))return LanesModel.getMainComponentUrl(componentId,void 0,addScopeMetadataInUrl);const lane=(_a=this.getLanesByComponentId(componentId))===null||_a===void 0?void 0:_a.find(l=>l.id.isEqual(laneId));return lane?lane.id.isDefault()?LanesModel.getMainComponentUrl(componentId,void 0,addScopeMetadataInUrl):LanesModel.getLaneComponentUrl(componentId,lane.id,addScopeMetadataInUrl):defaultLane2.components.find(c=>c.isEqual(componentId))?LanesModel.getMainComponentUrl(componentId,laneId,addScopeMetadataInUrl):void 0},this.setViewedLane=viewedLaneId=>{this.viewedLane=viewedLaneId?this.lanes.find(lane=>lane.id.isEqual(viewedLaneId)):void 0},this.setViewedOrDefaultLane=viewedLaneId=>{this.viewedLane=viewedLaneId?this.lanes.find(lane=>lane.id.isEqual(viewedLaneId)):this.getDefaultLane()},this.resolveComponentFromUrl=(idFromUrl,laneId)=>{var _a;const comps=((_a=laneId&&this.lanes.find(lane=>lane.id.isEqual(laneId))||this.viewedLane)===null||_a===void 0?void 0:_a.components)||[];return idFromUrl.includes(".")?comps.find(component=>component.toStringWithoutVersion()===idFromUrl):comps.find(component=>component.fullName===idFromUrl)},this.getDefaultLane=()=>this.defaultLane,this.getNonMainLanes=()=>this.lanes.filter(lane=>!lane.id.isDefault()),this.isInViewedLane=(componentId,includeVersion)=>{var _a,_b;return includeVersion?(_a=this.viewedLane)===null||_a===void 0?void 0:_a.components.some(comp=>includeVersion&&comp.isEqual(componentId)):(_b=this.viewedLane)===null||_b===void 0?void 0:_b.components.some(comp=>includeVersion&&comp.isEqual(componentId,{ignoreVersion:!0}))},this.isViewingCurrentLane=()=>this.currentLane&&this.viewedLane&&this.currentLane.id.isEqual(this.viewedLane.id),this.isViewingDefaultLane=()=>this.viewedLane&&this.viewedLane.id.isDefault(),this.isViewingNonDefaultLane=()=>this.viewedLane&&!this.viewedLane.id.isDefault(),this.getLanesByComponentName=componentId=>this.lanesByComponentName.get(componentId.fullName),this.getLanesByComponentId=componentId=>this.lanesByComponentId.get(componentId.toString()),this.isComponentOnMain=(componentId,includeVersion)=>{var _a,_b;return includeVersion?!!(!((_a=this.getLanesByComponentId(componentId))===null||_a===void 0)&&_a.some(lane=>lane.id.isDefault())):!!(!((_b=this.getLanesByComponentName(componentId))===null||_b===void 0)&&_b.some(lane=>lane.id.isDefault()))},this.isComponentOnMainButNotOnLane=(componentId,includeVersion,laneId)=>this.isComponentOnMain(componentId,includeVersion)&&!this.isComponentOnNonDefaultLanes(componentId,includeVersion,laneId),this.isComponentOnLaneButNotOnMain=(componentId,includeVersion,laneId)=>!this.isComponentOnMain(componentId,includeVersion)&&this.isComponentOnNonDefaultLanes(componentId,includeVersion,laneId),this.isComponentOnNonDefaultLanes=(componentId,includeVersion,laneId)=>{var _a,_b;return includeVersion?!!(!((_a=this.getLanesByComponentId(componentId))===null||_a===void 0)&&_a.some(lane=>!lane.id.isDefault()&&(!laneId||lane.id.isEqual(laneId)))):!!(!((_b=this.getLanesByComponentName(componentId))===null||_b===void 0)&&_b.some(lane=>!lane.id.isDefault()&&(!laneId||lane.id.isEqual(laneId))))},this.viewedLane=viewedLane,this.currentLane=currentLane,this.defaultLane=defaultLane;const allUniqueLanes=(0,lodash_1.compact)((0,lodash_1.uniqBy)([...lanes,this.defaultLane,this.currentLane,this.viewedLane],lane=>lane?.id.toString()));this.lanes=allUniqueLanes,this.laneIdsByScope=LanesModel.groupLaneIdsByScope(this.lanes.map(lane=>lane.id));const{byId,byName}=LanesModel.groupByComponentNameAndId(this.lanes);this.lanesByComponentId=byId,this.lanesByComponentName=byName}addLanes(newLanes=[]){this.lanes=LanesModel.concatLanes(this.lanes,newLanes),this.laneIdsByScope=LanesModel.groupLaneIdsByScope(this.lanes.map(lane=>lane.id));const{byId,byName}=LanesModel.groupByComponentNameAndId(this.lanes);this.lanesByComponentId=byId,this.lanesByComponentName=byName}static concatLanes(lanes=[],newLanes=[]){return(0,lodash_1.compact)((0,lodash_1.uniqBy)([...lanes,...newLanes],lane=>lane?.id.toString()))}}exports.LanesModel=LanesModel,LanesModel.lanesPrefix="~lane",LanesModel.baseLaneComponentRoute="/~component",LanesModel.lanePath=":scopeId/:laneId",LanesModel.laneUrlParamsKey="lane",LanesModel.laneFromPathRegex=(0,path_to_regexp_1.pathToRegexp)(`${LanesModel.lanesPrefix}/${LanesModel.lanePath}`,void 0,{end:!1,start:!1}),LanesModel.getLaneIdFromPathname=(pathname,urlSearchParams)=>{const matches=LanesModel.laneFromPathRegex.exec(pathname);if(matches){const[,scopeId,laneId]=matches;return lane_id_1.LaneId.from(laneId,scopeId)}if(urlSearchParams){const laneIdQueryParam=urlSearchParams.get(LanesModel.laneUrlParamsKey);return laneIdQueryParam?lane_id_1.LaneId.parse(laneIdQueryParam):void 0}},LanesModel.getLaneUrl=(laneId,relative)=>`${relative?"":"/"}${LanesModel.lanesPrefix}/${laneId.toString()}`,LanesModel.getLaneComponentUrl=(componentId,laneId,addScopeMetadataInUrl)=>{const isExternalComponent=componentId.scope!==laneId.scope,laneUrl=LanesModel.getLaneUrl(laneId),queryParams=new URLSearchParams;return componentId.version&&queryParams.set("version",componentId.version),addScopeMetadataInUrl&&queryParams.set("scope",componentId.scope),`${isExternalComponent?`${laneUrl}${LanesModel.baseLaneComponentRoute}/${componentId.toStringWithoutVersion()}`:`${laneUrl}${LanesModel.baseLaneComponentRoute}/${componentId.fullName}`}?${queryParams.toString()}`},LanesModel.getMainComponentUrl=(componentId,laneId,addScopeMetadataInUrl)=>{const componentUrl=componentId.fullName,queryParams=new URLSearchParams;return laneId&&queryParams.set(LanesModel.laneUrlParamsKey,laneId.toString()),addScopeMetadataInUrl&&queryParams.set("scope",componentId.scope),`${componentUrl}?${queryParams.toString()}`}},52515:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"PanelUiAspect",{enumerable:!0,get:function(){return _panelUi().PanelUiAspect}}),Object.defineProperty(exports,"Tab",{enumerable:!0,get:function(){return _tabs().Tab}}),Object.defineProperty(exports,"TabContainer",{enumerable:!0,get:function(){return _tabs().TabContainer}}),Object.defineProperty(exports,"TabList",{enumerable:!0,get:function(){return _tabs().TabList}}),Object.defineProperty(exports,"TabPanel",{enumerable:!0,get:function(){return _tabs().TabPanel}});function _panelUi(){const data=__webpack_require__(9322);return _panelUi=function(){return data},data}function _tabs(){const data=__webpack_require__(63096);return _tabs=function(){return data},data}},9322:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PanelUiAspect=void 0;function _harmony(){const data=__webpack_require__(55669);return _harmony=function(){return data},data}const PanelUiAspect=exports.PanelUiAspect=_harmony().Aspect.create({id:"teambit.ui-foundation/panels",dependencies:[],defaultConfig:{}})},63096:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tab=Tab,exports.TabContainer=void 0,exports.TabList=TabList,exports.TabPanel=void 0;function _classnames(){const data=_interopRequireDefault(__webpack_require__(97754));return _classnames=function(){return data},data}function _react(){const data=_interopRequireDefault(__webpack_require__(59496));return _react=function(){return data},data}function _reactTabs(){const data=__webpack_require__(34940);return _reactTabs=function(){return data},data}function _tabsModule(){const data=_interopRequireDefault(__webpack_require__(42664));return _tabsModule=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}const TabContainer=exports.TabContainer=_reactTabs().Tabs;function TabList(props){return _react().default.createElement(_reactTabs().TabList,_extends({},props,{className:(0,_classnames().default)(_tabsModule().default.tabContainer,props.className)}))}TabList.tabsRole="TabList";const TabPanel=exports.TabPanel=_reactTabs().TabPanel;function Tab(props){return _react().default.createElement(_reactTabs().Tab,_extends({},props,{className:(0,_classnames().default)(props.className,_tabsModule().default.tab),selectedClassName:_tabsModule().default.active,disabledClassName:_tabsModule().default.disabled}))}Tab.tabsRole="Tab"},75665:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.computePreviewScale=void 0;function computePreviewScale(width,containerWidth){const scale=containerWidth*.95/width;return scale>1?"scale(1)":`scale(${scale})`}exports.computePreviewScale=computePreviewScale},27699:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toPreviewHash=exports.toPreviewServer=exports.toPreviewUrl=exports.ComponentPreview=void 0;var preview_1=__webpack_require__(34874);Object.defineProperty(exports,"ComponentPreview",{enumerable:!0,get:function(){return preview_1.ComponentPreview}});var urls_1=__webpack_require__(99768);Object.defineProperty(exports,"toPreviewUrl",{enumerable:!0,get:function(){return urls_1.toPreviewUrl}}),Object.defineProperty(exports,"toPreviewServer",{enumerable:!0,get:function(){return urls_1.toPreviewServer}}),Object.defineProperty(exports,"toPreviewHash",{enumerable:!0,get:function(){return urls_1.toPreviewHash}})},34874:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentPreview=void 0;const react_1=__importStar(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),lodash_1=__webpack_require__(32699),penpal_1=__webpack_require__(63805),pubsub_1=__webpack_require__(23179),ui_foundation_ui_rendering_html_1=__webpack_require__(91375),urls_1=__webpack_require__(99768),compute_preview_scale_1=__webpack_require__(75665),use_iframe_content_height_1=__webpack_require__(63853),preview_module_scss_1=__importDefault(__webpack_require__(16438));function ComponentPreview(_a){var _b,_c,_d,{component,previewName,className,forceHeight,includeEnv=!0,queryParams,disableScroll=!1,pubsub,innerBottomPadding=0,viewport=1280,fullContentHeight=!1,onLoad,style}=_a,rest=__rest(_a,["component","previewName","className","forceHeight","includeEnv","queryParams","disableScroll","pubsub","innerBottomPadding","viewport","fullContentHeight","onLoad","style"]);const[heightIframeRef,iframeHeight]=(0,use_iframe_content_height_1.useIframeContentHeight)({skip:!1,viewport}),iframeRef=(0,react_1.useRef)(null),[width,setWidth]=(0,react_1.useState)(0),[height,setHeight]=(0,react_1.useState)(0),containerRef=(0,react_1.useRef)(null),isScaling=(_b=component.preview)===null||_b===void 0?void 0:_b.isScaling,currentRef=isScaling?iframeRef:heightIframeRef;(0,pubsub_1.usePubSubIframe)(pubsub?currentRef:void 0),(0,react_1.useEffect)(()=>{const handleLoad=event=>{event.data&&event.data.event===ui_foundation_ui_rendering_html_1.LOAD_EVENT&&onLoad&&onLoad(event)};return window.addEventListener("message",handleLoad),()=>{window.removeEventListener("message",handleLoad)}},[]),(0,react_1.useEffect)(()=>{!iframeRef.current||(0,penpal_1.connectToChild)({iframe:iframeRef.current,methods:{pub:(event,message)=>{message.type==="preview-size"&&(setWidth(message.data.width),setHeight(message.data.height)),onLoad&&event&&onLoad(event,{height:message.data.height,width:message.data.width})}}})},[iframeRef?.current]);const params=Array.isArray(queryParams)?queryParams.concat(`viewport=${viewport}`):(0,lodash_1.compact)([queryParams,`viewport=${viewport}`]),targetParams=viewport===null?queryParams:params,url=(0,urls_1.toPreviewUrl)(component,previewName,isScaling?targetParams:queryParams,includeEnv),containerWidth=((_c=containerRef.current)===null||_c===void 0?void 0:_c.offsetWidth)||0,containerHeight=((_d=containerRef.current)===null||_d===void 0?void 0:_d.offsetHeight)||0,currentWidth=fullContentHeight?"100%":width||1280,legacyCurrentWidth="100%",targetWidth=typeof currentWidth=="string"?currentWidth:Math.max(currentWidth,containerWidth),targetHeight=height!==0?height:5e3,finalHeight=!fullContentHeight&&targetHeight<containerHeight?containerHeight:targetHeight,defaultLegacyHeight=forceHeight||5e3,legacyIframeHeight=(iframeHeight||0)>400?iframeHeight:defaultLegacyHeight;return react_1.default.createElement("div",{ref:containerRef,className:(0,classnames_1.default)(preview_module_scss_1.default.preview,className),style:{height:forceHeight}},react_1.default.createElement("iframe",Object.assign({},rest,{ref:currentRef,style:Object.assign(Object.assign({},style),{height:forceHeight||(isScaling?finalHeight+innerBottomPadding:legacyIframeHeight),width:isScaling?targetWidth:legacyCurrentWidth,visibility:width===0&&isScaling&&!fullContentHeight?"hidden":void 0,transform:fullContentHeight?"":(0,compute_preview_scale_1.computePreviewScale)(width,containerWidth),border:0,transformOrigin:"top left"}),src:url,scrolling:disableScroll?"no":void 0})))}exports.ComponentPreview=ComponentPreview},99768:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toPreviewHash=exports.toPreviewServer=exports.toPreviewUrl=void 0;const base_ui_utils_string_affix_1=__webpack_require__(6480);function toPreviewUrl(component,previewName,additionalParams,includeEnvId=!0){const serverPath=toPreviewServer(component,previewName),envId=getEnvIdQueryParam(component,includeEnvId),hash=toPreviewHash(component,previewName,envId,additionalParams);return`${serverPath}#${hash}`}exports.toPreviewUrl=toPreviewUrl;function toPreviewServer(component,previewName){var _a,_b;const explicitUrl=(_a=component.server)===null||_a===void 0?void 0:_a.url;return explicitUrl&&!component.server.host?explicitUrl:((_b=component.preview)===null||_b===void 0?void 0:_b.includesEnvTemplate)===!1?toEnvTemplatePreviewUrl(component,previewName):toComponentPreviewUrl(component)}exports.toPreviewServer=toPreviewServer;function getEnvIdQueryParam(component,includeEnvId=!0){var _a,_b,_c,_d;if(!!includeEnvId&&!(((_a=component.server)===null||_a===void 0?void 0:_a.host)||((_b=component.server)===null||_b===void 0?void 0:_b.basePath))&&!!(!((_c=component.server)===null||_c===void 0)&&_c.url))return(_d=component.environment)===null||_d===void 0?void 0:_d.id}function toComponentPreviewUrl(component){var _a,_b;return`${createPrefix((_a=component.server)===null||_a===void 0?void 0:_a.basePath,(_b=component.server)===null||_b===void 0?void 0:_b.host)}/${component.id.toString()}/~aspect/preview/`}function createPrefix(basePath,host){const actualBasePath=basePath||"/api",basePathWithSlash=actualBasePath.startsWith("/")?actualBasePath:`/${actualBasePath}`,hostWithoutSlash=host?.endsWith("/")?host.slice(0,-1):host,prefix=hostWithoutSlash?`${hostWithoutSlash}${basePathWithSlash}`:basePathWithSlash;return prefix.endsWith("/")?prefix.slice(0,-1):prefix}function toEnvTemplatePreviewUrl(component,previewName){var _a,_b,_c;const envId=(_a=component.environment)===null||_a===void 0?void 0:_a.id,search=`compId=${component.id.toString()}`;return`${createPrefix((_b=component.server)===null||_b===void 0?void 0:_b.basePath,(_c=component.server)===null||_c===void 0?void 0:_c.host)}/${envId}/~aspect/env-template/${previewName}/?${search}`}function toPreviewHash(component,previewName,envId,queryParams=""){const previewParam=(0,base_ui_utils_string_affix_1.affix)("preview=",previewName),envIdParam=(0,base_ui_utils_string_affix_1.affix)("env=",envId),hashQuery=[previewParam,envIdParam].concat(queryParams).filter(x=>!!x).join("&");return`${component.id.toString()}${(0,base_ui_utils_string_affix_1.affix)("?",hashQuery)}`}exports.toPreviewHash=toPreviewHash},63853:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useInterval=exports.useIframeContentHeight=void 0;const react_1=__webpack_require__(59496);function useIframeContentHeight({interval=250,skip,viewport}){const iframeRef=(0,react_1.useRef)(null),[iframeHeight,setIframeHeight]=(0,react_1.useState)(0),[iframeWidth,setIframeWidth]=(0,react_1.useState)(0);if(skip)return[iframeRef,void 0,iframeWidth];let first=!0;return useInterval(()=>{var _a;try{const iframe=iframeRef.current;viewport!==null&&(iframe.contentWindow.document.body.style.width="fit-content"),!first&&iframe?.style.height==="5000px"&&(iframe.style.height="100%");const newHeight=iframe.contentWindow.document.body.scrollHeight,newWidth=(_a=iframe?.contentWindow)===null||_a===void 0?void 0:_a.document.body.offsetWidth;setIframeHeight(newHeight),setIframeWidth(newWidth||0),first=!1}catch{}},interval),[iframeRef,iframeHeight,iframeWidth]}exports.useIframeContentHeight=useIframeContentHeight;function useInterval(callback,interval){const savedCallback=(0,react_1.useRef)(()=>callback);(0,react_1.useEffect)(()=>{savedCallback.current=callback}),(0,react_1.useEffect)(()=>{function tick(){savedCallback.current()}if(interval!==null){const id=setInterval(tick,interval);return()=>clearInterval(id)}return()=>{}},[interval])}exports.useInterval=useInterval},61286:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsApp=void 0;const react_1=__importDefault(__webpack_require__(59496)),docs_1=__webpack_require__(84723),react_ui_docs_properties_table_1=__webpack_require__(98077),react_ui_docs_compositions_carousel_1=__webpack_require__(54505),react_ui_docs_docs_content_1=__webpack_require__(90036),docs_theme_1=__webpack_require__(35623),docs_app_module_scss_1=__importDefault(__webpack_require__(9033));function DocsApp({componentId,docs=docs_1.defaultDocs,compositions,context}){const withoutHash=window.location.hash.substring(1),[,after]=withoutHash.split("?"),renderOnlyOverview=new URLSearchParams(after).get("onlyOverview");return react_1.default.createElement(docs_theme_1.DocsTheme,null,react_1.default.createElement(react_1.default.Fragment,null,react_1.default.createElement(react_ui_docs_docs_content_1.DocsContent,{docs,className:docs_app_module_scss_1.default.mdx}),(!renderOnlyOverview||renderOnlyOverview==="false")&&react_1.default.createElement(react_ui_docs_compositions_carousel_1.CompositionsCarousel,{renderingContext:context,compositions,className:docs_app_module_scss_1.default.compositionSection,compositionCardClass:docs_app_module_scss_1.default.compositionCard}),(!renderOnlyOverview||renderOnlyOverview==="false")&&react_1.default.createElement(react_ui_docs_properties_table_1.PropertiesTable,{componentId})))}exports.DocsApp=DocsApp},35623:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsTheme=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),design_themes_theme_toggler_1=__webpack_require__(68960),design_theme_icons_font_1=__webpack_require__(22975),docs_app_module_scss_1=__importDefault(__webpack_require__(9033));function DocsTheme({children}){const hash=window.location.hash,[,hashQuery]=hash&&hash.split("?"),theme=new URLSearchParams(hashQuery).get("theme")||"light";return react_1.default.createElement(design_themes_theme_toggler_1.ThemeSwitcher,{defaultTheme:theme},react_1.default.createElement(design_theme_icons_font_1.IconFont,{query:"q76y7n"}),react_1.default.createElement("div",{className:(0,classnames_1.default)(docs_app_module_scss_1.default.docsMainBlock)},children))}exports.DocsTheme=DocsTheme},17294:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(__webpack_require__(59496)),react_dom_1=__importDefault(__webpack_require__(87995)),docs_app_1=__webpack_require__(61286);function DocsRoot({componentId,docs,compositions,context}){react_dom_1.default.render(react_1.default.createElement(docs_app_1.DocsApp,{componentId,docs,compositions,context}),document.getElementById("root"))}DocsRoot.apiObject=!0,exports.default=DocsRoot},79022:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.docsStyles=exports.DocsApp=exports.default=exports.DocsTheme=void 0;var docs_theme_1=__webpack_require__(35623);Object.defineProperty(exports,"DocsTheme",{enumerable:!0,get:function(){return docs_theme_1.DocsTheme}});var docs_app_root_1=__webpack_require__(17294);Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return __importDefault(docs_app_root_1).default}});var docs_app_1=__webpack_require__(61286);Object.defineProperty(exports,"DocsApp",{enumerable:!0,get:function(){return docs_app_1.DocsApp}});var docs_app_module_scss_1=__webpack_require__(9033);Object.defineProperty(exports,"docsStyles",{enumerable:!0,get:function(){return __importDefault(docs_app_module_scss_1).default}})},80849:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApplyProviders=void 0;const react_1=__importDefault(__webpack_require__(59496)),react_error_boundary_1=__webpack_require__(75340),base_ui_utils_composer_1=__webpack_require__(80893),react_ui_error_fallback_1=__webpack_require__(32334),react_2=__webpack_require__(32750);function ApplyProviders(_a){var{renderingContext,children}=_a,rest=__rest(_a,["renderingContext","children"]);const{providers=[]}=renderingContext.get(react_2.ReactAspect.id)||{};return react_1.default.createElement("div",Object.assign({},rest),react_1.default.createElement(react_error_boundary_1.ErrorBoundary,{FallbackComponent:react_ui_error_fallback_1.ErrorFallback},react_1.default.createElement(base_ui_utils_composer_1.Composer,{components:providers},children)))}exports.ApplyProviders=ApplyProviders},95440:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApplyProviders=void 0;var apply_providers_1=__webpack_require__(80849);Object.defineProperty(exports,"ApplyProviders",{enumerable:!0,get:function(){return apply_providers_1.ApplyProviders}})},84218:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsCarousel=void 0;const react_1=__importDefault(__webpack_require__(59496)),react_ui_docs_apply_providers_1=__webpack_require__(95440),compositions_ui_compositions_overview_1=__webpack_require__(31314),documenter_ui_linked_heading_1=__webpack_require__(19058),documenter_ui_section_1=__webpack_require__(94761);function CompositionsCarousel(_a){var{compositions,compositionCardClass,renderingContext}=_a,rest=__rest(_a,["compositions","compositionCardClass","renderingContext"]);return!compositions||Object.keys(compositions).length===0?null:react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,"Compositions"),react_1.default.createElement(react_ui_docs_apply_providers_1.ApplyProviders,{renderingContext},react_1.default.createElement(compositions_ui_compositions_overview_1.CompositionsOverview,{compositions,compositionCardClass})))}exports.CompositionsCarousel=CompositionsCarousel},54505:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CompositionsCarousel=void 0;var compositions_carousel_1=__webpack_require__(84218);Object.defineProperty(exports,"CompositionsCarousel",{enumerable:!0,get:function(){return compositions_carousel_1.CompositionsCarousel}})},58715:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsContent=void 0;const react_error_boundary_1=__webpack_require__(75340),lodash_1=__webpack_require__(32699),docs_1=__webpack_require__(84723),react_ui_error_fallback_1=__webpack_require__(32334),mdx_ui_mdx_layout_1=__webpack_require__(69909),react_1=__importDefault(__webpack_require__(59496));function DocsContent(_a){var{docs=docs_1.defaultDocs}=_a,rest=__rest(_a,["docs"]);const Content=(0,lodash_1.isFunction)(docs.default)?docs.default:()=>null;return react_1.default.createElement(react_error_boundary_1.ErrorBoundary,{FallbackComponent:react_ui_error_fallback_1.ErrorFallback},Content.isMDXComponent?react_1.default.createElement(mdx_ui_mdx_layout_1.MDXLayout,Object.assign({},rest),react_1.default.createElement(Content,null)):react_1.default.createElement(Content,null))}exports.DocsContent=DocsContent},90036:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DocsContent=void 0;var docs_content_1=__webpack_require__(58715);Object.defineProperty(exports,"DocsContent",{enumerable:!0,get:function(){return docs_content_1.DocsContent}})},98077:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertiesTable=void 0;var properties_table_1=__webpack_require__(29784);Object.defineProperty(exports,"PropertiesTable",{enumerable:!0,get:function(){return properties_table_1.PropertiesTable}})},29784:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.PropertiesTable=void 0;const documenter_ui_linked_heading_1=__webpack_require__(19058),documenter_ui_property_table_1=__webpack_require__(6990),documenter_ui_section_1=__webpack_require__(94761),component_ui_hooks_use_fetch_docs_1=__webpack_require__(23087),react_1=__importDefault(__webpack_require__(59496));function PropertiesTable(_a){var{componentId}=_a,rest=__rest(_a,["componentId"]);const{loading,error,data}=(0,component_ui_hooks_use_fetch_docs_1.useFetchDocs)(componentId);if(!data||loading)return null;if(error)return console.error(`failed to fetch docs for ${componentId} in PropertiesTable`,error),null;const{properties}=data.docs;return properties.length===0?react_1.default.createElement("div",null):react_1.default.createElement(documenter_ui_section_1.Section,Object.assign({},rest),react_1.default.createElement(documenter_ui_linked_heading_1.LinkedHeading,null,"Properties"),react_1.default.createElement(documenter_ui_property_table_1.PropTable,{rows:properties}))}exports.PropertiesTable=PropertiesTable},16880:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorFallback=void 0;const react_1=__importDefault(__webpack_require__(59496)),classnames_1=__importDefault(__webpack_require__(97754)),design_ui_icon_button_1=__webpack_require__(53330),base_ui_styles_flex_center_1=__webpack_require__(15764),error_fallback_module_scss_1=__importDefault(__webpack_require__(86308));function ErrorFallback({resetErrorBoundary,className,children="Failed to render",cta="try again"}){const handleClick=()=>__awaiter(this,void 0,void 0,function*(){yield new Promise(resolve=>setTimeout(resolve,480)),resetErrorBoundary()});return react_1.default.createElement("div",{className:(0,classnames_1.default)(error_fallback_module_scss_1.default.errorFallback,base_ui_styles_flex_center_1.flexCenter,className)},react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.icon}),react_1.default.createElement("div",{className:error_fallback_module_scss_1.default.message},children),react_1.default.createElement(design_ui_icon_button_1.IconButton,{onClick:handleClick,className:error_fallback_module_scss_1.default.retryButton},cta))}exports.ErrorFallback=ErrorFallback},32334:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorFallback=void 0;var error_fallback_1=__webpack_require__(16880);Object.defineProperty(exports,"ErrorFallback",{enumerable:!0,get:function(){return error_fallback_1.ErrorFallback}})},31461:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.matchPatterns=exports.splitPatterns=void 0;var match_patterns_1=__webpack_require__(36213);Object.defineProperty(exports,"splitPatterns",{enumerable:!0,get:function(){return match_patterns_1.splitPatterns}}),Object.defineProperty(exports,"matchPatterns",{enumerable:!0,get:function(){return match_patterns_1.matchPatterns}})},36213:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.splitPatterns=exports.matchPatterns=void 0;const minimatch_1=__importDefault(__webpack_require__(18455));function matchPatterns(filePath,includePatterns,excludePatterns){const included=includePatterns.some(pattern=>(0,minimatch_1.default)(filePath,pattern)),excluded=excludePatterns.every(pattern=>(0,minimatch_1.default)(filePath,pattern));return included&&excluded}exports.matchPatterns=matchPatterns;function splitPatterns(patterns){return{includePatterns:patterns.filter(pattern=>!pattern.startsWith("!")),excludePatterns:patterns.filter(pattern=>pattern.startsWith("!"))}}exports.splitPatterns=splitPatterns},55044:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalize=void 0;function capitalize(str){return str.charAt(0).toUpperCase()+str.slice(1)}exports.capitalize=capitalize},58315:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.capitalize=void 0;var capitalize_1=__webpack_require__(55044);Object.defineProperty(exports,"capitalize",{enumerable:!0,get:function(){return capitalize_1.capitalize}})},49429:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getInitials=void 0;function getInitials(name){if(!name)return;const words=name.split(" ");return words.length>1?words.slice(0,2).map(word=>word[0]).join(""):name.slice(0,2)}exports.getInitials=getInitials},85749:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getInitials=void 0;var get_initials_1=__webpack_require__(49429);Object.defineProperty(exports,"getInitials",{enumerable:!0,get:function(){return get_initials_1.getInitials}})},18943:(__unused_webpack_module,exports)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addAvatarQueryParams=void 0;function addAvatarQueryParams(url,size,defaultAvatarBgColor){if(!url)return url;const intSize=typeof size=="string"?parseInt(size):size,controlChar=url.indexOf("?")>-1?"&":"?",gravatarParams=[`size=${size}`],imgixParams=[`w=${intSize*2}`,`h=${intSize*2}`,"crop=faces","fit=crop",`bg=${defaultAvatarBgColor}`],params=[].concat(gravatarParams,imgixParams);return`${url}${controlChar}${params.join("&")}`}exports.addAvatarQueryParams=addAvatarQueryParams},66045:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addAvatarQueryParams=void 0;var add_avatar_query_params_1=__webpack_require__(18943);Object.defineProperty(exports,"addAvatarQueryParams",{enumerable:!0,get:function(){return add_avatar_query_params_1.addAvatarQueryParams}})},90065:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Collapser=void 0;const evangelist_elements_icon_1=__webpack_require__(86144),classnames_1=__importDefault(__webpack_require__(97754)),react_1=__importDefault(__webpack_require__(59496)),design_ui_tooltip_1=__webpack_require__(93976),collapser_button_module_scss_1=__importDefault(__webpack_require__(18615));function Collapser(_a){var{isOpen,tooltipContent,placement="right",onClick,className}=_a,rest=__rest(_a,["isOpen","tooltipContent","placement","onClick","className"]);const icon=`${placement}-rounded-corners`;return react_1.default.createElement(design_ui_tooltip_1.Tooltip,{content:tooltipContent},react_1.default.createElement("div",Object.assign({},rest,{onClick,className:(0,classnames_1.default)(collapser_button_module_scss_1.default.collapser,collapser_button_module_scss_1.default[placement],isOpen&&collapser_button_module_scss_1.default.open,className)}),react_1.default.createElement("div",{className:collapser_button_module_scss_1.default.circle},react_1.default.createElement("div",null,react_1.default.createElement(evangelist_elements_icon_1.Icon,{of:icon})))))}exports.Collapser=Collapser},32098:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Collapser=void 0;var collapser_button_1=__webpack_require__(90065);Object.defineProperty(exports,"Collapser",{enumerable:!0,get:function(){return collapser_button_1.Collapser}})},24681:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SlotRouter:()=>SlotRouter});var jsx_runtime=__webpack_require__(4637),react=__webpack_require__(59496),dist=__webpack_require__(70024),lodash=__webpack_require__(32699);function toKey(route){return route.path?route.path:route.index?"/":"."}function SlotRouter({routes:routesFromProps,slot,rootRoutes,children,parentPath}){const jsxRoutes=(routesFromProps||slot&&(0,lodash.flatten)(slot.values())||[]).concat(rootRoutes||[]).map(route=>(0,jsx_runtime.jsx)(dist.AW,{...route},toKey(route)));return parentPath?(0,jsx_runtime.jsx)(dist.Z5,{children:(0,jsx_runtime.jsxs)(dist.AW,{path:parentPath,children:[jsxRoutes,children]})}):(0,jsx_runtime.jsx)(dist.Z5,{children:(0,jsx_runtime.jsxs)(dist.AW,{path:parentPath,children:[jsxRoutes,children]})})}},70237:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.CrossIframeDevTools=void 0;const react_1=__importDefault(__webpack_require__(59496));function CrossIframeDevTools(){return react_1.default.createElement("script",null,`/* Allow to use react dev-tools inside the examples */
|
664
664
|
`,"try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}")}exports.CrossIframeDevTools=CrossIframeDevTools},50629:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FullHeightStyle=void 0;const react_1=__importDefault(__webpack_require__(59496));function FullHeightStyle(){return react_1.default.createElement("style",null,"body { margin: 0; }")}exports.FullHeightStyle=FullHeightStyle},54997:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ssrCleanup=exports.Html=exports.LOAD_EVENT=void 0;const react_1=__importDefault(__webpack_require__(59496)),dev_tools_1=__webpack_require__(70237),mount_point_1=__webpack_require__(91891),stored_assets_1=__webpack_require__(2305),ssr_styles_1=__webpack_require__(85847),full_height_style_1=__webpack_require__(50629);exports.LOAD_EVENT="_DOM_LOADED_";const NotifyParentScript=()=>react_1.default.createElement("script",{dangerouslySetInnerHTML:{__html:`
|
665
665
|
// only send loaded event when mounted in an iframe
|
666
666
|
if (window.parent && window !== window.parent) {
|