From 2c90149578250e5ec3b9b5ab012976943c58a3c9 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Mon, 16 Sep 2024 10:27:42 -0400 Subject: [PATCH] Updates --- asset-manifest.json | 10 +++++----- index.html | 2 +- static/js/635.2af5cd10.chunk.js | 2 ++ ...f9175cd1.chunk.js.map => 635.2af5cd10.chunk.js.map} | 2 +- static/js/635.f9175cd1.chunk.js | 2 -- static/js/main.d737f630.js | 3 --- static/js/main.e57a4f4c.js | 3 +++ ...630.js.LICENSE.txt => main.e57a4f4c.js.LICENSE.txt} | 0 .../js/{main.d737f630.js.map => main.e57a4f4c.js.map} | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 static/js/635.2af5cd10.chunk.js rename static/js/{635.f9175cd1.chunk.js.map => 635.2af5cd10.chunk.js.map} (99%) delete mode 100644 static/js/635.f9175cd1.chunk.js delete mode 100644 static/js/main.d737f630.js create mode 100644 static/js/main.e57a4f4c.js rename static/js/{main.d737f630.js.LICENSE.txt => main.e57a4f4c.js.LICENSE.txt} (100%) rename static/js/{main.d737f630.js.map => main.e57a4f4c.js.map} (50%) diff --git a/asset-manifest.json b/asset-manifest.json index 3f981219..1c326733 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,21 +1,21 @@ { "files": { "main.css": "/sequenceTubeMap/static/css/main.629d6d93.css", - "main.js": "/sequenceTubeMap/static/js/main.d737f630.js", - "static/js/635.f9175cd1.chunk.js": "/sequenceTubeMap/static/js/635.f9175cd1.chunk.js", + "main.js": "/sequenceTubeMap/static/js/main.e57a4f4c.js", + "static/js/635.2af5cd10.chunk.js": "/sequenceTubeMap/static/js/635.2af5cd10.chunk.js", "static/js/599.43912877.chunk.js": "/sequenceTubeMap/static/js/599.43912877.chunk.js", "static/js/416.eb85f570.chunk.js": "/sequenceTubeMap/static/js/416.eb85f570.chunk.js", "static/js/366.6d7de32b.chunk.js": "/sequenceTubeMap/static/js/366.6d7de32b.chunk.js", "static/media/query.wasm": "/sequenceTubeMap/static/media/query.447ca55ce499f5f05499.wasm", "index.html": "/sequenceTubeMap/index.html", "main.629d6d93.css.map": "/sequenceTubeMap/static/css/main.629d6d93.css.map", - "main.d737f630.js.map": "/sequenceTubeMap/static/js/main.d737f630.js.map", - "635.f9175cd1.chunk.js.map": "/sequenceTubeMap/static/js/635.f9175cd1.chunk.js.map", + "main.e57a4f4c.js.map": "/sequenceTubeMap/static/js/main.e57a4f4c.js.map", + "635.2af5cd10.chunk.js.map": "/sequenceTubeMap/static/js/635.2af5cd10.chunk.js.map", "599.43912877.chunk.js.map": "/sequenceTubeMap/static/js/599.43912877.chunk.js.map", "366.6d7de32b.chunk.js.map": "/sequenceTubeMap/static/js/366.6d7de32b.chunk.js.map" }, "entrypoints": [ "static/css/main.629d6d93.css", - "static/js/main.d737f630.js" + "static/js/main.e57a4f4c.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index b015f239..eefa4ef0 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Sequence Tube Map
\ No newline at end of file +Sequence Tube Map
\ No newline at end of file diff --git a/static/js/635.2af5cd10.chunk.js b/static/js/635.2af5cd10.chunk.js new file mode 100644 index 00000000..a24bc5d1 --- /dev/null +++ b/static/js/635.2af5cd10.chunk.js @@ -0,0 +1,2 @@ +!function(){"use strict";var e={5635:function(e,t,r){var n=r(74165),a=r(15861),i=r(47460),o=r(29439),s=r(43144),u=r(15671),c=r(60136),l=r(27277),p=r(37762),f=JSON.parse('{"BACKEND_URL":"https://api.tubemap.graphs.vg","DATA_SOURCES":[{"name":"snp1kg-BRCA1","tracks":[{"trackFile":"exampleData/internal/snp1kg-BRCA1.vg.xg","trackType":"graph","trackColorSettings":{"mainPalette":"greys","auxPalette":"ygreys"}},{"trackFile":"exampleData/internal/NA12878-BRCA1.sorted.gam","trackType":"read"}],"region":"17:1-100","bedFile":"exampleData/internal/snp1kg-BRCA1.bed","dataType":"built-in","simplify":false,"removeSequences":false},{"name":"vg \\"small\\" example","tracks":[{"trackFile":"exampleData/x.vg.xg","trackType":"graph"},{"trackFile":"exampleData/x.vg.gbwt","trackType":"haplotype"}],"dataType":"built-in","region":"x:1-100"},{"name":"cactus","tracks":[{"trackFile":"exampleData/cactus.vg.xg","trackType":"graph"},{"trackFile":"exampleData/cactus-NA12879.sorted.gam","trackType":"read"}],"bedFile":"exampleData/cactus.bed","region":"ref:1-100","dataType":"built-in"},{"name":"cactus multiple reads","tracks":[{"trackFile":"exampleData/cactus.vg.xg","trackType":"graph"},{"trackFile":"exampleData/cactus0_10.sorted.gam","trackType":"read"},{"trackFile":"exampleData/cactus10_20.sorted.gam","trackType":"read"}],"bedFile":"exampleData/cactus.bed","region":"ref:1-100","dataType":"built-in"},{"name":"Lancet example","tracks":[{"trackFile":null,"trackType":"graph","trackColorSettings":{"mainPalette":"#000000","auxPalette":"greys","colorReadsByMappingQuality":false}},{"trackFile":null,"trackType":"read","trackColorSettings":{"mainPalette":"blues","auxPalette":"blues"}},{"trackFile":null,"trackType":"read","trackColorSettings":{"mainPalette":"reds","auxPalette":"reds"}}],"bedFile":"https://public.gi.ucsc.edu/~anovak/vg-data/lancet_2023-11-07/index.bed","region":"chr1:7290357-7290857","dataType":"built-in"}],"vgPath":["./","./bin","./vg/bin",""],"dataPath":"exampleData","internalDataPath":"exampleData/internal/","tempDirPath":"temp","fetchTimeout":15,"maxFileSizeBytes":1000000000,"defaultGraphColorPalette":{"mainPalette":"#000000","auxPalette":"greys","colorReadsByMappingQuality":false},"defaultHaplotypeColorPalette":{"mainPalette":"plainColors","auxPalette":"lightColors","colorReadsByMappingQuality":false},"defaultReadColorPalette":{"mainPalette":"blues","auxPalette":"reds","colorReadsByMappingQuality":false},"defaultTrackProps":{"trackType":"graph","trackColorSettings":{"mainPalette":"#000000","auxPalette":"greys","colorReadsByMappingQuality":false}},"fileTypeToExtensions":{"graph":".xg,.vg,.hg,.gbz,.pg,.db","haplotype":".gbwt,.gbz","read":".gam,.gaf.gz"},"MAXUPLOADSIZE":5242880,"pickerTypeOptions":["mounted","upload"],"fileExpirationTime":86400}');(globalThis||window||r.g).__sequence_tube_map_config=f;var d=function(){function e(){(0,u.Z)(this,e)}return(0,s.Z)(e,[{key:"getChunkedData",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getChunkedData function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getFilenames",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getFilenames function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribeToFilenameChanges",value:function(e,t){throw new Error("subscribeToFilenameChanges function not implemented")}},{key:"putFile",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r,a){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("putFile function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getBedRegions",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getBedRegions function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getPathNames",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getPathNames function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getChunkTracks",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r,a){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getChunkTracks function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),e}(),h=r(34158),g=(globalThis||window||global).__sequence_tube_map_config;if(!g)throw new Error("config-global.mjs loaded before either config-client.js or config-server.mjs");function v(e){if(!e||"none"===e)throw new Error("Missing region.");if(!e.includes(":"))throw new Error("Region doesn't contain a ':'.");if(e.endsWith(":"))throw new Error("Region ends with a ':' and is missing coordinates.");var t=(e=function(e){var t=e.split(":");if(t.length<2)return e;var r=t[t.length-1];return r=r.replace(/,/g,""),t[t.length-1]=r,t.join(":")}(e)).split(":"),r=t[t.length-1].split("-"),n=t[t.length-1].split("+"),a=t.slice(0,-1).join(":");if(2===r.length)return{contig:a,start:Number(r[0]),end:Number(r[1])};if(2===n.length)return{contig:a,start:Number(n[0]),distance:Number(n[1])};throw new Error("Coordinates must be in the form 'X:Y-Z' or 'X:Y+Z'.")}function m(e){return void 0!==e.distance?{contig:e.contig,start:e.start,end:e.start+e.distance}:e}function y(e){return void 0!==e.distance?e.contig.concat(":",e.start,"+",e.distance):function(e){var t=e.contig,r=e.start,n=e.end;return t.concat(":",r,"-",n)}(e)}function b(){return w.apply(this,arguments)}function w(){return(w=(0,a.Z)((0,n.Z)().mark((function e(){var t,a,i;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b.cached){e.next=2;break}return e.abrupt("return",b.cached);case 2:if(t=null,"undefined"!==typeof window&&window.jest){e.next=14;break}return e.prev=4,e.next=7,r.e(416).then(r.t.bind(r,65416,17));case 7:return a=e.sent,e.abrupt("return",fetch(a.default));case 11:e.prev=11,e.t0=e.catch(4),console.error("Could not dynamically import WASM blob.",e.t0);case 14:if(t){e.next=21;break}return e.next=17,import("fs-extra");case 17:return i=e.sent,e.next=20,i.readFile("node_modules/gbz-base/target/wasm32-wasi/release/query.wasm");case 20:t=e.sent;case 21:return console.log("Got blob bytes: ",t),b.cached=t,e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,null,[[4,11]])})))).apply(this,arguments)}function k(e){return x.apply(this,arguments)}function x(){return(x=(0,a.Z)((0,n.Z)().mark((function e(t){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.arrayBuffer();case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",new Promise((function(e,r){var n=new FileReader;n.addEventListener("load",(function(){e(n.result)})),n.addEventListener("error",(function(){r(n.error)})),n.readAsArrayBuffer(t)})));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function Z(e){var t={};t.node=e.nodes;var r,n=new Map,a=(0,p.Z)(t.node);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.set(i.id,i.sequence.length)}}catch(y){a.e(y)}finally{a.f()}t.edge=e.edges;var o,s=(0,p.Z)(t.edge);try{for(s.s();!(o=s.n()).done;){var u=o.value;u.from_start=u.from_is_reverse,delete u.from_is_reverse,u.to_end=u.to_is_reverse,delete u.to_is_reverse}}catch(y){s.e(y)}finally{s.f()}t.path=e.paths;var c,l=(0,p.Z)(t.path);try{for(l.s();!(c=l.n()).done;){var f=c.value;f.mapping=[];var d,h=(0,p.Z)(f.path);try{for(h.s();!(d=h.n()).done;){var g=d.value,v=n.get(g.id),m={position:{node_id:g.id,is_reverse:g.is_reverse},edit:[{from_length:v,to_length:v}]};f.mapping.push(m)}}catch(y){h.e(y)}finally{h.f()}delete f.path}}catch(y){l.e(y)}finally{l.f()}return t}var T=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){return(0,u.Z)(this,r),t.call(this,new _(e),{readonly:!0})}return(0,s.Z)(r)}(h.iQ),_=function(){function e(t){(0,u.Z)(this,e),this.closed=!1,this.blob=t,this.reader=new FileReaderSync}return(0,s.Z)(e,[{key:"close",value:function(){this.closed=!0}},{key:"flush",value:function(){throw new Error("Flush not implemented; blobs are read only")}},{key:"getSize",value:function(){if(this.closed)throw new Error("Can't get size of closed file");return this.blob.size}},{key:"read",value:function(e,t){var r,n,a;if(this.closed)throw new Error("Can't read closed file");var i=null!==(r=e.buffer)&&void 0!==r?r:e,o=null!==(n=e.byteOffset)&&void 0!==n?n:0,s=null!==(a=null===t||void 0===t?void 0:t.at)&&void 0!==a?a:0,u=Math.min(e.byteLength,this.blob.size-s),c=this.blob.slice(s,s+u),l=this.reader.readAsArrayBuffer(c),p=new Uint8Array(i,o,u),f=new Uint8Array(l,0,u);return p.set(f),u}},{key:"truncate",value:function(e){throw new Error("Truncate not implemented; blobs are read only")}},{key:"write",value:function(e,t){throw new Error("Write not implemented; blobs are read only")}}]),e}(),F=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this)).files=[],e.filesByType=new Map,e.compiledWasm=void 0,e}return(0,s.Z)(r,[{key:"setUp",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===this.compiledWasm&&(this.compiledWasm=b().then((function(e){return e instanceof Response?WebAssembly.compileStreaming(e):WebAssembly.compile(e)}))),e.next=3,this.compiledWasm;case 3:this.compiledWasm=e.sent;case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callWasm",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){var a,i,s,u,c,l,p,f,d,g,v,m,y,b,w,x;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<1)){e.next=2;break}throw new Error("Not safe to invoke main() without program name");case 2:return e.next=4,this.setUp();case 4:if(a=new h.$B([]),i=new h.$B([]),s=new h.$B([]),u=["RUST_BACKTRACE=full"],c=[new h.pn(a),new h.pn(i),new h.pn(s)],!r){e.next=30;break}l={},p=0,f=Object.entries(r);case 12:if(!(p=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[u])}))?n.splice(u--,1):(s=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,a,i]}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"===typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"===typeof n.then)return n}var i=Object.create(null);r.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},r.d(i,o),i}}(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return"static/js/"+e+"."+{366:"6d7de32b",416:"eb85f570"}[e]+".chunk.js"},r.miniCssF=function(e){},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/sequenceTubeMap/",function(){var e={635:1};r.f.i=function(t,n){e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunksequence_tube_maps=self.webpackChunksequence_tube_maps||[],n=t.push.bind(t);t.push=function(t){var a=t[0],i=t[1],o=t[2];for(var s in i)r.o(i,s)&&(r.m[s]=i[s]);for(o&&o(r);a.length;)e[a.pop()]=1;n(t)}}(),function(){var e=r.x;r.x=function(){return r.e(366).then(e)}}();r.x()}(); +//# sourceMappingURL=635.2af5cd10.chunk.js.map \ No newline at end of file diff --git a/static/js/635.f9175cd1.chunk.js.map b/static/js/635.2af5cd10.chunk.js.map similarity index 99% rename from static/js/635.f9175cd1.chunk.js.map rename to static/js/635.2af5cd10.chunk.js.map index b15f9b9d..798d21a0 100644 --- a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AY6D,EAAY7D,IAIhD,IADG8D,GAASA,EAAQ/D,GACdW,EAASzP,QACduS,EAAgB9C,EAASqD,OAAS,EACnCJ,EAA2B7I,EAC5B,C,eCtBA,IAAI5M,EAAO6R,EAAoBO,EAC/BP,EAAoBO,EAAI,WACvB,OAAOP,EAAoB7K,EAAE,KAAKuD,KAAKvK,EACxC,C,ICF0B6R,EAAoBO,G","sources":["config-client.js","api/APIInterface.mjs","config-global.mjs","common.mjs","api/GBZBaseAPI.mjs","api/local/WorkerImplementation.mjs","api/local/Worker.mjs","../webpack/bootstrap","../webpack/runtime/chunk loaded","../webpack/runtime/create fake namespace object","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/make namespace object","../webpack/runtime/publicPath","../webpack/runtime/importScripts chunk loading","../webpack/runtime/startup chunk dependencies","../webpack/startup"],"sourcesContent":["// config-client.js: Must be run on the client before config-global.mjs will work.\n\nimport config from \"./config.json\";\n\nconst GLOBAL_NAME = \"__sequence_tube_map_config\";\n// Tell eslint that globalThis might exist.\n/*global globalThis*/\nconst GLOBAL_HOME = globalThis || window || global;\n\n// Hide the config in the globals object when we run.\nGLOBAL_HOME[GLOBAL_NAME] = config;\n","// Interface for handling function called from the tubemap frontend\n// Abstract class expecting different implmentations of the following functions\n// Substituting different subclasses should allow the functions to give the same result\nexport class APIInterface {\n // Takes in and process a tube map view(viewTarget) from the tubemap container.\n // Expects a object to be returned with the necessary information to draw a tubemap from vg\n // object should contain keys: graph, gam, region, coloredNodes.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n // If the request is not structured correctly, or something goes wrong\n // internally, throws an Error.\n async getChunkedData(viewTarget, cancelSignal) {\n throw new Error(\"getChunkedData function not implemented\");\n }\n\n // Returns files used to determine what options are available in the track picker.\n // Returns object with keys: files, bedFiles.\n // files holds an array of objects like { name: string; type: filetype;}, where filetype is a file type like \"graph\".\n // bedFiles just holds an array of strings.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getFilenames(cancelSignal) {\n throw new Error(\"getFilenames function not implemented\");\n }\n\n // Get notifications (via calls to handler()) when the set of filenames available from getFilenames() has changed.\n // Returns a subscription object that should be kept around as long as you still want updates.\n // cancelSignal is an AbortSignal that can be used to cancel the stream of notifications.\n subscribeToFilenameChanges(handler, cancelSignal) {\n throw new Error(\"subscribeToFilenameChanges function not implemented\");\n }\n\n // Upload a file.\n // fileType is a track type like \"graph\" or \"read\".\n // file is the file data (Blob or File).\n // cancelSignal is an AbortSignal that can be used to cancel the upload.\n // Resolves with the file name that can be used to refer to the uploaded file.\n async putFile(fileType, file, cancelSignal) {\n throw new Error(\"putFile function not implemented\");\n }\n\n // Takes in a bedfile path or a url pointing to a raw bed file.\n // Returns object with key: bedRegions.\n // bedRegions contains information extrapolated from each line of the bedfile.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getBedRegions(bedFile, cancelSignal) {\n throw new Error(\"getBedRegions function not implemented\");\n }\n\n // Takes in a graphFile path.\n // Returns object with key: pathNames.\n // Returns pathnames available in a graphfile.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getPathNames(graphFile, cancelSignal) {\n throw new Error(\"getPathNames function not implemented\");\n }\n\n // Expects a bed file(or url) and a chunk name.\n // Attempts to download tracks associated with the chunk name from the bed file if it is a URL.\n // Returns object with key: tracks.\n // Returns tracks found from local directories as a tracks object.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getChunkTracks(bedFile, chunk, cancelSignal) {\n throw new Error(\"getChunkTracks function not implemented\");\n }\n}\n\nexport default APIInterface;\n","// config-global.mjs: Provide access to the config, assuming config-client.js or config-server.mjs has been imported already.\n// Import this instead of config.json! This is the One True Way to get the config!\n\nconst GLOBAL_NAME = \"__sequence_tube_map_config\";\n// Tell eslint that globalThis might exist.\n/*global globalThis*/\nconst GLOBAL_HOME = globalThis || window || global;\n\n// Find the config in the globals.\nexport const config = GLOBAL_HOME[GLOBAL_NAME];\n\nif (!config) {\n throw new Error(\n \"config-global.mjs loaded before either config-client.js or config-server.mjs\"\n );\n}\n\nexport default config;\n","// common.mjs: shared functions between client and server\n\n// NOTE! Since this file is imported on the server *and* transpiled for the\n// client, we CANNOT import config.json. It would require syntax on Node which\n// is not allowed by the transpiler.\n// So we get the cinfig a fancy way instead. But you *must* import config-client.js or config-server.,js before this file!\nimport { config } from \"./config-global.mjs\";\n\n// function to remove commas from coordinate input\nconst removeCommas = (input) => {\n let parts = input.split(\":\");\n if (parts.length < 2) {\n return input;\n }\n // get coordinate - numerical range after last colon\n let coordinates = parts[parts.length - 1];\n coordinates = coordinates.replace(/,/g, \"\");\n // put region input coordinate back together\n parts[parts.length - 1] = coordinates;\n let fixedInputValue = parts.join(\":\");\n return fixedInputValue;\n};\n\n// Parse a region string into:\n// { contig, start, end }\n// or\n// { contig, start, distance }\n//\n// a region string could look like: \"17:1-100\"\n// \n// For distance, + is used as the coordinate separator. For start/end ranges, - is used.\n// The coordinates are set off from the contig by the last colon.\n// Commas in coordinates are removed.\n//\n// Throws an Error if the region was not understood.\nexport function parseRegion(region) {\n if (!region || region === \"none\") {\n throw new Error(\"Missing region.\");\n }\n if (!region.includes(\":\")) {\n throw new Error(\"Region doesn't contain a ':'.\");\n }\n if (region.endsWith(\":\")) {\n throw new Error(\"Region ends with a ':' and is missing coordinates.\");\n }\n\n region = removeCommas(region);\n\n // Get the part of the region after the last colon\n let region_col = region.split(\":\");\n let start_end = region_col[region_col.length - 1].split(\"-\");\n let pos_dist = region_col[region_col.length - 1].split(\"+\");\n\n let contig = region_col.slice(0, -1).join(\":\");\n\n if (start_end.length === 2) {\n let start = Number(start_end[0]);\n let end = Number(start_end[1]);\n return { contig, start, end };\n } else if (pos_dist.length === 2) {\n let start = Number(pos_dist[0]);\n let distance = Number(pos_dist[1]);\n return { contig, start, distance };\n } else {\n throw new Error(\"Coordinates must be in the form 'X:Y-Z' or 'X:Y+Z'.\");\n }\n}\n\n/// Return a version of region that is {contig, start, end} even if region is {contig, start, distance}\nexport function convertRegionToRangeRegion(region) {\n if (region.distance !== undefined) {\n // Has a distance and not an end.\n return {\n contig: region.contig,\n start: region.start,\n end: region.start + region.distance,\n };\n } else {\n // Should already have an end.\n return region;\n }\n}\n\n// Take a { contig, start, end} region and turn it into a\n// string compatible with parseRegion() or with vg.\nexport function stringifyRangeRegion({ contig, start, end }) {\n return contig.concat(\":\", start, \"-\", end);\n}\n\n// Take a {contig, start, end} or {contig, start, distance} region and turn it into a string compatible with parseRegion\nexport function stringifyRegion(region) {\n if (region.distance !== undefined) {\n // It is a distance-based region\n return region.contig.concat(\":\", region.start, \"+\", region.distance);\n } else {\n // It is a range region\n return stringifyRangeRegion(region);\n }\n}\n\n/* This function accepts a track type input and returns the default color scheme for that track type if the \ntrack type is valid */\nexport function defaultTrackColors(trackType) {\n if (trackType === \"graph\") {\n return config.defaultGraphColorPalette;\n } else if (trackType === \"read\") {\n return config.defaultReadColorPalette;\n } else if (trackType === \"haplotype\") {\n return config.defaultHaplotypeColorPalette;\n } else {\n throw new Error(\"Invalid track type: \" + trackType);\n }\n}\n\n/* Function to determine if any of the tracks are reads, where the tracks parameter is an object of track types */\nexport function readsExist(tracks) {\n for (let key in tracks) {\n if (tracks[key].trackType === \"read\") {\n return true;\n }\n }\n return false;\n}\n\n// Accepts a string, returns whether or not the input is a valid http URL we can call fetch on\nexport function isValidURL(string) {\n if (!string) {\n return false;\n }\n\n let url;\n try {\n url = new URL(string);\n } catch (error) {\n return false;\n }\n\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n}\n\nexport function isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n","/**\n * GBZBase-based API implementation. Designed to run in a worker efficiently.\n */\n\n// Use this magic comment to tell eslint we are allowed to use worker things\n// during the Webpack build.\n/* eslint-env worker */\n\nimport \"../config-client.js\";\nimport { APIInterface } from \"./APIInterface.mjs\";\nimport { WASI, File, OpenFile, SyncOPFSFile, PreopenDirectory } from \"@bjorn3/browser_wasi_shim\";\n\nimport {\n parseRegion,\n convertRegionToRangeRegion,\n stringifyRegion\n} from \"../common.mjs\";\n\n// The Webpack way to get the WASM would be something like:\n// \n// import QueryWasm from \"gbz-base/query.wasm\";\n// \n// In Jest, not only is the export mapping not working, but also it can't get\n// us a fetch-able string from the import like Webpack does.\n//\n// So we use this function to detect if we are on Jest and get the blob from\n// the filesystem then, and to otherwise get ti with fetch.\n\n// Resolve with the bytes or Response of the WASM query blob, on Jest or Webpack.\nasync function getWasmBytes() {\n if (getWasmBytes.cached) {\n return getWasmBytes.cached;\n }\n\n let blobBytes = null;\n\n if (typeof window === \"undefined\" || !window[\"jest\"]) {\n // Not running on Jest, we should be able to dynamic import a binary asset\n // by export name and get the bytes, and Webpack will handle it.\n try {\n let blobImport = await import(\"gbz-base/query.wasm\");\n return fetch(blobImport.default);\n } catch (e) {\n console.error(\"Could not dynamically import WASM blob.\", e);\n // Leave blobBytes unset to try a fallback method.\n }\n }\n\n if (!blobBytes) {\n // Either we're on Jest, or the dynamic import didn't work (maybe we're on\n // plain Node?).\n //\n // Try to open the file from the filesystem.\n //\n // Don't actually try and ship the filesystem module in the browser though:\n // see \n let fs = await import(/* webpackIgnore: true */ \"fs-extra\");\n blobBytes = await fs.readFile(\"node_modules/gbz-base/target/wasm32-wasi/release/query.wasm\");\n } \n\n console.log(\"Got blob bytes: \", blobBytes);\n getWasmBytes.cached = blobBytes;\n return blobBytes;\n}\n\n/**\n * Get an ArrayBuffer from a Blob. Works in both the browser and in jsdom\n * (which doesn't actually implement .arrayBuffer(); see\n * ).\n */\nexport async function blobToArrayBuffer(blob) {\n try {\n // Browser blob has this method.\n return await blob.arrayBuffer()\n } catch {\n // jsdom blob needs to go through a FileReader\n return new Promise((resolve, reject) => {\n let reader = new FileReader();\n reader.addEventListener(\"load\", () => { resolve(reader.result); });\n reader.addEventListener(\"error\", () => { reject(reader.error); });\n reader.readAsArrayBuffer(blob);\n });\n }\n}\n\n/**\n * Convert a graph from GBZ-style JSON to vg-style JSON that matches the vg\n * protobuf schema. See\n * \n *\n * Does not leave the input graph intact.\n */\nfunction convertSchema(inGraph) {\n \n let outGraph = {};\n\n // \"nodes\" becomes \"node\"\n outGraph[\"node\"] = inGraph[\"nodes\"];\n\n // We have to track the node lengths to synthisize the path mappings.\n let nodeLength = new Map();\n for (let node of outGraph[\"node\"]) {\n nodeLength.set(node[\"id\"], node[\"sequence\"].length);\n }\n\n // \"edges\" becomes \"edge\"\n outGraph[\"edge\"] = inGraph[\"edges\"];\n for (let edge of outGraph[\"edge\"]) {\n // And the names for the reverse flags change.\n edge[\"from_start\"] = edge[\"from_is_reverse\"];\n delete edge[\"from_is_reverse\"];\n edge[\"to_end\"] = edge[\"to_is_reverse\"];\n delete edge[\"to_is_reverse\"];\n }\n\n // \"paths\" becomes \"path\"\n outGraph[\"path\"] = inGraph[\"paths\"];\n for (let path of outGraph[\"path\"]) {\n path[\"mapping\"] = [];\n for (let visit of path[\"path\"]) {\n let length = nodeLength.get(visit[\"id\"]);\n // Make a full-length perfect match mapping\n let mapping = {\n \"position\": {\"node_id\": visit[\"id\"], \"is_reverse\": visit[\"is_reverse\"]},\n \"edit\": [{\"from_length\": length, \"to_length\": length}]\n };\n path[\"mapping\"].push(mapping);\n }\n\n delete path[\"path\"];\n }\n return outGraph;\n}\n\n/**\n * Implementation of a WASI Browser Shim file that is backed by FileReaderSync and operates on a backing Blob.\n *\n * Read-only.\n *\n * We extend SyncOPFSFile because then we can use OpenSyncOPFSFile for free, as long as we re-implement this.handle.\n */\nclass SyncWorkerBlobFile extends SyncOPFSFile {\n constructor(backing_blob) {\n super(new FileSystemSyncAccessHandlePolyfill(backing_blob), {readonly: true});\n }\n}\n\n/**\n * Implementation of the API of FileSystemSyncAccessHandle\n * ,\n * as used by Browser WASI Shim\n * .\n *\n * Implements the API on top of a Blob, using FileReaderSync.\n *\n * Only allows read access.\n */\nclass FileSystemSyncAccessHandlePolyfill {\n /**\n * Make a new FileSystemSyncAccessHandlePolyfill acting like a\n * FileSystemSyncAccessHandle to the file represented by the given Blob.\n */\n constructor(blob) {\n // Start open\n this.closed = false;\n // Save the blob\n this.blob = blob;\n // Make sure right away we actually can have a FileReaderSync\n this.reader = new FileReaderSync();\n }\n \n /**\n * Close the file.\n */\n close() {\n this.closed = true;\n }\n\n /**\n * Flush changes to the file to disk.\n *\n * Not implemented since we are read-only.\n */\n flush() {\n throw new Error(\"Flush not implemented; blobs are read only\");\n }\n\n /**\n * Get the size of the file in bytes as a number.\n */\n getSize() {\n if (this.closed) {\n throw new Error(\"Can't get size of closed file\");\n }\n \n return this.blob.size;\n }\n\n /**\n * Read into the given ArrayBuffer or ArrayBufferView.\n *\n * Starts at 0 in the file, unless \"at\" is set in options, in which case it\n * starts there in the file.\n *\n * Tries to fill the whole buffer/view.\n *\n * Returns the number of bytes read.\n */\n read(buffer, options) {\n if (this.closed) {\n throw new Error(\"Can't read closed file\");\n }\n\n // Use the actual buffer we got with offset 0, or get the buffer and offset\n // out of the view\n let destinationBuffer = buffer.buffer ?? buffer;\n let destinationOffest = buffer.byteOffset ?? 0;\n \n // Where should we start in the file\n let startByte = options?.at ?? 0;\n\n // How many bytes are we going to move?\n //\n // ArrayBuffer and ArrayBufferView both have a byteLength to see how much\n // we were asked for.\n //\n // But we can't read past the end of the Blob.\n let length = Math.min(buffer.byteLength, this.blob.size - startByte);\n\n // Slice the blob to the part we want to read.\n let partBlob = this.blob.slice(startByte, startByte + length);\n\n // And read into a new ArrayBuffer using the sync reader.\n let partBuffer = this.reader.readAsArrayBuffer(partBlob);\n\n // Now blit from that buffer into the destination\n let destinationArray = new Uint8Array(destinationBuffer, destinationOffest, length);\n let sourceArray = new Uint8Array(partBuffer, 0, length);\n destinationArray.set(sourceArray);\n\n // Return the length we thought we could do\n return length;\n }\n \n /**\n * Truncate the file to the given number of bytes.\n *\n * Not implemented since we are read-only.\n */\n truncate(to: number) {\n throw new Error(\"Truncate not implemented; blobs are read only\");\n }\n \n /**\n * Write the given buffer or view's contents to the file.\n *\n * Writes at the start of the file, unless at is set in options, in which\n * case it writes at that position in the file. Returns the number of bytes\n * written.\n *\n * Not actually implemented since we are read-only.\n */\n write(buffer, options) {\n throw new Error(\"Write not implemented; blobs are read only\");\n }\n\n}\n\n/**\n * API implementation that uses tools compiled to WebAssembly, client-side.\n *\n * Can operate either in the main thread or in a worker, but handles file\n * uploads differently depending on where you put it.\n */\nexport class GBZBaseAPI extends APIInterface {\n constructor() {\n super();\n\n // We can take user uploads, in which case we need to hold on to them somewhere.\n // This holds all the file objects.\n this.files = [];\n\n // We need to index all their names by type.\n this.filesByType = new Map();\n\n // This is a promise for the compiled WebAssembly blob.\n this.compiledWasm = undefined;\n }\n\n // Make sure our WASM backend is ready.\n async setUp() {\n if (this.compiledWasm === undefined) {\n // Kick off and save exactly one request to get and load the WASM bytes.\n this.compiledWasm = getWasmBytes().then((result) => {\n if (result instanceof Response) {\n // If a fetch request was made, compile as it streams in\n return WebAssembly.compileStreaming(result);\n } else {\n // We have all the bytes, so compile right away.\n // TODO: Put this logic in the function?\n return WebAssembly.compile(result);\n }\n });\n }\n\n // Wait for the bytes to be available.\n this.compiledWasm = await this.compiledWasm;\n }\n\n // Make a call into the WebAssembly code and return the result.\n //\n // If workingDirectory is set, it is an object from filename to blob to\n // present as the current directory.\n async callWasm(argv, workingDirectory) {\n if (argv.length < 1) {\n // We need at least one command line argument to be the program name.\n throw new Error(\"Not safe to invoke main() without program name\");\n }\n \n // Make sure this.compiledWasm is set.\n // TODO: Change to an accessor method?\n await this.setUp();\n \n // Define the places to store program input and output\n let stdin = new File([]);\n let stdout = new File([]);\n let stderr = new File([]);\n\n // Environment variables as NAME=value strings\n const environment = [\"RUST_BACKTRACE=full\"];\n \n // File descriptors for the process in number order\n let fileDescriptors = [new OpenFile(stdin), new OpenFile(stdout), new OpenFile(stderr)];\n \n if (workingDirectory) {\n let nameToWASIFile = {};\n for (const [filename, blob] of Object.entries(workingDirectory)) {\n console.log(`Mount ${blob.size} byte blob:`, blob);\n if (typeof FileReaderSync !== \"undefined\") {\n // On a worker where we can do sync reads\n nameToWASIFile[filename] = new SyncWorkerBlobFile(blob);\n } else {\n // In the main thread where we can't do sync reads\n console.warn(\"Sync blob read is not available. Reading \" + blob.size + \" byte blob into memory asynchronously to consult synchronously later!\");\n nameToWASIFile[filename] = new File(await blobToArrayBuffer(blob));\n }\n console.log(\"Mount file:\", nameToWASIFile[filename]);\n }\n // As shown in the browser_wasi_shim examples, if we provide a\n // PreopenDirectory at FD 4 it is shown to the process.\n fileDescriptors.push(new PreopenDirectory(\".\", nameToWASIFile));\n }\n\n // Set up the WASI interface\n let wasi = new WASI(argv, environment, fileDescriptors);\n \n // Set up the WebAssembly run\n let instantiation = await WebAssembly.instantiate(this.compiledWasm, {\n \"wasi_snapshot_preview1\": wasi.wasiImport,\n });\n \n console.log(\"Running WASM with arguments:\", argv)\n console.log(\"Running WASM with FDs:\", fileDescriptors)\n\n let returnCode = null;\n let stdOutText = null;\n let stdErrText = null;\n\n try {\n // Make the WASI system call main\n returnCode = wasi.start(instantiation);\n // TODO: the shim logs loads of attempts to make/open the lock file, is it maybe not being allowed to be read back?\n // TODO: Our return code is undefined for some reason; it is supposed to come out of start.\n console.log(\"Execution finished with return code:\", returnCode);\n } finally {\n // The WASM code can throw right out of the WASI shim if Rust panics.\n stdOutText = new TextDecoder().decode(stdout.data);\n stdErrText = new TextDecoder().decode(stderr.data);\n console.log(\"Standard Output:\", stdOutText);\n console.log(\"Standard Error:\", stdErrText);\n }\n\n return {returnCode, stdout: stdOutText, stderr: stdErrText}\n }\n \n // Return true if the WASM setup is working, and false otherwise.\n async available() {\n try {\n await this.callWasm([\"query\", \"--help\"]);\n return true;\n } catch {\n return false;\n }\n }\n\n /////////\n // Tube Map API implementation\n /////////\n\n async getChunkedData(viewTarget, cancelSignal) {\n \n console.log(\"Got view target:\", viewTarget)\n\n // Find the graph track\n let graphTrack = null\n // TODO: We need to handle object tracks; move to array tracks only!\n for (let trackKey in viewTarget.tracks) {\n let track = viewTarget.tracks[trackKey];\n if (track.trackType === \"graph\") {\n graphTrack = track;\n }\n }\n if (!graphTrack) {\n throw new Error(\"No graph track selected\");\n }\n\n // Since all the names are numbers, parse it and get the real file blob\n let graphFileBlob = this.files[parseInt(graphTrack.trackFile)];\n\n if (graphFileBlob === undefined) {\n throw new Error(\"Graph file \" + graphTrack.trackFile + \" does not exist\");\n }\n\n // Find the region\n let region = convertRegionToRangeRegion(parseRegion(viewTarget.region));\n\n if (!region.contig.includes(\"#\")) {\n // This isn't PanSN already so adjust to ask for a generic path.\n region.contig = \"_gbwt_ref#\" + region.contig;\n }\n\n let parts = region.contig.split(\"#\");\n\n let {stdout} = await this.callWasm([\"query\", \"--sample\", parts[0], \"--contig\", parts[parts.length - 1], \"--interval\", `${region.start}..${region.end}`, \"--format\", \"json\", \"--distinct\", \"graph.gbz.db\"], {\"graph.gbz.db\": graphFileBlob});\n\n let result = convertSchema(JSON.parse(stdout));\n\n return {\n graph: result,\n gam: [],\n region: stringifyRegion(region),\n coloredNodes: [],\n };\n }\n\n async getFilenames(cancelSignal) {\n // Set up an empty response.\n let response = {\n files: [],\n bedFiles: [],\n };\n\n for (let [type, files] of this.filesByType) {\n if (type === \"bed\") {\n // Just send all these files in bedFiles.\n response.bedFiles = files;\n } else {\n for (let fileName of files) {\n // We sens a name/type record for each non-BED file\n response.files.push({ name: fileName, type: type });\n }\n }\n }\n\n return response;\n }\n\n subscribeToFilenameChanges(handler, cancelSignal) {\n return {};\n }\n\n async putFile(fileType, file, cancelSignal) {\n // We track files just by array index.\n let fileName = this.files.length.toString();\n // Just hang on to the File object.\n this.files.push(file);\n\n console.log(`Store ${file.size} byte upload:`, file);\n\n if (!this.filesByType.has(fileType)) {\n this.filesByType.set(fileType, []);\n }\n // Index the name we produced by type.\n this.filesByType.get(fileType).push(fileName);\n\n return fileName;\n }\n\n async getBedRegions(bedFile, cancelSignal) {\n return {\n bedRegions: [],\n };\n }\n\n async getPathNames(graphFile, cancelSignal) {\n return {\n pathNames: [],\n };\n }\n\n async getChunkTracks(bedFile, chunk, cancelSignal) {\n return {\n tracks: [],\n };\n }\n}\n\nexport default GBZBaseAPI;\n","/**\n * Guts of the local API Web Worker. Runs in a web worker in the browser and in the main thread in Jest.\n */\n\nimport { RpcProvider } from \"worker-rpc\";\n\n// We are actually a proxying wrapper around this actual implementation.\nimport { GBZBaseAPI } from \"../GBZBaseAPI.mjs\";\n\nexport function setUpWorker(self) {\n // Here we have access to the Web Worker self (or a good immitation)\n\n // Set up an RPC channel over the web worker message passing.\n // This one doesn't assume we're *really* using a worker, which is important\n // because sometimes it is mocked out.\n const rpc = new RpcProvider((message, transfer) => {\n return self.postMessage(message, transfer);\n });\n\n // Hook up the incoming messages to the provider.\n self.addEventListener(\"message\", (e) => {\n return rpc.dispatch(e.data);\n });\n\n // Make an API implementation.\n // Really we just proxy between this in ther worker and a proxy object in the\n // page thread.\n const api = new GBZBaseAPI();\n \n // Now register RPC messages. The handlers can only take a sungle object, but\n // they can be async.\n \n // Because we can't get cancel signals themselves over the channel, we need to make new abort controllers here.\n let abortControllers = new Map();\n\n // Get a cancellation signal that will trip when the given request is\n // canceled. If the passed ID is undefined, returns undefined, and the\n // request cannot be canceled.\n function getSignal(requestID) {\n if (requestID === undefined) {\n return undefined;\n }\n abortControllers.set(requestID, new AbortController());\n return abortControllers.get(requestID).signal;\n }\n \n // When a request finishes, get rid of the AbortController for canceling it.\n function requestOver(requestID) {\n abortControllers.delete(requestID);\n }\n\n // When someone wants to cancel a request, flip its AbortController.\n function cancelRequest(requestID) {\n if (abortControllers.has(requestID)) {\n // If the request is still in flight, abort it.\n abortControllers.get(requestID).abort()\n }\n }\n\n // Instead of taking real cancel signals, we take unique IDs that can be canceled with another call.\n rpc.registerRpcHandler('getChunkedData', async ({viewTarget, cancelID}) => {\n try {\n return await api.getChunkedData(viewTarget, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getFilenames', async ({cancelID}) => {\n try {\n return await api.getFilenames(getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('putFile', async ({fileType, file, cancelID}) => {\n try {\n return await api.putFile(fileType, file, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getBedRegions', async ({bedFile, cancelID}) => {\n try {\n return await api.getBedRegions(bedFile, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getPathNames', async ({graphFile, cancelID}) => {\n try {\n return await api.getPathNames(graphFile, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getChunkTracks', async ({bedFile, chunk, cancelID}) => {\n try {\n return await api.getChunkTracks(bedFile, chunk, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n // Subscribe to file updates and always publish them over the link.\n // We don't ever actually abort the subscription.\n let subscriptionAbortController = new AbortController();\n api.subscribeToFilenameChanges(() => {\n rpc.rpc(\"_filename_change\", {});\n }, subscriptionAbortController.signal);\n // TODO: Do we need to stash the returned subscription somewhere safe?\n\n // If a call is canceled, cancel it on this side.\n rpc.registerRpcHandler('_cancel', ({cancelID}) => {\n cancelRequest(cancelID);\n })\n}\n","/**\n * Web Worker entry point for the local API implementation.\n *\n * Doesn't actually do any work, just hooks the guts of the implementation up\n * to the real Web Worker in the browser. Under Jest, we bypass this and\n * polyfill some event emitters around the implementation instead. See\n * WorkerFactory.js and its mock.\n */\n\nimport { setUpWorker } from \"./WorkerImplementation.mjs\";\n\n// Because of Create React App's Opinions, we can't use the idiomatic \"self\"\n// here without fiddling with the linter, even if we claim to be in the\n// \"worker\" eslint environment. See\n// . Supposedly\n// there's a way to get at the service worker with \"this\", but \"this\" right now\n// appears undefined in the browser.\n//\n// So we turn off that linting rule\n/* eslint-disable no-restricted-globals */\nsetUpWorker(self);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = function() {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [366], function() { return __webpack_require__(5635); })\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + {\"366\":\"6d7de32b\",\"416\":\"eb85f570\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/sequenceTubeMap/\";","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t635: 1\n};\n\n// importScripts chunk loading\nvar installChunk = function(data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = function(chunkId, promises) {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunksequence_tube_maps\"] = self[\"webpackChunksequence_tube_maps\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = function() {\n\treturn __webpack_require__.e(366).then(next);\n};","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n"],"names":["globalThis","window","global","config","APIInterface","_classCallCheck","_createClass","key","value","_getChunkedData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","viewTarget","cancelSignal","wrap","_context","prev","next","Error","stop","_x","_x2","apply","arguments","_getFilenames","_callee2","_context2","_x3","handler","_putFile","_callee3","fileType","file","_context3","_x4","_x5","_x6","_getBedRegions","_callee4","bedFile","_context4","_x7","_x8","_getPathNames","_callee5","graphFile","_context5","_x9","_x10","_getChunkTracks","_callee6","chunk","_context6","_x11","_x12","_x13","parseRegion","region","includes","endsWith","region_col","input","parts","split","length","coordinates","replace","join","removeCommas","start_end","pos_dist","contig","slice","start","Number","end","distance","convertRegionToRangeRegion","undefined","stringifyRegion","concat","_ref","stringifyRangeRegion","getWasmBytes","_getWasmBytes","_callee10","blobBytes","blobImport","fs","_context10","cached","abrupt","sent","fetch","default","t0","console","error","import","readFile","log","blobToArrayBuffer","_blobToArrayBuffer","_callee11","blob","_context11","arrayBuffer","Promise","resolve","reject","reader","FileReader","addEventListener","result","readAsArrayBuffer","convertSchema","inGraph","outGraph","_step","nodeLength","Map","_iterator","_createForOfIteratorHelper","s","n","done","node","set","err","e","f","_step2","_iterator2","edge","_step3","_iterator3","path","_step4","_iterator4","visit","get","mapping","push","SyncWorkerBlobFile","_SyncOPFSFile","_inherits","_super","_createSuper","backing_blob","call","FileSystemSyncAccessHandlePolyfill","readonly","SyncOPFSFile","this","closed","FileReaderSync","size","buffer","options","_buffer$buffer","_buffer$byteOffset","_options$at","destinationBuffer","destinationOffest","byteOffset","startByte","at","Math","min","byteLength","partBlob","partBuffer","destinationArray","Uint8Array","sourceArray","to","GBZBaseAPI","_APIInterface","_super2","_this","files","filesByType","compiledWasm","_setUp","then","Response","WebAssembly","compileStreaming","compile","_callWasm","argv","workingDirectory","stdin","stdout","stderr","environment","fileDescriptors","nameToWASIFile","_i","_Object$entries","_Object$entries$_i","filename","wasi","instantiation","returnCode","stdOutText","stdErrText","setUp","File","OpenFile","Object","entries","_slicedToArray","warn","t1","PreopenDirectory","WASI","instantiate","wasiImport","TextDecoder","decode","data","_available","callWasm","graphTrack","trackKey","track","graphFileBlob","_yield$this$callWasm","tracks","trackType","parseInt","trackFile","JSON","parse","graph","gam","coloredNodes","response","_iterator5","_step5","_step5$value","type","_iterator6","_step6","fileName","bedFiles","name","toString","has","_callee7","_context7","bedRegions","_callee8","_context8","pathNames","_callee9","_context9","_x14","_x15","_x16","self","rpc","RpcProvider","message","transfer","postMessage","dispatch","api","abortControllers","getSignal","requestID","AbortController","signal","requestOver","delete","registerRpcHandler","_ref2","cancelID","getChunkedData","finish","_ref4","_ref3","getFilenames","_ref6","_ref5","putFile","_ref8","_ref7","getBedRegions","_ref10","_ref9","getPathNames","_ref12","_ref11","getChunkTracks","subscriptionAbortController","subscribeToFilenameChanges","_ref13","abort","setUpWorker","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","x","__webpack_exports__","O","deferred","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","keys","every","splice","r","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","t","mode","__esModule","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","d","definition","o","defineProperty","enumerable","chunkId","all","reduce","promises","u","miniCssF","g","Function","prop","prototype","hasOwnProperty","Symbol","toStringTag","p","installedChunks","importScripts","chunkLoadingGlobal","parentChunkLoadingFunction","bind","moreModules","runtime","pop"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/635.2af5cd10.chunk.js","mappings":"utFAOoBA,YAAcC,QAAUC,EAAAA,GAGrB,2BAAIC,ECPpB,IAAMC,EAAY,oBAAAA,KAAAC,EAAAA,EAAAA,GAAA,KAAAD,EAAA,CA2DtB,OA3DsBE,EAAAA,EAAAA,GAAAF,EAAA,EAAAG,IAAA,iBAAAC,MAMvB,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s","api/local/WorkerImplementation.mjs","api/local/Worker.mjs","../webpack/bootstrap","../webpack/runtime/chunk loaded","../webpack/runtime/create fake namespace object","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/make namespace object","../webpack/runtime/publicPath","../webpack/runtime/importScripts chunk loading","../webpack/runtime/startup chunk dependencies","../webpack/startup"],"sourcesContent":["// config-client.js: Must be run on the client before config-global.mjs will work.\n\nimport config from \"./config.json\";\n\nconst GLOBAL_NAME = \"__sequence_tube_map_config\";\n// Tell eslint that globalThis might exist.\n/*global globalThis*/\nconst GLOBAL_HOME = globalThis || window || global;\n\n// Hide the config in the globals object when we run.\nGLOBAL_HOME[GLOBAL_NAME] = config;\n","// Interface for handling function called from the tubemap frontend\n// Abstract class expecting different implmentations of the following functions\n// Substituting different subclasses should allow the functions to give the same result\nexport class APIInterface {\n // Takes in and process a tube map view(viewTarget) from the tubemap container.\n // Expects a object to be returned with the necessary information to draw a tubemap from vg\n // object should contain keys: graph, gam, region, coloredNodes.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n // If the request is not structured correctly, or something goes wrong\n // internally, throws an Error.\n async getChunkedData(viewTarget, cancelSignal) {\n throw new Error(\"getChunkedData function not implemented\");\n }\n\n // Returns files used to determine what options are available in the track picker.\n // Returns object with keys: files, bedFiles.\n // files holds an array of objects like { name: string; type: filetype;}, where filetype is a file type like \"graph\".\n // bedFiles just holds an array of strings.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getFilenames(cancelSignal) {\n throw new Error(\"getFilenames function not implemented\");\n }\n\n // Get notifications (via calls to handler()) when the set of filenames available from getFilenames() has changed.\n // Returns a subscription object that should be kept around as long as you still want updates.\n // cancelSignal is an AbortSignal that can be used to cancel the stream of notifications.\n subscribeToFilenameChanges(handler, cancelSignal) {\n throw new Error(\"subscribeToFilenameChanges function not implemented\");\n }\n\n // Upload a file.\n // fileType is a track type like \"graph\" or \"read\".\n // file is the file data (Blob or File).\n // cancelSignal is an AbortSignal that can be used to cancel the upload.\n // Resolves with the file name that can be used to refer to the uploaded file.\n async putFile(fileType, file, cancelSignal) {\n throw new Error(\"putFile function not implemented\");\n }\n\n // Takes in a bedfile path or a url pointing to a raw bed file.\n // Returns object with key: bedRegions.\n // bedRegions contains information extrapolated from each line of the bedfile.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getBedRegions(bedFile, cancelSignal) {\n throw new Error(\"getBedRegions function not implemented\");\n }\n\n // Takes in a graphFile path.\n // Returns object with key: pathNames.\n // Returns pathnames available in a graphfile.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getPathNames(graphFile, cancelSignal) {\n throw new Error(\"getPathNames function not implemented\");\n }\n\n // Expects a bed file(or url) and a chunk name.\n // Attempts to download tracks associated with the chunk name from the bed file if it is a URL.\n // Returns object with key: tracks.\n // Returns tracks found from local directories as a tracks object.\n // cancelSignal is an AbortSignal that can be used to cancel the request.\n async getChunkTracks(bedFile, chunk, cancelSignal) {\n throw new Error(\"getChunkTracks function not implemented\");\n }\n}\n\nexport default APIInterface;\n","// config-global.mjs: Provide access to the config, assuming config-client.js or config-server.mjs has been imported already.\n// Import this instead of config.json! This is the One True Way to get the config!\n\nconst GLOBAL_NAME = \"__sequence_tube_map_config\";\n// Tell eslint that globalThis might exist.\n/*global globalThis*/\nconst GLOBAL_HOME = globalThis || window || global;\n\n// Find the config in the globals.\nexport const config = GLOBAL_HOME[GLOBAL_NAME];\n\nif (!config) {\n throw new Error(\n \"config-global.mjs loaded before either config-client.js or config-server.mjs\"\n );\n}\n\nexport default config;\n","// common.mjs: shared functions between client and server\n\n// NOTE! Since this file is imported on the server *and* transpiled for the\n// client, we CANNOT import config.json. It would require syntax on Node which\n// is not allowed by the transpiler.\n// So we get the cinfig a fancy way instead. But you *must* import config-client.js or config-server.,js before this file!\nimport { config } from \"./config-global.mjs\";\n\n// function to remove commas from coordinate input\nconst removeCommas = (input) => {\n let parts = input.split(\":\");\n if (parts.length < 2) {\n return input;\n }\n // get coordinate - numerical range after last colon\n let coordinates = parts[parts.length - 1];\n coordinates = coordinates.replace(/,/g, \"\");\n // put region input coordinate back together\n parts[parts.length - 1] = coordinates;\n let fixedInputValue = parts.join(\":\");\n return fixedInputValue;\n};\n\n// Parse a region string into:\n// { contig, start, end }\n// or\n// { contig, start, distance }\n//\n// a region string could look like: \"17:1-100\"\n// \n// For distance, + is used as the coordinate separator. For start/end ranges, - is used.\n// The coordinates are set off from the contig by the last colon.\n// Commas in coordinates are removed.\n//\n// Throws an Error if the region was not understood.\nexport function parseRegion(region) {\n if (!region || region === \"none\") {\n throw new Error(\"Missing region.\");\n }\n if (!region.includes(\":\")) {\n throw new Error(\"Region doesn't contain a ':'.\");\n }\n if (region.endsWith(\":\")) {\n throw new Error(\"Region ends with a ':' and is missing coordinates.\");\n }\n\n region = removeCommas(region);\n\n // Get the part of the region after the last colon\n let region_col = region.split(\":\");\n let start_end = region_col[region_col.length - 1].split(\"-\");\n let pos_dist = region_col[region_col.length - 1].split(\"+\");\n\n let contig = region_col.slice(0, -1).join(\":\");\n\n if (start_end.length === 2) {\n let start = Number(start_end[0]);\n let end = Number(start_end[1]);\n return { contig, start, end };\n } else if (pos_dist.length === 2) {\n let start = Number(pos_dist[0]);\n let distance = Number(pos_dist[1]);\n return { contig, start, distance };\n } else {\n throw new Error(\"Coordinates must be in the form 'X:Y-Z' or 'X:Y+Z'.\");\n }\n}\n\n/// Return a version of region that is {contig, start, end} even if region is {contig, start, distance}\nexport function convertRegionToRangeRegion(region) {\n if (region.distance !== undefined) {\n // Has a distance and not an end.\n return {\n contig: region.contig,\n start: region.start,\n end: region.start + region.distance,\n };\n } else {\n // Should already have an end.\n return region;\n }\n}\n\n// Take a { contig, start, end} region and turn it into a\n// string compatible with parseRegion() or with vg.\nexport function stringifyRangeRegion({ contig, start, end }) {\n return contig.concat(\":\", start, \"-\", end);\n}\n\n// Take a {contig, start, end} or {contig, start, distance} region and turn it into a string compatible with parseRegion\nexport function stringifyRegion(region) {\n if (region.distance !== undefined) {\n // It is a distance-based region\n return region.contig.concat(\":\", region.start, \"+\", region.distance);\n } else {\n // It is a range region\n return stringifyRangeRegion(region);\n }\n}\n\n/* This function accepts a track type input and returns the default color scheme for that track type if the \ntrack type is valid */\nexport function defaultTrackColors(trackType) {\n if (trackType === \"graph\") {\n return config.defaultGraphColorPalette;\n } else if (trackType === \"read\") {\n return config.defaultReadColorPalette;\n } else if (trackType === \"haplotype\") {\n return config.defaultHaplotypeColorPalette;\n } else {\n throw new Error(\"Invalid track type: \" + trackType);\n }\n}\n\n/* Function to determine if any of the tracks are reads, where the tracks parameter is an object of track types */\nexport function readsExist(tracks) {\n for (let key in tracks) {\n if (tracks[key].trackType === \"read\") {\n return true;\n }\n }\n return false;\n}\n\n// Accepts a string, returns whether or not the input is a valid http URL we can call fetch on\nexport function isValidURL(string) {\n if (!string) {\n return false;\n }\n\n let url;\n try {\n url = new URL(string);\n } catch (error) {\n return false;\n }\n\n return url.protocol === \"http:\" || url.protocol === \"https:\";\n}\n\nexport function isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n","/**\n * GBZBase-based API implementation. Designed to run in a worker efficiently.\n */\n\n// Use this magic comment to tell eslint we are allowed to use worker things\n// during the Webpack build.\n/* eslint-env worker */\n\nimport \"../config-client.js\";\nimport { APIInterface } from \"./APIInterface.mjs\";\nimport { WASI, File, OpenFile, SyncOPFSFile, PreopenDirectory } from \"@bjorn3/browser_wasi_shim\";\n\nimport {\n parseRegion,\n convertRegionToRangeRegion,\n stringifyRegion\n} from \"../common.mjs\";\n\n// The Webpack way to get the WASM would be something like:\n// \n// import QueryWasm from \"gbz-base/query.wasm\";\n// \n// In Jest, not only is the export mapping not working, but also it can't get\n// us a fetch-able string from the import like Webpack does.\n//\n// So we use this function to detect if we are on Jest and get the blob from\n// the filesystem then, and to otherwise get ti with fetch.\n\n// Resolve with the bytes or Response of the WASM query blob, on Jest or Webpack.\nasync function getWasmBytes() {\n if (getWasmBytes.cached) {\n return getWasmBytes.cached;\n }\n\n let blobBytes = null;\n\n if (typeof window === \"undefined\" || !window[\"jest\"]) {\n // Not running on Jest, we should be able to dynamic import a binary asset\n // by export name and get the bytes, and Webpack will handle it.\n try {\n let blobImport = await import(\"gbz-base/query.wasm\");\n return fetch(blobImport.default);\n } catch (e) {\n console.error(\"Could not dynamically import WASM blob.\", e);\n // Leave blobBytes unset to try a fallback method.\n }\n }\n\n if (!blobBytes) {\n // Either we're on Jest, or the dynamic import didn't work (maybe we're on\n // plain Node?).\n //\n // Try to open the file from the filesystem.\n //\n // Don't actually try and ship the filesystem module in the browser though:\n // see \n let fs = await import(/* webpackIgnore: true */ \"fs-extra\");\n blobBytes = await fs.readFile(\"node_modules/gbz-base/target/wasm32-wasi/release/query.wasm\");\n } \n\n console.log(\"Got blob bytes: \", blobBytes);\n getWasmBytes.cached = blobBytes;\n return blobBytes;\n}\n\n/**\n * Get an ArrayBuffer from a Blob. Works in both the browser and in jsdom\n * (which doesn't actually implement .arrayBuffer(); see\n * ).\n */\nexport async function blobToArrayBuffer(blob) {\n try {\n // Browser blob has this method.\n return await blob.arrayBuffer()\n } catch {\n // jsdom blob needs to go through a FileReader\n return new Promise((resolve, reject) => {\n let reader = new FileReader();\n reader.addEventListener(\"load\", () => { resolve(reader.result); });\n reader.addEventListener(\"error\", () => { reject(reader.error); });\n reader.readAsArrayBuffer(blob);\n });\n }\n}\n\n/**\n * Convert a graph from GBZ-style JSON to vg-style JSON that matches the vg\n * protobuf schema. See\n * \n *\n * Does not leave the input graph intact.\n */\nfunction convertSchema(inGraph) {\n \n let outGraph = {};\n\n // \"nodes\" becomes \"node\"\n outGraph[\"node\"] = inGraph[\"nodes\"];\n\n // We have to track the node lengths to synthisize the path mappings.\n let nodeLength = new Map();\n for (let node of outGraph[\"node\"]) {\n nodeLength.set(node[\"id\"], node[\"sequence\"].length);\n }\n\n // \"edges\" becomes \"edge\"\n outGraph[\"edge\"] = inGraph[\"edges\"];\n for (let edge of outGraph[\"edge\"]) {\n // And the names for the reverse flags change.\n edge[\"from_start\"] = edge[\"from_is_reverse\"];\n delete edge[\"from_is_reverse\"];\n edge[\"to_end\"] = edge[\"to_is_reverse\"];\n delete edge[\"to_is_reverse\"];\n }\n\n // \"paths\" becomes \"path\"\n outGraph[\"path\"] = inGraph[\"paths\"];\n for (let path of outGraph[\"path\"]) {\n path[\"mapping\"] = [];\n for (let visit of path[\"path\"]) {\n let length = nodeLength.get(visit[\"id\"]);\n // Make a full-length perfect match mapping\n let mapping = {\n \"position\": {\"node_id\": visit[\"id\"], \"is_reverse\": visit[\"is_reverse\"]},\n \"edit\": [{\"from_length\": length, \"to_length\": length}]\n };\n path[\"mapping\"].push(mapping);\n }\n\n delete path[\"path\"];\n }\n return outGraph;\n}\n\n/**\n * Implementation of a WASI Browser Shim file that is backed by FileReaderSync and operates on a backing Blob.\n *\n * Read-only.\n *\n * We extend SyncOPFSFile because then we can use OpenSyncOPFSFile for free, as long as we re-implement this.handle.\n */\nclass SyncWorkerBlobFile extends SyncOPFSFile {\n constructor(backing_blob) {\n super(new FileSystemSyncAccessHandlePolyfill(backing_blob), {readonly: true});\n }\n}\n\n/**\n * Implementation of the API of FileSystemSyncAccessHandle\n * ,\n * as used by Browser WASI Shim\n * .\n *\n * Implements the API on top of a Blob, using FileReaderSync.\n *\n * Only allows read access.\n */\nclass FileSystemSyncAccessHandlePolyfill {\n /**\n * Make a new FileSystemSyncAccessHandlePolyfill acting like a\n * FileSystemSyncAccessHandle to the file represented by the given Blob.\n */\n constructor(blob) {\n // Start open\n this.closed = false;\n // Save the blob\n this.blob = blob;\n // Make sure right away we actually can have a FileReaderSync\n this.reader = new FileReaderSync();\n }\n \n /**\n * Close the file.\n */\n close() {\n this.closed = true;\n }\n\n /**\n * Flush changes to the file to disk.\n *\n * Not implemented since we are read-only.\n */\n flush() {\n throw new Error(\"Flush not implemented; blobs are read only\");\n }\n\n /**\n * Get the size of the file in bytes as a number.\n */\n getSize() {\n if (this.closed) {\n throw new Error(\"Can't get size of closed file\");\n }\n \n return this.blob.size;\n }\n\n /**\n * Read into the given ArrayBuffer or ArrayBufferView.\n *\n * Starts at 0 in the file, unless \"at\" is set in options, in which case it\n * starts there in the file.\n *\n * Tries to fill the whole buffer/view.\n *\n * Returns the number of bytes read.\n */\n read(buffer, options) {\n if (this.closed) {\n throw new Error(\"Can't read closed file\");\n }\n\n // Use the actual buffer we got with offset 0, or get the buffer and offset\n // out of the view\n let destinationBuffer = buffer.buffer ?? buffer;\n let destinationOffest = buffer.byteOffset ?? 0;\n \n // Where should we start in the file\n let startByte = options?.at ?? 0;\n\n // How many bytes are we going to move?\n //\n // ArrayBuffer and ArrayBufferView both have a byteLength to see how much\n // we were asked for.\n //\n // But we can't read past the end of the Blob.\n let length = Math.min(buffer.byteLength, this.blob.size - startByte);\n\n // Slice the blob to the part we want to read.\n let partBlob = this.blob.slice(startByte, startByte + length);\n\n // And read into a new ArrayBuffer using the sync reader.\n let partBuffer = this.reader.readAsArrayBuffer(partBlob);\n\n // Now blit from that buffer into the destination\n let destinationArray = new Uint8Array(destinationBuffer, destinationOffest, length);\n let sourceArray = new Uint8Array(partBuffer, 0, length);\n destinationArray.set(sourceArray);\n\n // Return the length we thought we could do\n return length;\n }\n \n /**\n * Truncate the file to the given number of bytes.\n *\n * Not implemented since we are read-only.\n */\n truncate(to: number) {\n throw new Error(\"Truncate not implemented; blobs are read only\");\n }\n \n /**\n * Write the given buffer or view's contents to the file.\n *\n * Writes at the start of the file, unless at is set in options, in which\n * case it writes at that position in the file. Returns the number of bytes\n * written.\n *\n * Not actually implemented since we are read-only.\n */\n write(buffer, options) {\n throw new Error(\"Write not implemented; blobs are read only\");\n }\n\n}\n\n/**\n * API implementation that uses tools compiled to WebAssembly, client-side.\n *\n * Can operate either in the main thread or in a worker, but handles file\n * uploads differently depending on where you put it.\n */\nexport class GBZBaseAPI extends APIInterface {\n constructor() {\n super();\n\n // We can take user uploads, in which case we need to hold on to them somewhere.\n // This holds all the file objects.\n this.files = [];\n\n // We need to index all their names by type.\n this.filesByType = new Map();\n\n // This is a promise for the compiled WebAssembly blob.\n this.compiledWasm = undefined;\n }\n\n // Make sure our WASM backend is ready.\n async setUp() {\n if (this.compiledWasm === undefined) {\n // Kick off and save exactly one request to get and load the WASM bytes.\n this.compiledWasm = getWasmBytes().then((result) => {\n if (result instanceof Response) {\n // If a fetch request was made, compile as it streams in\n return WebAssembly.compileStreaming(result);\n } else {\n // We have all the bytes, so compile right away.\n // TODO: Put this logic in the function?\n return WebAssembly.compile(result);\n }\n });\n }\n\n // Wait for the bytes to be available.\n this.compiledWasm = await this.compiledWasm;\n }\n\n // Make a call into the WebAssembly code and return the result.\n //\n // If workingDirectory is set, it is an object from filename to blob to\n // present as the current directory.\n async callWasm(argv, workingDirectory) {\n if (argv.length < 1) {\n // We need at least one command line argument to be the program name.\n throw new Error(\"Not safe to invoke main() without program name\");\n }\n \n // Make sure this.compiledWasm is set.\n // TODO: Change to an accessor method?\n await this.setUp();\n \n // Define the places to store program input and output\n let stdin = new File([]);\n let stdout = new File([]);\n let stderr = new File([]);\n\n // Environment variables as NAME=value strings\n const environment = [\"RUST_BACKTRACE=full\"];\n \n // File descriptors for the process in number order\n let fileDescriptors = [new OpenFile(stdin), new OpenFile(stdout), new OpenFile(stderr)];\n \n if (workingDirectory) {\n let nameToWASIFile = {};\n for (const [filename, blob] of Object.entries(workingDirectory)) {\n console.log(`Mount ${blob.size} byte blob:`, blob);\n if (typeof FileReaderSync !== \"undefined\") {\n // On a worker where we can do sync reads\n nameToWASIFile[filename] = new SyncWorkerBlobFile(blob);\n } else {\n // In the main thread where we can't do sync reads\n console.warn(\"Sync blob read is not available. Reading \" + blob.size + \" byte blob into memory asynchronously to consult synchronously later!\");\n nameToWASIFile[filename] = new File(await blobToArrayBuffer(blob));\n }\n console.log(\"Mount file:\", nameToWASIFile[filename]);\n }\n // As shown in the browser_wasi_shim examples, if we provide a\n // PreopenDirectory at FD 4 it is shown to the process.\n fileDescriptors.push(new PreopenDirectory(\".\", nameToWASIFile));\n }\n\n // Set up the WASI interface\n let wasi = new WASI(argv, environment, fileDescriptors);\n \n // Set up the WebAssembly run\n let instantiation = await WebAssembly.instantiate(this.compiledWasm, {\n \"wasi_snapshot_preview1\": wasi.wasiImport,\n });\n \n console.log(\"Running WASM with arguments:\", argv)\n console.log(\"Running WASM with FDs:\", fileDescriptors)\n\n let returnCode = null;\n let stdOutText = null;\n let stdErrText = null;\n\n try {\n // Make the WASI system call main\n returnCode = wasi.start(instantiation);\n // TODO: the shim logs loads of attempts to make/open the lock file, is it maybe not being allowed to be read back?\n // TODO: Our return code is undefined for some reason; it is supposed to come out of start.\n console.log(\"Execution finished with return code:\", returnCode);\n } finally {\n // The WASM code can throw right out of the WASI shim if Rust panics.\n stdOutText = new TextDecoder().decode(stdout.data);\n stdErrText = new TextDecoder().decode(stderr.data);\n console.log(\"Standard Output:\", stdOutText);\n console.log(\"Standard Error:\", stdErrText);\n }\n\n return {returnCode, stdout: stdOutText, stderr: stdErrText}\n }\n \n // Return true if the WASM setup is working, and false otherwise.\n async available() {\n try {\n await this.callWasm([\"query\", \"--help\"]);\n return true;\n } catch {\n return false;\n }\n }\n\n /////////\n // Tube Map API implementation\n /////////\n\n async getChunkedData(viewTarget, cancelSignal) {\n \n console.log(\"Got view target:\", viewTarget)\n\n // Find the graph track\n let graphTrack = null\n // TODO: We need to handle object tracks; move to array tracks only!\n for (let trackKey in viewTarget.tracks) {\n let track = viewTarget.tracks[trackKey];\n if (track.trackType === \"graph\") {\n graphTrack = track;\n }\n }\n if (!graphTrack) {\n throw new Error(\"No graph track selected\");\n }\n\n // Since all the names are numbers, parse it and get the real file blob\n let graphFileBlob = this.files[parseInt(graphTrack.trackFile)];\n\n if (graphFileBlob === undefined) {\n throw new Error(\"Graph file \" + graphTrack.trackFile + \" does not exist\");\n }\n\n // Find the region\n let region = convertRegionToRangeRegion(parseRegion(viewTarget.region));\n\n if (!region.contig.includes(\"#\")) {\n // This isn't PanSN already so adjust to ask for a generic path.\n region.contig = \"_gbwt_ref#\" + region.contig;\n }\n\n let parts = region.contig.split(\"#\");\n\n let {stdout} = await this.callWasm([\"query\", \"--sample\", parts[0], \"--contig\", parts[parts.length - 1], \"--interval\", `${region.start}..${region.end}`, \"--format\", \"json\", \"--distinct\", \"graph.gbz.db\"], {\"graph.gbz.db\": graphFileBlob});\n\n let result = convertSchema(JSON.parse(stdout));\n\n return {\n graph: result,\n gam: [],\n region: stringifyRegion(region),\n coloredNodes: [],\n };\n }\n\n async getFilenames(cancelSignal) {\n // Set up an empty response.\n let response = {\n files: [],\n bedFiles: [],\n };\n\n for (let [type, files] of this.filesByType) {\n if (type === \"bed\") {\n // Just send all these files in bedFiles.\n response.bedFiles = files;\n } else {\n for (let fileName of files) {\n // We sens a name/type record for each non-BED file\n response.files.push({ name: fileName, type: type });\n }\n }\n }\n\n return response;\n }\n\n subscribeToFilenameChanges(handler, cancelSignal) {\n return {};\n }\n\n async putFile(fileType, file, cancelSignal) {\n // We track files just by array index.\n let fileName = this.files.length.toString();\n // Just hang on to the File object.\n this.files.push(file);\n\n console.log(`Store ${file.size} byte upload:`, file);\n\n if (!this.filesByType.has(fileType)) {\n this.filesByType.set(fileType, []);\n }\n // Index the name we produced by type.\n this.filesByType.get(fileType).push(fileName);\n\n return fileName;\n }\n\n async getBedRegions(bedFile, cancelSignal) {\n return {\n bedRegions: [],\n };\n }\n\n async getPathNames(graphFile, cancelSignal) {\n return {\n pathNames: [],\n };\n }\n\n async getChunkTracks(bedFile, chunk, cancelSignal) {\n return {\n tracks: [],\n };\n }\n}\n\nexport default GBZBaseAPI;\n","/**\n * Guts of the local API Web Worker. Runs in a web worker in the browser and in the main thread in Jest.\n */\n\nimport { RpcProvider } from \"worker-rpc\";\n\n// We are actually a proxying wrapper around this actual implementation.\nimport { GBZBaseAPI } from \"../GBZBaseAPI.mjs\";\n\nexport function setUpWorker(self) {\n // Here we have access to the Web Worker self (or a good immitation)\n\n // Set up an RPC channel over the web worker message passing.\n // This one doesn't assume we're *really* using a worker, which is important\n // because sometimes it is mocked out.\n const rpc = new RpcProvider((message, transfer) => {\n return self.postMessage(message, transfer);\n });\n\n // Hook up the incoming messages to the provider.\n self.addEventListener(\"message\", (e) => {\n return rpc.dispatch(e.data);\n });\n\n // Make an API implementation.\n // Really we just proxy between this in ther worker and a proxy object in the\n // page thread.\n const api = new GBZBaseAPI();\n \n // Now register RPC messages. The handlers can only take a sungle object, but\n // they can be async.\n \n // Because we can't get cancel signals themselves over the channel, we need to make new abort controllers here.\n let abortControllers = new Map();\n\n // Get a cancellation signal that will trip when the given request is\n // canceled. If the passed ID is undefined, returns undefined, and the\n // request cannot be canceled.\n function getSignal(requestID) {\n if (requestID === undefined) {\n return undefined;\n }\n abortControllers.set(requestID, new AbortController());\n return abortControllers.get(requestID).signal;\n }\n \n // When a request finishes, get rid of the AbortController for canceling it.\n function requestOver(requestID) {\n abortControllers.delete(requestID);\n }\n\n // When someone wants to cancel a request, flip its AbortController.\n function cancelRequest(requestID) {\n if (abortControllers.has(requestID)) {\n // If the request is still in flight, abort it.\n abortControllers.get(requestID).abort()\n }\n }\n\n // Instead of taking real cancel signals, we take unique IDs that can be canceled with another call.\n rpc.registerRpcHandler('getChunkedData', async ({viewTarget, cancelID}) => {\n try {\n return await api.getChunkedData(viewTarget, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getFilenames', async ({cancelID}) => {\n try {\n return await api.getFilenames(getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('putFile', async ({fileType, file, cancelID}) => {\n try {\n return await api.putFile(fileType, file, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getBedRegions', async ({bedFile, cancelID}) => {\n try {\n return await api.getBedRegions(bedFile, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getPathNames', async ({graphFile, cancelID}) => {\n try {\n return await api.getPathNames(graphFile, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n rpc.registerRpcHandler('getChunkTracks', async ({bedFile, chunk, cancelID}) => {\n try {\n return await api.getChunkTracks(bedFile, chunk, getSignal(cancelID));\n } finally {\n requestOver(cancelID);\n }\n });\n\n // Subscribe to file updates and always publish them over the link.\n // We don't ever actually abort the subscription.\n let subscriptionAbortController = new AbortController();\n api.subscribeToFilenameChanges(() => {\n rpc.rpc(\"_filename_change\", {});\n }, subscriptionAbortController.signal);\n // TODO: Do we need to stash the returned subscription somewhere safe?\n\n // If a call is canceled, cancel it on this side.\n rpc.registerRpcHandler('_cancel', ({cancelID}) => {\n cancelRequest(cancelID);\n })\n}\n","/**\n * Web Worker entry point for the local API implementation.\n *\n * Doesn't actually do any work, just hooks the guts of the implementation up\n * to the real Web Worker in the browser. Under Jest, we bypass this and\n * polyfill some event emitters around the implementation instead. See\n * WorkerFactory.js and its mock.\n */\n\nimport { setUpWorker } from \"./WorkerImplementation.mjs\";\n\n// Because of Create React App's Opinions, we can't use the idiomatic \"self\"\n// here without fiddling with the linter, even if we claim to be in the\n// \"worker\" eslint environment. See\n// . Supposedly\n// there's a way to get at the service worker with \"this\", but \"this\" right now\n// appears undefined in the browser.\n//\n// So we turn off that linting rule\n/* eslint-disable no-restricted-globals */\nsetUpWorker(self);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = function() {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [366], function() { return __webpack_require__(5635); })\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + {\"366\":\"6d7de32b\",\"416\":\"eb85f570\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/sequenceTubeMap/\";","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t635: 1\n};\n\n// importScripts chunk loading\nvar installChunk = function(data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = function(chunkId, promises) {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunksequence_tube_maps\"] = self[\"webpackChunksequence_tube_maps\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = function() {\n\treturn __webpack_require__.e(366).then(next);\n};","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n"],"names":["globalThis","window","global","config","APIInterface","_classCallCheck","_createClass","key","value","_getChunkedData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","viewTarget","cancelSignal","wrap","_context","prev","next","Error","stop","_x","_x2","apply","arguments","_getFilenames","_callee2","_context2","_x3","handler","_putFile","_callee3","fileType","file","_context3","_x4","_x5","_x6","_getBedRegions","_callee4","bedFile","_context4","_x7","_x8","_getPathNames","_callee5","graphFile","_context5","_x9","_x10","_getChunkTracks","_callee6","chunk","_context6","_x11","_x12","_x13","parseRegion","region","includes","endsWith","region_col","input","parts","split","length","coordinates","replace","join","removeCommas","start_end","pos_dist","contig","slice","start","Number","end","distance","convertRegionToRangeRegion","undefined","stringifyRegion","concat","_ref","stringifyRangeRegion","getWasmBytes","_getWasmBytes","_callee10","blobBytes","blobImport","fs","_context10","cached","abrupt","sent","fetch","default","t0","console","error","import","readFile","log","blobToArrayBuffer","_blobToArrayBuffer","_callee11","blob","_context11","arrayBuffer","Promise","resolve","reject","reader","FileReader","addEventListener","result","readAsArrayBuffer","convertSchema","inGraph","outGraph","_step","nodeLength","Map","_iterator","_createForOfIteratorHelper","s","n","done","node","set","err","e","f","_step2","_iterator2","edge","_step3","_iterator3","path","_step4","_iterator4","visit","get","mapping","push","SyncWorkerBlobFile","_SyncOPFSFile","_inherits","_super","_createSuper","backing_blob","call","FileSystemSyncAccessHandlePolyfill","readonly","SyncOPFSFile","this","closed","FileReaderSync","size","buffer","options","_buffer$buffer","_buffer$byteOffset","_options$at","destinationBuffer","destinationOffest","byteOffset","startByte","at","Math","min","byteLength","partBlob","partBuffer","destinationArray","Uint8Array","sourceArray","to","GBZBaseAPI","_APIInterface","_super2","_this","files","filesByType","compiledWasm","_setUp","then","Response","WebAssembly","compileStreaming","compile","_callWasm","argv","workingDirectory","stdin","stdout","stderr","environment","fileDescriptors","nameToWASIFile","_i","_Object$entries","_Object$entries$_i","filename","wasi","instantiation","returnCode","stdOutText","stdErrText","setUp","File","OpenFile","Object","entries","_slicedToArray","warn","t1","PreopenDirectory","WASI","instantiate","wasiImport","TextDecoder","decode","data","_available","callWasm","graphTrack","trackKey","track","graphFileBlob","_yield$this$callWasm","tracks","trackType","parseInt","trackFile","JSON","parse","graph","gam","coloredNodes","response","_iterator5","_step5","_step5$value","type","_iterator6","_step6","fileName","bedFiles","name","toString","has","_callee7","_context7","bedRegions","_callee8","_context8","pathNames","_callee9","_context9","_x14","_x15","_x16","self","rpc","RpcProvider","message","transfer","postMessage","dispatch","api","abortControllers","getSignal","requestID","AbortController","signal","requestOver","delete","registerRpcHandler","_ref2","cancelID","getChunkedData","finish","_ref4","_ref3","getFilenames","_ref6","_ref5","putFile","_ref8","_ref7","getBedRegions","_ref10","_ref9","getPathNames","_ref12","_ref11","getChunkTracks","subscriptionAbortController","subscribeToFilenameChanges","_ref13","abort","setUpWorker","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","x","__webpack_exports__","O","deferred","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","keys","every","splice","r","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","t","mode","__esModule","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","d","definition","o","defineProperty","enumerable","chunkId","all","reduce","promises","u","miniCssF","g","Function","prop","prototype","hasOwnProperty","Symbol","toStringTag","p","installedChunks","importScripts","chunkLoadingGlobal","parentChunkLoadingFunction","bind","moreModules","runtime","pop"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/635.f9175cd1.chunk.js b/static/js/635.f9175cd1.chunk.js deleted file mode 100644 index 45bd1efc..00000000 --- a/static/js/635.f9175cd1.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(){"use strict";var e={5635:function(e,t,r){var n=r(74165),a=r(15861),i=r(47460),o=r(29439),s=r(43144),u=r(15671),c=r(60136),l=r(27277),p=r(37762),f=JSON.parse('{"BACKEND_URL":"https://api.tubemap.graphs.vg","DATA_SOURCES":[{"name":"snp1kg-BRCA1","tracks":[{"trackFile":"exampleData/internal/snp1kg-BRCA1.vg.xg","trackType":"graph","trackColorSettings":{"mainPalette":"greys","auxPalette":"ygreys"}},{"trackFile":"exampleData/internal/NA12878-BRCA1.sorted.gam","trackType":"read"}],"region":"17:1-100","bedFile":"exampleData/internal/snp1kg-BRCA1.bed","dataType":"built-in","simplify":false,"removeSequences":false},{"name":"vg \\"small\\" example","tracks":[{"trackFile":"exampleData/x.vg.xg","trackType":"graph"},{"trackFile":"exampleData/x.vg.gbwt","trackType":"haplotype"}],"dataType":"built-in","region":"x:1-100"},{"name":"cactus","tracks":[{"trackFile":"exampleData/cactus.vg.xg","trackType":"graph"},{"trackFile":"exampleData/cactus-NA12879.sorted.gam","trackType":"read"}],"bedFile":"exampleData/cactus.bed","region":"ref:1-100","dataType":"built-in"},{"name":"cactus multiple reads","tracks":[{"trackFile":"exampleData/cactus.vg.xg","trackType":"graph"},{"trackFile":"exampleData/cactus0_10.sorted.gam","trackType":"read"},{"trackFile":"exampleData/cactus10_20.sorted.gam","trackType":"read"}],"bedFile":"exampleData/cactus.bed","region":"ref:1-100","dataType":"built-in"},{"name":"Lancet example","tracks":[{"trackFile":null,"trackType":"graph","trackColorSettings":{"mainPalette":"#000000","auxPalette":"greys","colorReadsByMappingQuality":false}},{"trackFile":null,"trackType":"read","trackColorSettings":{"mainPalette":"blues","auxPalette":"blues"}},{"trackFile":null,"trackType":"read","trackColorSettings":{"mainPalette":"reds","auxPalette":"reds"}}],"bedFile":"https://public.gi.ucsc.edu/~anovak/vg-data/lancet_2023-11-07/index.bed","region":"chr1:7290357-7290857","dataType":"built-in"}],"vgPath":"","dataPath":"exampleData","internalDataPath":"exampleData/internal/","tempDirPath":"temp","fetchTimeout":15,"maxFileSizeBytes":1000000000,"defaultGraphColorPalette":{"mainPalette":"#000000","auxPalette":"greys","colorReadsByMappingQuality":false},"defaultHaplotypeColorPalette":{"mainPalette":"plainColors","auxPalette":"lightColors","colorReadsByMappingQuality":false},"defaultReadColorPalette":{"mainPalette":"blues","auxPalette":"reds","colorReadsByMappingQuality":false},"defaultTrackProps":{"trackType":"graph","trackColorSettings":{"mainPalette":"#000000","auxPalette":"greys","colorReadsByMappingQuality":false}},"fileTypeToExtensions":{"graph":".xg,.vg,.hg,.gbz,.pg,.db","haplotype":".gbwt,.gbz","read":".gam"},"MAXUPLOADSIZE":5242880,"pickerTypeOptions":["mounted","upload"],"fileExpirationTime":86400}');(globalThis||window||r.g).__sequence_tube_map_config=f;var d=function(){function e(){(0,u.Z)(this,e)}return(0,s.Z)(e,[{key:"getChunkedData",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getChunkedData function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getFilenames",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getFilenames function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribeToFilenameChanges",value:function(e,t){throw new Error("subscribeToFilenameChanges function not implemented")}},{key:"putFile",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r,a){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("putFile function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"getBedRegions",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getBedRegions function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getPathNames",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getPathNames function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"getChunkTracks",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r,a){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("getChunkTracks function not implemented");case 1:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),e}(),h=r(34158),g=(globalThis||window||global).__sequence_tube_map_config;if(!g)throw new Error("config-global.mjs loaded before either config-client.js or config-server.mjs");function v(e){if(!e||"none"===e)throw new Error("Missing region.");if(!e.includes(":"))throw new Error("Region doesn't contain a ':'.");if(e.endsWith(":"))throw new Error("Region ends with a ':' and is missing coordinates.");var t=(e=function(e){var t=e.split(":");if(t.length<2)return e;var r=t[t.length-1];return r=r.replace(/,/g,""),t[t.length-1]=r,t.join(":")}(e)).split(":"),r=t[t.length-1].split("-"),n=t[t.length-1].split("+"),a=t.slice(0,-1).join(":");if(2===r.length)return{contig:a,start:Number(r[0]),end:Number(r[1])};if(2===n.length)return{contig:a,start:Number(n[0]),distance:Number(n[1])};throw new Error("Coordinates must be in the form 'X:Y-Z' or 'X:Y+Z'.")}function m(e){return void 0!==e.distance?{contig:e.contig,start:e.start,end:e.start+e.distance}:e}function y(e){return void 0!==e.distance?e.contig.concat(":",e.start,"+",e.distance):function(e){var t=e.contig,r=e.start,n=e.end;return t.concat(":",r,"-",n)}(e)}function b(){return w.apply(this,arguments)}function w(){return(w=(0,a.Z)((0,n.Z)().mark((function e(){var t,a,i;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b.cached){e.next=2;break}return e.abrupt("return",b.cached);case 2:if(t=null,"undefined"!==typeof window&&window.jest){e.next=14;break}return e.prev=4,e.next=7,r.e(416).then(r.t.bind(r,65416,17));case 7:return a=e.sent,e.abrupt("return",fetch(a.default));case 11:e.prev=11,e.t0=e.catch(4),console.error("Could not dynamically import WASM blob.",e.t0);case 14:if(t){e.next=21;break}return e.next=17,import("fs-extra");case 17:return i=e.sent,e.next=20,i.readFile("node_modules/gbz-base/target/wasm32-wasi/release/query.wasm");case 20:t=e.sent;case 21:return console.log("Got blob bytes: ",t),b.cached=t,e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,null,[[4,11]])})))).apply(this,arguments)}function k(e){return x.apply(this,arguments)}function x(){return(x=(0,a.Z)((0,n.Z)().mark((function e(t){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.arrayBuffer();case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",new Promise((function(e,r){var n=new FileReader;n.addEventListener("load",(function(){e(n.result)})),n.addEventListener("error",(function(){r(n.error)})),n.readAsArrayBuffer(t)})));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function Z(e){var t={};t.node=e.nodes;var r,n=new Map,a=(0,p.Z)(t.node);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.set(i.id,i.sequence.length)}}catch(y){a.e(y)}finally{a.f()}t.edge=e.edges;var o,s=(0,p.Z)(t.edge);try{for(s.s();!(o=s.n()).done;){var u=o.value;u.from_start=u.from_is_reverse,delete u.from_is_reverse,u.to_end=u.to_is_reverse,delete u.to_is_reverse}}catch(y){s.e(y)}finally{s.f()}t.path=e.paths;var c,l=(0,p.Z)(t.path);try{for(l.s();!(c=l.n()).done;){var f=c.value;f.mapping=[];var d,h=(0,p.Z)(f.path);try{for(h.s();!(d=h.n()).done;){var g=d.value,v=n.get(g.id),m={position:{node_id:g.id,is_reverse:g.is_reverse},edit:[{from_length:v,to_length:v}]};f.mapping.push(m)}}catch(y){h.e(y)}finally{h.f()}delete f.path}}catch(y){l.e(y)}finally{l.f()}return t}var T=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(e){return(0,u.Z)(this,r),t.call(this,new _(e),{readonly:!0})}return(0,s.Z)(r)}(h.iQ),_=function(){function e(t){(0,u.Z)(this,e),this.closed=!1,this.blob=t,this.reader=new FileReaderSync}return(0,s.Z)(e,[{key:"close",value:function(){this.closed=!0}},{key:"flush",value:function(){throw new Error("Flush not implemented; blobs are read only")}},{key:"getSize",value:function(){if(this.closed)throw new Error("Can't get size of closed file");return this.blob.size}},{key:"read",value:function(e,t){var r,n,a;if(this.closed)throw new Error("Can't read closed file");var i=null!==(r=e.buffer)&&void 0!==r?r:e,o=null!==(n=e.byteOffset)&&void 0!==n?n:0,s=null!==(a=null===t||void 0===t?void 0:t.at)&&void 0!==a?a:0,u=Math.min(e.byteLength,this.blob.size-s),c=this.blob.slice(s,s+u),l=this.reader.readAsArrayBuffer(c),p=new Uint8Array(i,o,u),f=new Uint8Array(l,0,u);return p.set(f),u}},{key:"truncate",value:function(e){throw new Error("Truncate not implemented; blobs are read only")}},{key:"write",value:function(e,t){throw new Error("Write not implemented; blobs are read only")}}]),e}(),F=function(e){(0,c.Z)(r,e);var t=(0,l.Z)(r);function r(){var e;return(0,u.Z)(this,r),(e=t.call(this)).files=[],e.filesByType=new Map,e.compiledWasm=void 0,e}return(0,s.Z)(r,[{key:"setUp",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(){return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===this.compiledWasm&&(this.compiledWasm=b().then((function(e){return e instanceof Response?WebAssembly.compileStreaming(e):WebAssembly.compile(e)}))),e.next=3,this.compiledWasm;case 3:this.compiledWasm=e.sent;case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callWasm",value:function(){var e=(0,a.Z)((0,n.Z)().mark((function e(t,r){var a,i,s,u,c,l,p,f,d,g,v,m,y,b,w,x;return(0,n.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.length<1)){e.next=2;break}throw new Error("Not safe to invoke main() without program name");case 2:return e.next=4,this.setUp();case 4:if(a=new h.$B([]),i=new h.$B([]),s=new h.$B([]),u=["RUST_BACKTRACE=full"],c=[new h.pn(a),new h.pn(i),new h.pn(s)],!r){e.next=30;break}l={},p=0,f=Object.entries(r);case 12:if(!(p=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[u])}))?n.splice(u--,1):(s=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,a,i]}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};r.t=function(n,a){if(1&a&&(n=this(n)),8&a)return n;if("object"===typeof n&&n){if(4&a&&n.__esModule)return n;if(16&a&&"function"===typeof n.then)return n}var i=Object.create(null);r.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},r.d(i,o),i}}(),r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return"static/js/"+e+"."+{366:"6d7de32b",416:"eb85f570"}[e]+".chunk.js"},r.miniCssF=function(e){},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/sequenceTubeMap/",function(){var e={635:1};r.f.i=function(t,n){e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunksequence_tube_maps=self.webpackChunksequence_tube_maps||[],n=t.push.bind(t);t.push=function(t){var a=t[0],i=t[1],o=t[2];for(var s in i)r.o(i,s)&&(r.m[s]=i[s]);for(o&&o(r);a.length;)e[a.pop()]=1;n(t)}}(),function(){var e=r.x;r.x=function(){return r.e(366).then(e)}}();r.x()}(); -//# sourceMappingURL=635.f9175cd1.chunk.js.map \ No newline at end of file diff --git a/static/js/main.d737f630.js b/static/js/main.d737f630.js deleted file mode 100644 index aa253f8e..00000000 --- a/static/js/main.d737f630.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.d737f630.js.LICENSE.txt */ -!function(){var e={47933:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=n(77227),l=n(80184);t.default=(0,l.jsx)(a(),{props:{id:o.props.string("theDropdown"),inputId:o.props.string("theTextBox"),className:o.props.string("someCSSClass"),value:o.props.string("one thing"),options:o.props.json(["one thing","another thing","yet a third thing"])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{onChange:function(e){t({value:e.target.value})}}))}})},77227:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(93433),o=n(1413),a=n(15671),i=n(43144),l=n(60136),u=n(27277),s=n(72791),c=n(87462),f=n(82249),p=n(8003),d=n(45987),h=n(32569),v=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],m=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),o=String(t.getOptionLabel(e)).toLowerCase();return r===n||o===n},g={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return m(e,t,r)}))||n.some((function(t){return m(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};n(54164),n(51672);var y=(0,s.forwardRef)((function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,a=e.createOptionPosition,i=void 0===a?"last":a,l=e.formatCreateLabel,u=void 0===l?g.formatCreateLabel:l,c=e.isValidNewOption,p=void 0===c?g.isValidNewOption:c,m=e.getNewOptionData,y=void 0===m?g.getNewOptionData:m,b=e.onCreateOption,x=e.options,w=void 0===x?[]:x,O=e.onChange,k=(0,d.Z)(e,v),j=k.getOptionValue,S=void 0===j?f.g:j,E=k.getOptionLabel,C=void 0===E?f.b:E,P=k.inputValue,_=k.isLoading,M=k.isMulti,T=k.value,R=k.name,N=(0,s.useMemo)((function(){return p(P,(0,h.H)(T),w,{getOptionValue:S,getOptionLabel:C})?y(P,u(P)):void 0}),[u,y,C,S,P,p,w,T]),I=(0,s.useMemo)((function(){return!n&&_||!N?w:"first"===i?[N].concat((0,r.Z)(w)):[].concat((0,r.Z)(w),[N])}),[n,i,_,N,w]),A=(0,s.useCallback)((function(e,t){if("select-option"!==t.action)return O(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==N)O(e,t);else if(b)b(P);else{var o=y(P,P),a={action:"create-option",name:R,option:o};O((0,h.D)(M,[].concat((0,r.Z)((0,h.H)(T)),[o]),o),a)}}),[y,P,M,R,N,b,O,T]);return(0,o.Z)((0,o.Z)({},k),{},{options:I,onChange:A})}((0,p.u)(e));return s.createElement(f.S,(0,c.Z)({ref:t},n))})),b=n(80184),x=function(e){(0,l.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this,t={control:function(e){return(0,o.Z)((0,o.Z)({},e),{},{minHeight:"unset",height:"calc(2.25rem - 2px)"})},valueContainer:function(t){return(0,o.Z)((0,o.Z)({},t),{},{width:8*Math.max.apply(Math,(0,r.Z)(e.props.options.map((function(e){return e.length}))))+16,minWidth:"48px",position:"unset"})},indicatorsContainer:function(e){return(0,o.Z)((0,o.Z)({},e),{},{height:"inherit"})},menu:function(e){return(0,o.Z)((0,o.Z)({},e),{},{width:"max-content",minWidth:"100%",zIndex:999})}};function n(e){var t=e.split("/");return t[t.length-1]}var a=this.props.options.map((function(e){return{label:n(e),value:e}}));return(0,b.jsx)(y,{getNewOptionData:function(e,t){return{label:t,value:e}},id:this.props.id,inputId:this.props.inputId,className:this.props.className,value:a.find((function(t){return t.value===e.props.value}))||{label:n(this.props.value),value:this.props.value},styles:t,isSearchable:!0,onChange:function(t){e.props.onChange({target:{id:e.props.id,value:t.value}})},options:a,getOptionValue:function(e){return e.value},openMenuOnClick:a.length<2e3})}}]),n}(s.Component);x.defaultProps={id:void 0,inputId:void 0,className:void 0,value:void 0};var w=x},38970:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=n(22107),l=n(80184);t.default=(0,l.jsx)(a(),{props:{presetColors:o.props.json(["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{onChange:function(e){console.log("changed to color ",e)}}))}})},22107:function(e,t,n){"use strict";n.d(t,{Z:function(){return xi}});var r=n(29439),o=n(72791),a=n(54093),i={},l=function(e,t,n,r){var o=e+"-"+t+"-"+n+(r?"-server":"");if(i[o])return i[o];var a=function(e,t,n,r){if("undefined"===typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null}(e,t,n,r);return i[o]=a,a},u=Object.assign||function(e){for(var t=1;ti?1:Math.round(100*c/i)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var p=void 0;if(r!==(p=s<0?0:s>a?1:Math.round(100*s/a)/100))return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},d(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),p(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,a.ZP)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:f({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return o.createElement("div",{style:n.alpha},o.createElement("div",{style:n.checkboard},o.createElement(c,{renderers:this.props.renderers})),o.createElement("div",{style:n.gradient}),o.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("div",{style:n.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component),v=h,m=function(){function e(e,t){for(var n=0;n-1)){var o=n.getArrowOffset(),a=38===e.keyCode?r+o:r-o;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+y++,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),m(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,a.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:t.wrap},o.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component),x=function(){function e(e,t){for(var n=0;na?0:360*(-100*s/a+100)/100,n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(f=u<0?0:u>o?359:100*u/o*360/100,n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}(e,r.props.direction,r.props.hsl,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},w(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),x(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,a.ZP)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.createElement("div",{style:r.hue},o.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.createElement("div",{style:r.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:r.slider}))))}}]),t}(o.PureComponent||o.Component),k=O,j=n(52007),S=n.n(j);var E=function(){this.__data__=[],this.size=0};var C=function(e,t){return e===t||e!==e&&t!==t};var P=function(e,t){for(var n=e.length;n--;)if(C(e[n][0],t))return n;return-1},_=Array.prototype.splice;var M=function(e){var t=this.__data__,n=P(t,e);return!(n<0)&&(n==t.length-1?t.pop():_.call(t,n,1),--this.size,!0)};var T=function(e){var t=this.__data__,n=P(t,e);return n<0?void 0:t[n][1]};var R=function(e){return P(this.__data__,e)>-1};var N=function(e,t){var n=this.__data__,r=P(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991};var dt=function(e){return null!=e&&pt(e.length)&&!ee(e)};var ht=function(e){return ot(e)&&dt(e)};var vt=function(){return!1},mt="object"==typeof exports&&exports&&!exports.nodeType&&exports,gt=mt&&"object"==typeof module&&module&&!module.nodeType&&module,yt=gt&>.exports===mt?W.Buffer:void 0,bt=(yt?yt.isBuffer:void 0)||vt,xt=Function.prototype,wt=Object.prototype,Ot=xt.toString,kt=wt.hasOwnProperty,jt=Ot.call(Object);var St=function(e){if(!ot(e)||"[object Object]"!=Q(e))return!1;var t=et(e);if(null===t)return!0;var n=kt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==jt},Et={};Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;var Ct=function(e){return ot(e)&&pt(e.length)&&!!Et[Q(e)]};var Pt=function(e){return function(t){return e(t)}},_t="object"==typeof exports&&exports&&!exports.nodeType&&exports,Mt=_t&&"object"==typeof module&&module&&!module.nodeType&&module,Tt=Mt&&Mt.exports===_t&&z.process,Rt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Tt&&Tt.binding&&Tt.binding("util")}catch(t){}}(),Nt=Rt&&Rt.isTypedArray,It=Nt?Pt(Nt):Ct;var At=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]},Zt=Object.prototype.hasOwnProperty;var Dt=function(e,t,n){var r=e[t];Zt.call(e,t)&&C(r,n)&&(void 0!==n||t in e)||Le(e,t,n)};var Ft=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},an=on(nn);var ln=function(e,t){return an(en(e,t,Kt),e+"")};var un=function(e,t,n){if(!J(n))return!1;var r=typeof t;return!!("number"==r?dt(n)&&Bt(t,n.length):"string"==r&&t in n)&&C(n[t],e)};var sn=function(e){return ln((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&un(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r=t||n<0||f&&e-s>=a}function v(){var e=pn();if(h(e))return m(e);l=setTimeout(v,function(e){var n=t-(e-u);return f?jn(n,a-(e-s)):n}(e))}function m(e){return l=void 0,p&&r?d(e):(r=o=void 0,i)}function g(){var e=pn(),n=h(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return function(e){return s=e,l=setTimeout(v,t),c?d(e):i}(u);if(f)return clearTimeout(l),l=setTimeout(v,t),d(u)}return void 0===l&&(l=setTimeout(v,t)),i}return t=On(t)||0,J(n)&&(c=!!n.leading,a=(f="maxWait"in n)?kn(On(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==l&&clearTimeout(l),s=0,r=u=o=l=void 0},g.flush=function(){return void 0===l?i:m(pn())},g};var En=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return J(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Sn(e,t,{leading:r,maxWait:t,trailing:o})},Cn=function(){function e(e,t){for(var n=0;no&&(u=o),s<0?s=0:s>a&&(s=a);var c=u/o,f=1-s/a;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=En((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Cn(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,l=t.pointer,u=t.circle,s=(0,a.ZP)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:l,circle:u}},{custom:!!this.props.style});return o.createElement("div",{style:s.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.createElement("div",{style:s.white,className:"saturation-white"},o.createElement("div",{style:s.black,className:"saturation-black"}),o.createElement("div",{style:s.pointer},this.props.pointer?o.createElement(this.props.pointer,this.props):o.createElement("div",{style:s.circle}))))}}]),t}(o.PureComponent||o.Component),_n=Pn;var Mn=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=lr(e,360),t=lr(t,100),n=lr(n,100),0===t)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;r=i(u,l,e+1/3),o=i(u,l,e),a=i(u,l,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,a),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a));var u,s,c;return n=ir(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function Wn(e,t,n){e=lr(e,255),t=lr(t,255),n=lr(n,255);var r,o,a=Math.max(e,t,n),i=Math.min(e,t,n),l=(a+i)/2;if(a==i)r=o=0;else{var u=a-i;switch(o=l>.5?u/(2-a-i):u/(a+i),a){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(Bn(r));return a}function rr(e,t){t=t||6;for(var n=Bn(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(Bn({h:r,s:o,v:a})),a=(a+l)%1;return i}Bn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=ir(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Hn(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Hn(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=Wn(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Wn(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return Un(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[cr(Math.round(e).toString(16)),cr(Math.round(t).toString(16)),cr(Math.round(n).toString(16)),cr(pr(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*lr(this._r,255))+"%",g:Math.round(100*lr(this._g,255))+"%",b:Math.round(100*lr(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*lr(this._r,255))+"%, "+Math.round(100*lr(this._g,255))+"%, "+Math.round(100*lr(this._b,255))+"%)":"rgba("+Math.round(100*lr(this._r,255))+"%, "+Math.round(100*lr(this._g,255))+"%, "+Math.round(100*lr(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(ar[Un(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+qn(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=Bn(e);n="#"+qn(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return Bn(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Yn,arguments)},brighten:function(){return this._applyModification(Xn,arguments)},darken:function(){return this._applyModification(Kn,arguments)},desaturate:function(){return this._applyModification(Vn,arguments)},saturate:function(){return this._applyModification($n,arguments)},greyscale:function(){return this._applyModification(Gn,arguments)},spin:function(){return this._applyModification(Qn,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(nr,arguments)},complement:function(){return this._applyCombination(Jn,arguments)},monochromatic:function(){return this._applyCombination(rr,arguments)},splitcomplement:function(){return this._applyCombination(tr,arguments)},triad:function(){return this._applyCombination(er,[3])},tetrad:function(){return this._applyCombination(er,[4])}},Bn.fromRatio=function(e,t){if("object"==Fn(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:fr(e[r]));e=n}return Bn(e,t)},Bn.equals=function(e,t){return!(!e||!t)&&Bn(e).toRgbString()==Bn(t).toRgbString()},Bn.random=function(){return Bn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Bn.mix=function(e,t,n){n=0===n?0:n||50;var r=Bn(e).toRgb(),o=Bn(t).toRgb(),a=n/100;return Bn({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},Bn.readability=function(e,t){var n=Bn(e),r=Bn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Bn.isReadable=function(e,t,n){var r,o,a=Bn.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},Bn.mostReadable=function(e,t,n){var r,o,a,i,l=null,u=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var s=0;su&&(u=r,l=Bn(t[s]));return Bn.isReadable(e,l,{level:a,size:i})||!o?l:(n.includeFallbackColors=!1,Bn.mostReadable(e,["#fff","#000"],n))};var or=Bn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ar=Bn.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(or);function ir(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function lr(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"===typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ur(e){return Math.min(1,Math.max(0,e))}function sr(e){return parseInt(e,16)}function cr(e){return 1==e.length?"0"+e:""+e}function fr(e){return e<=1&&(e=100*e+"%"),e}function pr(e){return Math.round(255*parseFloat(e)).toString(16)}function dr(e){return sr(e)/255}var hr=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function vr(e){return!!hr.CSS_UNIT.exec(e)}var mr=function(e){var t=0,n=0;return Dn(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e},gr=function(e,t){var n=e.hex?Bn(e.hex):Bn(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),i=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===i&&0===a.a?"transparent":"#"+i,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}},yr=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&Bn(e).isValid()},br=function(e){if(!e)return"#fff";var t=gr(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},xr=function(e,t){return Bn(t+" ("+e.replace("\xb0","")+")")._ok},wr=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,a=Array(o),i=0;il))return!1;var s=a.get(e),c=a.get(t);if(s&&c)return s==t&&c==e;var f=-1,p=!0,d=2&n?new Zr:void 0;for(a.set(e,t),a.set(t,e);++f1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(ja(e.s)?n.props.hsl.s:e.s),l:Number(ja(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ea(t,[{key:"render",value:function(){var e=this,t=(0,a.ZP)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.createElement("div",{style:t.alpha},o.createElement(b,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.createElement("div",{style:t.fields,className:"flexbox-fix"},o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.createElement("div",{style:t.field},o.createElement(b,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.createElement("div",{style:t.alpha},o.createElement(b,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.createElement("div",{style:t.toggle},o.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.createElement(Sa.Z,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.Component);Ca.defaultProps={view:"hex"};var Pa=Ca,_a=function(){var e=(0,a.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return o.createElement("div",{style:e.picker})},Ma=function(){var e=(0,a.ZP)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return o.createElement("div",{style:e.picker})},Ta=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,i=e.rgb,l=e.hsl,u=e.hsv,s=e.hex,f=e.renderers,p=e.styles,d=void 0===p?{}:p,h=e.className,m=void 0===h?"":h,g=e.defaultView,y=(0,a.ZP)(sn({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+i.r+", "+i.g+", "+i.b+", "+i.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},d),{disableAlpha:r});return o.createElement("div",{style:y.picker,className:"chrome-picker "+m},o.createElement("div",{style:y.saturation},o.createElement(_n,{style:y.Saturation,hsl:l,hsv:u,pointer:Ma,onChange:n})),o.createElement("div",{style:y.body},o.createElement("div",{style:y.controls,className:"flexbox-fix"},o.createElement("div",{style:y.color},o.createElement("div",{style:y.swatch},o.createElement("div",{style:y.active}),o.createElement(c,{renderers:f}))),o.createElement("div",{style:y.toggles},o.createElement("div",{style:y.hue},o.createElement(k,{style:y.Hue,hsl:l,pointer:_a,onChange:n})),o.createElement("div",{style:y.alpha},o.createElement(v,{style:y.Alpha,rgb:i,hsl:l,pointer:_a,renderers:f,onChange:n})))),o.createElement(Pa,{rgb:i,hsl:l,hex:s,view:g,onChange:n,disableAlpha:r})))};Ta.propTypes={width:S().oneOfType([S().string,S().number]),disableAlpha:S().bool,styles:S().object,defaultView:S().oneOf(["hex","rgb","hsl"])},Ta.defaultProps={width:225,disableAlpha:!1,styles:{}};kr(Ta);var Ra=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,i=e.onSwatchHover,l=e.active,u=(0,a.ZP)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:br(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return o.createElement(Pr,{style:u.color,color:t,onClick:r,onHover:i,focusStyle:{boxShadow:"0 0 4px "+t}},o.createElement("div",{style:u.dot}))},Na=function(e){var t=e.hex,n=e.rgb,r=e.onChange,i=(0,a.ZP)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),l=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return o.createElement("div",{style:i.fields,className:"flexbox-fix"},o.createElement("div",{style:i.active}),o.createElement(b,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:t,onChange:l}),o.createElement(b,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:l}),o.createElement(b,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:l}),o.createElement(b,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:l}))},Ia=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,i=e.hex,l=e.rgb,u=e.styles,s=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,p=(0,a.ZP)(sn({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},s)),d=function(e,n){e.hex?yr(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return o.createElement(fn,{style:p.Compact,styles:s},o.createElement("div",{style:p.compact,className:"compact-picker "+f},o.createElement("div",null,ea(r,(function(e){return o.createElement(Ra,{key:e,color:e,active:e.toLowerCase()===i,onClick:d,onSwatchHover:n})})),o.createElement("div",{style:p.clear})),o.createElement(Na,{hex:i,rgb:l,onChange:d})))};Ia.propTypes={colors:S().arrayOf(S().string),styles:S().object},Ia.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}};kr(Ia);var Aa=(0,a.tz)((function(e){var t=e.hover,n=e.color,r=e.onClick,i=e.onSwatchHover,l={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=(0,a.ZP)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:l}},{hover:t});return o.createElement("div",{style:u.swatch},o.createElement(Pr,{color:n,onClick:r,onHover:i,focusStyle:l}))})),Za=function(e){var t=e.width,n=e.colors,r=e.onChange,i=e.onSwatchHover,l=e.triangle,u=e.styles,s=void 0===u?{}:u,c=e.className,f=void 0===c?"":c,p=(0,a.ZP)(sn({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},s),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l,"bottom-left-triangle":"bottom-left"===l,"bottom-right-triangle":"bottom-right"===l}),d=function(e,t){return r({hex:e,source:"hex"},t)};return o.createElement("div",{style:p.card,className:"github-picker "+f},o.createElement("div",{style:p.triangleShadow}),o.createElement("div",{style:p.triangle}),ea(n,(function(e){return o.createElement(Aa,{color:e,key:e,onClick:d,onSwatchHover:i})})))};Za.propTypes={width:S().oneOfType([S().string,S().number]),colors:S().arrayOf(S().string),triangle:S().oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:S().object},Za.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};kr(Za);var Da=function(e){var t=e.direction,n=(0,a.ZP)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return o.createElement("div",{style:n.picker})},Fa=Object.assign||function(e){for(var t=1;t.5});return o.createElement("div",{style:n.picker})},Wa=function(){var e=(0,a.ZP)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return o.createElement("div",{style:e.pointer},o.createElement("div",{style:e.left},o.createElement("div",{style:e.leftInside})),o.createElement("div",{style:e.right},o.createElement("div",{style:e.rightInside})))},Ha=function(e){var t=e.onClick,n=e.label,r=e.children,i=e.active,l=(0,a.ZP)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return o.createElement("div",{style:l.button,onClick:t},n||r)},Ua=function(e){var t=e.rgb,n=e.currentColor,r=(0,a.ZP)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return o.createElement("div",null,o.createElement("div",{style:r.label},"new"),o.createElement("div",{style:r.swatches},o.createElement("div",{style:r.new}),o.createElement("div",{style:r.current})),o.createElement("div",{style:r.label},"current"))},qa=function(){function e(e,t){for(var n=0;n100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},o))};return o.createElement("div",{style:u.fields,className:"flexbox-fix"},o.createElement("div",{style:u.double},o.createElement(b,{style:{input:u.input,label:u.label},label:"hex",value:i.replace("#",""),onChange:s})),o.createElement("div",{style:u.single},o.createElement(b,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:s,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:u.single},o.createElement(b,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:s,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:u.single},o.createElement(b,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:s,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:u.alpha},o.createElement(b,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:s,dragLabel:"true",dragMax:"100"})))},Ga=Object.assign||function(e){for(var t=1;t",lt:"<",nbsp:"\xa0",quot:"\u201c"},m=["style","script"],g=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,y=/mailto:/i,b=/\n{2,}$/,x=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,w=/^ *> ?/gm,O=/^ {2,}\n/,k=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,j=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,S=/^(?: {4}[^\n]+\n*)+(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?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,le=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,ue=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,se=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,ce=/^\\([^0-9A-Za-z\s])/,fe=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,pe=/^\n+/,de=/^([ \t]*)/,he=/\\([^\\])/g,ve=/ *\n+$/,me=/(?:^|\n)( *)$/,ge="(?:\\d+\\.)",ye="(?:[*+-])";function be(e){return"( *)("+(1===e?ge:ye)+") +"}var xe=be(1),we=be(2);function Oe(e){return new RegExp("^"+(1===e?xe:we))}var ke=Oe(1),je=Oe(2);function Se(e){return new RegExp("^"+(1===e?xe:we)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ge:ye)+" )[^\\n]*)*(\\n|$)","gm")}var Ee=Se(1),Ce=Se(2);function Pe(e){var t=1===e?ge:ye;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var _e=Pe(1),Me=Pe(2);function Te(e,t){var n=1===t,r=n?_e:Me,o=n?Ee:Ce,a=n?ke:je;return{match:function(e,t,n){var o=me.exec(n);return o&&(t.list||!t.inline&&!t.simple)?r.exec(e=o[1]+e):null},order:1,parse:function(e,t,r){var i=n?+e[2]:void 0,l=e[0].replace(b,"\n").match(o),u=!1;return{items:l.map((function(e,n){var o=a.exec(e)[0].length,i=new RegExp("^ {1,"+o+"}","gm"),s=e.replace(i,"").replace(a,""),c=n===l.length-1,f=-1!==s.indexOf("\n\n")||c&&u;u=f;var p,d=r.inline,h=r.list;r.list=!0,f?(r.inline=!1,p=s.replace(ve,"\n\n")):(r.inline=!0,p=s.replace(ve,""));var v=t(p,r);return r.inline=d,r.list=h,v})),ordered:n,start:i}},render:function(t,n,r){return e(t.ordered?"ol":"ul",{key:r.key,start:"20"===t.type?t.start:void 0},t.items.map((function(t,o){return e("li",{key:o},n(t,r))})))}}}var Re=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ne=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ie=[x,j,S,I,Z,A,L,$,Ee,_e,Ce,Me],Ae=[].concat(Ie,[/^[^\n]+(?: \n|\n{2,})/,D,B]);function Ze(e){return e.replace(/[\xc0\xc1\xc2\xc3\xc4\xc5\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xc6]/g,"a").replace(/[\xe7\xc7]/g,"c").replace(/[\xf0\xd0]/g,"d").replace(/[\xc8\xc9\xca\xcb\xe9\xe8\xea\xeb]/g,"e").replace(/[\xcf\xef\xce\xee\xcd\xed\xcc\xec]/g,"i").replace(/[\xd1\xf1]/g,"n").replace(/[\xf8\xd8\u0153\u0152\xd5\xf5\xd4\xf4\xd3\xf3\xd2\xf2]/g,"o").replace(/[\xdc\xfc\xdb\xfb\xda\xfa\xd9\xf9]/g,"u").replace(/[\u0178\xff\xdd\xfd]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function De(e){return ae.test(e)?"right":re.test(e)?"center":oe.test(e)?"left":null}function Fe(e,t,n){var r=n.inTable;n.inTable=!0;var o=t(e.trim(),n);n.inTable=r;var a=[[]];return o.forEach((function(e,t){"26"===e.type?0!==t&&t!==o.length-1&&a.push([]):("27"!==e.type||null!=o[t+1]&&"26"!==o[t+1].type||(e.text=e.text.replace(ne,"")),a[a.length-1].push(e))})),a}function Le(e,t,n){n.inline=!0;var r=Fe(e[1],t,n),o=e[2].replace(te,"").split("|").map(De),a=function(e,t,n){return e.trim().split("\n").map((function(e){return Fe(e,t,n)}))}(e[3],t,n);return n.inline=!1,{align:o,cells:a,header:r,type:"25"}}function ze(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function Be(e){return function(t,n){return n.inline?e.exec(t):null}}function We(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function He(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Ue(e){return function(t){return e.exec(t)}}function qe(e,t,n){if(t.inline||t.simple)return null;if(n&&!n.endsWith("\n"))return null;var r="";e.split("\n").every((function(e){return!Ie.some((function(t){return t.test(e)}))&&(r+=e+"\n",e.trim())}));var o=r.trimEnd();return""==o?null:[r,o]}function Ve(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(e){return null}return e}function $e(e){return e.replace(he,"$1")}function Ge(e,t,n){var r=n.inline||!1,o=n.simple||!1;n.inline=!0,n.simple=!0;var a=e(t,n);return n.inline=r,n.simple=o,a}function Ye(e,t,n){var r=n.inline||!1,o=n.simple||!1;n.inline=!1,n.simple=!0;var a=e(t,n);return n.inline=r,n.simple=o,a}function Xe(e,t,n){return n.inline=!1,e(t,n)}var Ke=function(e,t,n){return{children:Ge(t,e[1],n)}};function Qe(){return{}}function Je(){return null}function et(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};t.overrides=t.overrides||{},t.slugify=t.slugify||Ze,t.namedCodesToUnicode=t.namedCodesToUnicode?c({},v,t.namedCodesToUnicode):v;var n=t.createElement||i.createElement;function r(e,r){for(var o=tt(t.overrides,"".concat(e,".props"),{}),a=arguments.length,i=new Array(a>2?a-2:0),l=2;l1||t.forceWrapper)a=o;else{if(1===o.length)return"string"==typeof(a=o[0])?r("span",{key:"outer"},a):a;a=null}return i.createElement(l,{key:"outer"},a)}function l(e){var t=e.match(g);return t?t.reduce((function(e,t,n){var r=t.indexOf("=");if(-1!==r){var a=function(e){return-1!==e.indexOf("-")&&null===e.match(z)&&(e=e.replace(V,(function(e,t){return t.toUpperCase()}))),e}(t.slice(0,r)).trim(),l=function(e){var t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(r+1).trim()),u=h[a]||a,s=e[u]=function(e,t){return"style"===e?t.split(/;\s?/).reduce((function(e,t){var n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,(function(e){return e[1].toUpperCase()}))]=t.slice(n.length+1).trim(),e}),{}):"href"===e||"src"===e?Ve(t):(t.match(W)&&(t=t.slice(1,t.length-1)),"true"===t||"false"!==t&&t)}(a,l);"string"==typeof s&&(D.test(s)||B.test(s))&&(e[u]=i.cloneElement(o(s.trim()),{key:n}))}else"style"!==t&&(e[h[t]||t]=!0);return e}),{}):null}var u=[],s={},f={0:{match:He(x),order:1,parse:function(e,t,n){return{children:t(e[0].replace(w,""),n)}},render:function(e,t,n){return r("blockquote",{key:n.key},t(e.children,n))}},1:{match:Ue(O),order:1,parse:Qe,render:function(e,t,n){return r("br",{key:n.key})}},2:{match:He(k),order:1,parse:Qe,render:function(e,t,n){return r("hr",{key:n.key})}},3:{match:He(S),order:0,parse:function(e){return{lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}},render:function(e,t,n){return r("pre",{key:n.key},r("code",c({},e.attrs,{className:e.lang?"lang-".concat(e.lang):""}),e.text))}},4:{match:He(j),order:0,parse:function(e){return{attrs:l(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"}}},5:{match:We(E),order:3,parse:function(e){return{text:e[2]}},render:function(e,t,n){return r("code",{key:n.key},e.text)}},6:{match:He(_),order:0,parse:function(e){return u.push({footnote:e[2],identifier:e[1]}),{}},render:Je},7:{match:Be(M),order:1,parse:function(e){return{target:"#".concat(t.slugify(e[1])),text:e[1]}},render:function(e,t,n){return r("a",{key:n.key,href:Ve(e.target)},r("sup",{key:n.key},e.text))}},8:{match:Be(N),order:1,parse:function(e){return{completed:"x"===e[1].toLowerCase()}},render:function(e,t,n){return r("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})}},9:{match:He(t.enforceAtxHeadings?A:I),order:1,parse:function(e,n,r){return{children:Ge(n,e[2],r),id:t.slugify(e[2]),level:e[1].length}},render:function(e,t,n){return r("h".concat(e.level),{id:e.id,key:n.key},t(e.children,n))}},10:{match:He(Z),order:0,parse:function(e,t,n){return{children:Ge(t,e[1],n),level:"="===e[2]?1:2,type:"9"}}},11:{match:Ue(D),order:1,parse:function(e,t,n){var r,o=e[3].match(de),i=(0,a.Z)(o,2)[1],u=new RegExp("^".concat(i),"gm"),s=e[3].replace(u,""),c=(r=s,Ae.some((function(e){return e.test(r)}))?Xe:Ge),f=e[1].toLowerCase(),p=-1!==m.indexOf(f),d={attrs:l(e[2]),noInnerParse:p,tag:p?f:e[1]};return n.inAnchor=n.inAnchor||"a"===f,p?d.text=e[3]:d.children=c(t,s,n),n.inAnchor=!1,d},render:function(e,t,n){return r(e.tag,c({key:n.key},e.attrs),e.text||t(e.children,n))}},13:{match:Ue(B),order:1,parse:function(e){return{attrs:l(e[2]||""),tag:e[1]}},render:function(e,t,n){return r(e.tag,c({},e.attrs,{key:n.key}))}},12:{match:Ue(L),order:1,parse:function(){return{}},render:Je},14:{match:We(Ne),order:1,parse:function(e){return{alt:e[1],target:$e(e[2]),title:e[3]}},render:function(e,t,n){return r("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:Ve(e.target)})}},15:{match:Be(Re),order:3,parse:function(e,t,n){return{children:Ye(t,e[1],n),target:$e(e[2]),title:e[3]}},render:function(e,t,n){return r("a",{key:n.key,href:Ve(e.target),title:e.title},t(e.children,n))}},16:{match:Be(q),order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],type:"15"}}},17:{match:function(e,t){return t.inAnchor?null:Be(H)(e,t)},order:0,parse:function(e){return{children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"}}},18:{match:Be(U),order:0,parse:function(e){var t=e[1],n=e[1];return y.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:"27"}],target:n,type:"15"}}},20:Te(r,1),33:Te(r,2),19:{match:He(C),order:3,parse:Qe,render:function(){return"\n"}},21:{match:qe,order:3,parse:Ke,render:function(e,t,n){return r("p",{key:n.key},t(e.children,n))}},22:{match:Be(G),order:0,parse:function(e){return s[e[1]]={target:e[2],title:e[4]},{}},render:Je},23:{match:We(Y),order:0,parse:function(e){return{alt:e[1]||void 0,ref:e[2]}},render:function(e,t,n){return r("img",{key:n.key,alt:e.alt,src:Ve(s[e.ref].target),title:s[e.ref].title})}},24:{match:Be(X),order:0,parse:function(e,t,n){return{children:t(e[1],n),fallbackChildren:t(e[0].replace(K,"\\$1"),n),ref:e[2]}},render:function(e,t,n){return s[e.ref]?r("a",{key:n.key,href:Ve(s[e.ref].target),title:s[e.ref].title},t(e.children,n)):r("span",{key:n.key},t(e.fallbackChildren,n))}},25:{match:He($),order:1,parse:Le,render:function(e,t,n){return r("table",{key:n.key},r("thead",null,r("tr",null,e.header.map((function(o,a){return r("th",{key:a,style:ze(e,a)},t(o,n))})))),r("tbody",null,e.cells.map((function(o,a){return r("tr",{key:a},o.map((function(o,a){return r("td",{key:a,style:ze(e,a)},t(o,n))})))}))))}},26:{match:function(e,t){return t.inTable?(t.inline=!0,ee.exec(e)):null},order:1,parse:function(){return{type:"26"}},render:function(){return" | "}},27:{match:Ue(fe),order:4,parse:function(e){return{text:e[0].replace(F,(function(e,n){return t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e}))}},render:function(e){return e.text}},28:{match:We(ie),order:2,parse:function(e,t,n){return{children:t(e[2],n)}},render:function(e,t,n){return r("strong",{key:n.key},t(e.children,n))}},29:{match:We(le),order:3,parse:function(e,t,n){return{children:t(e[2],n)}},render:function(e,t,n){return r("em",{key:n.key},t(e.children,n))}},30:{match:We(ce),order:1,parse:function(e){return{text:e[1],type:"27"}}},31:{match:We(ue),order:3,parse:Ke,render:function(e,t,n){return r("mark",{key:n.key},t(e.children,n))}},32:{match:We(se),order:3,parse:Ke,render:function(e,t,n){return r("del",{key:n.key},t(e.children,n))}}};!0===t.disableParsingRawHTML&&(delete f[11],delete f[13]);var p,d=function(e){var t=Object.keys(e);function n(r,o){for(var a=[],i="";r;)for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(t)){for(var r=n.key,o=[],a=!1,i=0;i=0||(o[n]=e[n]);return o}(e,d);return i.cloneElement(nt(t,n),r)},ot=n(35177),at=n(80184),it=["alt","src"],lt=function(e){var t=e.file,n=new URL(t,document.baseURI),c=(0,i.useState)(!1),f=(0,a.Z)(c,2),p=f[0],d=f[1],h=(0,i.useState)(""),v=(0,a.Z)(h,2),m=v[0],g=v[1],y={overrides:{img:{component:function(e){var t=e.alt,a=e.src,i=(0,o.Z)(e,it);return(0,at.jsx)("img",(0,r.Z)((0,r.Z)({alt:t,src:new URL(a,n)},i),{},{style:{margin:"5px 0",maxWidth:"90%",border:"solid grey 1px",boxShadow:"0 2px 6px 0 rgba(0, 0, 0, 0.2)",borderRadius:"5px"}}))}}}};return(0,i.useEffect)((function(){fetch(t).then((function(e){return e.text()})).then((function(e){g(e)})).catch((function(e){g("Could not fetch help")}))}),[t]),(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(l.zx,{"aria-label":"Help",onClick:function(){return d(!p)},children:(0,at.jsx)(u.G,{icon:s.Psp})}),(0,at.jsx)(ot.Z,{open:p,close:function(){return d(!1)},children:(0,at.jsx)("div",{style:{height:"90vh",overflowY:"scroll",overflowX:"hidden"},children:(0,at.jsx)(rt,{options:y,children:m})})})]})};lt.defaultProps={};var ut=lt},35177:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(72791),o=n(54164);function a(){return a=Object.assign||function(e){for(var t=1;t=p.top+p.height||h.left+h.width>=p.left+p.width))break;f++}return c},f=0,p=(0,r.forwardRef)((function(e,t){var n=e.trigger,u=void 0===n?null:n,s=e.onOpen,p=void 0===s?function(){}:s,d=e.onClose,h=void 0===d?function(){}:d,v=e.defaultOpen,m=void 0!==v&&v,g=e.open,y=void 0===g?void 0:g,b=e.disabled,x=void 0!==b&&b,w=e.nested,O=void 0!==w&&w,k=e.closeOnDocumentClick,j=void 0===k||k,S=e.repositionOnResize,E=void 0===S||S,C=e.closeOnEscape,P=void 0===C||C,_=e.on,M=void 0===_?["click"]:_,T=e.contentStyle,R=void 0===T?{}:T,N=e.arrowStyle,I=void 0===N?{}:N,A=e.overlayStyle,Z=void 0===A?{}:A,D=e.className,F=void 0===D?"":D,L=e.position,z=void 0===L?"bottom center":L,B=e.modal,W=void 0!==B&&B,H=e.lockScroll,U=void 0!==H&&H,q=e.arrow,V=void 0===q||q,$=e.offsetX,G=void 0===$?0:$,Y=e.offsetY,X=void 0===Y?0:Y,K=e.mouseEnterDelay,Q=void 0===K?100:K,J=e.mouseLeaveDelay,ee=void 0===J?100:J,te=e.keepTooltipInside,ne=void 0!==te&&te,re=e.children,oe=(0,r.useState)(y||m),ae=oe[0],ie=oe[1],le=(0,r.useRef)(null),ue=(0,r.useRef)(null),se=(0,r.useRef)(null),ce=(0,r.useRef)(null),fe=(0,r.useRef)("popup-"+ ++f),pe=!!W||!u,de=(0,r.useRef)(0);i((function(){return ae?(ce.current=document.activeElement,Se(),Oe(),xe()):we(),function(){clearTimeout(de.current)}}),[ae]),(0,r.useEffect)((function(){"boolean"===typeof y&&(y?he():ve())}),[y,x]);var he=function(e){ae||x||(ie(!0),setTimeout((function(){return p(e)}),0))},ve=function(e){var t;ae&&!x&&(ie(!1),pe&&(null===(t=ce.current)||void 0===t||t.focus()),setTimeout((function(){return h(e)}),0))},me=function(e){null===e||void 0===e||e.stopPropagation(),ae?ve(e):he(e)},ge=function(e){clearTimeout(de.current),de.current=setTimeout((function(){return he(e)}),Q)},ye=function(e){null===e||void 0===e||e.preventDefault(),me()},be=function(e){clearTimeout(de.current),de.current=setTimeout((function(){return ve(e)}),ee)},xe=function(){pe&&U&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},we=function(){pe&&U&&(document.getElementsByTagName("body")[0].style.overflow="auto")},Oe=function(){var e,t=null===ue||void 0===ue||null===(e=ue.current)||void 0===e?void 0:e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),n=Array.prototype.slice.call(t)[0];null===n||void 0===n||n.focus()};(0,r.useImperativeHandle)(t,(function(){return{open:function(){he()},close:function(){ve()},toggle:function(){me()}}}));var ke,je,Se=function(){if(!pe&&ae&&(null===le||void 0===le?void 0:le.current)&&(null===le||void 0===le?void 0:le.current)&&(null===ue||void 0===ue?void 0:ue.current)){var e,t,n=le.current.getBoundingClientRect(),r=ue.current.getBoundingClientRect(),o=c(n,r,z,V,{offsetX:G,offsetY:X},ne);if(ue.current.style.top=o.top+window.scrollY+"px",ue.current.style.left=o.left+window.scrollX+"px",V&&se.current)se.current.style.transform=o.transform,se.current.style.setProperty("-ms-transform",o.transform),se.current.style.setProperty("-webkit-transform",o.transform),se.current.style.top=(null===(e=I.top)||void 0===e?void 0:e.toString())||o.arrowTop,se.current.style.left=(null===(t=I.left)||void 0===t?void 0:t.toString())||o.arrowLeft}};ke=ve,void 0===(je=P)&&(je=!0),(0,r.useEffect)((function(){if(je){var e=function(e){"Escape"===e.key&&ke(e)};return document.addEventListener("keyup",e),function(){je&&document.removeEventListener("keyup",e)}}}),[ke,je]),function(e,t){void 0===t&&(t=!0),(0,r.useEffect)((function(){if(t){var n=function(t){if(9===t.keyCode){var n,r=null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(r);if(1===o.length)return void t.preventDefault();var a=o[0],i=o[o.length-1];t.shiftKey&&document.activeElement===a?(t.preventDefault(),i.focus()):document.activeElement===i&&(t.preventDefault(),a.focus())}};return document.addEventListener("keydown",n),function(){t&&document.removeEventListener("keydown",n)}}}),[e,t])}(ue,ae&&pe),function(e,t){void 0===t&&(t=!0),(0,r.useEffect)((function(){if(t){var n=function(){e()};return window.addEventListener("resize",n),function(){t&&window.removeEventListener("resize",n)}}}),[e,t])}(Se,E),function(e,t,n){void 0===n&&(n=!0),(0,r.useEffect)((function(){if(n){var r=function(n){var r=Array.isArray(e)?e:[e],o=!1;r.forEach((function(e){e.current&&!e.current.contains(n.target)||(o=!0)})),n.stopPropagation(),o||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),function(){n&&(document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r))}}}),[e,t,n])}(u?[ue,le]:[ue],ve,j&&!O);var Ee=function(){return r.createElement("div",Object.assign({},function(){var e=pe?l.popupContent.modal:l.popupContent.tooltip,t={className:"popup-content "+(""!==F?F.split(" ").map((function(e){return e+"-content"})).join(" "):""),style:a({},e,R,{pointerEvents:"auto"}),ref:ue,onClick:function(e){e.stopPropagation()}};return!W&&M.indexOf("hover")>=0&&(t.onMouseEnter=ge,t.onMouseLeave=be),t}(),{key:"C",role:pe?"dialog":"tooltip",id:fe.current}),V&&!pe&&r.createElement("div",{ref:se,style:l.popupArrow},r.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==F?F.split(" ").map((function(e){return e+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:a({position:"absolute"},I)},r.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),re&&"function"===typeof re?re(ve,ae):re)},Ce=!(M.indexOf("hover")>=0),Pe=pe?l.overlay.modal:l.overlay.tooltip,_e=[Ce&&r.createElement("div",{key:"O","data-testid":"overlay","data-popup":pe?"modal":"tooltip",className:"popup-overlay "+(""!==F?F.split(" ").map((function(e){return e+"-overlay"})).join(" "):""),style:a({},Pe,Z,{pointerEvents:j&&O||pe?"auto":"none"}),onClick:j&&O?ve:void 0,tabIndex:-1},pe&&Ee()),!pe&&Ee()];return r.createElement(r.Fragment,null,function(){for(var e={key:"T",ref:le,"aria-describedby":fe.current},t=Array.isArray(M)?M:[M],n=0,o=t.length;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(g.current+=1,{overflow:r,outerHeightStyle:n}):e},I=l.useCallback((function(){var e=j();R(e)||O((function(t){return N(t,e)}))}),[j]);l.useEffect((function(){var e,t=E((function(){g.current=0,h.current&&function(){var e=j();R(e)||w.flushSync((function(){O((function(t){return N(t,e)}))}))}()})),n=h.current,r=S(n);return r.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(n),function(){t.clear(),r.removeEventListener("resize",t),e&&e.disconnect()}})),C((function(){I()})),l.useEffect((function(){g.current=0}),[f]);return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)("textarea",(0,s.Z)({value:f,onChange:function(e){g.current=0,d||I(),n&&n(e)},ref:v,rows:i,style:(0,s.Z)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":void 0},u)},p)),(0,P.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:m,tabIndex:-1,style:(0,s.Z)({},T,u,{padding:0})})]})}));function I(e){return"string"===typeof e}var A=n(76147),Z=n(93840),D=n(52930),F=n(14036),L=k,z=C,B=n(52554);function W(e){var t=e.styles,n=e.defaultTheme,r=void 0===n?{}:n,o="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?r:e);var n}:t;return(0,P.jsx)(B.xB,{styles:o})}var H=n(30418);var U=function(e){var t=e.styles,n=e.themeId,r=e.defaultTheme,o=void 0===r?{}:r,a=(0,H.Z)(o),i="function"===typeof t?t(n&&a[n]||a):t;return(0,P.jsx)(W,{styles:i})},q=n(94591),V=n(988);var $=function(e){return(0,P.jsx)(U,(0,s.Z)({},e,{defaultTheme:q.Z,themeId:V.Z}))};function G(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Y(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(G(e.value)&&""!==e.value||t&&G(e.defaultValue)&&""!==e.defaultValue)}var X=n(75878),K=n(97225);function Q(e){return(0,K.Z)("MuiInputBase",e)}var J=(0,X.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ee=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],te=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,F.Z)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ne=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},re=(0,m.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:te})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({},t.typography.body1,(0,y.Z)({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(J.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&(0,s.Z)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),oe=(0,m.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ne})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode,a=(0,s.Z)({color:"currentColor"},n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})}),i={opacity:"0 !important"},l=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return(0,s.Z)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},(0,y.Z)(t,"label[data-shrink=false] + .".concat(J.formControl," &"),{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l}),(0,y.Z)(t,"&.".concat(J.disabled),{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled}),(0,y.Z)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})})),ae=(0,P.jsx)($,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ie=l.forwardRef((function(e,t){var n,r=(0,g.Z)({props:e,name:"MuiInputBase"}),o=r["aria-describedby"],i=r.autoComplete,u=r.autoFocus,d=r.className,h=r.components,v=void 0===h?{}:h,m=r.componentsProps,y=void 0===m?{}:m,b=r.defaultValue,w=r.disabled,O=r.disableInjectingGlobalStyles,k=r.endAdornment,j=r.fullWidth,S=void 0!==j&&j,E=r.id,C=r.inputComponent,_=void 0===C?"input":C,M=r.inputProps,T=void 0===M?{}:M,R=r.inputRef,B=r.maxRows,W=r.minRows,H=r.multiline,U=void 0!==H&&H,q=r.name,V=r.onBlur,$=r.onChange,G=r.onClick,X=r.onFocus,K=r.onKeyDown,J=r.onKeyUp,te=r.placeholder,ne=r.readOnly,ie=r.renderSuffix,le=r.rows,ue=r.slotProps,se=void 0===ue?{}:ue,ce=r.slots,fe=void 0===ce?{}:ce,pe=r.startAdornment,de=r.type,he=void 0===de?"text":de,ve=r.value,me=(0,c.Z)(r,ee),ge=null!=T.value?T.value:ve,ye=l.useRef(null!=ge).current,be=l.useRef(),xe=l.useCallback((function(e){0}),[]),we=L(be,R,T.ref,xe),Oe=l.useState(!1),ke=(0,a.Z)(Oe,2),je=ke[0],Se=ke[1],Ee=(0,D.Z)();var Ce=(0,A.Z)({props:r,muiFormControl:Ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ce.focused=Ee?Ee.focused:je,l.useEffect((function(){!Ee&&w&&je&&(Se(!1),V&&V())}),[Ee,w,je,V]);var Pe=Ee&&Ee.onFilled,_e=Ee&&Ee.onEmpty,Me=l.useCallback((function(e){Y(e)?Pe&&Pe():_e&&_e()}),[Pe,_e]);z((function(){ye&&Me({value:ge})}),[ge,Me,ye]);l.useEffect((function(){Me(be.current)}),[]);var Te=_,Re=T;U&&"input"===Te&&(Re=le?(0,s.Z)({type:void 0,minRows:le,maxRows:le},Re):(0,s.Z)({type:void 0,maxRows:B,minRows:W},Re),Te=N);l.useEffect((function(){Ee&&Ee.setAdornedStart(Boolean(pe))}),[Ee,pe]);var Ne=(0,s.Z)({},r,{color:Ce.color||"primary",disabled:Ce.disabled,endAdornment:k,error:Ce.error,focused:Ce.focused,formControl:Ee,fullWidth:S,hiddenLabel:Ce.hiddenLabel,multiline:U,size:Ce.size,startAdornment:pe,type:he}),Ie=function(e){var t=e.classes,n=e.color,r=e.disabled,o=e.error,a=e.endAdornment,i=e.focused,l=e.formControl,u=e.fullWidth,s=e.hiddenLabel,c=e.multiline,f=e.readOnly,d=e.size,h=e.startAdornment,v=e.type,m={root:["root","color".concat((0,F.Z)(n)),r&&"disabled",o&&"error",u&&"fullWidth",i&&"focused",l&&"formControl","small"===d&&"sizeSmall",c&&"multiline",h&&"adornedStart",a&&"adornedEnd",s&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled","search"===v&&"inputTypeSearch",c&&"inputMultiline","small"===d&&"inputSizeSmall",s&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return(0,p.Z)(m,Q,t)}(Ne),Ae=fe.root||v.Root||re,Ze=se.root||y.root||{},De=fe.input||v.Input||oe;return Re=(0,s.Z)({},Re,null!=(n=se.input)?n:y.input),(0,P.jsxs)(l.Fragment,{children:[!O&&ae,(0,P.jsxs)(Ae,(0,s.Z)({},Ze,!I(Ae)&&{ownerState:(0,s.Z)({},Ne,Ze.ownerState)},{ref:t,onClick:function(e){be.current&&e.currentTarget===e.target&&be.current.focus(),G&&!Ce.disabled&&G(e)}},me,{className:(0,f.Z)(Ie.root,Ze.className,d,ne&&"MuiInputBase-readOnly"),children:[pe,(0,P.jsx)(Z.Z.Provider,{value:null,children:(0,P.jsx)(De,(0,s.Z)({ownerState:Ne,"aria-invalid":Ce.error,"aria-describedby":o,autoComplete:i,autoFocus:u,defaultValue:b,disabled:Ce.disabled,id:E,onAnimationStart:function(e){Me("mui-auto-fill-cancel"===e.animationName?be.current:{value:"x"})},name:q,placeholder:te,readOnly:ne,required:Ce.required,rows:le,value:ge,onKeyDown:K,onKeyUp:J,type:he},Re,!I(De)&&{as:Te,ownerState:(0,s.Z)({},Ne,Re.ownerState)},{ref:we,className:(0,f.Z)(Ie.input,Re.className,ne&&"MuiInputBase-readOnly"),onBlur:function(e){V&&V(e),T.onBlur&&T.onBlur(e),Ee&&Ee.onBlur?Ee.onBlur(e):Se(!1)},onChange:function(e){if(!ye){var t=e.target||be.current;if(null==t)throw new Error((0,x.Z)(1));Me({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function Ee(e){return(0,K.Z)("MuiOutlinedInput",e)}var Ce=(0,s.Z)({},J,(0,X.Z)("MuiOutlinedInput",["root","notchedOutline","input"])),Pe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],_e=(0,m.ZP)(re,{shouldForwardProp:function(e){return(0,m.FO)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:te})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,s.Z)((t={position:"relative",borderRadius:(n.vars||n).shape.borderRadius},(0,y.Z)(t,"&:hover .".concat(Ce.notchedOutline),{borderColor:(n.vars||n).palette.text.primary}),(0,y.Z)(t,"@media (hover: none)",(0,y.Z)({},"&:hover .".concat(Ce.notchedOutline),{borderColor:n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.23)"):o})),(0,y.Z)(t,"&.".concat(Ce.focused," .").concat(Ce.notchedOutline),{borderColor:(n.vars||n).palette[r.color].main,borderWidth:2}),(0,y.Z)(t,"&.".concat(Ce.error," .").concat(Ce.notchedOutline),{borderColor:(n.vars||n).palette.error.main}),(0,y.Z)(t,"&.".concat(Ce.disabled," .").concat(Ce.notchedOutline),{borderColor:(n.vars||n).palette.action.disabled}),t),r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,s.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))})),Me=(0,m.ZP)((function(e){var t=e.className,n=e.label,r=e.notched,o=(0,c.Z)(e,ke),a=null!=n&&""!==n,i=(0,s.Z)({},e,{notched:r,withLabel:a});return(0,P.jsx)(je,(0,s.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,P.jsx)(Se,{ownerState:i,children:a?(0,P.jsx)("span",{children:n}):we||(we=(0,P.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),Te=(0,m.ZP)(oe,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ne})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&(0,y.Z)({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),Re=l.forwardRef((function(e,t){var n,r,o,a,i,u=(0,g.Z)({props:e,name:"MuiOutlinedInput"}),f=u.components,d=void 0===f?{}:f,h=u.fullWidth,v=void 0!==h&&h,m=u.inputComponent,y=void 0===m?"input":m,b=u.label,x=u.multiline,w=void 0!==x&&x,O=u.notched,k=u.slots,j=void 0===k?{}:k,S=u.type,E=void 0===S?"text":S,C=(0,c.Z)(u,Pe),_=function(e){var t=e.classes,n=(0,p.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ee,t);return(0,s.Z)({},t,n)}(u),M=(0,D.Z)(),T=(0,A.Z)({props:u,muiFormControl:M,states:["required"]}),R=(0,s.Z)({},u,{color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:M,fullWidth:v,hiddenLabel:T.hiddenLabel,multiline:w,size:T.size,type:E}),N=null!=(n=null!=(r=j.root)?r:d.Root)?n:_e,I=null!=(o=null!=(a=j.input)?a:d.Input)?o:Te;return(0,P.jsx)(le,(0,s.Z)({slots:{root:N,input:I},renderSuffix:function(e){return(0,P.jsx)(Me,{ownerState:R,className:_.notchedOutline,label:null!=b&&""!==b&&T.required?i||(i=(0,P.jsxs)(l.Fragment,{children:[b,"\u2009","*"]})):b,notched:"undefined"!==typeof O?O:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:v,inputComponent:y,multiline:w,ref:t,type:E},C,{classes:(0,s.Z)({},_,{notchedOutline:null})}))}));Re.muiName="Input";var Ne=Re;function Ie(e){return(0,K.Z)("MuiFormLabel",e)}var Ae=(0,X.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ze=["children","className","color","component","disabled","error","filled","focused","required"],De=(0,m.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,s.Z)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,s.Z)({color:(n.vars||n).palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"},(0,y.Z)(t,"&.".concat(Ae.focused),{color:(n.vars||n).palette[r.color].main}),(0,y.Z)(t,"&.".concat(Ae.disabled),{color:(n.vars||n).palette.text.disabled}),(0,y.Z)(t,"&.".concat(Ae.error),{color:(n.vars||n).palette.error.main}),t))})),Fe=(0,m.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return(0,y.Z)({},"&.".concat(Ae.error),{color:(t.vars||t).palette.error.main})})),Le=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiFormLabel"}),r=n.children,o=n.className,a=n.component,i=void 0===a?"label":a,l=(0,c.Z)(n,Ze),u=(0,D.Z)(),d=(0,A.Z)({props:n,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),h=(0,s.Z)({},n,{color:d.color||"primary",component:i,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),v=function(e){var t=e.classes,n=e.color,r=e.focused,o=e.disabled,a=e.error,i=e.filled,l=e.required,u={root:["root","color".concat((0,F.Z)(n)),o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return(0,p.Z)(u,Ie,t)}(h);return(0,P.jsxs)(De,(0,s.Z)({as:i,ownerState:h,className:(0,f.Z)(v.root,o),ref:t},l,{children:[r,d.required&&(0,P.jsxs)(Fe,{ownerState:h,"aria-hidden":!0,className:v.asterisk,children:["\u2009","*"]})]}))}));function ze(e){return(0,K.Z)("MuiInputLabel",e)}(0,X.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var Be=["disableAnimation","margin","shrink","variant","className"],We=(0,m.ZP)(Le,{shouldForwardProp:function(e){return(0,m.FO)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[(0,y.Z)({},"& .".concat(Ae.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,s.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,s.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,s.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),He=l.forwardRef((function(e,t){var n=(0,g.Z)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,o=void 0!==r&&r,a=n.shrink,i=n.className,l=(0,c.Z)(n,Be),u=(0,D.Z)(),d=a;"undefined"===typeof d&&u&&(d=u.filled||u.focused||u.adornedStart);var h=(0,A.Z)({props:n,muiFormControl:u,states:["size","variant","required"]}),v=(0,s.Z)({},n,{disableAnimation:o,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required}),m=function(e){var t=e.classes,n=e.formControl,r=e.size,o=e.shrink,a={root:["root",n&&"formControl",!e.disableAnimation&&"animated",o&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},i=(0,p.Z)(a,ze,t);return(0,s.Z)({},t,i)}(v);return(0,P.jsx)(We,(0,s.Z)({"data-shrink":d,ownerState:v,ref:t,className:(0,f.Z)(m.root,i)},l,{classes:m}))}));var Ue=function(e,t){return l.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)};function qe(e){return(0,K.Z)("MuiFormControl",e)}(0,X.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var Ve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],$e=(0,m.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return(0,s.Z)({},t.root,t["margin".concat((0,F.Z)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return(0,s.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),Ge=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiFormControl"}),r=n.children,o=n.className,i=n.color,u=void 0===i?"primary":i,d=n.component,h=void 0===d?"div":d,v=n.disabled,m=void 0!==v&&v,y=n.error,b=void 0!==y&&y,x=n.focused,w=n.fullWidth,O=void 0!==w&&w,k=n.hiddenLabel,j=void 0!==k&&k,S=n.margin,E=void 0===S?"none":S,C=n.required,_=void 0!==C&&C,M=n.size,T=void 0===M?"medium":M,R=n.variant,N=void 0===R?"outlined":R,I=(0,c.Z)(n,Ve),A=(0,s.Z)({},n,{color:u,component:h,disabled:m,error:b,fullWidth:O,hiddenLabel:j,margin:E,required:_,size:T,variant:N}),D=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,o={root:["root","none"!==n&&"margin".concat((0,F.Z)(n)),r&&"fullWidth"]};return(0,p.Z)(o,qe,t)}(A),L=l.useState((function(){var e=!1;return r&&l.Children.forEach(r,(function(t){if(Ue(t,["Input","Select"])){var n=Ue(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),z=(0,a.Z)(L,2),B=z[0],W=z[1],H=l.useState((function(){var e=!1;return r&&l.Children.forEach(r,(function(t){Ue(t,["Input","Select"])&&(Y(t.props,!0)||Y(t.props.inputProps,!0))&&(e=!0)})),e})),U=(0,a.Z)(H,2),q=U[0],V=U[1],$=l.useState(!1),G=(0,a.Z)($,2),X=G[0],K=G[1];m&&X&&K(!1);var Q,J=void 0===x||m?X:x,ee=l.useMemo((function(){return{adornedStart:B,setAdornedStart:W,color:u,disabled:m,error:b,filled:q,focused:J,fullWidth:O,hiddenLabel:j,size:T,onBlur:function(){K(!1)},onEmpty:function(){V(!1)},onFilled:function(){V(!0)},onFocus:function(){K(!0)},registerEffect:Q,required:_,variant:N}}),[B,u,m,b,q,J,O,j,Q,_,T,N]);return(0,P.jsx)(Z.Z.Provider,{value:ee,children:(0,P.jsx)($e,(0,s.Z)({as:h,ownerState:A,className:(0,f.Z)(D.root,o),ref:t},I,{children:r}))})})),Ye=n(47071),Xe=(n(78457),j);var Ke=l.createContext({});function Qe(e){return(0,K.Z)("MuiList",e)}(0,X.Z)("MuiList",["root","padding","dense","subheader"]);var Je=["children","className","component","dense","disablePadding","subheader"],et=(0,m.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return(0,s.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),tt=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiList"}),r=n.children,o=n.className,a=n.component,i=void 0===a?"ul":a,u=n.dense,d=void 0!==u&&u,h=n.disablePadding,v=void 0!==h&&h,m=n.subheader,y=(0,c.Z)(n,Je),b=l.useMemo((function(){return{dense:d}}),[d]),x=(0,s.Z)({},n,{component:i,dense:d,disablePadding:v}),w=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return(0,p.Z)(n,Qe,t)}(x);return(0,P.jsx)(Ke.Provider,{value:b,children:(0,P.jsxs)(et,(0,s.Z)({as:i,className:(0,f.Z)(w.root,o),ref:t,ownerState:x},y,{children:[m,r]}))})}));function nt(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var rt=nt,ot=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function at(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function it(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lt(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ut(e,t,n,r,o,a){for(var i=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(i)return!1;i=!0}var u=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&<(l,a)&&!u)return l.focus(),!0;l=o(e,l,n)}return!1}var st=l.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,a=e.autoFocusItem,i=void 0!==a&&a,u=e.children,f=e.className,p=e.disabledItemsFocusable,d=void 0!==p&&p,h=e.disableListWrap,v=void 0!==h&&h,m=e.onKeyDown,g=e.variant,y=void 0===g?"selectedMenu":g,b=(0,c.Z)(e,ot),x=l.useRef(null),w=l.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});z((function(){o&&x.current.focus()}),[o]),l.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight=u.length&&(k=-1))}));var j=l.Children.map(u,(function(e,t){if(t===k){var n={};return i&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),l.cloneElement(e,n)}return e}));return(0,P.jsx)(tt,(0,s.Z)({role:"menu",ref:O,className:f,onKeyDown:function(e){var t=x.current,n=e.key,r=Xe(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ut(t,r,v,d,at);else if("ArrowUp"===n)e.preventDefault(),ut(t,r,v,d,it);else if("Home"===n)e.preventDefault(),ut(t,null,v,d,at);else if("End"===n)e.preventDefault(),ut(t,null,v,d,it);else if(1===n.length){var o=w.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);var l=r&&!o.repeating&<(r,o);o.previousKeyMatched&&(l||ut(t,r,!1,d,at,o))?e.preventDefault():o.previousKeyMatched=!1}m&&m(e)},tabIndex:o?0:-1},b,{children:j}))})),ct=n(12065),ft=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)};function pt(e){return(0,K.Z)("MuiPaper",e)}(0,X.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var dt=["className","component","elevation","square","variant"],ht=(0,m.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return(0,s.Z)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&(0,s.Z)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,ct.Fq)("#fff",ft(r.elevation)),", ").concat((0,ct.Fq)("#fff",ft(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),vt=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiPaper"}),r=n.className,o=n.component,a=void 0===o?"div":o,i=n.elevation,l=void 0===i?1:i,u=n.square,d=void 0!==u&&u,h=n.variant,v=void 0===h?"elevation":h,m=(0,c.Z)(n,dt),y=(0,s.Z)({},n,{component:a,elevation:l,square:d,variant:v}),b=function(e){var t=e.square,n=e.elevation,r=e.variant,o=e.classes,a={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,p.Z)(a,pt,o)}(y);return(0,P.jsx)(ht,(0,s.Z)({as:a,ownerState:y,className:(0,f.Z)(b.root,r),ref:t},m))})),mt=E,gt=S,yt=n(98328);function bt(){var e=(0,H.Z)(q.Z);return e[V.Z]||e}var xt=function(e){return e.scrollTop};function wt(e,t){var n,r,o=e.timeout,a=e.easing,i=e.style,l=void 0===i?{}:i;return{duration:null!=(n=l.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=l.transitionTimingFunction)?r:"object"===typeof a?a[t.mode]:a,delay:l.transitionDelay}}var Ot=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kt(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var jt={entering:{opacity:1,transform:kt(1)},entered:{opacity:1,transform:"none"}},St="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Et=l.forwardRef((function(e,t){var n=e.addEndListener,r=e.appear,o=void 0===r||r,a=e.children,i=e.easing,u=e.in,f=e.onEnter,p=e.onEntered,d=e.onEntering,h=e.onExit,v=e.onExited,m=e.onExiting,g=e.style,y=e.timeout,b=void 0===y?"auto":y,x=e.TransitionComponent,w=void 0===x?yt.ZP:x,O=(0,c.Z)(e,Ot),k=l.useRef(),j=l.useRef(),S=bt(),E=l.useRef(null),C=L(E,a.ref,t),_=function(e){return function(t){if(e){var n=E.current;void 0===t?e(n):e(n,t)}}},M=_(d),T=_((function(e,t){xt(e);var n,r=wt({style:g,timeout:b,easing:i},{mode:"enter"}),o=r.duration,a=r.delay,l=r.easing;"auto"===b?(n=S.transitions.getAutoHeightDuration(e.clientHeight),j.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:a}),S.transitions.create("transform",{duration:St?n:.666*n,delay:a,easing:l})].join(","),f&&f(e,t)})),R=_(p),N=_(m),I=_((function(e){var t,n=wt({style:g,timeout:b,easing:i},{mode:"exit"}),r=n.duration,o=n.delay,a=n.easing;"auto"===b?(t=S.transitions.getAutoHeightDuration(e.clientHeight),j.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:St?t:.666*t,delay:St?o:o||.333*t,easing:a})].join(","),e.style.opacity=0,e.style.transform=kt(.75),h&&h(e)})),A=_(v);return l.useEffect((function(){return function(){clearTimeout(k.current)}}),[]),(0,P.jsx)(w,(0,s.Z)({appear:o,in:u,nodeRef:E,onEnter:T,onEntered:R,onEntering:M,onExit:I,onExited:A,onExiting:N,addEndListener:function(e){"auto"===b&&(k.current=setTimeout(e,j.current||0)),n&&n(E.current,e)},timeout:"auto"===b?null:b},O,{children:function(e,t){return l.cloneElement(a,(0,s.Z)({style:(0,s.Z)({opacity:0,transform:kt(.75),visibility:"exited"!==e||u?void 0:"hidden"},jt[e],g,a.props.style),ref:C},t))}}))}));Et.muiSupportAuto=!0;var Ct=Et;function Pt(e){var t=l.useRef(e);return C((function(){t.current=e})),l.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function _t(){for(var e=arguments.length,t=new Array(e),n=0;nt.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var o=nt(j(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(It(r)+o,"px");var a=j(r).querySelectorAll(".mui-fixed");[].forEach.call(a,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(It(e)+o,"px")}))}var i;if(r.parentNode instanceof DocumentFragment)i=j(r).body;else{var l=r.parentElement,u=S(r);i="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===u.getComputedStyle(l).overflowY?l:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Ft=function(){function e(){(0,Tt.Z)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return(0,Rt.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Nt(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);At(t,e.mount,e.modalRef,r,!0);var o=Zt(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=Zt(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Dt(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=Zt(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Nt(e.modalRef,t),At(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{var a=o.modals[o.modals.length-1];a.modalRef&&Nt(a.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),Lt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zt(e){var t=[],n=[];return Array.from(e.querySelectorAll(Lt)).forEach((function(e,r){var o=function(e){var t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Bt(){return!0}var Wt=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,i=e.disableRestoreFocus,u=void 0!==i&&i,s=e.getTabbable,c=void 0===s?zt:s,f=e.isEnabled,p=void 0===f?Bt:f,d=e.open,h=l.useRef(!1),v=l.useRef(null),m=l.useRef(null),g=l.useRef(null),y=l.useRef(null),b=l.useRef(!1),x=l.useRef(null),w=k(t.ref,x),O=l.useRef(null);l.useEffect((function(){d&&x.current&&(b.current=!r)}),[r,d]),l.useEffect((function(){if(d&&x.current){var e=j(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),b.current&&x.current.focus()),function(){u||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}}}),[d]),l.useEffect((function(){if(d&&x.current){var e=j(x.current),t=function(t){var n=x.current;if(null!==n)if(e.hasFocus()&&!a&&p()&&!h.current){if(!n.contains(e.activeElement)){if(t&&y.current!==t.target||e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!b.current)return;var r=[];if(e.activeElement!==v.current&&e.activeElement!==m.current||(r=c(x.current)),r.length>0){var o,i,l=Boolean((null==(o=O.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=O.current)?void 0:i.key)),u=r[0],s=r[r.length-1];"string"!==typeof u&&"string"!==typeof s&&(l?s.focus():u.focus())}else n.focus()}}else h.current=!1},n=function(t){O.current=t,!a&&p()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(h.current=!0,m.current&&m.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[r,a,u,p,d,c]);var S=function(e){null===g.current&&(g.current=e.relatedTarget),b.current=!0};return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)("div",{tabIndex:d?0:-1,onFocus:S,ref:v,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:w,onFocus:function(e){null===g.current&&(g.current=e.relatedTarget),b.current=!0,y.current=e.target;var n=t.props.onFocus;n&&n(e)}}),(0,P.jsx)("div",{tabIndex:d?0:-1,onFocus:S,ref:m,"data-testid":"sentinelEnd"})]})};function Ht(e){return(0,K.Z)("MuiModal",e)}(0,X.Z)("MuiModal",["root","hidden","backdrop"]);function Ut(e,t,n){return void 0===e||I(e)?t:(0,s.Z)({},t,{ownerState:(0,s.Z)({},t.ownerState,n)})}function qt(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"===typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}function Vt(e){var t=e.getSlotProps,n=e.additionalProps,r=e.externalSlotProps,o=e.externalForwardedProps,a=e.className;if(!t){var i=(0,f.Z)(null==o?void 0:o.className,null==r?void 0:r.className,a,null==n?void 0:n.className),l=(0,s.Z)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),u=(0,s.Z)({},n,o,r);return i.length>0&&(u.className=i),Object.keys(l).length>0&&(u.style=l),{props:u,internalRef:void 0}}var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}((0,s.Z)({},o,r)),p=qt(r),d=qt(o),h=t(c),v=(0,f.Z)(null==h?void 0:h.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),m=(0,s.Z)({},null==h?void 0:h.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),g=(0,s.Z)({},h,n,d,p);return v.length>0&&(g.className=v),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:h.ref}}function $t(e,t){return"function"===typeof e?e(t):e}var Gt=["elementType","externalSlotProps","ownerState"];function Yt(e){var t,n=e.elementType,r=e.externalSlotProps,o=e.ownerState,a=(0,c.Z)(e,Gt),i=$t(r,o),l=Vt((0,s.Z)({},a,{externalSlotProps:i})),u=l.props,f=k(l.internalRef,null==i?void 0:i.ref,null==(t=e.additionalProps)?void 0:t.ref);return Ut(n,(0,s.Z)({},u,{ref:f}),o)}var Xt={disableDefaultClasses:!1},Kt=l.createContext(Xt);function Qt(e){var t=l.useContext(Kt).disableDefaultClasses;return function(n){return t?"":e(n)}}var Jt=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];var en=new Ft,tn=l.forwardRef((function(e,t){var n,r,o=e.children,i=e.closeAfterTransition,u=void 0!==i&&i,f=e.container,d=e.disableAutoFocus,h=void 0!==d&&d,v=e.disableEnforceFocus,m=void 0!==v&&v,g=e.disableEscapeKeyDown,y=void 0!==g&&g,b=e.disablePortal,x=void 0!==b&&b,w=e.disableRestoreFocus,O=void 0!==w&&w,S=e.disableScrollLock,E=void 0!==S&&S,C=e.hideBackdrop,_=void 0!==C&&C,M=e.keepMounted,T=void 0!==M&&M,R=e.manager,N=void 0===R?en:R,I=e.onBackdropClick,A=e.onClose,Z=e.onKeyDown,D=e.open,F=e.onTransitionEnter,L=e.onTransitionExited,z=e.slotProps,B=void 0===z?{}:z,W=e.slots,H=void 0===W?{}:W,U=(0,c.Z)(e,Jt),q=N,V=l.useState(!D),$=(0,a.Z)(V,2),G=$[0],Y=$[1],X=l.useRef({}),K=l.useRef(null),Q=l.useRef(null),J=k(Q,t),ee=function(e){return!!e&&e.props.hasOwnProperty("in")}(o),te=null==(n=e["aria-hidden"])||n,ne=function(){return X.current.modalRef=Q.current,X.current.mountNode=K.current,X.current},re=function(){q.mount(ne(),{disableScrollLock:E}),Q.current&&(Q.current.scrollTop=0)},oe=Pt((function(){var e=function(e){return"function"===typeof e?e():e}(f)||j(K.current).body;q.add(ne(),e),Q.current&&re()})),ae=l.useCallback((function(){return q.isTopModal(ne())}),[q]),ie=Pt((function(e){K.current=e,e&&Q.current&&(D&&ae()?re():Nt(Q.current,te))})),le=l.useCallback((function(){q.remove(ne(),te)}),[q,te]);l.useEffect((function(){return function(){le()}}),[le]),l.useEffect((function(){D?oe():ee&&u||le()}),[D,le,ee,u,oe]);var ue=(0,s.Z)({},e,{closeAfterTransition:u,disableAutoFocus:h,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:O,disableScrollLock:E,exited:G,hideBackdrop:_,keepMounted:T}),se=function(e){var t=e.open,n=e.exited,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,p.Z)(r,Qt(Ht))}(ue),ce={};void 0===o.props.tabIndex&&(ce.tabIndex="-1"),ee&&(ce.onEnter=_t((function(){Y(!1),F&&F()}),o.props.onEnter),ce.onExited=_t((function(){Y(!0),L&&L(),u&&le()}),o.props.onExited));var fe=null!=(r=H.root)?r:"div",pe=Yt({elementType:fe,externalSlotProps:B.root,externalForwardedProps:U,additionalProps:{ref:J,role:"presentation",onKeyDown:function(e){Z&&Z(e),"Escape"===e.key&&ae()&&(y||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))}},className:se.root,ownerState:ue}),de=H.backdrop,he=Yt({elementType:de,externalSlotProps:B.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&(I&&I(e),A&&A(e,"backdropClick"))},open:D},className:se.backdrop,ownerState:ue});return T||D||ee&&!G?(0,P.jsx)(Mt,{ref:ie,container:f,disablePortal:x,children:(0,P.jsxs)(fe,(0,s.Z)({},pe,{children:[!_&&de?(0,P.jsx)(de,(0,s.Z)({},he)):null,(0,P.jsx)(Wt,{disableEnforceFocus:m,disableAutoFocus:h,disableRestoreFocus:O,isEnabled:ae,open:D,children:l.cloneElement(o,ce)})]}))}):null})),nn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],rn={entering:{opacity:1},entered:{opacity:1}},on=l.forwardRef((function(e,t){var n=bt(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},o=e.addEndListener,a=e.appear,i=void 0===a||a,u=e.children,f=e.easing,p=e.in,d=e.onEnter,h=e.onEntered,v=e.onEntering,m=e.onExit,g=e.onExited,y=e.onExiting,b=e.style,x=e.timeout,w=void 0===x?r:x,O=e.TransitionComponent,k=void 0===O?yt.ZP:O,j=(0,c.Z)(e,nn),S=l.useRef(null),E=L(S,u.ref,t),C=function(e){return function(t){if(e){var n=S.current;void 0===t?e(n):e(n,t)}}},_=C(v),M=C((function(e,t){xt(e);var r=wt({style:b,timeout:w,easing:f},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),T=C(h),R=C(y),N=C((function(e){var t=wt({style:b,timeout:w,easing:f},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),m&&m(e)})),I=C(g);return(0,P.jsx)(k,(0,s.Z)({appear:i,in:p,nodeRef:S,onEnter:M,onEntered:T,onEntering:_,onExit:N,onExited:I,onExiting:R,addEndListener:function(e){o&&o(S.current,e)},timeout:w},j,{children:function(e,t){return l.cloneElement(u,(0,s.Z)({style:(0,s.Z)({opacity:0,visibility:"exited"!==e||p?void 0:"hidden"},rn[e],b,u.props.style),ref:E},t))}}))}));function an(e){return(0,K.Z)("MuiBackdrop",e)}(0,X.Z)("MuiBackdrop",["root","invisible"]);var ln=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],un=(0,m.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return(0,s.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),sn=l.forwardRef((function(e,t){var n,r,o,a=(0,g.Z)({props:e,name:"MuiBackdrop"}),i=a.children,l=a.className,u=a.component,d=void 0===u?"div":u,h=a.components,v=void 0===h?{}:h,m=a.componentsProps,y=void 0===m?{}:m,b=a.invisible,x=void 0!==b&&b,w=a.open,O=a.slotProps,k=void 0===O?{}:O,j=a.slots,S=void 0===j?{}:j,E=a.TransitionComponent,C=void 0===E?on:E,_=a.transitionDuration,M=(0,c.Z)(a,ln),T=(0,s.Z)({},a,{component:d,invisible:x}),R=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return(0,p.Z)(n,an,t)}(T),N=null!=(n=k.root)?n:y.root;return(0,P.jsx)(C,(0,s.Z)({in:w,timeout:_},M,{children:(0,P.jsx)(un,(0,s.Z)({"aria-hidden":!0},N,{as:null!=(r=null!=(o=S.root)?o:v.Root)?r:d,className:(0,f.Z)(R.root,l,null==N?void 0:N.className),ownerState:(0,s.Z)({},T,null==N?void 0:N.ownerState),classes:R,ref:t,children:i}))}))})),cn=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],fn=(0,m.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),pn=(0,m.ZP)(sn,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),dn=l.forwardRef((function(e,t){var n,r,o,i,u,p,d=(0,g.Z)({name:"MuiModal",props:e}),h=d.BackdropComponent,v=void 0===h?pn:h,m=d.BackdropProps,y=d.classes,b=d.className,x=d.closeAfterTransition,w=void 0!==x&&x,O=d.children,k=d.container,j=d.component,S=d.components,E=void 0===S?{}:S,C=d.componentsProps,_=void 0===C?{}:C,M=d.disableAutoFocus,T=void 0!==M&&M,R=d.disableEnforceFocus,N=void 0!==R&&R,A=d.disableEscapeKeyDown,Z=void 0!==A&&A,D=d.disablePortal,F=void 0!==D&&D,L=d.disableRestoreFocus,z=void 0!==L&&L,B=d.disableScrollLock,W=void 0!==B&&B,H=d.hideBackdrop,U=void 0!==H&&H,q=d.keepMounted,V=void 0!==q&&q,$=d.onBackdropClick,G=d.onClose,Y=d.open,X=d.slotProps,K=d.slots,Q=d.theme,J=(0,c.Z)(d,cn),ee=l.useState(!0),te=(0,a.Z)(ee,2),ne=te[0],re=te[1],oe={container:k,closeAfterTransition:w,disableAutoFocus:T,disableEnforceFocus:N,disableEscapeKeyDown:Z,disablePortal:F,disableRestoreFocus:z,disableScrollLock:W,hideBackdrop:U,keepMounted:V,onBackdropClick:$,onClose:G,open:Y},ae=(0,s.Z)({},d,oe,{exited:ne}),ie=null!=(n=null!=(r=null==K?void 0:K.root)?r:E.Root)?n:fn,le=null!=(o=null!=(i=null==K?void 0:K.backdrop)?i:E.Backdrop)?o:v,ue=null!=(u=null==X?void 0:X.root)?u:_.root,se=null!=(p=null==X?void 0:X.backdrop)?p:_.backdrop;return(0,P.jsx)(tn,(0,s.Z)({slots:{root:ie,backdrop:le},slotProps:{root:function(){return(0,s.Z)({},$t(ue,ae),!I(ie)&&{as:j,theme:Q},{className:(0,f.Z)(b,null==ue?void 0:ue.className,null==y?void 0:y.root,!ae.open&&ae.exited&&(null==y?void 0:y.hidden))})},backdrop:function(){return(0,s.Z)({},m,$t(se,ae),{className:(0,f.Z)(null==se?void 0:se.className,null==y?void 0:y.backdrop)})}},onTransitionEnter:function(){return re(!1)},onTransitionExited:function(){return re(!0)},ref:t},J,oe,{children:O}))}));function hn(e){return(0,K.Z)("MuiPopover",e)}(0,X.Z)("MuiPopover",["root","paper"]);var vn=["onEntering"],mn=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function gn(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yn(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bn(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function xn(e){return"function"===typeof e?e():e}var wn=(0,m.ZP)(dn,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),On=(0,m.ZP)(vt,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),kn=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiPopover"}),r=n.action,o=n.anchorEl,i=n.anchorOrigin,u=void 0===i?{vertical:"top",horizontal:"left"}:i,d=n.anchorPosition,h=n.anchorReference,v=void 0===h?"anchorEl":h,m=n.children,y=n.className,b=n.container,x=n.elevation,w=void 0===x?8:x,O=n.marginThreshold,k=void 0===O?16:O,j=n.open,S=n.PaperProps,E=void 0===S?{}:S,C=n.transformOrigin,_=void 0===C?{vertical:"top",horizontal:"left"}:C,M=n.TransitionComponent,T=void 0===M?Ct:M,R=n.transitionDuration,N=void 0===R?"auto":R,I=n.TransitionProps,A=(void 0===I?{}:I).onEntering,Z=(0,c.Z)(n.TransitionProps,vn),D=(0,c.Z)(n,mn),F=l.useRef(),z=L(F,E.ref),B=(0,s.Z)({},n,{anchorOrigin:u,anchorReference:v,elevation:w,marginThreshold:k,PaperProps:E,transformOrigin:_,TransitionComponent:T,transitionDuration:N,TransitionProps:Z}),W=function(e){var t=e.classes;return(0,p.Z)({root:["root"],paper:["paper"]},hn,t)}(B),H=l.useCallback((function(){if("anchorPosition"===v)return d;var e=xn(o),t=(e&&1===e.nodeType?e:Xe(F.current).body).getBoundingClientRect();return{top:t.top+gn(t,u.vertical),left:t.left+yn(t,u.horizontal)}}),[o,u.horizontal,u.vertical,d,v]),U=l.useCallback((function(e){return{vertical:gn(e,_.vertical),horizontal:yn(e,_.horizontal)}}),[_.horizontal,_.vertical]),q=l.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=U(t);if("none"===v)return{top:null,left:null,transformOrigin:bn(n)};var r=H(),a=r.top-n.vertical,i=r.left-n.horizontal,l=a+t.height,u=i+t.width,s=gt(xn(o)),c=s.innerHeight-k,f=s.innerWidth-k;if(ac){var d=l-c;a-=d,n.vertical+=d}if(if){var m=u-f;i-=m,n.horizontal+=m}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:bn(n)}}),[o,v,H,U,k]),V=l.useState(j),$=(0,a.Z)(V,2),G=$[0],Y=$[1],X=l.useCallback((function(){var e=F.current;if(e){var t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,Y(!0)}}),[q]);l.useEffect((function(){j&&X()})),l.useImperativeHandle(r,(function(){return j?{updatePosition:function(){X()}}:null}),[j,X]),l.useEffect((function(){if(j){var e=mt((function(){X()})),t=gt(o);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[o,j,X]);var K=N;"auto"!==N||T.muiSupportAuto||(K=void 0);var Q=b||(o?Xe(xn(o)).body:void 0);return(0,P.jsx)(wn,(0,s.Z)({BackdropProps:{invisible:!0},className:(0,f.Z)(W.root,y),container:Q,open:j,ref:t,ownerState:B},D,{children:(0,P.jsx)(T,(0,s.Z)({appear:!0,in:j,onEntering:function(e,t){A&&A(e,t),X()},onExited:function(){Y(!1)},timeout:K},Z,{children:(0,P.jsx)(On,(0,s.Z)({elevation:w},E,{ref:z,className:(0,f.Z)(W.paper,E.className)},G?void 0:{style:(0,s.Z)({},E.style,{opacity:0})},{ownerState:B,children:m}))}))}))}));function jn(e){return(0,K.Z)("MuiMenu",e)}(0,X.Z)("MuiMenu",["root","paper","list"]);var Sn=["onEntering"],En=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Cn={vertical:"top",horizontal:"right"},Pn={vertical:"top",horizontal:"left"},_n=(0,m.ZP)(kn,{shouldForwardProp:function(e){return(0,m.FO)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Mn=(0,m.ZP)(vt,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Tn=(0,m.ZP)(st,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),Rn=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiMenu"}),r=n.autoFocus,o=void 0===r||r,a=n.children,i=n.disableAutoFocusItem,u=void 0!==i&&i,d=n.MenuListProps,h=void 0===d?{}:d,v=n.onClose,m=n.open,y=n.PaperProps,b=void 0===y?{}:y,x=n.PopoverClasses,w=n.transitionDuration,O=void 0===w?"auto":w,k=n.TransitionProps,j=(void 0===k?{}:k).onEntering,S=n.variant,E=void 0===S?"selectedMenu":S,C=(0,c.Z)(n.TransitionProps,Sn),_=(0,c.Z)(n,En),M=bt(),T="rtl"===M.direction,R=(0,s.Z)({},n,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:h,onEntering:j,PaperProps:b,transitionDuration:O,TransitionProps:C,variant:E}),N=function(e){var t=e.classes;return(0,p.Z)({root:["root"],paper:["paper"],list:["list"]},jn,t)}(R),I=o&&!u&&m,A=l.useRef(null),Z=-1;return l.Children.map(a,(function(e,t){l.isValidElement(e)&&(e.props.disabled||("selectedMenu"===E&&e.props.selected||-1===Z)&&(Z=t))})),(0,P.jsx)(_n,(0,s.Z)({onClose:v,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?Cn:Pn,PaperProps:(0,s.Z)({as:Mn},b,{classes:(0,s.Z)({},b.classes,{root:N.paper})}),className:N.root,open:m,ref:t,transitionDuration:O,TransitionProps:(0,s.Z)({onEntering:function(e,t){A.current&&A.current.adjustStyleForScrollbar(e,M),j&&j(e,t)}},C),ownerState:R},_,{classes:x,children:(0,P.jsx)(Tn,(0,s.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:A,autoFocus:o&&(-1===Z||u),autoFocusItem:I,variant:E},h,{className:(0,f.Z)(N.list,h.className),children:a}))}))}));function Nn(e){return(0,K.Z)("MuiNativeSelect",e)}var In=(0,X.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),An=["className","disabled","error","IconComponent","inputRef","variant"],Zn=function(e){var t,n=e.ownerState,r=e.theme;return(0,s.Z)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,s.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"}},(0,y.Z)(t,"&.".concat(In.disabled),{cursor:"default"}),(0,y.Z)(t,"&[multiple]",{height:"auto"}),(0,y.Z)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:(r.vars||r).palette.background.paper}),(0,y.Z)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},Dn=(0,m.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:m.FO,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],n.error&&t.error,(0,y.Z)({},"&.".concat(In.multiple),t.multiple)]}})(Zn),Fn=function(e){var t=e.ownerState,n=e.theme;return(0,s.Z)((0,y.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active},"&.".concat(In.disabled),{color:(n.vars||n).palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},Ln=(0,m.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,F.Z)(n.variant))],n.open&&t.iconOpen]}})(Fn),zn=l.forwardRef((function(e,t){var n=e.className,r=e.disabled,o=e.error,a=e.IconComponent,i=e.inputRef,u=e.variant,d=void 0===u?"standard":u,h=(0,c.Z)(e,An),v=(0,s.Z)({},e,{disabled:r,variant:d,error:o}),m=function(e){var t=e.classes,n=e.variant,r=e.disabled,o=e.multiple,a=e.open,i={select:["select",n,r&&"disabled",o&&"multiple",e.error&&"error"],icon:["icon","icon".concat((0,F.Z)(n)),a&&"iconOpen",r&&"disabled"]};return(0,p.Z)(i,Nn,t)}(v);return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(Dn,(0,s.Z)({ownerState:v,className:(0,f.Z)(m.select,n),disabled:r,ref:i||t},h)),e.multiple?null:(0,P.jsx)(Ln,{as:a,ownerState:v,className:m.icon})]})}));function Bn(e){var t=e.controlled,n=e.default,r=(e.name,e.state,l.useRef(void 0!==t).current),o=l.useState(n),i=(0,a.Z)(o,2),u=i[0],s=i[1];return[r?t:u,l.useCallback((function(e){r||s(e)}),[])]}var Wn=Bn;function Hn(e){return(0,K.Z)("MuiSelect",e)}var Un,qn=(0,X.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Vn=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],$n=(0,m.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[(0,y.Z)({},"&.".concat(qn.select),t.select),(0,y.Z)({},"&.".concat(qn.select),t[n.variant]),(0,y.Z)({},"&.".concat(qn.error),t.error),(0,y.Z)({},"&.".concat(qn.multiple),t.multiple)]}})(Zn,(0,y.Z)({},"&.".concat(qn.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),Gn=(0,m.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat((0,F.Z)(n.variant))],n.open&&t.iconOpen]}})(Fn),Yn=(0,m.ZP)("input",{shouldForwardProp:function(e){return(0,m.Dz)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Xn(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Kn(e){return null==e||"string"===typeof e&&!e.trim()}var Qn=l.forwardRef((function(e,t){var n=e["aria-describedby"],r=e["aria-label"],o=e.autoFocus,i=e.autoWidth,u=e.children,d=e.className,h=e.defaultOpen,v=e.defaultValue,m=e.disabled,g=e.displayEmpty,y=e.error,b=void 0!==y&&y,w=e.IconComponent,O=e.inputRef,k=e.labelId,j=e.MenuProps,S=void 0===j?{}:j,E=e.multiple,C=e.name,_=e.onBlur,M=e.onChange,T=e.onClose,R=e.onFocus,N=e.onOpen,I=e.open,A=e.readOnly,Z=e.renderValue,D=e.SelectDisplayProps,z=void 0===D?{}:D,B=e.tabIndex,W=e.value,H=e.variant,U=void 0===H?"standard":H,q=(0,c.Z)(e,Vn),V=Wn({controlled:W,default:v,name:"Select"}),$=(0,a.Z)(V,2),G=$[0],X=$[1],K=Wn({controlled:I,default:h,name:"Select"}),Q=(0,a.Z)(K,2),J=Q[0],ee=Q[1],te=l.useRef(null),ne=l.useRef(null),re=l.useState(null),oe=(0,a.Z)(re,2),ae=oe[0],ie=oe[1],le=l.useRef(null!=I).current,ue=l.useState(),se=(0,a.Z)(ue,2),ce=se[0],fe=se[1],pe=L(t,O),de=l.useCallback((function(e){ne.current=e,e&&ie(e)}),[]),he=null==ae?void 0:ae.parentNode;l.useImperativeHandle(pe,(function(){return{focus:function(){ne.current.focus()},node:te.current,value:G}}),[G]),l.useEffect((function(){h&&J&&ae&&!le&&(fe(i?null:he.clientWidth),ne.current.focus())}),[ae,i]),l.useEffect((function(){o&&ne.current.focus()}),[o]),l.useEffect((function(){if(k){var e=Xe(ne.current).getElementById(k);if(e){var t=function(){getSelection().isCollapsed&&ne.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[k]);var ve,me,ge=function(e,t){e?N&&N(t):T&&T(t),le||(fe(i?null:he.clientWidth),ee(e))},ye=l.Children.toArray(u),be=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(E){n=Array.isArray(G)?G.slice():[];var r=G.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),G!==n&&(X(n),M)){var o=t.nativeEvent||t,a=new o.constructor(o.type,o);Object.defineProperty(a,"target",{writable:!0,value:{value:n,name:C}}),M(a,e)}E||ge(!1,t)}}},xe=null!==ae&&J;delete q["aria-invalid"];var we=[],Oe=!1;(Y({value:G})||g)&&(Z?ve=Z(G):Oe=!0);var ke=ye.map((function(e){if(!l.isValidElement(e))return null;var t;if(E){if(!Array.isArray(G))throw new Error((0,x.Z)(2));(t=G.some((function(t){return Xn(t,e.props.value)})))&&Oe&&we.push(e.props.children)}else(t=Xn(G,e.props.value))&&Oe&&(me=e.props.children);return t&&!0,l.cloneElement(e,{"aria-selected":t?"true":"false",onClick:be(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));Oe&&(ve=E?0===we.length?null:we.reduce((function(e,t,n){return e.push(t),n0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,o=void 0===r||r,a=e.limit,i=e.matchFrom,l=void 0===i?"any":i,u=e.stringify,s=e.trim,c=void 0!==s&&s;return function(e,t){var r=t.inputValue,i=t.getOptionLabel,s=c?r.trim():r;o&&(s=s.toLowerCase()),n&&(s=br(s));var f=s?e.filter((function(e){var t=(u||i)(e);return o&&(t=t.toLowerCase()),n&&(t=br(t)),"start"===l?0===t.indexOf(s):t.indexOf(s)>-1})):e;return"number"===typeof a?f.slice(0,a):f}}(),Or=function(e){var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function kr(e){var t,n=e.unstable_isActiveElementInListbox,r=void 0===n?Or:n,o=e.unstable_classNamePrefix,i=void 0===o?"Mui":o,u=e.autoComplete,c=void 0!==u&&u,f=e.autoHighlight,p=void 0!==f&&f,d=e.autoSelect,h=void 0!==d&&d,m=e.blurOnSelect,g=void 0!==m&&m,y=e.clearOnBlur,b=void 0===y?!e.freeSolo:y,x=e.clearOnEscape,w=void 0!==x&&x,k=e.componentName,j=void 0===k?"useAutocomplete":k,S=e.defaultValue,E=void 0===S?e.multiple?[]:null:S,C=e.disableClearable,P=void 0!==C&&C,_=e.disableCloseOnSelect,M=void 0!==_&&_,T=e.disabled,R=e.disabledItemsFocusable,N=void 0!==R&&R,I=e.disableListWrap,A=void 0!==I&&I,Z=e.filterOptions,D=void 0===Z?wr:Z,F=e.filterSelectedOptions,L=void 0!==F&&F,z=e.freeSolo,B=void 0!==z&&z,W=e.getOptionDisabled,H=e.getOptionLabel,U=void 0===H?function(e){var t;return null!=(t=e.label)?t:e}:H,q=e.groupBy,V=e.handleHomeEndKeys,$=void 0===V?!e.freeSolo:V,G=e.id,Y=e.includeInputInList,X=void 0!==Y&&Y,K=e.inputValue,Q=e.isOptionEqualToValue,J=void 0===Q?function(e,t){return e===t}:Q,ee=e.multiple,te=void 0!==ee&&ee,ne=e.onChange,re=e.onClose,oe=e.onHighlightChange,ae=e.onInputChange,ie=e.onOpen,le=e.open,ue=e.openOnFocus,se=void 0!==ue&&ue,ce=e.options,fe=e.readOnly,pe=void 0!==fe&&fe,de=e.selectOnFocus,he=void 0===de?!e.freeSolo:de,ve=e.value,me=v(G);t=function(e){var t=U(e);return"string"!==typeof t?String(t):t};var ge=l.useRef(!1),ye=l.useRef(!0),be=l.useRef(null),xe=l.useRef(null),we=l.useState(null),Oe=(0,a.Z)(we,2),ke=Oe[0],je=Oe[1],Se=l.useState(-1),Ee=(0,a.Z)(Se,2),Ce=Ee[0],Pe=Ee[1],_e=p?0:-1,Me=l.useRef(_e),Te=Bn({controlled:ve,default:E,name:j}),Re=(0,a.Z)(Te,2),Ne=Re[0],Ie=Re[1],Ae=Bn({controlled:K,default:"",name:j,state:"inputValue"}),Ze=(0,a.Z)(Ae,2),De=Ze[0],Fe=Ze[1],Le=l.useState(!1),ze=(0,a.Z)(Le,2),Be=ze[0],We=ze[1],He=l.useCallback((function(e,n){if((te?Ne.length0&&!pe,rt=Pt((function(e){-1===e?be.current.focus():ke.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));l.useEffect((function(){te&&Ce>Ne.length-1&&(Pe(-1),rt(-1))}),[Ne,te,Ce,rt]);var ot=Pt((function(e){var t=e.event,n=e.index,r=e.reason,o=void 0===r?"auto":r;if(Me.current=n,-1===n?be.current.removeAttribute("aria-activedescendant"):be.current.setAttribute("aria-activedescendant","".concat(me,"-option-").concat(n)),oe&&oe(t,-1===n?null:et[n],o),xe.current){var a=xe.current.querySelector('[role="option"].'.concat(i,"-focused"));a&&(a.classList.remove("".concat(i,"-focused")),a.classList.remove("".concat(i,"-focusVisible")));var l=xe.current.parentElement.querySelector('[role="listbox"]');if(l)if(-1!==n){var u=xe.current.querySelector('[data-option-index="'.concat(n,'"]'));if(u&&(u.classList.add("".concat(i,"-focused")),"keyboard"===o&&u.classList.add("".concat(i,"-focusVisible")),l.scrollHeight>l.clientHeight&&"mouse"!==o)){var s=u,c=l.clientHeight+l.scrollTop,f=s.offsetTop+s.offsetHeight;f>c?l.scrollTop=f-l.clientHeight:s.offsetTop-s.offsetHeight*(q?1.3:0)1?0:e:t>e?t===e+1&&X?-1:A||Math.abs(r)>1?e:0:t}(),a);if(ot({index:u,reason:l,event:n}),c&&"reset"!==r)if(-1===u)be.current.value=De;else{var s=t(et[u]);be.current.value=s,0===s.toLowerCase().indexOf(De.toLowerCase())&&De.length>0&&be.current.setSelectionRange(De.length,s.length)}}})),it=l.useCallback((function(){if(Je&&!function(){var e,n;if(-1!==Me.current&&tt.filteredOptions&&tt.filteredOptions.length!==et.length&&(te?Ne.length===tt.value.length&&tt.value.every((function(e,n){return t(Ne[n])===t(e)})):(e=tt.value,n=Ne,(e?t(e):"")===(n?t(n):"")))){var r=tt.filteredOptions[Me.current];if(r&&et.some((function(e){return t(e)===t(r)})))return!0}return!1}()){var e=te?Ne[0]:Ne;if(0!==et.length&&null!=e){if(xe.current)if(null==e)Me.current>=et.length-1?ot({index:et.length-1}):ot({index:Me.current});else{var n=et[Me.current];if(te&&n&&-1!==xr(Ne,(function(e){return J(n,e)})))return;var r=xr(et,(function(t){return J(t,e)}));-1===r?at({diff:"reset"}):ot({index:r})}}else at({diff:"reset"})}}),[et.length,!te&&Ne,L,at,ot,Je,De,te]),lt=Pt((function(e){O(xe,e),e&&it()}));l.useEffect((function(){it()}),[it]);var ut=function(e){Ve||($e(!0),Ke(!0),ie&&ie(e))},st=function(e,t){Ve&&($e(!1),re&&re(e,t))},ct=function(e,t,n,r){if(te){if(Ne.length===t.length&&Ne.every((function(e,n){return e===t[n]})))return}else if(Ne===t)return;ne&&ne(e,t,n,r),Ie(t)},ft=l.useRef(!1),pt=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",o=t;if(te){var a=xr(o=Array.isArray(Ne)?Ne.slice():[],(function(e){return J(t,e)}));-1===a?o.push(t):"freeSolo"!==n&&(o.splice(a,1),r="removeOption")}He(e,o),ct(e,o,r,{option:t}),M||e&&(e.ctrlKey||e.metaKey)||st(e,r),(!0===g||"touch"===g&&ft.current||"mouse"===g&&!ft.current)&&be.current.blur()};var dt=function(e,t){if(te){""===De&&st(e,"toggleInput");var n=Ce;-1===Ce?""===De&&"previous"===t&&(n=Ne.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ne.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ne.length||"previous"===t&&-1===n)return-1;var r=ke.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Pe(n),rt(n)}},ht=function(e){ge.current=!0,Fe(""),ae&&ae(e,"","clear"),ct(e,te?[]:null,"clear")},vt=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Ce&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Pe(-1),rt(-1)),229!==t.which))switch(t.key){case"Home":Je&&$&&(t.preventDefault(),at({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Je&&$&&(t.preventDefault(),at({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),at({diff:-5,direction:"previous",reason:"keyboard",event:t}),ut(t);break;case"PageDown":t.preventDefault(),at({diff:5,direction:"next",reason:"keyboard",event:t}),ut(t);break;case"ArrowDown":t.preventDefault(),at({diff:1,direction:"next",reason:"keyboard",event:t}),ut(t);break;case"ArrowUp":t.preventDefault(),at({diff:-1,direction:"previous",reason:"keyboard",event:t}),ut(t);break;case"ArrowLeft":dt(t,"previous");break;case"ArrowRight":dt(t,"next");break;case"Enter":if(-1!==Me.current&&Je){var n=et[Me.current],r=!!W&&W(n);if(t.preventDefault(),r)return;pt(t,n,"selectOption"),c&&be.current.setSelectionRange(be.current.value.length,be.current.value.length)}else B&&""!==De&&!1===Qe&&(te&&t.preventDefault(),pt(t,De,"createOption","freeSolo"));break;case"Escape":Je?(t.preventDefault(),t.stopPropagation(),st(t,"escape")):w&&(""!==De||te&&Ne.length>0)&&(t.preventDefault(),t.stopPropagation(),ht(t));break;case"Backspace":if(te&&!pe&&""===De&&Ne.length>0){var o=-1===Ce?Ne.length-1:Ce,a=Ne.slice();a.splice(o,1),ct(t,a,"removeOption",{option:Ne[o]})}break;case"Delete":if(te&&!pe&&""===De&&Ne.length>0&&-1!==Ce){var i=Ce,l=Ne.slice();l.splice(i,1),ct(t,l,"removeOption",{option:Ne[i]})}}}},mt=function(e){We(!0),se&&!ge.current&&ut(e)},gt=function(e){r(xe)?be.current.focus():(We(!1),ye.current=!0,ge.current=!1,h&&-1!==Me.current&&Je?pt(e,et[Me.current],"blur"):h&&B&&""!==De?pt(e,De,"blur","freeSolo"):b&&He(e,Ne),st(e,"blur"))},yt=function(e){var t=e.target.value;De!==t&&(Fe(t),Ke(!1),ae&&ae(e,t,"input")),""===t?P||te||ct(e,null,"clear"):ut(e)},bt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Me.current!==t&&ot({event:e,index:t,reason:"mouse"})},xt=function(e){ot({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ft.current=!0},wt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));pt(e,et[t],"selectOption"),ft.current=!1},Ot=function(e){return function(t){var n=Ne.slice();n.splice(e,1),ct(t,n,"removeOption",{option:Ne[e]})}},kt=function(e){Ve?st(e,"toggleInput"):ut(e)},jt=function(e){e.target.getAttribute("id")!==me&&e.preventDefault()},St=function(){be.current.focus(),he&&ye.current&&be.current.selectionEnd-be.current.selectionStart===0&&be.current.select(),ye.current=!1},Et=function(e){""!==De&&Ve||kt(e)},Ct=B&&De.length>0;Ct=Ct||(te?Ne.length>0:null!==Ne);var _t=et;if(q){new Map;_t=et.reduce((function(e,t,n){var r=q(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return T&&Be&>(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.Z)({"aria-owns":nt?"".concat(me,"-listbox"):null},e,{onKeyDown:vt(e),onMouseDown:jt,onClick:St})},getInputLabelProps:function(){return{id:"".concat(me,"-label"),htmlFor:me}},getInputProps:function(){return{id:me,value:De,onBlur:gt,onFocus:mt,onChange:yt,onMouseDown:Et,"aria-activedescendant":Je?"":null,"aria-autocomplete":c?"both":"list","aria-controls":nt?"".concat(me,"-listbox"):void 0,"aria-expanded":nt,autoComplete:"off",ref:be,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:T}},getClearProps:function(){return{tabIndex:-1,onClick:ht}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:kt}},getTagProps:function(e){var t=e.index;return(0,s.Z)({key:t,"data-tag-index":t,tabIndex:-1},!pe&&{onDelete:Ot(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(me,"-listbox"),"aria-labelledby":"".concat(me,"-label"),ref:lt,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,r=e.option,o=(te?Ne:[Ne]).some((function(e){return null!=e&&J(r,e)})),a=!!W&&W(r);return{key:t(r),tabIndex:-1,role:"option",id:"".concat(me,"-option-").concat(n),onMouseMove:bt,onClick:wt,onTouchStart:xt,"data-option-index":n,"aria-disabled":a,"aria-selected":o}},id:me,inputValue:De,value:Ne,dirty:Ct,expanded:Je&&ke,popupOpen:Je,focused:Be||-1!==Ce,anchorEl:ke,setAnchorEl:je,focusedTag:Ce,groupedOptions:_t}}var jr=n(26072);function Sr(e){return(0,K.Z)("MuiPopper",e)}(0,X.Z)("MuiPopper",["root"]);var Er=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Cr=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Pr(e){return"function"===typeof e?e():e}function _r(e){return void 0!==e.nodeType}var Mr={},Tr=l.forwardRef((function(e,t){var n,r=e.anchorEl,o=e.children,i=e.direction,u=e.disablePortal,f=e.modifiers,d=e.open,h=e.placement,v=e.popperOptions,m=e.popperRef,g=e.slotProps,y=void 0===g?{}:g,b=e.slots,x=void 0===b?{}:b,w=e.TransitionProps,O=(0,c.Z)(e,Er),j=l.useRef(null),S=k(j,t),E=l.useRef(null),_=k(E,m),M=l.useRef(_);C((function(){M.current=_}),[_]),l.useImperativeHandle(m,(function(){return E.current}),[]);var T=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,i),R=l.useState(T),N=(0,a.Z)(R,2),I=N[0],A=N[1],Z=l.useState(Pr(r)),D=(0,a.Z)(Z,2),F=D[0],L=D[1];l.useEffect((function(){E.current&&E.current.forceUpdate()})),l.useEffect((function(){r&&L(Pr(r))}),[r]),C((function(){if(F&&d){var e=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;A(t.placement)}}];null!=f&&(e=e.concat(f)),v&&null!=v.modifiers&&(e=e.concat(v.modifiers));var t=(0,jr.fi)(F,j.current,(0,s.Z)({placement:T},v,{modifiers:e}));return M.current(t),function(){t.destroy(),M.current(null)}}}),[F,u,f,d,v,T]);var z={placement:I};null!==w&&(z.TransitionProps=w);var B=(0,p.Z)({root:["root"]},Qt(Sr)),W=null!=(n=x.root)?n:"div",H=Yt({elementType:W,externalSlotProps:y.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:S},ownerState:e,className:B.root});return(0,P.jsx)(W,(0,s.Z)({},H,{children:"function"===typeof o?o(z):o}))})),Rr=l.forwardRef((function(e,t){var n,r=e.anchorEl,o=e.children,i=e.container,u=e.direction,f=void 0===u?"ltr":u,p=e.disablePortal,d=void 0!==p&&p,h=e.keepMounted,v=void 0!==h&&h,m=e.modifiers,g=e.open,y=e.placement,b=void 0===y?"bottom":y,x=e.popperOptions,w=void 0===x?Mr:x,O=e.popperRef,k=e.style,S=e.transition,E=void 0!==S&&S,C=e.slotProps,_=void 0===C?{}:C,M=e.slots,T=void 0===M?{}:M,R=(0,c.Z)(e,Cr),N=l.useState(!0),I=(0,a.Z)(N,2),A=I[0],Z=I[1];if(!v&&!g&&(!E||A))return null;if(i)n=i;else if(r){var D=Pr(r);n=D&&_r(D)?j(D).body:j(null).body}var F=g||!v||E&&!A?void 0:"none",L=E?{in:g,onEnter:function(){Z(!1)},onExited:function(){Z(!0)}}:void 0;return(0,P.jsx)(Mt,{disablePortal:d,container:n,children:(0,P.jsx)(Tr,(0,s.Z)({anchorEl:r,direction:f,disablePortal:d,modifiers:m,ref:t,open:E?!A:g,placement:b,popperOptions:w,popperRef:O,slotProps:_,slots:T},R,{style:(0,s.Z)({position:"fixed",top:0,left:0,display:F},k),TransitionProps:L,children:o}))})})),Nr=n(69120),Ir=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Ar=(0,m.ZP)(Rr,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Zr=l.forwardRef((function(e,t){var n,r=(0,Nr.Z)(),o=(0,g.Z)({props:e,name:"MuiPopper"}),a=o.anchorEl,i=o.component,l=o.components,u=o.componentsProps,f=o.container,p=o.disablePortal,d=o.keepMounted,h=o.modifiers,v=o.open,m=o.placement,y=o.popperOptions,b=o.popperRef,x=o.transition,w=o.slots,O=o.slotProps,k=(0,c.Z)(o,Ir),j=null!=(n=null==w?void 0:w.root)?n:null==l?void 0:l.Root,S=(0,s.Z)({anchorEl:a,container:f,disablePortal:p,keepMounted:d,modifiers:h,open:v,placement:m,popperOptions:y,popperRef:b,transition:x},k);return(0,P.jsx)(Ar,(0,s.Z)({as:i,direction:null==r?void 0:r.direction,slots:{root:j},slotProps:null!=O?O:u},S,{ref:t}))}));function Dr(e){return(0,K.Z)("MuiListSubheader",e)}(0,X.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var Fr=["className","color","component","disableGutters","disableSticky","inset"],Lr=(0,m.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,F.Z)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),zr=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiListSubheader"}),r=n.className,o=n.color,a=void 0===o?"default":o,i=n.component,l=void 0===i?"li":i,u=n.disableGutters,d=void 0!==u&&u,h=n.disableSticky,v=void 0!==h&&h,m=n.inset,y=void 0!==m&&m,b=(0,c.Z)(n,Fr),x=(0,s.Z)({},n,{color:a,component:l,disableGutters:d,disableSticky:v,inset:y}),w=function(e){var t=e.classes,n=e.color,r=e.disableGutters,o=e.inset,a=e.disableSticky,i={root:["root","default"!==n&&"color".concat((0,F.Z)(n)),!r&&"gutters",o&&"inset",!a&&"sticky"]};return(0,p.Z)(i,Dr,t)}(x);return(0,P.jsx)(Lr,(0,s.Z)({as:l,className:(0,f.Z)(w.root,r),ref:t,ownerState:x},b))}));zr.muiSkipListHighlight=!0;var Br,Wr=zr,Hr=Pt,Ur=!0,qr=!1,Vr={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $r(e){e.metaKey||e.altKey||e.ctrlKey||(Ur=!0)}function Gr(){Ur=!1}function Yr(){"hidden"===this.visibilityState&&qr&&(Ur=!0)}function Xr(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return Ur||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Vr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var Kr=function(){var e=l.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",$r,!0),t.addEventListener("mousedown",Gr,!0),t.addEventListener("pointerdown",Gr,!0),t.addEventListener("touchstart",Gr,!0),t.addEventListener("visibilitychange",Yr,!0))}),[]),t=l.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Xr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(qr=!0,window.clearTimeout(Br),Br=window.setTimeout((function(){qr=!1}),100),t.current=!1,!0)},ref:e}},Qr=n(30168),Jr=n(75660);var eo=function(e){var t=e.className,n=e.classes,r=e.pulsate,o=void 0!==r&&r,i=e.rippleX,u=e.rippleY,s=e.rippleSize,c=e.in,p=e.onExited,d=e.timeout,h=l.useState(!1),v=(0,a.Z)(h,2),m=v[0],g=v[1],y=(0,f.Z)(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),b={width:s,height:s,top:-s/2+u,left:-s/2+i},x=(0,f.Z)(n.child,m&&n.childLeaving,o&&n.childPulsate);return c||m||g(!0),l.useEffect((function(){if(!c&&null!=p){var e=setTimeout(p,d);return function(){clearTimeout(e)}}}),[p,c,d]),(0,P.jsx)("span",{className:y,style:b,children:(0,P.jsx)("span",{className:x})})};var to,no,ro,oo,ao,io,lo,uo,so=(0,X.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),co=["center","classes","className"],fo=(0,B.F4)(ao||(ao=to||(to=(0,Qr.Z)(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),po=(0,B.F4)(io||(io=no||(no=(0,Qr.Z)(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),ho=(0,B.F4)(lo||(lo=ro||(ro=(0,Qr.Z)(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),vo=(0,m.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),mo=(0,m.ZP)(eo,{name:"MuiTouchRipple",slot:"Ripple"})(uo||(uo=oo||(oo=(0,Qr.Z)(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),so.rippleVisible,fo,550,(function(e){return e.theme.transitions.easing.easeInOut}),so.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),so.child,so.childLeaving,po,550,(function(e){return e.theme.transitions.easing.easeInOut}),so.childPulsate,ho,(function(e){return e.theme.transitions.easing.easeInOut})),go=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiTouchRipple"}),r=n.center,i=void 0!==r&&r,u=n.classes,p=void 0===u?{}:u,d=n.className,h=(0,c.Z)(n,co),v=l.useState([]),m=(0,a.Z)(v,2),y=m[0],b=m[1],x=l.useRef(0),w=l.useRef(null);l.useEffect((function(){w.current&&(w.current(),w.current=null)}),[y]);var O=l.useRef(!1),k=l.useRef(null),j=l.useRef(null),S=l.useRef(null);l.useEffect((function(){return function(){clearTimeout(k.current)}}),[]);var E=l.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,a=e.rippleSize,i=e.cb;b((function(e){return[].concat((0,o.Z)(e),[(0,P.jsx)(mo,{classes:{ripple:(0,f.Z)(p.ripple,so.ripple),rippleVisible:(0,f.Z)(p.rippleVisible,so.rippleVisible),ripplePulsate:(0,f.Z)(p.ripplePulsate,so.ripplePulsate),child:(0,f.Z)(p.child,so.child),childLeaving:(0,f.Z)(p.childLeaving,so.childLeaving),childPulsate:(0,f.Z)(p.childPulsate,so.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},x.current)])})),x.current+=1,w.current=i}),[p]),C=l.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=t.pulsate,o=void 0!==r&&r,a=t.center,l=void 0===a?i||t.pulsate:a,u=t.fakeElement,s=void 0!==u&&u;if("mousedown"===(null==e?void 0:e.type)&&O.current)O.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(O.current=!0);var c,f,p,d=s?null:S.current,h=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,m=v.clientX,g=v.clientY;c=Math.round(m-h.left),f=Math.round(g-h.top)}if(l)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(p+=1);else{var y=2*Math.max(Math.abs((d?d.clientWidth:0)-c),c)+2,b=2*Math.max(Math.abs((d?d.clientHeight:0)-f),f)+2;p=Math.sqrt(Math.pow(y,2)+Math.pow(b,2))}null!=e&&e.touches?null===j.current&&(j.current=function(){E({pulsate:o,rippleX:c,rippleY:f,rippleSize:p,cb:n})},k.current=setTimeout((function(){j.current&&(j.current(),j.current=null)}),80)):E({pulsate:o,rippleX:c,rippleY:f,rippleSize:p,cb:n})}}),[i,E]),_=l.useCallback((function(){C({},{pulsate:!0})}),[C]),M=l.useCallback((function(e,t){if(clearTimeout(k.current),"touchend"===(null==e?void 0:e.type)&&j.current)return j.current(),j.current=null,void(k.current=setTimeout((function(){M(e,t)})));j.current=null,b((function(e){return e.length>0?e.slice(1):e})),w.current=t}),[]);return l.useImperativeHandle(t,(function(){return{pulsate:_,start:C,stop:M}}),[_,C,M]),(0,P.jsx)(vo,(0,s.Z)({className:(0,f.Z)(so.root,p.root,d),ref:S},h,{children:(0,P.jsx)(Jr.Z,{component:null,exit:!0,children:y})}))})),yo=go;function bo(e){return(0,K.Z)("MuiButtonBase",e)}var xo,wo=(0,X.Z)("MuiButtonBase",["root","disabled","focusVisible"]),Oo=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ko=(0,m.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})((xo={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},(0,y.Z)(xo,"&.".concat(wo.disabled),{pointerEvents:"none",cursor:"default"}),(0,y.Z)(xo,"@media print",{colorAdjust:"exact"}),xo)),jo=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiButtonBase"}),r=n.action,o=n.centerRipple,i=void 0!==o&&o,u=n.children,d=n.className,h=n.component,v=void 0===h?"button":h,m=n.disabled,y=void 0!==m&&m,b=n.disableRipple,x=void 0!==b&&b,w=n.disableTouchRipple,O=void 0!==w&&w,k=n.focusRipple,j=void 0!==k&&k,S=n.LinkComponent,E=void 0===S?"a":S,C=n.onBlur,_=n.onClick,M=n.onContextMenu,T=n.onDragLeave,R=n.onFocus,N=n.onFocusVisible,I=n.onKeyDown,A=n.onKeyUp,Z=n.onMouseDown,D=n.onMouseLeave,F=n.onMouseUp,z=n.onTouchEnd,B=n.onTouchMove,W=n.onTouchStart,H=n.tabIndex,U=void 0===H?0:H,q=n.TouchRippleProps,V=n.touchRippleRef,$=n.type,G=(0,c.Z)(n,Oo),Y=l.useRef(null),X=l.useRef(null),K=L(X,V),Q=Kr(),J=Q.isFocusVisibleRef,ee=Q.onFocus,te=Q.onBlur,ne=Q.ref,re=l.useState(!1),oe=(0,a.Z)(re,2),ae=oe[0],ie=oe[1];y&&ae&&ie(!1),l.useImperativeHandle(r,(function(){return{focusVisible:function(){ie(!0),Y.current.focus()}}}),[]);var le=l.useState(!1),ue=(0,a.Z)(le,2),se=ue[0],ce=ue[1];l.useEffect((function(){ce(!0)}),[]);var fe=se&&!x&&!y;function pe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return Hr((function(r){return t&&t(r),!n&&X.current&&X.current[e](r),!0}))}l.useEffect((function(){ae&&j&&!x&&se&&X.current.pulsate()}),[x,j,ae,se]);var de=pe("start",Z),he=pe("stop",M),ve=pe("stop",T),me=pe("stop",F),ge=pe("stop",(function(e){ae&&e.preventDefault(),D&&D(e)})),ye=pe("start",W),be=pe("stop",z),xe=pe("stop",B),we=pe("stop",(function(e){te(e),!1===J.current&&ie(!1),C&&C(e)}),!1),Oe=Hr((function(e){Y.current||(Y.current=e.currentTarget),ee(e),!0===J.current&&(ie(!0),N&&N(e)),R&&R(e)})),ke=function(){var e=Y.current;return v&&"button"!==v&&!("A"===e.tagName&&e.href)},je=l.useRef(!1),Se=Hr((function(e){j&&!je.current&&ae&&X.current&&" "===e.key&&(je.current=!0,X.current.stop(e,(function(){X.current.start(e)}))),e.target===e.currentTarget&&ke()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&ke()&&"Enter"===e.key&&!y&&(e.preventDefault(),_&&_(e))})),Ee=Hr((function(e){j&&" "===e.key&&X.current&&ae&&!e.defaultPrevented&&(je.current=!1,X.current.stop(e,(function(){X.current.pulsate(e)}))),A&&A(e),_&&e.target===e.currentTarget&&ke()&&" "===e.key&&!e.defaultPrevented&&_(e)})),Ce=v;"button"===Ce&&(G.href||G.to)&&(Ce=E);var Pe={};"button"===Ce?(Pe.type=void 0===$?"button":$,Pe.disabled=y):(G.href||G.to||(Pe.role="button"),y&&(Pe["aria-disabled"]=y));var _e=L(t,ne,Y);var Me=(0,s.Z)({},n,{centerRipple:i,component:v,disabled:y,disableRipple:x,disableTouchRipple:O,focusRipple:j,tabIndex:U,focusVisible:ae}),Te=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,o=e.classes,a={root:["root",t&&"disabled",n&&"focusVisible"]},i=(0,p.Z)(a,bo,o);return n&&r&&(i.root+=" ".concat(r)),i}(Me);return(0,P.jsxs)(ko,(0,s.Z)({as:Ce,className:(0,f.Z)(Te.root,d),ownerState:Me,onBlur:we,onClick:_,onContextMenu:he,onFocus:Oe,onKeyDown:Se,onKeyUp:Ee,onMouseDown:de,onMouseLeave:ge,onMouseUp:me,onDragLeave:ve,onTouchEnd:be,onTouchMove:xe,onTouchStart:ye,ref:_e,tabIndex:y?-1:U,type:$},Pe,G,{children:[u,fe?(0,P.jsx)(yo,(0,s.Z)({ref:K,center:i},q)):null]}))})),So=jo;function Eo(e){return(0,K.Z)("MuiIconButton",e)}var Co=(0,X.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Po=["edge","children","className","color","disabled","disableFocusRipple","size"],_o=(0,m.ZP)(So,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat((0,F.Z)(n.color))],n.edge&&t["edge".concat((0,F.Z)(n.edge))],t["size".concat((0,F.Z)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,ct.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t,n=e.theme,r=e.ownerState,o=null==(t=(n.vars||n).palette)?void 0:t[r.color];return(0,s.Z)({},"inherit"===r.color&&{color:"inherit"},"inherit"!==r.color&&"default"!==r.color&&(0,s.Z)({color:null==o?void 0:o.main},!r.disableRipple&&{"&:hover":(0,s.Z)({},o&&{backgroundColor:n.vars?"rgba(".concat(o.mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,ct.Fq)(o.main,n.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===r.size&&{padding:5,fontSize:n.typography.pxToRem(18)},"large"===r.size&&{padding:12,fontSize:n.typography.pxToRem(28)},(0,y.Z)({},"&.".concat(Co.disabled),{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled}))})),Mo=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiIconButton"}),r=n.edge,o=void 0!==r&&r,a=n.children,i=n.className,l=n.color,u=void 0===l?"default":l,d=n.disabled,h=void 0!==d&&d,v=n.disableFocusRipple,m=void 0!==v&&v,y=n.size,b=void 0===y?"medium":y,x=(0,c.Z)(n,Po),w=(0,s.Z)({},n,{edge:o,color:u,disabled:h,disableFocusRipple:m,size:b}),O=function(e){var t=e.classes,n=e.disabled,r=e.color,o=e.edge,a=e.size,i={root:["root",n&&"disabled","default"!==r&&"color".concat((0,F.Z)(r)),o&&"edge".concat((0,F.Z)(o)),"size".concat((0,F.Z)(a))]};return(0,p.Z)(i,Eo,t)}(w);return(0,P.jsx)(_o,(0,s.Z)({className:(0,f.Z)(O.root,i),centerRipple:!0,focusRipple:!m,disabled:h,ref:t,ownerState:w},x,{children:a}))})),To=or((0,P.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ro(e){return(0,K.Z)("MuiChip",e)}var No=(0,X.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Io=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Ao=(0,m.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,o=n.iconColor,a=n.clickable,i=n.onDelete,l=n.size,u=n.variant;return[(0,y.Z)({},"& .".concat(No.avatar),t.avatar),(0,y.Z)({},"& .".concat(No.avatar),t["avatar".concat((0,F.Z)(l))]),(0,y.Z)({},"& .".concat(No.avatar),t["avatarColor".concat((0,F.Z)(r))]),(0,y.Z)({},"& .".concat(No.icon),t.icon),(0,y.Z)({},"& .".concat(No.icon),t["icon".concat((0,F.Z)(l))]),(0,y.Z)({},"& .".concat(No.icon),t["iconColor".concat((0,F.Z)(o))]),(0,y.Z)({},"& .".concat(No.deleteIcon),t.deleteIcon),(0,y.Z)({},"& .".concat(No.deleteIcon),t["deleteIcon".concat((0,F.Z)(l))]),(0,y.Z)({},"& .".concat(No.deleteIcon),t["deleteIconColor".concat((0,F.Z)(r))]),(0,y.Z)({},"& .".concat(No.deleteIcon),t["deleteIcon".concat((0,F.Z)(u),"Color").concat((0,F.Z)(r))]),t.root,t["size".concat((0,F.Z)(l))],t["color".concat((0,F.Z)(r))],a&&t.clickable,a&&"default"!==r&&t["clickableColor".concat((0,F.Z)(r),")")],i&&t.deletable,i&&"default"!==r&&t["deletableColor".concat((0,F.Z)(r))],t[u],t["".concat(u).concat((0,F.Z)(r))]]}})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode?n.palette.grey[700]:n.palette.grey[300];return(0,s.Z)((t={maxWidth:"100%",fontFamily:n.typography.fontFamily,fontSize:n.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(n.vars||n).palette.text.primary,backgroundColor:(n.vars||n).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:n.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},(0,y.Z)(t,"&.".concat(No.disabled),{opacity:(n.vars||n).palette.action.disabledOpacity,pointerEvents:"none"}),(0,y.Z)(t,"& .".concat(No.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:n.vars?n.vars.palette.Chip.defaultAvatarColor:o,fontSize:n.typography.pxToRem(12)}),(0,y.Z)(t,"& .".concat(No.avatarColorPrimary),{color:(n.vars||n).palette.primary.contrastText,backgroundColor:(n.vars||n).palette.primary.dark}),(0,y.Z)(t,"& .".concat(No.avatarColorSecondary),{color:(n.vars||n).palette.secondary.contrastText,backgroundColor:(n.vars||n).palette.secondary.dark}),(0,y.Z)(t,"& .".concat(No.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:n.typography.pxToRem(10)}),(0,y.Z)(t,"& .".concat(No.icon),(0,s.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,s.Z)({color:n.vars?n.vars.palette.Chip.defaultIconColor:o},"default"!==r.color&&{color:"inherit"}))),(0,y.Z)(t,"& .".concat(No.deleteIcon),(0,s.Z)({WebkitTapHighlightColor:"transparent",color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.26)"):(0,ct.Fq)(n.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / 0.4)"):(0,ct.Fq)(n.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:n.vars?"rgba(".concat(n.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,ct.Fq)(n.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(n.vars||n).palette[r.color].contrastText}})),t),"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(n.vars||n).palette[r.color].main,color:(n.vars||n).palette[r.color].contrastText},r.onDelete&&(0,y.Z)({},"&.".concat(No.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,ct.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),r.onDelete&&"default"!==r.color&&(0,y.Z)({},"&.".concat(No.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n=e.theme,r=e.ownerState;return(0,s.Z)({},r.clickable&&(t={userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):(0,ct.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity)}},(0,y.Z)(t,"&.".concat(No.focusVisible),{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.selectedChannel," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.focusOpacity,"))"):(0,ct.Fq)(n.palette.action.selected,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)}),(0,y.Z)(t,"&:active",{boxShadow:(n.vars||n).shadows[1]}),t),r.clickable&&"default"!==r.color&&(0,y.Z)({},"&:hover, &.".concat(No.focusVisible),{backgroundColor:(n.vars||n).palette[r.color].dark}))}),(function(e){var t,n,r=e.theme,o=e.ownerState;return(0,s.Z)({},"outlined"===o.variant&&(t={backgroundColor:"transparent",border:r.vars?"1px solid ".concat(r.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[700])},(0,y.Z)(t,"&.".concat(No.clickable,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,y.Z)(t,"&.".concat(No.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,y.Z)(t,"& .".concat(No.avatar),{marginLeft:4}),(0,y.Z)(t,"& .".concat(No.avatarSmall),{marginLeft:2}),(0,y.Z)(t,"& .".concat(No.icon),{marginLeft:4}),(0,y.Z)(t,"& .".concat(No.iconSmall),{marginLeft:2}),(0,y.Z)(t,"& .".concat(No.deleteIcon),{marginRight:5}),(0,y.Z)(t,"& .".concat(No.deleteIconSmall),{marginRight:3}),t),"outlined"===o.variant&&"default"!==o.color&&(n={color:(r.vars||r).palette[o.color].main,border:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / 0.7)"):(0,ct.Fq)(r.palette[o.color].main,.7))},(0,y.Z)(n,"&.".concat(No.clickable,":hover"),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,ct.Fq)(r.palette[o.color].main,r.palette.action.hoverOpacity)}),(0,y.Z)(n,"&.".concat(No.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.focusOpacity,")"):(0,ct.Fq)(r.palette[o.color].main,r.palette.action.focusOpacity)}),(0,y.Z)(n,"& .".concat(No.deleteIcon),{color:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / 0.7)"):(0,ct.Fq)(r.palette[o.color].main,.7),"&:hover, &:active":{color:(r.vars||r).palette[o.color].main}}),n))})),Zo=(0,m.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat((0,F.Z)(n))]]}})((function(e){var t=e.ownerState;return(0,s.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function Do(e){return"Backspace"===e.key||"Delete"===e.key}var Fo=l.forwardRef((function(e,t){var n=(0,g.Z)({props:e,name:"MuiChip"}),r=n.avatar,o=n.className,a=n.clickable,i=n.color,u=void 0===i?"default":i,d=n.component,h=n.deleteIcon,v=n.disabled,m=void 0!==v&&v,y=n.icon,b=n.label,x=n.onClick,w=n.onDelete,O=n.onKeyDown,k=n.onKeyUp,j=n.size,S=void 0===j?"medium":j,E=n.variant,C=void 0===E?"filled":E,_=n.tabIndex,M=n.skipFocusWhenDisabled,T=void 0!==M&&M,R=(0,c.Z)(n,Io),N=l.useRef(null),I=L(N,t),A=function(e){e.stopPropagation(),w&&w(e)},Z=!(!1===a||!x)||a,D=Z||w?So:d||"div",z=(0,s.Z)({},n,{component:D,disabled:m,size:S,color:u,iconColor:l.isValidElement(y)&&y.props.color||u,onDelete:!!w,clickable:Z,variant:C}),B=function(e){var t=e.classes,n=e.disabled,r=e.size,o=e.color,a=e.iconColor,i=e.onDelete,l=e.clickable,u=e.variant,s={root:["root",u,n&&"disabled","size".concat((0,F.Z)(r)),"color".concat((0,F.Z)(o)),l&&"clickable",l&&"clickableColor".concat((0,F.Z)(o)),i&&"deletable",i&&"deletableColor".concat((0,F.Z)(o)),"".concat(u).concat((0,F.Z)(o))],label:["label","label".concat((0,F.Z)(r))],avatar:["avatar","avatar".concat((0,F.Z)(r)),"avatarColor".concat((0,F.Z)(o))],icon:["icon","icon".concat((0,F.Z)(r)),"iconColor".concat((0,F.Z)(a))],deleteIcon:["deleteIcon","deleteIcon".concat((0,F.Z)(r)),"deleteIconColor".concat((0,F.Z)(o)),"deleteIcon".concat((0,F.Z)(u),"Color").concat((0,F.Z)(o))]};return(0,p.Z)(s,Ro,t)}(z),W=D===So?(0,s.Z)({component:d||"div",focusVisibleClassName:B.focusVisible},w&&{disableRipple:!0}):{},H=null;w&&(H=h&&l.isValidElement(h)?l.cloneElement(h,{className:(0,f.Z)(h.props.className,B.deleteIcon),onClick:A}):(0,P.jsx)(To,{className:(0,f.Z)(B.deleteIcon),onClick:A}));var U=null;r&&l.isValidElement(r)&&(U=l.cloneElement(r,{className:(0,f.Z)(B.avatar,r.props.className)}));var q=null;return y&&l.isValidElement(y)&&(q=l.cloneElement(y,{className:(0,f.Z)(B.icon,y.props.className)})),(0,P.jsxs)(Ao,(0,s.Z)({as:D,className:(0,f.Z)(B.root,o),disabled:!(!Z||!m)||void 0,onClick:x,onKeyDown:function(e){e.currentTarget===e.target&&Do(e)&&e.preventDefault(),O&&O(e)},onKeyUp:function(e){e.currentTarget===e.target&&(w&&Do(e)?w(e):"Escape"===e.key&&N.current&&N.current.blur()),k&&k(e)},ref:I,tabIndex:T&&m?-1:_,ownerState:z},W,R,{children:[U||q,(0,P.jsx)(Zo,{className:(0,f.Z)(B.label),ownerState:z,children:b}),H]}))})),Lo=or((0,P.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function zo(e){return(0,K.Z)("MuiAutocomplete",e)}var Bo,Wo,Ho=(0,X.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),Uo=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],qo=(0,m.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.fullWidth,o=n.hasClearIcon,a=n.hasPopupIcon,i=n.inputFocused,l=n.size;return[(0,y.Z)({},"& .".concat(Ho.tag),t.tag),(0,y.Z)({},"& .".concat(Ho.tag),t["tagSize".concat((0,F.Z)(l))]),(0,y.Z)({},"& .".concat(Ho.inputRoot),t.inputRoot),(0,y.Z)({},"& .".concat(Ho.input),t.input),(0,y.Z)({},"& .".concat(Ho.input),i&&t.inputFocused),t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t,n,r,o,a,i=e.ownerState;return(0,s.Z)((t={},(0,y.Z)(t,"&.".concat(Ho.focused," .").concat(Ho.clearIndicator),{visibility:"visible"}),(0,y.Z)(t,"@media (pointer: fine)",(0,y.Z)({},"&:hover .".concat(Ho.clearIndicator),{visibility:"visible"})),t),i.fullWidth&&{width:"100%"},(a={},(0,y.Z)(a,"& .".concat(Ho.tag),(0,s.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===i.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),(0,y.Z)(a,"& .".concat(Ho.inputRoot),(n={flexWrap:"wrap"},(0,y.Z)(n,".".concat(Ho.hasPopupIcon,"&, .").concat(Ho.hasClearIcon,"&"),{paddingRight:30}),(0,y.Z)(n,".".concat(Ho.hasPopupIcon,".").concat(Ho.hasClearIcon,"&"),{paddingRight:56}),(0,y.Z)(n,"& .".concat(Ho.input),{width:0,minWidth:30}),n)),(0,y.Z)(a,"& .".concat(se.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),(0,y.Z)(a,"& .".concat(se.root,".").concat(J.sizeSmall),(0,y.Z)({},"& .".concat(se.input),{padding:"2px 4px 3px 0"})),(0,y.Z)(a,"& .".concat(Ce.root),(r={padding:9},(0,y.Z)(r,".".concat(Ho.hasPopupIcon,"&, .").concat(Ho.hasClearIcon,"&"),{paddingRight:39}),(0,y.Z)(r,".".concat(Ho.hasPopupIcon,".").concat(Ho.hasClearIcon,"&"),{paddingRight:65}),(0,y.Z)(r,"& .".concat(Ho.input),{padding:"7.5px 4px 7.5px 5px"}),(0,y.Z)(r,"& .".concat(Ho.endAdornment),{right:9}),r)),(0,y.Z)(a,"& .".concat(Ce.root,".").concat(J.sizeSmall),(0,y.Z)({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(Ho.input),{padding:"2.5px 4px 2.5px 8px"})),(0,y.Z)(a,"& .".concat(me.root),(o={paddingTop:19,paddingLeft:8},(0,y.Z)(o,".".concat(Ho.hasPopupIcon,"&, .").concat(Ho.hasClearIcon,"&"),{paddingRight:39}),(0,y.Z)(o,".".concat(Ho.hasPopupIcon,".").concat(Ho.hasClearIcon,"&"),{paddingRight:65}),(0,y.Z)(o,"& .".concat(me.input),{padding:"7px 4px"}),(0,y.Z)(o,"& .".concat(Ho.endAdornment),{right:9}),o)),(0,y.Z)(a,"& .".concat(me.root,".").concat(J.sizeSmall),(0,y.Z)({paddingBottom:1},"& .".concat(me.input),{padding:"2.5px 4px"})),(0,y.Z)(a,"& .".concat(J.hiddenLabel),{paddingTop:8}),(0,y.Z)(a,"& .".concat(me.root,".").concat(J.hiddenLabel),(0,y.Z)({paddingTop:0,paddingBottom:0},"& .".concat(Ho.input),{paddingTop:16,paddingBottom:17})),(0,y.Z)(a,"& .".concat(me.root,".").concat(J.hiddenLabel,".").concat(J.sizeSmall),(0,y.Z)({},"& .".concat(Ho.input),{paddingTop:8,paddingBottom:9})),(0,y.Z)(a,"& .".concat(Ho.input),(0,s.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},i.inputFocused&&{opacity:1})),a))})),Vo=(0,m.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),$o=(0,m.ZP)(Mo,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),Go=(0,m.ZP)(Mo,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,s.Z)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,s.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),Yo=(0,m.ZP)(Zr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[(0,y.Z)({},"& .".concat(Ho.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,s.Z)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),Xo=(0,m.ZP)(vt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,s.Z)({},t.typography.body1,{overflow:"auto"})})),Ko=(0,m.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Qo=(0,m.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Jo=(0,m.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t,n,r=e.theme;return(0,y.Z)({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative"},"& .".concat(Ho.option),(n={minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,y.Z)(n,r.breakpoints.up("sm"),{minHeight:"auto"}),(0,y.Z)(n,"&.".concat(Ho.focused),{backgroundColor:(r.vars||r).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),(0,y.Z)(n,'&[aria-disabled="true"]',{opacity:(r.vars||r).palette.action.disabledOpacity,pointerEvents:"none"}),(0,y.Z)(n,"&.".concat(Ho.focusVisible),{backgroundColor:(r.vars||r).palette.action.focus}),(0,y.Z)(n,'&[aria-selected="true"]',(t={backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,ct.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity)},(0,y.Z)(t,"&.".concat(Ho.focused),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,ct.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(r.vars||r).palette.action.selected}}),(0,y.Z)(t,"&.".concat(Ho.focusVisible),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.focusOpacity,"))"):(0,ct.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.focusOpacity)}),t)),n))})),ea=(0,m.ZP)(Wr,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),ta=(0,m.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})((0,y.Z)({padding:0},"& .".concat(Ho.option),{paddingLeft:24})),na=l.forwardRef((function(e,t){var n,r,o,a,i,u=(0,g.Z)({props:e,name:"MuiAutocomplete"}),d=(u.autoComplete,u.autoHighlight,u.autoSelect,u.blurOnSelect,u.ChipProps),h=u.className,v=u.clearIcon,m=void 0===v?Bo||(Bo=(0,P.jsx)(Lo,{fontSize:"small"})):v,y=u.clearOnBlur,b=(void 0===y&&u.freeSolo,u.clearOnEscape,u.clearText),x=void 0===b?"Clear":b,w=u.closeText,O=void 0===w?"Close":w,k=u.componentsProps,j=void 0===k?{}:k,S=u.defaultValue,E=(void 0===S&&u.multiple,u.disableClearable),C=void 0!==E&&E,_=(u.disableCloseOnSelect,u.disabled),M=void 0!==_&&_,T=(u.disabledItemsFocusable,u.disableListWrap,u.disablePortal),R=void 0!==T&&T,N=(u.filterSelectedOptions,u.forcePopupIcon),I=void 0===N?"auto":N,A=u.freeSolo,Z=void 0!==A&&A,D=u.fullWidth,L=void 0!==D&&D,z=u.getLimitTagsText,B=void 0===z?function(e){return"+".concat(e)}:z,W=u.getOptionLabel,H=void 0===W?function(e){var t;return null!=(t=e.label)?t:e}:W,U=u.groupBy,q=u.handleHomeEndKeys,V=(void 0===q&&u.freeSolo,u.includeInputInList,u.limitTags),$=void 0===V?-1:V,G=u.ListboxComponent,Y=void 0===G?"ul":G,X=u.ListboxProps,K=u.loading,Q=void 0!==K&&K,J=u.loadingText,ee=void 0===J?"Loading\u2026":J,te=u.multiple,ne=void 0!==te&&te,re=u.noOptionsText,oe=void 0===re?"No options":re,ae=(u.openOnFocus,u.openText),ie=void 0===ae?"Open":ae,le=u.PaperComponent,ue=void 0===le?vt:le,se=u.PopperComponent,ce=void 0===se?Zr:se,fe=u.popupIcon,pe=void 0===fe?Wo||(Wo=(0,P.jsx)(ar,{})):fe,de=u.readOnly,he=void 0!==de&&de,ve=u.renderGroup,me=u.renderInput,ge=u.renderOption,ye=u.renderTags,be=u.selectOnFocus,xe=(void 0===be&&u.freeSolo,u.size),we=void 0===xe?"medium":xe,Oe=u.slotProps,ke=void 0===Oe?{}:Oe,je=(0,c.Z)(u,Uo),Se=kr((0,s.Z)({},u,{componentName:"Autocomplete"})),Ee=Se.getRootProps,Ce=Se.getInputProps,Pe=Se.getInputLabelProps,_e=Se.getPopupIndicatorProps,Me=Se.getClearProps,Te=Se.getTagProps,Re=Se.getListboxProps,Ne=Se.getOptionProps,Ie=Se.value,Ae=Se.dirty,Ze=Se.expanded,De=Se.id,Fe=Se.popupOpen,Le=Se.focused,ze=Se.focusedTag,Be=Se.anchorEl,We=Se.setAnchorEl,He=Se.inputValue,Ue=Se.groupedOptions,qe=!C&&!M&&Ae&&!he,Ve=(!Z||!0===I)&&!1!==I,$e=Ce().onMouseDown,Ge=(0,s.Z)({},u,{disablePortal:R,expanded:Ze,focused:Le,fullWidth:L,hasClearIcon:qe,hasPopupIcon:Ve,inputFocused:-1===ze,popupOpen:Fe,size:we}),Ye=function(e){var t=e.classes,n=e.disablePortal,r=e.expanded,o=e.focused,a=e.fullWidth,i=e.hasClearIcon,l=e.hasPopupIcon,u=e.inputFocused,s=e.popupOpen,c=e.size,f={root:["root",r&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag","tagSize".concat((0,F.Z)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",s&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,p.Z)(f,zo,t)}(Ge);if(ne&&Ie.length>0){var Xe=function(e){return(0,s.Z)({className:Ye.tag,disabled:M},Te(e))};i=ye?ye(Ie,Xe,Ge):Ie.map((function(e,t){return(0,P.jsx)(Fo,(0,s.Z)({label:H(e),size:we},Xe({index:t}),d))}))}if($>-1&&Array.isArray(i)){var Ke=i.length-$;!Le&&Ke>0&&(i=i.splice(0,$)).push((0,P.jsx)("span",{className:Ye.tag,children:B(Ke)},i.length))}var Qe=ve||function(e){return(0,P.jsxs)("li",{children:[(0,P.jsx)(ea,{className:Ye.groupLabel,ownerState:Ge,component:"div",children:e.group}),(0,P.jsx)(ta,{className:Ye.groupUl,ownerState:Ge,children:e.children})]},e.key)},Je=ge||function(e,t){return(0,P.jsx)("li",(0,s.Z)({},e,{children:H(t)}))},et=function(e,t){var n=Ne({option:e,index:t});return Je((0,s.Z)({},n,{className:Ye.option}),e,{selected:n["aria-selected"],index:t,inputValue:He})},tt=null!=(n=ke.clearIndicator)?n:j.clearIndicator,nt=null!=(r=ke.paper)?r:j.paper,rt=null!=(o=ke.popper)?o:j.popper,ot=null!=(a=ke.popupIndicator)?a:j.popupIndicator;return(0,P.jsxs)(l.Fragment,{children:[(0,P.jsx)(qo,(0,s.Z)({ref:t,className:(0,f.Z)(Ye.root,h),ownerState:Ge},Ee(je),{children:me({id:De,disabled:M,fullWidth:!0,size:"small"===we?"small":void 0,InputLabelProps:Pe(),InputProps:(0,s.Z)({ref:We,className:Ye.inputRoot,startAdornment:i,onClick:function(e){e.target===e.currentTarget&&$e(e)}},(qe||Ve)&&{endAdornment:(0,P.jsxs)(Vo,{className:Ye.endAdornment,ownerState:Ge,children:[qe?(0,P.jsx)($o,(0,s.Z)({},Me(),{"aria-label":x,title:x,ownerState:Ge},tt,{className:(0,f.Z)(Ye.clearIndicator,null==tt?void 0:tt.className),children:m})):null,Ve?(0,P.jsx)(Go,(0,s.Z)({},_e(),{disabled:M,"aria-label":Fe?O:ie,title:Fe?O:ie,ownerState:Ge},ot,{className:(0,f.Z)(Ye.popupIndicator,null==ot?void 0:ot.className),children:pe})):null]})}),inputProps:(0,s.Z)({className:Ye.input,disabled:M,readOnly:he},Ce())})})),Be?(0,P.jsx)(Yo,(0,s.Z)({as:ce,disablePortal:R,style:{width:Be?Be.clientWidth:null},ownerState:Ge,role:"presentation",anchorEl:Be,open:Fe},rt,{className:(0,f.Z)(Ye.popper,null==rt?void 0:rt.className),children:(0,P.jsxs)(Xo,(0,s.Z)({ownerState:Ge,as:ue},nt,{className:(0,f.Z)(Ye.paper,null==nt?void 0:nt.className),children:[Q&&0===Ue.length?(0,P.jsx)(Ko,{className:Ye.loading,ownerState:Ge,children:ee}):null,0!==Ue.length||Z||Q?null:(0,P.jsx)(Qo,{className:Ye.noOptions,ownerState:Ge,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:oe}),Ue.length>0?(0,P.jsx)(Jo,(0,s.Z)({as:Y,className:Ye.listbox,ownerState:Ge},Re(),X,{children:Ue.map((function(e,t){return U?Qe({key:e.key,group:e.group,children:e.options.map((function(t,n){return et(t,e.index+n)}))}):et(e,t)}))})):null]}))})):null]})})),ra=v;function oa(e){return(0,K.Z)("MuiTooltip",e)}var aa=(0,X.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ia=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];var la=(0,m.ZP)(Zr,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t,n=e.theme,r=e.ownerState,o=e.open;return(0,s.Z)({zIndex:(n.vars||n).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!o&&{pointerEvents:"none"},r.arrow&&(t={},(0,y.Z)(t,'&[data-popper-placement*="bottom"] .'.concat(aa.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),(0,y.Z)(t,'&[data-popper-placement*="top"] .'.concat(aa.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),(0,y.Z)(t,'&[data-popper-placement*="right"] .'.concat(aa.arrow),(0,s.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),(0,y.Z)(t,'&[data-popper-placement*="left"] .'.concat(aa.arrow),(0,s.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})),t))})),ua=(0,m.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,F.Z)(n.placement.split("-")[0]))]]}})((function(e){var t,n,r=e.theme,o=e.ownerState;return(0,s.Z)({backgroundColor:r.vars?r.vars.palette.Tooltip.bg:(0,ct.Fq)(r.palette.grey[700],.92),borderRadius:(r.vars||r).shape.borderRadius,color:(r.vars||r).palette.common.white,fontFamily:r.typography.fontFamily,padding:"4px 8px",fontSize:r.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:r.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:r.typography.pxToRem(14),lineHeight:"".concat((n=16/14,Math.round(1e5*n)/1e5),"em"),fontWeight:r.typography.fontWeightRegular},(t={},(0,y.Z)(t,".".concat(aa.popper,'[data-popper-placement*="left"] &'),(0,s.Z)({transformOrigin:"right center"},o.isRtl?(0,s.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):(0,s.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}))),(0,y.Z)(t,".".concat(aa.popper,'[data-popper-placement*="right"] &'),(0,s.Z)({transformOrigin:"left center"},o.isRtl?(0,s.Z)({marginRight:"14px"},o.touch&&{marginRight:"24px"}):(0,s.Z)({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}))),(0,y.Z)(t,".".concat(aa.popper,'[data-popper-placement*="top"] &'),(0,s.Z)({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"})),(0,y.Z)(t,".".concat(aa.popper,'[data-popper-placement*="bottom"] &'),(0,s.Z)({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})),t))})),sa=(0,m.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,ct.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),ca=!1,fa=null,pa={x:0,y:0};function da(e,t){return function(n){t&&t(n),e(n)}}var ha=l.forwardRef((function(e,t){var n,r,o,i,u,d,h,v,m,y,b,x,w,O,k,j,S,E,C,_=(0,g.Z)({props:e,name:"MuiTooltip"}),M=_.arrow,T=void 0!==M&&M,R=_.children,N=_.components,I=void 0===N?{}:N,A=_.componentsProps,Z=void 0===A?{}:A,D=_.describeChild,z=void 0!==D&&D,B=_.disableFocusListener,W=void 0!==B&&B,H=_.disableHoverListener,U=void 0!==H&&H,q=_.disableInteractive,V=void 0!==q&&q,$=_.disableTouchListener,G=void 0!==$&&$,Y=_.enterDelay,X=void 0===Y?100:Y,K=_.enterNextDelay,Q=void 0===K?0:K,J=_.enterTouchDelay,ee=void 0===J?700:J,te=_.followCursor,ne=void 0!==te&&te,re=_.id,oe=_.leaveDelay,ae=void 0===oe?0:oe,ie=_.leaveTouchDelay,le=void 0===ie?1500:ie,ue=_.onClose,se=_.onOpen,ce=_.open,fe=_.placement,pe=void 0===fe?"bottom":fe,de=_.PopperComponent,he=_.PopperProps,ve=void 0===he?{}:he,me=_.slotProps,ge=void 0===me?{}:me,ye=_.slots,be=void 0===ye?{}:ye,xe=_.title,we=_.TransitionComponent,Oe=void 0===we?Ct:we,ke=_.TransitionProps,je=(0,c.Z)(_,ia),Se=bt(),Ee="rtl"===Se.direction,Ce=l.useState(),Pe=(0,a.Z)(Ce,2),_e=Pe[0],Me=Pe[1],Te=l.useState(null),Re=(0,a.Z)(Te,2),Ne=Re[0],Ie=Re[1],Ae=l.useRef(!1),Ze=V||ne,De=l.useRef(),Fe=l.useRef(),Le=l.useRef(),ze=l.useRef(),Be=Wn({controlled:ce,default:!1,name:"Tooltip",state:"open"}),We=(0,a.Z)(Be,2),He=We[0],Ue=We[1],qe=He,Ve=ra(re),$e=l.useRef(),Ge=l.useCallback((function(){void 0!==$e.current&&(document.body.style.WebkitUserSelect=$e.current,$e.current=void 0),clearTimeout(ze.current)}),[]);l.useEffect((function(){return function(){clearTimeout(De.current),clearTimeout(Fe.current),clearTimeout(Le.current),Ge()}}),[Ge]);var Ye=function(e){clearTimeout(fa),ca=!0,Ue(!0),se&&!qe&&se(e)},Xe=Hr((function(e){clearTimeout(fa),fa=setTimeout((function(){ca=!1}),800+ae),Ue(!1),ue&&qe&&ue(e),clearTimeout(De.current),De.current=setTimeout((function(){Ae.current=!1}),Se.transitions.duration.shortest)})),Ke=function(e){Ae.current&&"touchstart"!==e.type||(_e&&_e.removeAttribute("title"),clearTimeout(Fe.current),clearTimeout(Le.current),X||ca&&Q?Fe.current=setTimeout((function(){Ye(e)}),ca?Q:X):Ye(e))},Qe=function(e){clearTimeout(Fe.current),clearTimeout(Le.current),Le.current=setTimeout((function(){Xe(e)}),ae)},Je=Kr(),et=Je.isFocusVisibleRef,tt=Je.onBlur,nt=Je.onFocus,rt=Je.ref,ot=l.useState(!1),at=(0,a.Z)(ot,2)[1],it=function(e){tt(e),!1===et.current&&(at(!1),Qe(e))},lt=function(e){_e||Me(e.currentTarget),nt(e),!0===et.current&&(at(!0),Ke(e))},ut=function(e){Ae.current=!0;var t=R.props;t.onTouchStart&&t.onTouchStart(e)},st=Ke,ct=Qe;l.useEffect((function(){if(qe)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Xe(e)}}),[Xe,qe]);var ft=L(R.ref,rt,Me,t);xe||0===xe||(qe=!1);var pt=l.useRef(),dt={},ht="string"===typeof xe;z?(dt.title=qe||!ht||U?null:xe,dt["aria-describedby"]=qe?Ve:null):(dt["aria-label"]=ht?xe:null,dt["aria-labelledby"]=qe&&!ht?Ve:null);var vt=(0,s.Z)({},dt,je,R.props,{className:(0,f.Z)(je.className,R.props.className),onTouchStart:ut,ref:ft},ne?{onMouseMove:function(e){var t=R.props;t.onMouseMove&&t.onMouseMove(e),pa={x:e.clientX,y:e.clientY},pt.current&&pt.current.update()}}:{});var mt={};G||(vt.onTouchStart=function(e){ut(e),clearTimeout(Le.current),clearTimeout(De.current),Ge(),$e.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ze.current=setTimeout((function(){document.body.style.WebkitUserSelect=$e.current,Ke(e)}),ee)},vt.onTouchEnd=function(e){R.props.onTouchEnd&&R.props.onTouchEnd(e),Ge(),clearTimeout(Le.current),Le.current=setTimeout((function(){Xe(e)}),le)}),U||(vt.onMouseOver=da(st,vt.onMouseOver),vt.onMouseLeave=da(ct,vt.onMouseLeave),Ze||(mt.onMouseOver=st,mt.onMouseLeave=ct)),W||(vt.onFocus=da(lt,vt.onFocus),vt.onBlur=da(it,vt.onBlur),Ze||(mt.onFocus=lt,mt.onBlur=it));var gt=l.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ne),options:{element:Ne,padding:4}}];return null!=(e=ve.popperOptions)&&e.modifiers&&(t=t.concat(ve.popperOptions.modifiers)),(0,s.Z)({},ve.popperOptions,{modifiers:t})}),[Ne,ve]),yt=(0,s.Z)({},_,{isRtl:Ee,arrow:T,disableInteractive:Ze,placement:pe,PopperComponentProp:de,touch:Ae.current}),xt=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,o=e.touch,a=e.placement,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,F.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,p.Z)(i,oa,t)}(yt),wt=null!=(n=null!=(r=be.popper)?r:I.Popper)?n:la,Ot=null!=(o=null!=(i=null!=(u=be.transition)?u:I.Transition)?i:Oe)?o:Ct,kt=null!=(d=null!=(h=be.tooltip)?h:I.Tooltip)?d:ua,jt=null!=(v=null!=(m=be.arrow)?m:I.Arrow)?v:sa,St=Ut(wt,(0,s.Z)({},ve,null!=(y=ge.popper)?y:Z.popper,{className:(0,f.Z)(xt.popper,null==ve?void 0:ve.className,null==(b=null!=(x=ge.popper)?x:Z.popper)?void 0:b.className)}),yt),Et=Ut(Ot,(0,s.Z)({},ke,null!=(w=ge.transition)?w:Z.transition),yt),Pt=Ut(kt,(0,s.Z)({},null!=(O=ge.tooltip)?O:Z.tooltip,{className:(0,f.Z)(xt.tooltip,null==(k=null!=(j=ge.tooltip)?j:Z.tooltip)?void 0:k.className)}),yt),_t=Ut(jt,(0,s.Z)({},null!=(S=ge.arrow)?S:Z.arrow,{className:(0,f.Z)(xt.arrow,null==(E=null!=(C=ge.arrow)?C:Z.arrow)?void 0:E.className)}),yt);return(0,P.jsxs)(l.Fragment,{children:[l.cloneElement(R,vt),(0,P.jsx)(wt,(0,s.Z)({as:null!=de?de:Zr,placement:pe,anchorEl:ne?{getBoundingClientRect:function(){return{top:pa.y,left:pa.x,right:pa.x,bottom:pa.y,width:0,height:0}}}:_e,popperRef:pt,open:!!_e&&qe,id:Ve,transition:!0},mt,St,{popperOptions:gt,children:function(e){var t=e.TransitionProps;return(0,P.jsx)(Ot,(0,s.Z)({timeout:Se.transitions.duration.shorter},t,Et,{children:(0,P.jsxs)(kt,(0,s.Z)({},Pt,{children:[xe,T?(0,P.jsx)(jt,(0,s.Z)({},_t,{ref:Ie})):null]}))}))}}))]})})),va=ha,ma=(n(77871),n(73292),n(15678)),ga=function(e){var t=e.region,n=e.regionInfo,l=e.handleRegionChange,u=e.pathNames;console.log("rendering with pathnames: ",u);var s=u.map((function(e){return{label:e+":",value:e+":"}})),c=[],f=new Map;if(n&&!(0,ma.xb)(n)){var p,d=(0,i.Z)(n.chr.entries());try{for(d.s();!(p=d.n()).done;){var h=(0,a.Z)(p.value,2),v=h[0],m=h[1]+":"+n.start[v]+"-"+n.end[v];c.push({label:m+" "+n.desc[v],value:m}),f.set(m,n.desc[v])}}catch(b){d.e(b)}finally{d.f()}}var g=[].concat(c,(0,o.Z)(s)),y="Region";return f.get(t)&&(y=f.get(t)),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(va,{title:y,placement:"top-start",children:(0,P.jsx)(na,{disablePortal:!0,freeSolo:!0,getOptionLabel:function(e){return e.label||e.toString()},value:t,inputValue:t,"data-testid":"autocomplete",id:"regionInput",onInputChange:function(e,t){var n=t,r=g.find((function(e){return e.label===t}));r&&(n=r.value),l(n)},options:g,renderInput:function(e){return(0,P.jsx)(gr,(0,r.Z)((0,r.Z)({},e),{},{label:"Region",name:"Region Input",inputProps:(0,r.Z)({},e.inputProps)}))}})}),(0,P.jsx)(Ye.Z,{id:"comboBoxHelperText",children:"\n Input a data segment to select with format : and hit 'Go'. See ? for more information.\n "})]})}},47246:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=n(53665),l=n(80184);t.default=(0,l.jsx)(a(),{props:{id:o.props.string("deleteButton"),className:o.props.string("someCSSClass")},children:function(e){return(0,l.jsx)(i.C,(0,r.Z)((0,r.Z)({},e),{},{onClick:function(){alert("clicked")}}))}})},53665:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1413),o=n(45987),a=(n(72791),n(84754)),i=n(11632),l=n(9806),u=n(80184),s=["testID"];function c(e){e.testID;var t=(0,o.Z)(e,s);return(0,u.jsx)(a.zx,(0,r.Z)((0,r.Z)({"data-testid":e.testID},t),{},{children:(0,u.jsx)(l.G,{icon:i.EOp})}))}c.defaultProps={id:void 0,className:void 0,testID:"delete-button-component"},t.C=c},76391:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=(n(72791),n(40223)),l=n(80184);t.default=(0,l.jsx)(a(),{props:{tracks:o.props.json([{trackFile:"fileA1.vg",trackType:"graph"},{trackFile:"fileA2.gbwt",trackType:"haplotype"},{trackFile:"fileB1.gbwt",trackType:"haplotype"},{trackFile:"fileB2.gam",trackType:"read"},{trackFile:"fileC1.xg",trackType:"graph"}]),value:o.props.string("fileA1.vg"),fileType:o.props.choices(["graph","haplotype","read"]),pickerType:o.props.choices(["mounted","upload"])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{handleInputChange:function(e){t({value:e})},handleFileUpload:function(e,t){console.log("handling file upload")}}))}})},40223:function(e,t,n){"use strict";n.d(t,{P:function(){return f}});var r=n(74165),o=n(37762),a=n(15861),i=n(18622),l=n(72791),u=(n(77871),n(73292)),s=n(84754),c=n(80184),f=function(e){var t=e.tracks,n=e.fileType,f=e.value,p=e.handleInputChange,d=e.pickerType,h=e.className,v=e.testID,m=e.handleFileUpload,g=l.createRef(),y=u.v.fileTypeToExtensions[n];function b(){return(b=(0,a.Z)((0,r.Z)().mark((function e(){var t,o;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.current.files[0],e.next=3,m(n,t);case 3:o=e.sent,console.log("TrackFilePicker got an upload result:",o),p(o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){var t=e.split("/");return t[t.length-1]}var w,O=[],k=(0,o.Z)(t);try{for(k.s();!(w=k.n()).done;){var j=w.value;j.trackType===n&&O.push(j.trackFile)}}catch(E){k.e(E)}finally{k.f()}var S=O.map((function(e){return{label:x(e),value:e}}));if("mounted"===d)return(0,c.jsx)("div",{"data-testid":v,children:(0,c.jsx)(i.ZP,{options:S,value:{label:x(f),value:f},getOptionValue:function(e){return e.value},onChange:function(e){f=e.value,p(e.value)},autoComplete:"on",className:h})});if("upload"===d)return(0,c.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",marginTop:5},children:(0,c.jsx)(s.II,{"data-testid":v,type:"file",className:"customDataUpload form-control-file",accept:y,innerRef:g,onChange:function(){return b.apply(this,arguments)}})});throw new Error("Invalid picker type")};f.defaultProps={value:"Select a file",fileType:"graph",pickerType:"mounted",className:void 0,testID:"file-select-component"},t.Z=f},41768:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=(n(72791),n(85202)),l=n(80184);t.default=(0,l.jsx)(a(),{props:{tracks:o.props.json({1:{trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}},2:{trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}},3:{trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}}}),availableTracks:o.props.json([[{trackFile:"fileA1.vg",trackType:"graph"},{trackFile:"fileA2.gbwt",trackType:"haplotype"},{trackFile:"fileB1.gbwt",trackType:"haplotype"},{trackFile:"fileB2.gam",trackType:"read"},{trackFile:"fileC1.xg",trackType:"graph"}]])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{onChange:function(e){t({tracks:e})},onDelete:function(){console.log("track deleted")}}))}})},85202:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(1413),o=n(64130),a=n(80184),i=function(e){var t=e.tracks,n=e.availableTracks,i=e.availableColors,l=e.onChange,u=e.onDelete,s=e.handleFileUpload;function c(e,n){var o=(0,r.Z)({},t);o[e]=n,JSON.stringify(o)!==JSON.stringify(t)&&l(o)}return(0,a.jsx)("div",{children:function(){var e=[];return Object.keys(t).forEach((function(r,l){var f=t[r];e.push((0,a.jsx)(o.d,{trackProps:f,availableTracks:n,availableColors:i,onChange:c,onDelete:u,trackID:parseInt(r),handleFileUpload:s},r))})),e}()})};t.Z=i},27908:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=(n(72791),n(64130)),l=n(80184);t.default=(0,l.jsx)(a(),{props:{trackProps:o.props.json({trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}}),availableTracks:o.props.json([{trackFile:"fileA1.vg",trackType:"graph"},{trackFile:"fileA2.gbwt",trackType:"haplotype"},{trackFile:"fileB1.gbwt",trackType:"haplotype"},{trackFile:"fileB2.gam",trackType:"read"},{trackFile:"fileC1.xg",trackType:"graph"}])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{onChange:function(e,n){t({trackProps:n})},onDelete:function(){console.log("track deleted")}}))}})},64130:function(e,t,n){"use strict";n.d(t,{d:function(){return m}});var r=n(74165),o=n(1413),a=n(15861),i=n(29439),l=n(84754),u=n(40223),s=n(71431),c=n(53665),f=n(4676),p=n(72791),d=n(15678),h=(n(77871),n(73292)),v=n(80184),m=function(e){var t=e.trackProps,n=e.availableTracks,m=e.availableColors,g=e.onChange,y=e.onDelete,b=e.trackID,x=e.handleFileUpload,w=(0,p.useState)({}),O=(0,i.Z)(w,2),k=O[0],j=O[1],S=(0,p.useState)("mounted"),E=(0,i.Z)(S,2),C=E[0],P=E[1],_=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=(0,o.Z)({},k)).trackType=t,n.trackFile=void 0,n.trackColorSettings=(0,d.af)(t),j(n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(t){var n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=(0,o.Z)({},k)).trackFile=t,j(n);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=(0,a.Z)((0,r.Z)().mark((function e(n,a){var i,l;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i=(0,o.Z)({},t.trackColorSettings))[n]=a,(l=(0,o.Z)({},k)).trackColorSettings=i,j(l);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,p.useEffect)((function(){var e=(0,o.Z)({},t);for(var n in k)e[n]=k[n];JSON.stringify(t)!==JSON.stringify(e)&&(g(b,e),j({}))}),[k,g,t,b]);var R="trackFile"in k?k.trackFile:t.trackFile;return console.log(R),(0,v.jsx)(l.W2,{style:{width:"900px",marginLeft:0,marginRight:15},children:(0,v.jsxs)(l.X2,{className:"g-0",children:[(0,v.jsx)(l.JX,{className:"tracklist-dropdown",children:(0,v.jsx)(s.Y,{value:k.trackType||t.trackType,onChange:_,testID:"file-type-select-component".concat(b),options:["graph","haplotype","read"]})}),(0,v.jsx)(l.JX,{className:"tracklist-dropdown",children:(0,v.jsx)(s.Y,{value:C,onChange:P,testID:"picker-type-select-component".concat(b),options:h.v.pickerTypeOptions})}),(0,v.jsx)(l.JX,{className:"tracklist-dropdown",children:(0,v.jsx)(u.P,{tracks:n,fileType:k.trackType||t.trackType,value:R,pickerType:C,handleInputChange:M,testID:"file-select-component".concat(b),handleFileUpload:x})}),(0,v.jsxs)(l.JX,{className:"tracklist-button",md:"1",children:[(0,v.jsx)(f.r,{fileType:k.trackType||t.trackType,trackColorSettings:k.trackColorSettings||t.trackColorSettings,setTrackColorSetting:T,availableColors:m,testID:"settings-button-component".concat(b)}),(0,v.jsx)(c.Z,{onClick:function(){y(b)},testID:"delete-button-component".concat(b)})]})]})},b)};t.Z=m},80142:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=(n(72791),n(77871),n(73292)),l=n(81872),u=n(80184);t.default=(0,u.jsx)(a(),{props:{tracks:o.props.json({1:i.v.defaultTrackProps,2:i.v.defaultTrackProps,3:i.v.defaultTrackProps}),availableTracks:o.props.json([{trackFile:"fileA1.vg",trackType:"graph"},{trackFile:"fileA2.gbwt",trackType:"haplotype"},{trackFile:"fileB1.gbwt",trackType:"haplotype"},{trackFile:"fileB2.gam",trackType:"read"},{trackFile:"fileC1.xg",trackType:"graph"}])},children:function(e,t){return(0,u.jsx)(l.Z,(0,r.Z)((0,r.Z)({},e),{},{onChange:function(e){t({tracks:e})}}))}})},81872:function(e,t,n){"use strict";var r=n(29439),o=n(72791),a=n(15022),i=n(84754),l=n(9806),u=n(11632),s=n(35177),c=(n(77871),n(73292)),f=n(80184),p=function(e){var t=e.tracks,n=e.availableTracks,c=e.availableColors,p=e.onChange,d=e.handleFileUpload,h=(0,o.useState)(!1),v=(0,r.Z)(h,2),m=v[0],g=v[1];return(0,f.jsxs)("div",{children:[(0,f.jsxs)(i.zx,{"aria-label":"TrackPicker","data-testid":"TrackPickerButton",onClick:function(){return g(!m)},children:[(0,f.jsx)(l.G,{icon:u.Zrf})," Configure Tracks"]}),(0,f.jsx)(s.Z,{open:m,close:function(){return g(!1)},closeOnDocumentClick:!1,width:null,testID:"TrackPicker",children:(0,f.jsx)(a.Z,{tracks:t,availableTracks:n,availableColors:c,onChange:p,handleFileUpload:d})})]})};p.defaultProps={tracks:{1:c.v.defaultTrackProps},onChange:function(){}},t.Z=p},7961:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=(n(72791),n(15022)),l=n(80184);t.default=(0,l.jsx)(a(),{props:{tracks:o.props.json({1:{trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}},2:{trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}},3:{trackFile:void 0,trackType:"graph",trackColorSettings:{mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}}}),availableTracks:o.props.json([{trackFile:"fileA1.vg",trackType:"graph"},{trackFile:"fileA2.gbwt",trackType:"haplotype"},{trackFile:"fileB1.gbwt",trackType:"haplotype"},{trackFile:"fileB2.gam",trackType:"read"},{trackFile:"fileC1.xg",trackType:"graph"}])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{onChange:function(e){t({tracks:e})}}))}})},15022:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(1413),o=n(29439),a=n(72791),i=n(84754),l=n(85202),u=n(11632),s=n(9806),c=n(80184),f=function(e){var t=e.onChange,n=e.testID;return(0,c.jsx)(i.zx,{"aria-label":"TrackAdd",onClick:t,"data-testid":n,style:{width:"40px",marginLeft:"25px",marginTop:"5px"},children:(0,c.jsx)(s.G,{icon:u.r8p})})};f.defaultProps={testID:"track-add-button-component"};n(77871);var p=n(73292),d=function(e){var t=e.tracks,n=e.availableTracks,u=e.availableColors,s=e.onChange,d=e.handleFileUpload,h=(0,a.useState)({}),v=(0,o.Z)(h,2),m=v[0],g=v[1],y=parseInt(Object.keys((0,r.Z)((0,r.Z)({},t),m)).reduce((function(e,t){return(e=parseInt(e))>(t=parseInt(t))?e:t}),0))+1,b=function(e,t){var n=(0,r.Z)({},e);return Object.keys(t).forEach((function(e,r){-1===t[e]?delete n[e]:n[e]=t[e]})),n};return(0,a.useEffect)((function(){var e=b(t,m),n=!0;Object.keys(e).forEach((function(t,r){void 0===e[t].trackFile&&(n=!1)})),n&&JSON.stringify(e)!==JSON.stringify(t)&&(console.log("calling Track Picker Display onChange with ",e),s(e),g({}))}),[m,s,t]),(0,c.jsxs)(i.JX,{children:[(0,c.jsx)(i.X2,{children:(0,c.jsx)(l.P,{tracks:b(t,m),availableTracks:n,availableColors:u,onChange:function(e){g(b(m,e))},onDelete:function(e){var t=(0,r.Z)({},m);t[e]=-1,g(t)},handleFileUpload:d})}),(0,c.jsx)(i.X2,{children:(0,c.jsx)(f,{onChange:function(){var e=(0,r.Z)({},m);e[y.toString()]=(0,r.Z)({},p.v.defaultTrackProps),g(e)}})})]})};d.defaultProps={onChange:function(){}};var h=d},82022:function(e,t,n){"use strict";n.r(t);var r=n(1413),o=n(24922),a=n.n(o),i=n(80159),l=n(80184);t.default=(0,l.jsx)(a(),{props:{fileType:o.props.choices(["haplotype","graph","read"]),trackColorSettings:o.props.json({mainPalette:"blues",auxPalette:"reds",colorReadsByMappingQuality:!1}),availableColors:o.props.json(["greys","ygreys","blues","reds","plainColors"])},children:function(e,t){return(0,l.jsx)(i.Z,(0,r.Z)((0,r.Z)({},e),{},{setTrackColorSetting:function(n,o){var a=(0,r.Z)({},e.trackColorSettings);a[n]=o,t({trackColorSettings:a})}}))}})},80159:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(72791),o=n(84754),a=n(29439),i=n(37762),l=n(15671),u=n(43144),s=n(60136),c=n(27277),f=n(80184),p=new Map([["colorful","plainColors"],["greyscale","greys"],["Ygreyscale","ygreys"],["reds","reds"],["blues","blues"],["pale colors","lightColors"]]),d=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;(0,l.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?c(x,--y):0,m--,10===b&&(m=1,v--),b}function j(){return b=y2||P(b)>3?"":" "}function N(e,t){for(;--t&&j()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return C(e,E()+(t<6&&32==S()&&32==j()))}function I(e){for(;j();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&I(b);break;case 40:41===e&&I(e);break;case 92:j()}return y}function A(e,t){for(;j()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+C(t,y-1)+"*"+a(47===e?e:j())}function Z(e){for(;!P(S());)j();return C(e,y)}var D="-ms-",F="-moz-",L="-webkit-",z="comm",B="rule",W="decl",H="@keyframes";function U(e,t){for(var n="",r=d(e),o=0;o0&&p(F)-g&&h(b>32?X(F+";",r,n,g-1):X(u(F," ","")+";",r,n,g-2),d);break;case 59:F+=";";default:if(h(D=G(F,t,n,v,m,o,f,_,M=[],I=[],g),i),123===P)if(0===m)$(F,t,D,D,M,i,g,f,I);else switch(99===y&&110===c(F,3)?100:y){case 100:case 108:case 109:case 115:$(e,D,D,r&&h(G(e,D,D,0,0,o,f,_,o,M=[],g),I),o,I,g,f,r?M:I);break;default:$(F,D,D,D,[""],I,0,f,I)}}v=m=b=0,w=C=1,_=F="",g=l;break;case 58:g=1+p(F),b=x;default:if(w<1)if(123==P)--w;else if(125==P&&0==w++&&125==k())continue;switch(F+=a(P),P*w){case 38:C=m>0?1:(F+="\f",-1);break;case 44:f[v++]=(p(F)-1)*C,C=1;break;case 64:45===S()&&(F+=T(j())),y=S(),m=g=p(_=F+=Z(E())),P++;break;case 45:45===x&&2==p(F)&&(w=0)}}return i}function G(e,t,n,r,a,i,s,c,p,h,v){for(var m=a-1,g=0===a?i:[""],y=d(g),b=0,x=0,O=0;b0?g[k]+" "+j:u(j,/&\f/g,g[k])))&&(p[O++]=S);return w(e,t,n,0===a?B:c,p,h,v)}function Y(e,t,n){return w(e,t,n,z,a(b),f(e,2,-2),0)}function X(e,t,n,r){return w(e,t,n,W,f(e,0,r),f(e,r+1,-1),r)}var K=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!P(o);)j();return C(e,y)},Q=function(e,t){return M(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=K(y-1,t,n);break;case 2:e[n]+=T(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=j());return e}(_(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],a=Q(t,o),i=n.props,l=0,u=0;l6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+F+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~s(e,"stretch")?ne(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,p(e)-3-(~s(e,"!important")&&10))){case 107:return u(e,":",":"+L)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===c(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return L+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+D+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+D+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+D+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case W:e.return=ne(e.value,e.length);break;case H:return U([O(e,{value:u(e.value,"@","@"+L)})],r);case B:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([O(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([O(e,{props:[u(t,/:(plac\w+)/,":"+L+"input-$1")]}),O(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),O(e,{props:[u(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var a,i,l={},u=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u;return{name:s,styles:o,next:p}}},82561:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return i},j:function(){return l}});var o=n(72791),a=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,i=a||function(e){return e()},l=a||o.useLayoutEffect},95438:function(e,t,n){"use strict";n.d(t,{My:function(){return a},fp:function(){return r},hC:function(){return o}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}},9806:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)t+=he[62*Math.random()|0];return t}function me(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ge(e){return e.classList?me(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function ye(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function be(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function xe(e){return e.size!==de.size||e.x!==de.x||e.y!==de.y||e.rotate!==de.rotate||e.flipX||e.flipY}var we=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Oe(){var e=R,t=N,n=ce.cssPrefix,r=ce.replacementClass,o=we;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");o=o.replace(a,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(l,".".concat(r))}return o}var ke=!1;function je(){ce.autoAddCss&&!ke&&(!function(e){if(e&&P){var t=S.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=S.head.childNodes,r=null,o=n.length-1;o>-1;o--){var a=n[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}S.head.insertBefore(t,r)}}(Oe()),ke=!0)}var Se={mixout:function(){return{dom:{css:Oe,insertCss:je}}},hooks:function(){return{beforeDOMElementCreation:function(){je()},beforeI2svg:function(){je()}}}},Ee=j||{};Ee[M]||(Ee[M]={}),Ee[M].styles||(Ee[M].styles={}),Ee[M].hooks||(Ee[M].hooks={}),Ee[M].shims||(Ee[M].shims=[]);var Ce=Ee[M],Pe=[],_e=!1;function Me(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,a=void 0===o?[]:o;return"string"===typeof e?ye(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ye(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(Me).join(""),"")}function Te(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}P&&((_e=(S.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(S.readyState))||S.addEventListener("DOMContentLoaded",(function e(){S.removeEventListener("DOMContentLoaded",e),_e=1,Pe.map((function(e){return e()}))})));var Re=function(e,t,n,r){var o,a,i,l=Object.keys(e),u=l.length,s=void 0!==r?function(e,t){return function(n,r,o,a){return e.call(t,n,r,o,a)}}(t,r):t;for(void 0===n?(o=1,i=e[l[0]]):(o=0,i=n);o=55296&&o<=56319&&n2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,a=Ie(t);"function"!==typeof Ce.hooks.addPack||r?Ce.styles[e]=o(o({},Ce.styles[e]||{}),a):Ce.hooks.addPack(e,Ie(t)),"fas"===e&&Ae("fa",t)}var Ze,De,Fe,Le=Ce.styles,ze=Ce.shims,Be=(l(Ze={},H,Object.values(Y[H])),l(Ze,U,Object.values(Y[U])),Ze),We=null,He={},Ue={},qe={},Ve={},$e={},Ge=(l(De={},H,Object.keys($[H])),l(De,U,Object.keys($[U])),De);function Ye(e,t){var n,r=t.split("-"),o=r[0],a=r.slice(1).join("-");return o!==e||""===a||(n=a,~ie.indexOf(n))?null:a}var Xe,Ke=function(){var e=function(e){return Re(Le,(function(t,n,r){return t[r]=Re(n,e,{}),t}),{})};He=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),Ue=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),$e=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in Le||ce.autoFetchSvg,n=Re(ze,(function(e,n){var r=n[0],o=n[1],a=n[2];return"far"!==o||t||(o="fas"),"string"===typeof r&&(e.names[r]={prefix:o,iconName:a}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:a}),e}),{names:{},unicodes:{}});qe=n.names,Ve=n.unicodes,We=rt(ce.styleDefault,{family:ce.familyDefault})};function Qe(e,t){return(He[e]||{})[t]}function Je(e,t){return($e[e]||{})[t]}function et(e){return qe[e]||{prefix:null,iconName:null}}function tt(){return We}Xe=function(e){We=rt(e.styleDefault,{family:ce.familyDefault})},fe.push(Xe),Ke();var nt=function(){return{prefix:null,iconName:null,rest:[]}};function rt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?H:t,r=$[n][e],o=G[n][e]||G[n][r],a=e in Ce.styles?e:null;return o||a||null}var ot=(l(Fe={},H,Object.keys(Y[H])),l(Fe,U,Object.keys(Y[U])),Fe);function at(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,r=void 0!==n&&n,o=(l(t={},H,"".concat(ce.cssPrefix,"-").concat(H)),l(t,U,"".concat(ce.cssPrefix,"-").concat(U)),t),a=null,i=H;(e.includes(o[H])||e.some((function(e){return ot[H].includes(e)})))&&(i=H),(e.includes(o[U])||e.some((function(e){return ot[U].includes(e)})))&&(i=U);var u=e.reduce((function(e,t){var n=Ye(ce.cssPrefix,t);if(Le[t]?(t=Be[i].includes(t)?X[i][t]:t,a=t,e.prefix=t):Ge[i].indexOf(t)>-1?(a=t,e.prefix=rt(t,{family:i})):n?e.iconName=n:t!==ce.replacementClass&&t!==o[H]&&t!==o[U]&&e.rest.push(t),!r&&e.prefix&&e.iconName){var l="fa"===a?et(e.iconName):{},u=Je(e.prefix,e.iconName);l.prefix&&(a=null),e.iconName=l.iconName||u||e.iconName,e.prefix=l.prefix||e.prefix,"far"!==e.prefix||Le.far||!Le.fas||ce.autoFetchSvg||(e.prefix="fas")}return e}),nt());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),u.prefix||i!==U||!Le.fass&&!ce.autoFetchSvg||(u.prefix="fass",u.iconName=Je(u.prefix,u.iconName)||u.iconName),"fa"!==u.prefix&&"fa"!==a||(u.prefix=tt()||"fas"),u}var it=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&l.forEach((function(t){"string"===typeof t&&(e[o][t]=i)})),e[o][a]=i})),e}}],n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),lt=[],ut={},st={},ct=Object.keys(st);function ft(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return P?(pt("beforeI2svg",e),dt("pseudoElements2svg",e),dt("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===ce.autoReplaceSvg&&(ce.autoReplaceSvg=!0),ce.observeMutations=!0,e=function(){yt({autoReplaceSvgRoot:n}),pt("watch",t)},P&&(_e?setTimeout(e,0):Pe.push(e))}},gt={noAuto:function(){ce.autoReplaceSvg=!1,ce.observeMutations=!1,pt("noAuto")},config:ce,dom:mt,parse:{icon:function(e){if(null===e)return null;if("object"===a(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Je(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=rt(e[0]);return{prefix:n,iconName:Je(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(ce.cssPrefix,"-"))>-1||e.match(K))){var r=at(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||tt(),iconName:Je(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var o=tt();return{prefix:o,iconName:Je(o,e)||e}}}},library:vt,findIconDefinition:ht,toHtml:Me},yt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?S:e;(Object.keys(Ce.styles).length>0||ce.autoFetchSvg)&&P&&ce.autoReplaceSvg&>.dom.i2svg({node:t})};function bt(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return Me(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(P){var t=S.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function xt(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,l=e.transform,u=e.symbol,s=e.title,c=e.maskId,f=e.titleId,p=e.extra,d=e.watchable,h=void 0!==d&&d,v=r.found?r:n,m=v.width,g=v.height,y="fak"===a,b=[ce.replacementClass,i?"".concat(ce.cssPrefix,"-").concat(i):""].filter((function(e){return-1===p.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(p.classes).join(" "),x={children:[],attributes:o(o({},p.attributes),{},{"data-prefix":a,"data-icon":i,class:b,role:p.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},w=y&&!~p.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};h&&(x.attributes[I]=""),s&&(x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(f||ve())},children:[s]}),delete x.attributes.title);var O=o(o({},x),{},{prefix:a,iconName:i,main:n,mask:r,maskId:c,transform:l,symbol:u,styles:o(o({},w),p.styles)}),k=r.found&&n.found?dt("generateAbstractMask",O)||{children:[],attributes:{}}:dt("generateAbstractIcon",O)||{children:[],attributes:{}},j=k.children,S=k.attributes;return O.children=j,O.attributes=S,u?function(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,l=!0===i?"".concat(t,"-").concat(ce.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o(o({},a),{},{id:l}),children:r}]}]}(O):function(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,l=e.transform;if(xe(l)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};a.style=be(o(o({},i),{},{"transform-origin":"".concat(u.x+l.x/16,"em ").concat(u.y+l.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(O)}function wt(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,l=e.extra,u=e.watchable,s=void 0!==u&&u,c=o(o(o({},l.attributes),i?{title:i}:{}),{},{class:l.classes.join(" ")});s&&(c[I]="");var f=o({},l.styles);xe(a)&&(f.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?T:n,o=e.height,a=void 0===o?T:o,i=e.startCentered,l=void 0!==i&&i,u="";return u+=l&&_?"translate(".concat(t.x/pe-r/2,"em, ").concat(t.y/pe-a/2,"em) "):l?"translate(calc(-50% + ".concat(t.x/pe,"em), calc(-50% + ").concat(t.y/pe,"em)) "):"translate(".concat(t.x/pe,"em, ").concat(t.y/pe,"em) "),u+="scale(".concat(t.size/pe*(t.flipX?-1:1),", ").concat(t.size/pe*(t.flipY?-1:1),") "),u+"rotate(".concat(t.rotate,"deg) ")}({transform:a,startCentered:!0,width:n,height:r}),f["-webkit-transform"]=f.transform);var p=be(f);p.length>0&&(c.style=p);var d=[];return d.push({tag:"span",attributes:c,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}var Ot=Ce.styles;function kt(e){var t=e[0],n=e[1],r=u(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(ce.cssPrefix,"-").concat(oe.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ce.cssPrefix,"-").concat(oe.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ce.cssPrefix,"-").concat(oe.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var jt={found:!1,width:512,height:512};function St(e,t){var n=t;return"fa"===t&&null!==ce.styleDefault&&(t=tt()),new Promise((function(r,a){dt("missingIconAbstract");if("fa"===n){var i=et(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Ot[t]&&Ot[t][e])return r(kt(Ot[t][e]));!function(e,t){W||ce.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(o(o({},jt),{},{icon:ce.showMissingIcons&&e&&dt("missingIconAbstract")||{}}))}))}var Et=function(){},Ct=ce.measurePerformance&&C&&C.mark&&C.measure?C:{mark:Et,measure:Et},Pt='FA "6.4.0"',_t=function(e){Ct.mark("".concat(Pt," ").concat(e," ends")),Ct.measure("".concat(Pt," ").concat(e),"".concat(Pt," ").concat(e," begins"),"".concat(Pt," ").concat(e," ends"))},Mt={begin:function(e){return Ct.mark("".concat(Pt," ").concat(e," begins")),function(){return _t(e)}},end:_t},Tt=function(){};function Rt(e){return"string"===typeof(e.getAttribute?e.getAttribute(I):null)}function Nt(e){return S.createElementNS("http://www.w3.org/2000/svg",e)}function It(e){return S.createElement(e)}function At(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?Nt:It:t;if("string"===typeof e)return S.createTextNode(e);var r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(At(e,{ceFn:n}))})),r}var Zt={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(At(e),t)})),null===t.getAttribute(I)&&ce.keepOriginalSource){var n=S.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~ge(t).indexOf(ce.replacementClass))return Zt.replace(e);var r=new RegExp("".concat(ce.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var o=n[0].attributes.class.split(" ").reduce((function(e,t){return t===ce.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),0===o.toNode.length?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}var a=n.map((function(e){return Me(e)})).join("\n");t.setAttribute(I,""),t.innerHTML=a}};function Dt(e){e()}function Ft(e,t){var n="function"===typeof t?t:Tt;if(0===e.length)n();else{var r=Dt;ce.mutateApproach===z&&(r=j.requestAnimationFrame||Dt),r((function(){var t=!0===ce.autoReplaceSvg?Zt.replace:Zt[ce.autoReplaceSvg]||Zt.replace,r=Mt.begin("mutate");e.map(t),r(),n()}))}}var Lt=!1;function zt(){Lt=!0}function Bt(){Lt=!1}var Wt=null;function Ht(e){if(E&&ce.observeMutations){var t=e.treeCallback,n=void 0===t?Tt:t,r=e.nodeCallback,o=void 0===r?Tt:r,a=e.pseudoElementsCallback,i=void 0===a?Tt:a,l=e.observeMutationsRoot,u=void 0===l?S:l;Wt=new E((function(e){if(!Lt){var t=tt();me(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Rt(e.addedNodes[0])&&(ce.searchPseudoElements&&i(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&ce.searchPseudoElements&&i(e.target.parentNode),"attributes"===e.type&&Rt(e.target)&&~re.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(D):null,n=e.getAttribute?e.getAttribute(F):null;return t&&n}(e.target)){var r=at(ge(e.target)),a=r.prefix,l=r.iconName;e.target.setAttribute(D,a||t),l&&e.target.setAttribute(F,l)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(ce.replacementClass)&&o(e.target);var u}))}})),P&&Wt.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ut(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",o=at(ge(e));return o.prefix||(o.prefix=tt()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=function(e,t){return(Ue[e]||{})[t]}(o.prefix,e.innerText)||Qe(o.prefix,Ne(e.innerText))),!o.iconName&&ce.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function qt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Ut(e),r=n.iconName,a=n.prefix,i=n.rest,l=function(e){var t=me(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ce.autoA11y&&(n?t["aria-labelledby"]="".concat(ce.replacementClass,"-title-").concat(r||ve()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),u=ft("parseNodeAttributes",{},e),s=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return o({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:de,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:l}},u)}var Vt=Ce.styles;function $t(e){var t="nest"===ce.autoReplaceSvg?qt(e,{styleParser:!1}):qt(e);return~t.extra.classes.indexOf(Q)?dt("generateLayersText",e,t):dt("generateSvgReplacementMutation",e,t)}var Gt=new Set;function Yt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!P)return Promise.resolve();var n=S.documentElement.classList,r=function(e){return n.add("".concat(L,"-").concat(e))},o=function(e){return n.remove("".concat(L,"-").concat(e))},a=ce.autoFetchSvg?Gt:q.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Vt));a.includes("fa")||a.push("fa");var i=[".".concat(Q,":not([").concat(I,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(I,"])")}))).join(", ");if(0===i.length)return Promise.resolve();var l=[];try{l=me(e.querySelectorAll(i))}catch(An){}if(!(l.length>0))return Promise.resolve();r("pending"),o("complete");var u=Mt.begin("onTree"),s=l.reduce((function(e,t){try{var n=$t(t);n&&e.push(n)}catch(An){W||"MissingIcon"===An.name&&console.error(An)}return e}),[]);return new Promise((function(e,n){Promise.all(s).then((function(n){Ft(n,(function(){r("active"),r("complete"),o("pending"),"function"===typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function Xt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$t(e).then((function(e){e&&Ft([e],t)}))}q.map((function(e){Gt.add("fa-".concat(e))})),Object.keys($[H]).map(Gt.add.bind(Gt)),Object.keys($[U]).map(Gt.add.bind(Gt)),Gt=s(Gt);var Kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?de:n,a=t.symbol,i=void 0!==a&&a,l=t.mask,u=void 0===l?null:l,s=t.maskId,c=void 0===s?null:s,f=t.title,p=void 0===f?null:f,d=t.titleId,h=void 0===d?null:d,v=t.classes,m=void 0===v?[]:v,g=t.attributes,y=void 0===g?{}:g,b=t.styles,x=void 0===b?{}:b;if(e){var w=e.prefix,O=e.iconName,k=e.icon;return bt(o({type:"icon"},e),(function(){return pt("beforeDOMElementCreation",{iconDefinition:e,params:t}),ce.autoA11y&&(p?y["aria-labelledby"]="".concat(ce.replacementClass,"-title-").concat(h||ve()):(y["aria-hidden"]="true",y.focusable="false")),xt({icons:{main:kt(k),mask:u?kt(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:O,transform:o(o({},de),r),symbol:i,title:p,maskId:c,titleId:h,extra:{attributes:y,styles:x,classes:m}})}))}},Qt={mixout:function(){return{icon:(e=Kt,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:ht(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:ht(a||{})),e(r,o(o({},n),{},{mask:a}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Yt,e.nodeCallback=Xt,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?S:t,r=e.callback;return Yt(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,o=t.titleId,a=t.prefix,i=t.transform,l=t.symbol,s=t.mask,c=t.maskId,f=t.extra;return new Promise((function(t,p){Promise.all([St(n,a),s.iconName?St(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(s){var p=u(s,2),d=p[0],h=p[1];t([e,xt({icons:{main:d,mask:h},prefix:a,iconName:n,transform:i,symbol:l,maskId:c,title:r,titleId:o,extra:f,watchable:!0})])})).catch(p)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,o=e.main,a=e.transform,i=be(e.styles);return i.length>0&&(r.style=i),xe(a)&&(t=dt("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),n.push(t||o.icon),{children:n,attributes:r}}}},Jt={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return bt({type:"layer"},(function(){pt("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(ce.cssPrefix,"-layers")].concat(s(r)).join(" ")},children:n}]}))}}}},en={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,a=t.classes,i=void 0===a?[]:a,l=t.attributes,u=void 0===l?{}:l,c=t.styles,f=void 0===c?{}:c;return bt({type:"counter",content:e},(function(){return pt("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,r=e.extra,a=o(o(o({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=be(r.styles);i.length>0&&(a.style=i);var l=[];return l.push({tag:"span",attributes:a,children:[t]}),n&&l.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),l}({content:e.toString(),title:r,extra:{attributes:u,styles:f,classes:["".concat(ce.cssPrefix,"-layers-counter")].concat(s(i))}})}))}}}},tn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?de:n,a=t.title,i=void 0===a?null:a,l=t.classes,u=void 0===l?[]:l,c=t.attributes,f=void 0===c?{}:c,p=t.styles,d=void 0===p?{}:p;return bt({type:"text",content:e},(function(){return pt("beforeDOMElementCreation",{content:e,params:t}),wt({content:e,transform:o(o({},de),r),title:i,extra:{attributes:f,styles:d,classes:["".concat(ce.cssPrefix,"-layers-text")].concat(s(u))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,o=t.extra,a=null,i=null;if(_){var l=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/l,i=u.height/l}return ce.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,wt({content:e.innerHTML,width:a,height:i,transform:r,title:n,extra:o,watchable:!0})])}}},nn=new RegExp('"',"ug"),rn=[1105920,1112319];function on(e,t){var n="".concat(Z).concat(t.replace(":","-"));return new Promise((function(r,a){if(null!==e.getAttribute(n))return r();var i=me(e.children).filter((function(e){return e.getAttribute(A)===t}))[0],l=j.getComputedStyle(e,t),u=l.getPropertyValue("font-family").match(J),s=l.getPropertyValue("font-weight"),c=l.getPropertyValue("content");if(i&&!u)return e.removeChild(i),r();if(u&&"none"!==c&&""!==c){var f=l.getPropertyValue("content"),p=~["Sharp"].indexOf(u[2])?U:H,d=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?G[p][u[2].toLowerCase()]:ee[p][s],h=function(e){var t=e.replace(nn,""),n=function(e,t){var n,r=e.length,o=e.charCodeAt(t);return o>=55296&&o<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(o-55296)+n-56320+65536:o}(t,0),r=n>=rn[0]&&n<=rn[1],o=2===t.length&&t[0]===t[1];return{value:Ne(o?t[0]:t),isSecondary:r||o}}(f),v=h.value,m=h.isSecondary,g=u[0].startsWith("FontAwesome"),y=Qe(d,v),b=y;if(g){var x=function(e){var t=Ve[e],n=Qe("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(v);x.iconName&&x.prefix&&(y=x.iconName,d=x.prefix)}if(!y||m||i&&i.getAttribute(D)===d&&i.getAttribute(F)===b)r();else{e.setAttribute(n,b),i&&e.removeChild(i);var w={iconName:null,title:null,titleId:null,prefix:null,transform:de,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},O=w.extra;O.attributes[A]=t,St(y,d).then((function(a){var i=xt(o(o({},w),{},{icons:{main:a,mask:nt()},prefix:d,iconName:b,extra:O,watchable:!0})),l=S.createElement("svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((function(e){return Me(e)})).join("\n"),e.removeAttribute(n),r()})).catch(a)}}else r()}))}function an(e){return Promise.all([on(e,"::before"),on(e,"::after")])}function ln(e){return e.parentNode!==document.head&&!~B.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(A)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function un(e){if(P)return new Promise((function(t,n){var r=me(e.querySelectorAll("*")).filter(ln).map(an),o=Mt.begin("searchPseudoElements");zt(),Promise.all(r).then((function(){o(),Bt(),t()})).catch((function(){o(),Bt(),n()}))}))}var sn=!1,cn=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},fn={mixout:function(){return{parse:{transform:function(e){return cn(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=cn(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,a=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},l="translate(".concat(32*n.x,", ").concat(32*n.y,") "),u="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),s="rotate(".concat(n.rotate," 0 0)"),c={outer:i,inner:{transform:"".concat(l," ").concat(u," ").concat(s)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:o({},c.outer),children:[{tag:"g",attributes:o({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:o(o({},t.icon.attributes),c.path)}]}]}}}},pn={x:0,y:0,width:"100%",height:"100%"};function dn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var hn={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?at(n.split(" ").map((function(e){return e.trim()}))):nt();return r.prefix||(r.prefix=tt()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,a=e.main,i=e.mask,l=e.maskId,u=e.transform,s=a.width,c=a.icon,f=i.width,p=i.icon,d=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(a," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:u,containerWidth:f,iconWidth:s}),h={tag:"rect",attributes:o(o({},pn),{},{fill:"white"})},v=c.children?{children:c.children.map(dn)}:{},m={tag:"g",attributes:o({},d.inner),children:[dn(o({tag:c.tag,attributes:o(o({},c.attributes),d.path)},v))]},g={tag:"g",attributes:o({},d.outer),children:[m]},y="mask-".concat(l||ve()),b="clip-".concat(l||ve()),x={tag:"mask",attributes:o(o({},pn),{},{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=p,"g"===t.tag?t.children:[t])},x]};return n.push(w,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(y,")")},pn)}),{children:n,attributes:r}}}},vn={provides:function(e){var t=!1;j.matchMedia&&(t=j.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:o(o({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=o(o({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:o(o({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:o(o({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:o(o({},a),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:o(o({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:o(o({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:o(o({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:o(o({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;lt=e,ut={},Object.keys(st).forEach((function(e){-1===ct.indexOf(e)&&delete st[e]})),lt.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===a(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){ut[e]||(ut[e]=[]),ut[e].push(r[e])}))}e.provides&&e.provides(st)}))}([Se,Qt,Jt,en,tn,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=un,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?S:t;ce.searchPseudoElements&&un(n)}}},{mixout:function(){return{dom:{unwatch:function(){zt(),sn=!0}}}},hooks:function(){return{bootstrap:function(){Ht(ft("mutationObserverCallbacks",{}))},noAuto:function(){Wt&&Wt.disconnect()},watch:function(e){var t=e.observeMutationsRoot;sn?Bt():Ht(ft("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},fn,hn,vn,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:gt});var mn=gt.parse,gn=gt.icon,yn=n(52007),bn=n.n(yn),xn=n(72791);function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function En(e){return function(e){if(Array.isArray(e))return Cn(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Cn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0||!Array.isArray(t)&&t?jn({},e,t):{}}var Nn=xn.forwardRef((function(e,t){var n=e.icon,r=e.mask,o=e.symbol,a=e.className,i=e.title,l=e.titleId,u=e.maskId,s=Tn(n),c=Rn("classes",[].concat(En(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,a=e.bounce,i=e.shake,l=e.flash,u=e.spin,s=e.spinPulse,c=e.spinReverse,f=e.pulse,p=e.fixedWidth,d=e.inverse,h=e.border,v=e.listItem,m=e.flip,g=e.size,y=e.rotation,b=e.pull,x=(jn(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":a,"fa-shake":i,"fa-flash":l,"fa-spin":u,"fa-spin-reverse":c,"fa-spin-pulse":s,"fa-pulse":f,"fa-fw":p,"fa-inverse":d,"fa-border":h,"fa-li":v,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vertical":"vertical"===m||"both"===m},"fa-".concat(g),"undefined"!==typeof g&&null!==g),jn(t,"fa-rotate-".concat(y),"undefined"!==typeof y&&null!==y&&0!==y),jn(t,"fa-pull-".concat(b),"undefined"!==typeof b&&null!==b),jn(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(e)),En(a.split(" ")))),f=Rn("transform","string"===typeof e.transform?mn.transform(e.transform):e.transform),p=Rn("mask",Tn(r)),d=gn(s,On(On(On(On({},c),f),p),{},{symbol:o,title:i,titleId:l,maskId:u}));if(!d)return function(){var e;!Mn&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",s),null;var h=d.abstract,v={ref:t};return Object.keys(e).forEach((function(t){Nn.defaultProps.hasOwnProperty(t)||(v[t]=e[t])})),In(h[0],v)}));Nn.displayName="FontAwesomeIcon",Nn.propTypes={beat:bn().bool,border:bn().bool,beatFade:bn().bool,bounce:bn().bool,className:bn().string,fade:bn().bool,flash:bn().bool,mask:bn().oneOfType([bn().object,bn().array,bn().string]),maskId:bn().string,fixedWidth:bn().bool,inverse:bn().bool,flip:bn().oneOf([!0,!1,"horizontal","vertical","both"]),icon:bn().oneOfType([bn().object,bn().array,bn().string]),listItem:bn().bool,pull:bn().oneOf(["right","left"]),pulse:bn().bool,rotation:bn().oneOf([0,90,180,270]),shake:bn().bool,size:bn().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:bn().bool,spinPulse:bn().bool,spinReverse:bn().bool,symbol:bn().oneOfType([bn().bool,bn().string]),title:bn().string,titleId:bn().string,transform:bn().oneOfType([bn().string,bn().object]),swapOpacity:bn().bool},Nn.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var In=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=Pn(t.slice(0,r)),a=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[o]=a,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Pn(t)]=r}return e}),{attrs:{}}),i=r.style,l=void 0===i?{}:i,u=Sn(r,_n);return a.attrs.style=On(On({},a.attrs.style),l),t.apply(void 0,[n.tag,On(On({},a.attrs),u)].concat(En(o)))}.bind(null,xn.createElement)},52504:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:u},c)},f),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},52403:function(e,t,n){"use strict";var r,o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:u},c)},f),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},93840:function(e,t,n){"use strict";var r=n(72791).createContext(void 0);t.Z=r},76147:function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{Z:function(){return r}})},52930:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(72791),o=n(93840);function a(){return r.useContext(o.Z)}},47071:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(4942),o=n(63366),a=n(87462),i=n(72791),l=n(28182),u=n(94419),s=n(76147),c=n(52930),f=n(34923),p=n(14036),d=n(75878),h=n(97225);function v(e){return(0,h.Z)("MuiFormHelperText",e)}var m,g=(0,d.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),y=n(10551),b=n(80184),x=["children","className","component","disabled","error","filled","focused","margin","required","variant"],w=(0,f.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat((0,p.Z)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t,n=e.theme,o=e.ownerState;return(0,a.Z)({color:(n.vars||n).palette.text.secondary},n.typography.caption,(t={textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},(0,r.Z)(t,"&.".concat(g.disabled),{color:(n.vars||n).palette.text.disabled}),(0,r.Z)(t,"&.".concat(g.error),{color:(n.vars||n).palette.error.main}),t),"small"===o.size&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})})),O=i.forwardRef((function(e,t){var n=(0,y.Z)({props:e,name:"MuiFormHelperText"}),r=n.children,i=n.className,f=n.component,d=void 0===f?"p":f,h=(0,o.Z)(n,x),g=(0,c.Z)(),O=(0,s.Z)({props:n,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),k=(0,a.Z)({},n,{component:d,contained:"filled"===O.variant||"outlined"===O.variant,variant:O.variant,size:O.size,disabled:O.disabled,error:O.error,filled:O.filled,focused:O.focused,required:O.required}),j=function(e){var t=e.classes,n=e.contained,r=e.size,o=e.disabled,a=e.error,i=e.filled,l=e.focused,s=e.required,c={root:["root",o&&"disabled",a&&"error",r&&"size".concat((0,p.Z)(r)),n&&"contained",l&&"focused",i&&"filled",s&&"required"]};return(0,u.Z)(c,v,t)}(k);return(0,b.jsx)(w,(0,a.Z)({as:d,ownerState:k,className:(0,l.Z)(j.root,i),ref:t},h,{children:" "===r?m||(m=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}))},96532:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case i:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case v:case h:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},78457:function(e,t,n){"use strict";n(96532)},94591:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(87462),o=n(63366),a=n(46189),i=n(82466),l=n(85080),u=n(87416),s=n(60104),c=n(4942);function f(e,t){var n;return(0,r.Z)({toolbar:(n={minHeight:56},(0,c.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,c.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}var p=n(12065),d={black:"#000",white:"#fff"},h={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},v={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},x={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},w=["mode","contrastThreshold","tonalOffset"],O={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},k={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function j(e,t,n,r){var o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.$n)(e.main,o):"dark"===t&&(e.dark=(0,p._j)(e.main,a)))}function S(e){var t=e.mode,n=void 0===t?"light":t,l=e.contrastThreshold,u=void 0===l?3:l,s=e.tonalOffset,c=void 0===s?.2:s,f=(0,o.Z)(e,w),S=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(n),E=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[500],light:v[300],dark:v[700]}}(n),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(n),P=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:b[700],light:b[500],dark:b[900]}}(n),_=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:x[400],light:x[300],dark:x[700]}:{main:x[800],light:x[500],dark:x[900]}}(n),M=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(n);function T(e){return(0,p.mi)(e,k.text.primary)>=u?k.text.primary:O.text.primary}var R=function(e){var t=e.color,n=e.name,o=e.mainShade,i=void 0===o?500:o,l=e.lightShade,u=void 0===l?300:l,s=e.darkShade,f=void 0===s?700:s;if(!(t=(0,r.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error((0,a.Z)(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error((0,a.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return j(t,"light",u,c),j(t,"dark",f,c),t.contrastText||(t.contrastText=T(t.main)),t},N={dark:k,light:O};return(0,i.Z)((0,r.Z)({common:(0,r.Z)({},d),mode:n,primary:R({color:S,name:"primary"}),secondary:R({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:C,name:"error"}),warning:R({color:M,name:"warning"}),info:R({color:P,name:"info"}),success:R({color:_,name:"success"}),grey:h,contrastThreshold:u,getContrastText:T,augmentColor:R,tonalOffset:c},N[n]),f)}var E=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var C={textTransform:"uppercase"},P='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,l=void 0===a?P:a,u=n.fontSize,s=void 0===u?14:u,c=n.fontWeightLight,f=void 0===c?300:c,p=n.fontWeightRegular,d=void 0===p?400:p,h=n.fontWeightMedium,v=void 0===h?500:h,m=n.fontWeightBold,g=void 0===m?700:m,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,O=(0,o.Z)(n,E);var k=s/14,j=w||function(e){return"".concat(e/b*k,"rem")},S=function(e,t,n,o,a){return(0,r.Z)({fontFamily:l,fontWeight:e,fontSize:j(t),lineHeight:n},l===P?{letterSpacing:"".concat((i=o/t,Math.round(1e5*i)/1e5),"em")}:{},a,x);var i},_={h1:S(f,96,1.167,-1.5),h2:S(f,60,1.2,-.5),h3:S(d,48,1.167,0),h4:S(d,34,1.235,.25),h5:S(d,24,1.334,0),h6:S(v,20,1.6,.15),subtitle1:S(d,16,1.75,.15),subtitle2:S(v,14,1.57,.1),body1:S(d,16,1.5,.15),body2:S(d,14,1.43,.15),button:S(v,14,1.75,.4,C),caption:S(d,12,1.66,.4),overline:S(d,12,2.66,1,C),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.Z)((0,r.Z)({htmlFontSize:b,pxToRem:j,fontFamily:l,fontSize:s,fontWeightLight:f,fontWeightRegular:d,fontWeightMedium:v,fontWeightBold:g},_),O,{clone:!1})}function M(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",M(0,2,1,-1,0,1,1,0,0,1,3,0),M(0,3,1,-2,0,2,2,0,0,1,5,0),M(0,3,3,-2,0,3,4,0,0,1,8,0),M(0,2,4,-1,0,4,5,0,0,1,10,0),M(0,3,5,-1,0,5,8,0,0,1,14,0),M(0,3,5,-1,0,6,10,0,0,1,18,0),M(0,4,5,-2,0,7,10,1,0,2,16,1),M(0,5,5,-3,0,8,10,1,0,3,14,2),M(0,5,6,-3,0,9,12,1,0,3,16,2),M(0,6,6,-3,0,10,14,1,0,4,18,3),M(0,6,7,-4,0,11,15,1,0,4,20,3),M(0,7,8,-4,0,12,17,2,0,5,22,4),M(0,7,8,-4,0,13,19,2,0,5,24,4),M(0,7,9,-4,0,14,21,2,0,5,26,4),M(0,8,9,-5,0,15,22,2,0,6,28,5),M(0,8,10,-5,0,16,24,2,0,6,30,5),M(0,8,11,-5,0,17,26,2,0,6,32,5),M(0,9,11,-5,0,18,28,2,0,7,34,6),M(0,9,12,-6,0,19,29,2,0,7,36,6),M(0,10,13,-6,0,20,31,3,0,8,38,7),M(0,10,13,-6,0,21,33,3,0,8,40,7),M(0,10,14,-6,0,22,35,3,0,8,42,7),M(0,11,14,-7,0,23,36,3,0,9,44,8),M(0,11,15,-7,0,24,38,3,0,9,46,8)],R=["duration","easing","delay"],N={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},I={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function A(e){return"".concat(Math.round(e),"ms")}function Z(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function D(e){var t=(0,r.Z)({},N,e.easing),n=(0,r.Z)({},I,e.duration);return(0,r.Z)({getAutoHeightDuration:Z,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.duration,i=void 0===a?n.standard:a,l=r.easing,u=void 0===l?t.easeInOut:l,s=r.delay,c=void 0===s?0:s;(0,o.Z)(r,R);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof i?i:A(i)," ").concat(u," ").concat("string"===typeof c?c:A(c))})).join(",")}},e,{easing:t,duration:n})}var F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},L=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,c=e.palette,p=void 0===c?{}:c,d=e.transitions,h=void 0===d?{}:d,v=e.typography,m=void 0===v?{}:v,g=(0,o.Z)(e,L);if(e.vars)throw new Error((0,a.Z)(18));var y=S(p),b=(0,l.Z)(e),x=(0,i.Z)(b,{mixins:f(b.breakpoints,n),palette:y,shadows:T.slice(),typography:_(y,m),transitions:D(h),zIndex:(0,r.Z)({},F)});x=(0,i.Z)(x,g);for(var w=arguments.length,O=new Array(w>1?w-1:0),k=1;k96?v:m},y=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,p.hC)(t,n,r),(0,h.L)((function(){return(0,p.My)(t,n,r)})),null},x=function e(t,n){var r,o,a=t.__emotion_real===t,u=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=y(t,n,a),c=s||g(u),h=!c("as");return function(){var v=arguments,m=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&m.push("label:"+r+";"),null==v[0]||void 0===v[0].raw)m.push.apply(m,v);else{0,m.push(v[0][0]);for(var x=v.length,w=1;w0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,l=void 0===n?_:n,u=e.rootShouldForwardProp,s=void 0===u?P:u,c=e.slotShouldForwardProp,f=void 0===c?P:c,p=function(e){return(0,E.Z)((0,i.Z)({},e,{theme:M((0,i.Z)({},e,{defaultTheme:l,themeId:t}))}))};return p.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var u=n.name,c=n.slot,d=n.skipVariantsResolver,h=n.skipSx,v=n.overridesResolver,m=(0,a.Z)(n,C),g=void 0!==d?d:c&&"Root"!==c||!1,y=h||!1;var b=P;"Root"===c?b=s:c?b=f:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);var w=function(e,t){return x(e,t)}(e,(0,i.Z)({shouldForwardProp:b,label:undefined},m)),O=function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c0){var m=new Array(h).fill("");(d=[].concat((0,r.Z)(n),(0,r.Z)(m))).raw=[].concat((0,r.Z)(n.raw),(0,r.Z)(m))}else"function"===typeof n&&n.__emotion_real!==n&&(d=function(e){return n((0,i.Z)({},e,{theme:M((0,i.Z)({},e,{defaultTheme:l,themeId:t}))}))});var b=w.apply(void 0,[d].concat((0,r.Z)(f)));return e.muiName&&(b.muiName=e.muiName),b};return w.withConfig&&(O.withConfig=w.withConfig),O}}({themeId:R.Z,defaultTheme:T.Z,rootShouldForwardProp:N}),Z=A},10551:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(87462);function o(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(a){if(a.toString().match(/^(components|slots)$/))n[a]=(0,r.Z)({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){var i=e[a]||{},l=t[a];n[a]={},l&&Object.keys(l)?i&&Object.keys(i)?(n[a]=(0,r.Z)({},l),Object.keys(i).forEach((function(e){n[a][e]=o(i[e],l[e])}))):n[a]=l:n[a]=i}else void 0===n[a]&&(n[a]=e[a])})),n}function a(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?o(t.components[n].defaultProps,r):r}var i=n(30418);var l=n(94591),u=n(988);function s(e){return function(e){var t=e.props,n=e.name,r=e.defaultTheme,o=e.themeId,l=(0,i.Z)(r);return o&&(l=l[o]||l),a({theme:l,name:n,props:t})}({props:e.props,name:e.name,defaultTheme:l.Z,themeId:u.Z})}},14036:function(e,t,n){"use strict";var r=n(27312);t.Z=r.Z},51184:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},VO:function(){return r},W8:function(){return i},k9:function(){return a}});var r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(r[e],"px)")}};function a(e,t,n){var a=e.theme||{};if(Array.isArray(t)){var i=a.breakpoints||o;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===typeof t){var l=a.breakpoints||o;return Object.keys(t).reduce((function(e,o){if(-1!==Object.keys(l.values||r).indexOf(o)){e[l.up(o)]=n(t[o],o)}else{var a=o;e[a]=t[a]}return e}),{})}return n(t)}function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function l(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},12065:function(e,t,n){"use strict";n.d(t,{$n:function(){return f},Fq:function(){return s},_j:function(){return c},mi:function(){return u}});var r=n(46189);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var o,i=e.substring(t+1,e.length-1);if("color"===n){if(o=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else i=i.split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:o}}function i(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function l(e){var t="hsl"===(e=a(e)).type||"hsla"===e.type?a(function(e){var t=(e=a(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,l=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-l*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),i({type:s,values:c})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,i(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function f(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return i(e)}},85080:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(87462),o=n(63366),a=n(82466),i=n(4942),l=["values","unit","step"],u=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,i.Z)({},t.key,t.val))}),{})};var s={borderRadius:4},c=n(45682);var f=n(60104),p=n(87416),d=["breakpoints","palette","spacing","shape"];var h=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,i=e.palette,h=void 0===i?{}:i,v=e.spacing,m=e.shape,g=void 0===m?{}:m,y=(0,o.Z)(e,d),b=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,a=e.unit,i=void 0===a?"px":a,s=e.step,c=void 0===s?5:s,f=(0,o.Z)(e,l),p=u(n),d=Object.keys(p);function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function v(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(i,")")}function m(e,t){var r=d.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[d[r]]?n[d[r]]:t)-c/100).concat(i,")")}return(0,r.Z)({keys:d,values:p,up:h,down:v,between:m,only:function(e){return d.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?O-1:0),j=1;j2){if(!s[e])return[e];e=s[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],a=n[1],i=l[o],c=u[a]||"";return Array.isArray(c)?c.map((function(e){return i+e})):[i+c]})),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[].concat(f,p);function h(e,t,n,r){var o,i=null!=(o=(0,a.DW)(e,t,!1))?o:n;return"number"===typeof i?function(e){return"string"===typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"===typeof e?e:i[e]}:"function"===typeof i?i:function(){}}function v(e){return h(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,r){if(-1===t.indexOf(n))return null;var a=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=m(t,n),e}),{})}}(c(n),r),i=e[n];return(0,o.k9)(e,i,a)}function y(e,t){var n=v(e.theme);return Object.keys(e).map((function(r){return g(e,t,r,n)})).reduce(i.Z,{})}function b(e){return y(e,f)}function x(e){return y(e,p)}function w(e){return y(e,d)}b.propTypes={},b.filterProps=f,x.propTypes={},x.filterProps=p,w.propTypes={},w.filterProps=d},18529:function(e,t,n){"use strict";n.d(t,{DW:function(){return i},Jq:function(){return l}});var r=n(4942),o=n(27312),a=n(51184);function i(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function l(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,u=void 0===n?e.prop:n,s=e.themeKey,c=e.transform,f=function(e){if(null==e[t])return null;var n=e[t],f=i(e.theme,s)||{};return(0,a.k9)(e,n,(function(e){var n=l(f,c,e);return e===n&&"string"===typeof e&&(n=l(f,c,"".concat(t).concat("default"===e?"":(0,o.Z)(e)),e)),!1===u?n:(0,r.Z)({},u,n)}))};return f.propTypes={},f.filterProps=[t],f}},87416:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(45682),o=n(18529),a=n(98247);var i=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:a;return(0,o.Z)(e)}},69120:function(e,t,n){"use strict";var r=n(72791),o=n(62564);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=r.useContext(o.T);return n&&(e=n,0!==Object.keys(e).length)?n:t}},27312:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(46189);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94419:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(o){r[o]=e[o].reduce((function(e,r){if(r){var o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},82466:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87462);function o(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function a(e){if(!o(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=a(e[n])})),t}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},l=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?l[r]=i(e[r],t[r],n):n.clone?l[r]=o(t[r])?a(t[r]):t[r]:l[r]=t[r])})),l}},46189:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",r=a[t];return r?"".concat(n,"-").concat(r):"".concat(o.generate(e),"-").concat(t)}},75878:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(97225);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o={};return t.forEach((function(t){o[t]=(0,r.Z)(e,t,n)})),o}},26072:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o(e){return e instanceof r(e).Element||e instanceof Element}function a(e){return e instanceof r(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!==typeof ShadowRoot&&(e instanceof r(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{fi:function(){return ge}});var l=Math.max,u=Math.min,s=Math.round;function c(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),l=1,u=1;t&&a(e)&&(l=e.offsetWidth>0&&s(i.width)/e.offsetWidth||1,u=e.offsetHeight>0&&s(i.height)/e.offsetHeight||1);var c=(o(e)?r(e):window).visualViewport,p=!f()&&n,d=(i.left+(p&&c?c.offsetLeft:0))/l,h=(i.top+(p&&c?c.offsetTop:0))/u,v=i.width/l,m=i.height/u;return{width:v,height:m,top:h,right:d+v,bottom:h+m,left:d,x:d,y:h}}function d(e){var t=r(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function h(e){return e?(e.nodeName||"").toLowerCase():null}function v(e){return((o(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return p(v(e)).left+d(e).scrollLeft}function g(e){return r(e).getComputedStyle(e)}function y(e){var t=g(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function b(e,t,n){void 0===n&&(n=!1);var o=a(t),i=a(t)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=v(t),u=p(e,i,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(o||!o&&!n)&&(("body"!==h(t)||y(l))&&(c=function(e){return e!==r(e)&&a(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:d(e);var t}(t)),a(t)?((f=p(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):l&&(f.x=m(l))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function x(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function w(e){return"html"===h(e)?e:e.assignedSlot||e.parentNode||(i(e)?e.host:null)||v(e)}function O(e){return["html","body","#document"].indexOf(h(e))>=0?e.ownerDocument.body:a(e)&&y(e)?e:O(w(e))}function k(e,t){var n;void 0===t&&(t=[]);var o=O(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=r(o),l=a?[i].concat(i.visualViewport||[],y(o)?o:[]):o,u=t.concat(l);return a?u:u.concat(k(w(l)))}function j(e){return["table","td","th"].indexOf(h(e))>=0}function S(e){return a(e)&&"fixed"!==g(e).position?e.offsetParent:null}function E(e){for(var t=r(e),n=S(e);n&&j(n)&&"static"===g(n).position;)n=S(n);return n&&("html"===h(n)||"body"===h(n)&&"static"===g(n).position)?t:n||function(e){var t=/firefox/i.test(c());if(/Trident/i.test(c())&&a(e)&&"fixed"===g(e).position)return null;var n=w(e);for(i(n)&&(n=n.host);a(n)&&["html","body"].indexOf(h(n))<0;){var r=g(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",P="bottom",_="right",M="left",T="auto",R=[C,P,_,M],N="start",I="end",A="clippingParents",Z="viewport",D="popper",F="reference",L=R.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+I])}),[]),z=[].concat(R,[T]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+I])}),[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function W(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function H(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var U={placement:"bottom",modifiers:[],strategy:"absolute"};function q(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function K(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?G(o):null,i=o?Y(o):null,l=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(a){case C:t={x:l,y:n.y-r.height};break;case P:t={x:l,y:n.y+n.height};break;case _:t={x:n.x+n.width,y:u};break;case M:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=a?X(a):null;if(null!=s){var c="y"===s?"height":"width";switch(i){case N:t[s]=t[s]-(n[c]/2-r[c]/2);break;case I:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,o=e.popperRect,a=e.placement,i=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,d=e.isFixed,h=l.x,m=void 0===h?0:h,y=l.y,b=void 0===y?0:y,x="function"===typeof p?p({x:m,y:b}):{x:m,y:b};m=x.x,b=x.y;var w=l.hasOwnProperty("x"),O=l.hasOwnProperty("y"),k=M,j=C,S=window;if(f){var T=E(n),R="clientHeight",N="clientWidth";if(T===r(n)&&"static"!==g(T=v(n)).position&&"absolute"===u&&(R="scrollHeight",N="scrollWidth"),a===C||(a===M||a===_)&&i===I)j=P,b-=(d&&T===S&&S.visualViewport?S.visualViewport.height:T[R])-o.height,b*=c?1:-1;if(a===M||(a===C||a===P)&&i===I)k=_,m-=(d&&T===S&&S.visualViewport?S.visualViewport.width:T[N])-o.width,m*=c?1:-1}var A,Z=Object.assign({position:u},f&&Q),D=!0===p?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:s(n*o)/o||0,y:s(r*o)/o||0}}({x:m,y:b},r(n)):{x:m,y:b};return m=D.x,b=D.y,c?Object.assign({},Z,((A={})[j]=O?"0":"",A[k]=w?"0":"",A.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",A)):Object.assign({},Z,((t={})[j]=O?b+"px":"",t[k]=w?m+"px":"",t.transform="",t))}var ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=z.reduce((function(e,n){return e[n]=function(e,t,n){var r=G(e),o=[M,C].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[M,_].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],u=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=i}},te={left:"right",right:"left",bottom:"top",top:"bottom"};function ne(e){return e.replace(/left|right|bottom|top/g,(function(e){return te[e]}))}var re={start:"end",end:"start"};function oe(e){return e.replace(/start|end/g,(function(e){return re[e]}))}function ae(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&i(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,n){return t===Z?ie(function(e,t){var n=r(e),o=v(e),a=n.visualViewport,i=o.clientWidth,l=o.clientHeight,u=0,s=0;if(a){i=a.width,l=a.height;var c=f();(c||!c&&"fixed"===t)&&(u=a.offsetLeft,s=a.offsetTop)}return{width:i,height:l,x:u+m(e),y:s}}(e,n)):o(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ie(function(e){var t,n=v(e),r=d(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=l(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=l(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+m(e),s=-r.scrollTop;return"rtl"===g(o||n).direction&&(u+=l(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:u,y:s}}(v(e)))}function ue(e,t,n,r){var i="clippingParents"===t?function(e){var t=k(w(e)),n=["absolute","fixed"].indexOf(g(e).position)>=0&&a(e)?E(e):e;return o(n)?t.filter((function(e){return o(e)&&ae(e,n)&&"body"!==h(e)})):[]}(e):[].concat(t),s=[].concat(i,[n]),c=s[0],f=s.reduce((function(t,n){var o=le(e,n,r);return t.top=l(o.top,t.top),t.right=u(o.right,t.right),t.bottom=u(o.bottom,t.bottom),t.left=l(o.left,t.left),t}),le(e,c,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function se(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function fe(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,i=n.strategy,l=void 0===i?e.strategy:i,u=n.boundary,s=void 0===u?A:u,c=n.rootBoundary,f=void 0===c?Z:c,d=n.elementContext,h=void 0===d?D:d,m=n.altBoundary,g=void 0!==m&&m,y=n.padding,b=void 0===y?0:y,x=se("number"!==typeof b?b:ce(b,R)),w=h===D?F:D,O=e.rects.popper,k=e.elements[g?w:h],j=ue(o(k)?k:k.contextElement||v(e.elements.popper),s,f,l),S=p(e.elements.reference),E=K({reference:S,element:O,strategy:"absolute",placement:a}),M=ie(Object.assign({},O,E)),T=h===D?M:S,N={top:j.top-T.top+x.top,bottom:T.bottom-j.bottom+x.bottom,left:j.left-T.left+x.left,right:T.right-j.right+x.right},I=e.modifiersData.offset;if(h===D&&I){var L=I[a];Object.keys(N).forEach((function(e){var t=[_,P].indexOf(e)>=0?1:-1,n=[C,P].indexOf(e)>=0?"y":"x";N[e]+=L[n]*t}))}return N}function pe(e,t,n){return l(e,u(t,n))}var de={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.padding,h=n.tether,v=void 0===h||h,m=n.tetherOffset,g=void 0===m?0:m,y=fe(t,{boundary:c,rootBoundary:f,padding:d,altBoundary:p}),b=G(t.placement),w=Y(t.placement),O=!w,k=X(b),j="x"===k?"y":"x",S=t.modifiersData.popperOffsets,T=t.rects.reference,R=t.rects.popper,I="function"===typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"===typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(S){if(a){var F,L="y"===k?C:M,z="y"===k?P:_,B="y"===k?"height":"width",W=S[k],H=W+y[L],U=W-y[z],q=v?-R[B]/2:0,V=w===N?T[B]:R[B],$=w===N?-R[B]:-T[B],K=t.elements.arrow,Q=v&&K?x(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=J[L],te=J[z],ne=pe(0,T[B],Q[B]),re=O?T[B]/2-q-ne-ee-A.mainAxis:V-ne-ee-A.mainAxis,oe=O?-T[B]/2+q+ne+te+A.mainAxis:$+ne+te+A.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),ie=ae?"y"===k?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(F=null==Z?void 0:Z[k])?F:0,ue=W+oe-le,se=pe(v?u(H,W+re-le-ie):H,W,v?l(U,ue):U);S[k]=se,D[k]=se-W}if(s){var ce,de="x"===k?C:M,he="x"===k?P:_,ve=S[j],me="y"===j?"height":"width",ge=ve+y[de],ye=ve-y[he],be=-1!==[C,M].indexOf(b),xe=null!=(ce=null==Z?void 0:Z[j])?ce:0,we=be?ge:ve-T[me]-R[me]-xe+A.altAxis,Oe=be?ve+T[me]+R[me]-xe-A.altAxis:ye,ke=v&&be?function(e,t,n){var r=pe(e,t,n);return r>n?n:r}(we,ve,Oe):pe(v?we:ge,ve,v?Oe:ye);S[j]=ke,D[j]=ke-ve}t.modifiersData[r]=D}},requiresIfExists:["offset"]};var he={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=G(n.placement),u=X(l),s=[M,_].indexOf(l)>=0?"height":"width";if(a&&i){var c=function(e,t){return se("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ce(e,R))}(o.padding,n),f=x(a),p="y"===u?C:M,d="y"===u?P:_,h=n.rects.reference[s]+n.rects.reference[u]-i[u]-n.rects.popper[s],v=i[u]-n.rects.reference[u],m=E(a),g=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,y=h/2-v/2,b=c[p],w=g-f[s]-c[d],O=g/2-f[s]/2+y,k=pe(b,O,w),j=u;n.modifiersData[r]=((t={})[j]=k,t.centerOffset=k-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&ae(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function me(e){return[C,_,P,M].some((function(t){return e[t]>=0}))}var ge=V({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,a=o.scroll,i=void 0===a||a,l=o.resize,u=void 0===l||l,s=r(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,$)})),u&&s.addEventListener("resize",n.update,$),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,$)})),u&&s.removeEventListener("resize",n.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,u=void 0===l||l,s={placement:G(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];a(o)&&h(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});a(r)&&h(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},ee,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,u=n.fallbackPlacements,s=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,m=t.options.placement,g=G(m),y=u||(g===m||!h?[ne(m)]:function(e){if(G(e)===T)return[];var t=ne(e);return[oe(e),t,oe(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(G(n)===T?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?z:u,c=Y(r),f=c?l?L:L.filter((function(e){return Y(e)===c})):R,p=f.filter((function(e){return s.indexOf(e)>=0}));0===p.length&&(p=f);var d=p.reduce((function(t,n){return t[n]=fe(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[G(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,k=!0,j=b[0],S=0;S=0,D=Z?"width":"height",F=fe(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:p,padding:s}),B=Z?A?_:M:A?P:C;x[D]>w[D]&&(B=ne(B));var W=ne(B),H=[];if(a&&H.push(F[I]<=0),l&&H.push(F[B]<=0,F[W]<=0),H.every((function(e){return e}))){j=E,k=!1;break}O.set(E,H)}if(k)for(var U=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},q=h?3:1;q>0;q--){if("break"===U(q))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},de,he,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=fe(t,{elementContext:"reference"}),l=fe(t,{altBoundary:!0}),u=ve(i,r),s=ve(l,o,a),c=me(u),f=me(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]})},2713:function(e,t,n){"use strict";var r=n(44037)("ArrayBuffer.prototype.byteLength",!0),o=n(99188);e.exports=function(e){return o(e)?r?r(e):e.byteLength:NaN}},44037:function(e,t,n){"use strict";var r=n(52506),o=n(19722),a=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?o(n):n}},19722:function(e,t,n){"use strict";var r=n(33350),o=n(52506),a=n(5986),i=o("%TypeError%"),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||r.call(u,l),c=o("%Object.defineProperty%",!0),f=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}e.exports=function(e){if("function"!==typeof e)throw new i("a function is required");var t=s(r,u,arguments);return a(t,1+f(0,e.length-(arguments.length-1)),!0)};var p=function(){return s(r,l,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},81694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0;i--)if(Q[i]!=J[i])return!1;for(i=Q.length-1;i>=0;i--)if(!F(e[u=Q[i]],t[u],n,o))return!1;var ee=y(e),te=y(t);if(ee!==te)return!1;if("Set"===ee||"Set"===te)return function(e,t,n,r){if(R(e)!==R(t))return!1;var o,a,i,u=l(e),s=l(t);for(;(o=u.next())&&!o.done;)if(o.value&&"object"===typeof o.value)i||(i=new S),_(i,o.value);else if(!T(t,o.value)){if(n.strict)return!1;if(!Z(e,t,o.value))return!1;i||(i=new S),_(i,o.value)}if(i){for(;(a=s.next())&&!a.done;)if(a.value&&"object"===typeof a.value){if(!N(i,a.value,n.strict,r))return!1}else if(!n.strict&&!T(e,a.value)&&!N(i,a.value,n.strict,r))return!1;return 0===R(i)}return!0}(e,t,n,o);if("Map"===ee)return function(e,t,n,o){if(P(e)!==P(t))return!1;var a,i,u,s,c,f,p=l(e),d=l(t);for(;(a=p.next())&&!a.done;)if(s=a.value[0],c=a.value[1],s&&"object"===typeof s)u||(u=new S),_(u,s);else if("undefined"===typeof(f=C(t,s))&&!E(t,s)||!F(c,f,n,o)){if(n.strict)return!1;if(!A(e,t,s,c,n,o))return!1;u||(u=new S),_(u,s)}if(u){for(;(i=d.next())&&!i.done;)if(s=i.value[0],f=i.value[1],s&&"object"===typeof s){if(!D(u,e,s,f,n,o))return!1}else if(!n.strict&&(!e.has(s)||!F(C(e,s),f,n,o))&&!D(u,e,s,f,r({},n,{strict:!1}),o))return!1;return 0===R(u)}return!0}(e,t,n,o);return!0}(e,t,i,o)}function L(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&(!(e.length>0&&"number"!==typeof e[0])&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))))}e.exports=function(e,t,n){return F(e,t,n,u())}},92651:function(e,t,n){"use strict";var r=n(84510)(),o=n(52506),a=r&&o("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(s){a=!1}var i=o("%SyntaxError%"),l=o("%TypeError%"),u=n(23347);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new l("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!u&&u(e,t);if(a)a(e,t,{configurable:null===s&&f?f.configurable:!s,enumerable:null===r&&f?f.enumerable:!r,value:n,writable:null===o&&f?f.writable:!o});else{if(!c&&(r||o||s))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},9396:function(e,t,n){"use strict";var r=n(24892),o="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,i=Array.prototype.concat,l=Object.defineProperty,u=n(84510)(),s=l&&u,c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(o=r)||"[object Function]"!==a.call(o)||!r())return;var o;s?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},f=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var l=0;l=3&&(i=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r1&&"boolean"!==typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return j(e,C,(function(e,t,n,o){r[r.length]=n?j(o,P,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",a=_("%"+r+"%",t),l=a.name,s=a.value,c=!1,f=a.alias;f&&(r=f[0],k(n,O([0,1],f)));for(var p=1,d=!0;p=n.length){var y=u(s,h);s=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:s[h]}else d=w(s,h),s=s[h];d&&!c&&(m[l]=s)}}return s}},23347:function(e,t,n){"use strict";var r=n(52506)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},42965:function(e){"use strict";var t="undefined"!==typeof BigInt&&BigInt;e.exports=function(){return"function"===typeof t&&"function"===typeof BigInt&&"bigint"===typeof t(42)&&"bigint"===typeof BigInt(42)}},84510:function(e,t,n){"use strict";var r=n(52506)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},92203:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},80697:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(63297);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},63297:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},4707:function(e,t,n){"use strict";var r=n(63297);e.exports=function(){return r()&&!!Symbol.toStringTag}},58316:function(e,t,n){"use strict";var r=n(33350);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},89670:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(33350);e.exports=a.call(r,o)},62110:function(e,t,n){"use strict";var r=n(48309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=u(t),v=u(n),m=0;m=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=i,e.exports=l?a:i},99188:function(e,t,n){"use strict";var r=n(19722),o=n(44037),a=n(52506),i=n(66218),l=a("ArrayBuffer",!0),u=a("Float32Array",!0),s=o("ArrayBuffer.prototype.byteLength",!0),c=l&&!s&&(new l).slice,f=c&&r(c);e.exports=s||f?function(e){if(!e||"object"!==typeof e)return!1;try{return s?s(e):f(e,0),!0}catch(t){return!1}}:u?function(e){try{return new u(e).buffer===e&&!i(e)}catch(t){return"object"===typeof e&&"RangeError"===t.name}}:function(e){return!1}},36423:function(e,t,n){"use strict";if(n(42965)()){var r=BigInt.prototype.valueOf;e.exports=function(e){return null!==e&&"undefined"!==typeof e&&"boolean"!==typeof e&&"string"!==typeof e&&"number"!==typeof e&&"symbol"!==typeof e&&"function"!==typeof e&&("bigint"===typeof e||function(e){try{return r.call(e),!0}catch(t){}return!1}(e))}}else e.exports=function(e){return!1}},38486:function(e,t,n){"use strict";var r=n(44037),o=r("Boolean.prototype.toString"),a=r("Object.prototype.toString"),i=n(4707)();e.exports=function(e){return"boolean"===typeof e||null!==e&&"object"===typeof e&&(i&&Symbol.toStringTag in e?function(e){try{return o(e),!0}catch(t){return!1}}(e):"[object Boolean]"===a(e))}},70460:function(e){"use strict";var t,n,r=Function.prototype.toString,o="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof o&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(d){d!==n&&(o=null)}else o=null;var a=/^\s*class\b/,i=function(e){try{var t=r.call(e);return a.test(t)}catch(n){return!1}},l=function(e){try{return!i(e)&&(r.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,s="function"===typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(f=function(e){if((c||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}e.exports=o?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{o(e,null,t)}catch(r){if(r!==n)return!1}return!i(e)&&l(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(s)return l(e);if(i(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},92833:function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a=n(4707)();e.exports=function(e){return"object"===typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Date]"===o.call(e))}},20242:function(e){"use strict";var t,n="function"===typeof Map&&Map.prototype?Map:null,r="function"===typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var o=n?Map.prototype.has:null,a=r?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!==typeof e)return!1;try{if(o.call(e),a)try{a.call(e)}catch(t){return!0}return e instanceof n}catch(t){}return!1}},64814:function(e,t,n){"use strict";var r=Number.prototype.toString,o=Object.prototype.toString,a=n(4707)();e.exports=function(e){return"number"===typeof e||"object"===typeof e&&(a?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object Number]"===o.call(e))}},41146:function(e,t,n){"use strict";var r,o,a,i,l=n(44037),u=n(4707)();if(u){r=l("Object.prototype.hasOwnProperty"),o=l("RegExp.prototype.exec"),a={};var s=function(){throw a};i={toString:s,valueOf:s},"symbol"===typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=s)}var c=l("Object.prototype.toString"),f=Object.getOwnPropertyDescriptor;e.exports=u?function(e){if(!e||"object"!==typeof e)return!1;var t=f(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,i)}catch(n){return n===a}}:function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&"[object RegExp]"===c(e)}},99739:function(e){"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},16325:function(e){"use strict";var t,n="function"===typeof Map&&Map.prototype?Map:null,r="function"===typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var o=n?Map.prototype.has:null,a=r?Set.prototype.has:null;t||a||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!==typeof e)return!1;try{if(a.call(e),o)try{o.call(e)}catch(t){return!0}return e instanceof r}catch(t){}return!1}},36195:function(e,t,n){"use strict";var r=n(44037)("SharedArrayBuffer.prototype.byteLength",!0);e.exports=r?function(e){if(!e||"object"!==typeof e)return!1;try{return r(e),!0}catch(t){return!1}}:function(e){return!1}},65038:function(e,t,n){"use strict";var r=String.prototype.valueOf,o=Object.prototype.toString,a=n(4707)();e.exports=function(e){return"string"===typeof e||"object"===typeof e&&(a?function(e){try{return r.call(e),!0}catch(t){return!1}}(e):"[object String]"===o.call(e))}},63137:function(e,t,n){"use strict";var r=Object.prototype.toString;if(n(80697)()){var o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"===typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"===typeof e.valueOf()&&a.test(o.call(e))}(e)}catch(t){return!1}}}else e.exports=function(e){return!1}},66218:function(e,t,n){"use strict";var r=n(65369),o=n(30306),a=n(44037),i=a("Object.prototype.toString"),l=n(4707)(),u=n(23347),s="undefined"===typeof globalThis?n.g:globalThis,c=o(),f=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return!!u&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(o){}})),t}(e)}},67517:function(e){"use strict";var t,n="function"===typeof WeakMap&&WeakMap.prototype?WeakMap:null,r="function"===typeof WeakSet&&WeakSet.prototype?WeakSet:null;n||(t=function(e){return!1});var o=n?n.prototype.has:null,a=r?r.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!==typeof e)return!1;try{if(o.call(e,o),a)try{a.call(e,a)}catch(t){return!0}return e instanceof n}catch(t){}return!1}},51920:function(e,t,n){"use strict";var r=n(52506),o=n(44037),a=r("%WeakSet%",!0),i=o("WeakSet.prototype.has",!0);if(i){var l=o("WeakMap.prototype.has",!0);e.exports=function(e){if(!e||"object"!==typeof e)return!1;try{if(i(e,i),l)try{l(e,l)}catch(t){return!0}return e instanceof a}catch(t){}return!1}}else e.exports=function(e){return!1}},41571:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},68863:function(e,t,n){"use strict";var r=n(75755);e.exports=function(e){return null!=e&&"object"===typeof e&&!r(e)}},75755:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},50908:function(e,t,n){var r=n(68136)(n(97009),"DataView");e.exports=r},29676:function(e,t,n){var r=n(85403),o=n(62747),a=n(16037),i=n(94154),l=n(77728);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tc))return!1;var p=u.get(e),d=u.get(t);if(p&&d)return p==t&&d==e;var h=-1,v=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h-1&&e%1==0&&e-1}},87109:function(e,t,n){var r=n(27112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},34086:function(e,t,n){var r=n(29676),o=n(38384),a=n(95797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},9255:function(e,t,n){var r=n(32799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},29186:function(e,t,n){var r=n(32799);e.exports=function(e){return r(this,e).get(e)}},13423:function(e,t,n){var r=n(32799);e.exports=function(e){return r(this,e).has(e)}},73739:function(e,t,n){var r=n(32799);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},90234:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},50284:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},14634:function(e,t,n){var r=n(49151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},49620:function(e,t,n){var r=n(68136)(Object,"create");e.exports=r},75964:function(e,t,n){var r=n(12709)(Object.keys,Object);e.exports=r},4221:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},49494:function(e,t,n){e=n.nmd(e);var r=n(31032),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=l},43581:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},12709:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},97009:function(e,t,n){var r=n(31032),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},35774:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41596:function(e){e.exports=function(e){return this.__data__.has(e)}},22230:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},20511:function(e,t,n){var r=n(38384);e.exports=function(){this.__data__=new r,this.size=0}},50835:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},90707:function(e){e.exports=function(e){return this.__data__.get(e)}},18832:function(e){e.exports=function(e){return this.__data__.has(e)}},35077:function(e,t,n){var r=n(38384),o=n(95797),a=n(78059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},10170:function(e,t,n){var r=n(14634),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},69793:function(e,t,n){var r=n(70152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},27907:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},58121:function(e,t,n){var r=n(31905);e.exports=function(e){return r(e,5)}},29231:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},14689:function(e,t,n){var r=n(15358),o=n(43410);e.exports=function(e,t){return e&&r(e,o(t))}},26181:function(e,t,n){var r=n(98667);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},75658:function(e,t,n){var r=n(90529),o=n(86417);e.exports=function(e,t){return null!=e&&o(e,t,r)}},2100:function(e){e.exports=function(e){return e}},34963:function(e,t,n){var r=n(4906),o=n(43141),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},93629:function(e){var t=Array.isArray;e.exports=t},21473:function(e,t,n){var r=n(74786),o=n(24635);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},5174:function(e,t,n){e=n.nmd(e);var r=n(97009),o=n(49488),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},74786:function(e,t,n){var r=n(39066),o=n(8092);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},24635:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},60103:function(e,t,n){var r=n(53085),o=n(16194),a=n(49494),i=a&&a.isMap,l=i?o(i):r;e.exports=l},8092:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43141:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},93977:function(e,t,n){var r=n(39066),o=n(31137),a=n(43141),i=Function.prototype,l=Object.prototype,u=i.toString,s=l.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},36995:function(e,t,n){var r=n(48680),o=n(16194),a=n(49494),i=a&&a.isSet,l=i?o(i):r;e.exports=l},26769:function(e,t,n){var r=n(39066),o=n(93629),a=n(43141);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},70152:function(e,t,n){var r=n(39066),o=n(43141);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},19102:function(e,t,n){var r=n(68150),o=n(16194),a=n(49494),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},12742:function(e,t,n){var r=n(47538),o=n(43654),a=n(21473);e.exports=function(e){return a(e)?r(e):o(e)}},73961:function(e,t,n){var r=n(47538),o=n(8664),a=n(21473);e.exports=function(e){return a(e)?r(e,!0):o(e)}},72034:function(e,t,n){var r=n(68950),o=n(56025),a=n(53849),i=n(93629);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},49151:function(e,t,n){var r=n(78059);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},10038:function(e,t,n){var r=n(9586),o=n(4084),a=n(25823),i=n(69793);e.exports=function(e){return a(e)?r(i(e)):o(e)}},68174:function(e){e.exports=function(){return[]}},49488:function(e){e.exports=function(){return!1}},63518:function(e,t,n){var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},36993:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[];function r(e){return n[e]||(n[e]=function(e){for(var t="return function dispatcher"+e+"(payload) {\n",n=[],r=[],o=0;o-1e3&&e<1e3||O.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-E(-e):E(e);if(r!==e){var o=String(r),a=y.call(t,o.length+1);return b.call(o,n,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var A=n(24654),Z=A.custom,D=W(Z)?Z:null;function F(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function L(e){return b.call(String(e),/"/g,""")}function z(e){return"[object Array]"===q(e)&&(!T||!("object"===typeof e&&T in e))}function B(e){return"[object RegExp]"===q(e)&&(!T||!("object"===typeof e&&T in e))}function W(e){if(M)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!_)return!1;try{return _.call(e),!0}catch(t){}return!1}e.exports=function e(t,n,r,o){var l=n||{};if(U(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!U(l,"customInspect")||l.customInspect;if("boolean"!==typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return $(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return v?I(t,x):x}if("bigint"===typeof t){var O=String(t)+"n";return v?I(t,O):O}var E="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof r&&(r=0),r>=E&&E>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var P=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(l,r);if("undefined"===typeof o)o=[];else if(V(o,t)>=0)return"[Circular]";function Z(t,n,a){if(n&&(o=S.call(o)).push(n),a){var i={depth:l.depth};return U(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,r+1,o)}return e(t,l,r+1,o)}if("function"===typeof t&&!B(t)){var H=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),G=J(t,Z);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(G.length>0?" { "+j.call(G,", ")+" }":"")}if(W(t)){var ee=M?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!==typeof t||M?ee:Y(ee)}if(function(e){if(!e||"object"!==typeof e)return!1;if("undefined"!==typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"===typeof e.nodeName&&"function"===typeof e.getAttribute}(t)){for(var te="<"+w.call(String(t.nodeName)),ne=t.attributes||[],re=0;re"}if(z(t)){if(0===t.length)return"[]";var oe=J(t,Z);return P&&!function(e){for(var t=0;t=0)return!1;return!0}(oe)?"["+Q(oe,P)+"]":"[ "+j.call(oe,", ")+" ]"}if(function(e){return"[object Error]"===q(e)&&(!T||!("object"===typeof e&&T in e))}(t)){var ae=J(t,Z);return"cause"in Error.prototype||!("cause"in t)||R.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ae,", ")+" }":"{ ["+String(t)+"] "+j.call(k.call("[cause]: "+Z(t.cause),ae),", ")+" }"}if("object"===typeof t&&u){if(D&&"function"===typeof t[D]&&A)return A(t,{depth:E-r});if("symbol"!==u&&"function"===typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{s.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var ie=[];return i&&i.call(t,(function(e,n){ie.push(Z(n,t,!0)+" => "+Z(e,t))})),K("Map",a.call(t),ie,P)}if(function(e){if(!s||!e||"object"!==typeof e)return!1;try{s.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}(t)){var le=[];return c&&c.call(t,(function(e){le.push(Z(e,t))})),K("Set",s.call(t),le,P)}if(function(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(te){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return X("WeakMap");if(function(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(te){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return X("WeakSet");if(function(e){if(!d||!e||"object"!==typeof e)return!1;try{return d.call(e),!0}catch(t){}return!1}(t))return X("WeakRef");if(function(e){return"[object Number]"===q(e)&&(!T||!("object"===typeof e&&T in e))}(t))return Y(Z(Number(t)));if(function(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}(t))return Y(Z(C.call(t)));if(function(e){return"[object Boolean]"===q(e)&&(!T||!("object"===typeof e&&T in e))}(t))return Y(h.call(t));if(function(e){return"[object String]"===q(e)&&(!T||!("object"===typeof e&&T in e))}(t))return Y(Z(String(t)));if(!function(e){return"[object Date]"===q(e)&&(!T||!("object"===typeof e&&T in e))}(t)&&!B(t)){var ue=J(t,Z),se=N?N(t)===Object.prototype:t instanceof Object||t.constructor===Object,ce=t instanceof Object?"":"null prototype",fe=!se&&T&&Object(t)===t&&T in t?y.call(q(t),8,-1):ce?"Object":"",pe=(se||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||ce?"["+j.call(k.call([],fe||[],ce||[]),": ")+"] ":"");return 0===ue.length?pe+"{}":P?pe+"{"+Q(ue,P)+"}":pe+"{ "+j.call(ue,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return H.call(e,t)}function q(e){return v.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return $(y.call(e,0,t.maxStringLength),t)+r}return F(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function Y(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function K(e,t,n,r){return e+" ("+t+") {"+(r?Q(n,r):j.call(n,", "))+"}"}function Q(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function J(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o0&&!o.call(e,0))for(var v=0;v0)for(var m=0;m=0&&"[object Function]"===t.call(e.callee)),r}},1811:function(e,t,n){"use strict";var r=n(24892),o=n(63297)(),a=n(44037),i=Object,l=a("Array.prototype.push"),u=a("Object.prototype.propertyIsEnumerable"),s=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=i(e);if(1===arguments.length)return n;for(var a=1;a-1?e.split(","):e},s=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,l=n.depth>0&&/(\[[^[\]]*])/.exec(a),s=l?a.slice(0,l.index):a,c=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var f=0;n.depth>0&&null!==(l=i.exec(a))&&f=0;--a){var i,l=e[a];if("[]"===l&&n.parseArrays)i=[].concat(o);else{i=n.plainObjects?Object.create(null):{};var s="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,c=parseInt(s,10);n.parseArrays||""!==s?!isNaN(c)&&l!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=o:"__proto__"!==s&&(i[s]=o):i={0:o}}o=i}return o}(c,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var c="string"===typeof e?function(e,t){var n,s={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=c.split(t.delimiter,f),d=-1,h=t.charset;if(t.charsetSentinel)for(n=0;n-1&&(m=a(m)?[m]:m),o.call(s,v)?s[v]=r.combine(s[v],m):s[v]=m}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(c),d=0;d0?j.join(",")||null:void 0}];else if(u(p))_=p;else{var T=Object.keys(j);_=v?T.sort(v):T}for(var R=i&&u(j)&&1===j.length?n+"[]":n,N=0;N<_.length;++N){var I=_[N],A="object"===typeof I&&"undefined"!==typeof I.value?I.value:j[I];if(!s||null!==A){var Z=u(j)?"function"===typeof a?a(R,I):R:R+(m?"."+I:"["+I+"]");O.set(t,E);var D=r();D.set(h,O),c(M,e(A,Z,a,i,l,s,"comma"===a&&x&&u(j)?null:f,p,v,m,g,y,b,x,w,D))}}return M};e.exports=function(e,t){var n,o=e,s=function(e){if(!e)return d;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if("undefined"!==typeof e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=a.formatters[n],o=d.filter;return("function"===typeof e.filter||u(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"===typeof s.filter?o=(0,s.filter)("",o):u(s.filter)&&(n=s.filter);var f,p=[];if("object"!==typeof o||null===o)return"";f=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=l[f];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),s.sort&&n.sort(s.sort);for(var g=r(),y=0;y0?w+x:""}},64184:function(e,t,n){"use strict";var r=n(59874),o=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var r=[],o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===r.RFC1738&&(40===c||41===c)?u+=l.charAt(s):c<128?u+=i[c]:c<2048?u+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?u+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(s+=1,c=65536+((1023&c)<<10|1023&l.charCodeAt(s)),u+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return u},isBuffer:function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r=0&&"[object Array]"===Object.prototype.toString.call(e)},d=function(e){return"[object Function]"===Object.prototype.toString.call(e)},h=Number.isInteger||function(e){return e<<0===e},v=function(e){return"[object Number]"===Object.prototype.toString.call(e)},m=function(e){return"[object Object]"===Object.prototype.toString.call(e)},g=function(e){return null!=e&&"object"===typeof e&&!0===e["@@functional/placeholder"]},y=function(e){return"[object String]"===Object.prototype.toString.call(e)},b=function(e){return"function"===typeof e["@@transducer/step"]},x=function(e,t){for(var n=0,r=t.length,o=Array(r);n=arguments.length)?s=r[u]:(s=arguments[i],i+=1),a[u]=s,g(s)||(l-=1),u+=1}return l<=0?o.apply(this,a):t(l,e(n,a,o))}},A=function(e,t,n){return function(){var r=arguments.length;if(0===r)return n();var o=arguments[r-1];if(!p(o)){var a=S(arguments,0,r-1);if("function"===typeof o[e])return o[e].apply(o,a);if(b(o))return t.apply(null,a)(o)}return n.apply(this,arguments)}},Z=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=j(this.xf["@@transducer/step"](e,!1))),e},R((function(t,n){return new e(t,n)}))}(),D=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=j(this.xf["@@transducer/step"](e,!0))),e},R((function(t,n){return new e(t,n)}))}(),F=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e.prototype.getCopy=function(){return i(S(this.acc,this.pos),S(this.acc,0,this.pos))},R((function(t,n){return new e(t,n)}))}(),L=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=C.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},R((function(t,n){return new e(t,n)}))}(),z=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},R((function(t,n){return new e(t,n)}))}(),B=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=function(){return this.xf["@@transducer/init"]()},e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},R((function(t,n){return new e(t,n)}))}(),W=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=C.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},R((function(t,n){return new e(t,n)}))}(),H=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=C.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},R((function(t,n){return new e(t,n)}))}(),U=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=j(this.xf["@@transducer/step"](e,t))),e},R((function(t,n){return new e(t,n)}))}(),q=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=j(this.xf["@@transducer/step"](e,this.idx))),e},R((function(t,n){return new e(t,n)}))}(),V=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},R((function(t,n){return new e(t,n)}))}(),$=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},R((function(t,n){return new e(t,n)}))}(),G=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=C.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},R((function(t,n){return new e(t,n)}))}(),Y=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=C.result,e.prototype["@@transducer/step"]=function(e,t){return 0===this.n?j(e):(this.n-=1,this.xf["@@transducer/step"](e,t))},R((function(t,n){return new e(t,n)}))}(),X=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=C.init,e.prototype["@@transducer/result"]=C.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):j(e)},R((function(t,n){return new e(t,n)}))}(),K=R((function(e,t){return Number(e)+Number(t)})),Q=N((function(e,t,n){if(t>=n.length||t<-n.length)return n;var r=(t<0?n.length:0)+t,o=i(n);return o[r]=e(n[r]),o})),J=R(A("all",Z,(function(e,t){for(var n=0;n=0?r:0);nt)throw new Error("min must not be greater than max in clamp(min, max, value)");return nt?t:n})),ce=T((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})),fe=R((function(e,n){return 1===e?T(n):t(e,I(e,[],n))})),pe=K(-1),de=R((function(e,t){return null==t||t!==t?e:t})),he=N((function(e,t,n){for(var r=[],o=0,a=t.length;o=0;){if(e(t[n]))return t[n];n-=1}}))),je=R(A("findLastIndex",$,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))),Se=R(M("forEach",(function(e,t){for(var n=t.length,r=0;rt})),_e=R((function(e,t){return e>=t})),Me=R(s),Te=R((function(e,t){return e in t})),Re=R((function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t})),Ne=T(c),Ie=N((function(e,t,n){return fe(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))})),Ae=K(1),Ze=N((function(e,t,n){e=e=0?e:n.length;var r=S(n);return r.splice(e,0,t),r})),De=N((function(e,t,n){return e=e=0?e:n.length,i(i(S(n,0,e),t),S(n,e))})),Fe=R(M("intersperse",(function(e,t){for(var n=[],r=0,o=t.length;r0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),Be=T((function(e){return null==e})),We=function(){var e=!{toString:null}.propertyIsEnumerable("toString"),t=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],n=function(){return arguments.propertyIsEnumerable("length")}(),r=function(e,t){for(var n=0;n=0;)s(a=t[i],o)&&!r(l,a)&&(l[l.length]=a),i-=1;return l})):T((function(e){return Object(e)!==e?[]:Object.keys(e)}))}(),He=T((function(e){var t,n=[];for(t in e)n[n.length]=t;return n})),Ue=T((function(e){return null!=e&&Le(Number,e.length)?e.length:NaN})),qe=R((function(e,t){return e=0;)a=e(a[0],n[r]),o[r]=a[1],r-=1;return[a[0],o]})),Ye=R((function(e,t){return t.match(e)||[]})),Xe=R((function(e,t){return h(e)?!h(t)||t<1?NaN:(e%t+t)%t:NaN})),Ke=R((function(e,t){return t>e?t:e})),Qe=N((function(e,t,n){return e(n)>e(t)?n:t})),Je=R((function(e,t){return _({},e,t)})),et=T((function(e){return _.apply(null,[{}].concat(e))})),tt=N((function(e,t,n){var r,o={};for(r in t)s(r,t)&&(o[r]=s(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)s(r,n)&&!s(r,o)&&(o[r]=n[r]);return o})),nt=R((function(e,t){return t0&&e(yt(t,n))})),wt=R((function(e,t){for(var n={},r=0;r=0;)t=e(t,n[r]),r-=1;return t})),Tt=T(j),Rt=N((function(e,t,n){return i(S(n,0,Math.min(e,n.length)),S(n,Math.min(n.length,e+t)))})),Nt=N((function(e,t,n){return n.replace(e,t)})),It=T((function(e){return y(e)?e.split("").reverse().join(""):S(e).reverse()})),At=N((function(e,t,n){for(var r=0,o=n.length,a=[t];ro?1:0}))})),zt=R((function(e,t){return[Dt(0,e,t),Dt(e,Ue(t),t)]})),Bt=R((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r=0&&e(t[n]);)n-=1;return S(t,n+1,1/0)})),$t=R(A("takeWhile",X,(function(e,t){for(var n=0,r=t.length;n=0;){if(o[l]===t)return a[l]===r;l-=1}for(o.push(t),a.push(r),l=i.length-1;l>=0;){var u=i[l];if(!s(u,r)||!e(r[u],t[u],o,a))return!1;l-=1}return o.pop(),a.pop(),!0},Cn=function(e){return function t(n){for(var r,o,a,i=[],l=0,u=n.length;l=0&&e(t[n]);)n-=1;return S(t,0,n+1)}))),Ln=R((function(e,t){return En(e,t,[],[])})),zn=R(A("filter",H,(function(e,t){return m(t)?Pn((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},We(t)):u(e,t)}))),Bn=T(Cn(!0)),Wn=T((function(e){return An((function(t,n){var r=S(arguments);return r[0]=n,r[1]=t,e.apply(this,r)}))})),Hn=ct(0),Un=Dt(0,-1),qn=N((function(e,t,n){var r,o;t.length>n.length?(r=t,o=n):(r=n,o=t);for(var a=[],i=0;i=0;){if(Ln(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)})),Qn=R(A("map",G,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return fe(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Pn((function(n,r){return n[r]=e(t[r]),n}),{},We(t));default:return x(e,t)}}))),Jn=R((function(e,t){return Pn((function(n,r){return n[r]=e(t[r],r,t),n}),{},We(t))})),er=N((function(e,t,n){return tt((function(t,n,r){return e(n,r)}),t,n)})),tr=Sn(i),nr=Sn(Wn(i)),rr=N((function(e,t,n){return Ln(yt(e,n),t)})),or=R((function(e,t){return Qn(St(e),t)})),ar=fn(x,[Ot,Ne]),ir=N((function(e,t,n){return Ct(Ln(t),e,n)})),lr=N((function(e,t,n){return Ct(Le(e),t,n)})),ur=N(Pn),sr=I(4,[],(function(e,t,n,r){return Pn((function(r,o){var a=n(o);return r[a]=e(s(a,r)?r[a]:t,o),r}),{},r)})),cr=R((function(e,t){return zn(a(e),t)})),fr=R((function(e,t){return Yt(ee(e),t)})),pr=ur(K,0),dr=R((function(e,t){return Zn(e>=0?t.length-e:0,t)})),hr=fe(4,(function(e,t,n,r){return Pn(e("function"===typeof t?P(t):t),n,r)})),vr=N((function(e,t,n){return ln(e,i(t,n))})),mr=R((function(e,t){return mn(Qn(Ln,e),t)})),gr=function(e){var t=function(e){return{"@@transducer/init":C.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var r=e["@@transducer/step"](t,n);return r["@@transducer/reduced"]?function(e){return{"@@transducer/value":e,"@@transducer/reduced":!0}}(r):r}}}(e);return{"@@transducer/init":C.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return ze(n)?Pn(t,e,n):Pn(t,e,[n])}}},yr=function(e,t,n){var r,o;if("function"===typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n=0)return!1;n+=1}return!0})),Or=T((function(e){return fe(ur(Ke,0,or("length",e)),(function(){for(var t=0,n=e.length;t10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:An(it(e,(function(e,n,r,o,a,i,l,u,s,c){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,o);case 5:return new t(e,n,r,o,a);case 6:return new t(e,n,r,o,a,i);case 7:return new t(e,n,r,o,a,i,l);case 8:return new t(e,n,r,o,a,i,l,u);case 9:return new t(e,n,r,o,a,i,l,u,s);case 10:return new t(e,n,r,o,a,i,l,u,s,c)}})))})),_r=R((function(e,t){return fe(ur(Ke,0,or("length",t)),(function(){var n=arguments,r=this;return e.apply(r,x((function(e){return e.apply(r,n)}),t))}))})),Mr=sr((function(e,t){return e+1}),0),Tr=R(A("dropRepeatsWith",B,(function(e,t){var n=[],r=1,o=t.length;if(0!==o)for(n[0]=t[0];rt?1:0})).slice(r,r+n))})),qr=Dr([zn,cr]),Vr=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return t(arguments[0].length,ur(w,arguments[0],Ut(arguments)))},$r=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return t(arguments[0].length,ur(O,arguments[0],Ut(arguments)))},Gr=ur(at,1),Yr=R((function(e,t){return"function"===typeof t.sequence?t.sequence(e):Mt((function(e,t){return kr(Qn(jt,t),e)}),e([]),t)})),Xr=N((function(e,t,n){return Yr(e,Qn(t,n))})),Kr=Er(c),Qr=function(e,t){return yr(t,e,0)>=0},Jr=function e(t,n){var r=function(r){var o=n.concat([t]);return Qr(r,o)?"":e(r,o)},o=function(e,t){return x((function(t){return k(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+x(r,t).join(", ")+"))";case"[object Array]":return"["+x(r,t).concat(o(t,cr((function(e){return/^\d+$/.test(e)}),We(t)))).join(", ")+"]";case"[object Boolean]":return"object"===typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):k(E(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===typeof t?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object String]":return"object"===typeof t?"new String("+r(t.valueOf())+")":k(t);case"[object Undefined]":return"undefined";default:if("function"===typeof t.toString){var a=t.toString();if("[object Object]"!==a)return a}return"{"+o(t,We(t)).join(", ")+"}"}},eo=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Vr.apply(this,It(arguments))},to=function(){return eo.apply(this,jt(Ne,Qn(Er,arguments)))},no=T((function(e){return Pr(e.length,e)})),ro=R(Qr),oo=R((function(e,t){for(var n=[],r=0,o=e.length;rr):n._nativeSet.has(e):o in n._items?e in n._items[o]?!t:(t&&(n._items[o][e]=!0),t):(t&&(n._items[o]={},n._items[o][e]=!0),t):(t&&(n._items["-0"]=!0),t);case"boolean":if(o in n._items){var a=e?1:0;return n._items[o][a]?!t:(t&&(n._items[o][a]=!0),t)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),t;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size>r):n._nativeSet.has(e):o in n._items?Qr(e,n._items[o])?!t:(t&&n._items[o].push(e),t):(t&&(n._items[o]=[e]),t);case"undefined":return n._items[o]?!t:(t&&(n._items[o]=!0),t);case"object":if(null===e)return n._items.null?!t:(t&&(n._items.null=!0),t);default:return(o=Object.prototype.toString.call(e))in n._items?Qr(e,n._items[o])?!t:(t&&n._items[o].push(e),t):(t&&(n._items[o]=[e]),t)}}return e.prototype.add=function(e){return t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}(),fo=R((function(e,t){return d(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:io(te)(e,t)})),po=io(st),ho=R((function(e,t){return d(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:io(vt)(e,t)})),vo=R((function(e,t){return fe(e+1,(function(){var n=arguments[e];if(null!=n&&Le(Function,n[t]))return n[t].apply(n,S(arguments,0,e));throw new TypeError(uo(n)+' does not have a method named "'+t+'"')}))})),mo=vo(1,"join"),go=T((function(e){var n={};return t(e.length,(function(){var t=uo(arguments);return s(t,n)||(n[t]=e.apply(this,arguments)),n[t]}))})),yo=vo(1,"split"),bo=R((function(e,t){if(!function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+uo(e));return o(e).test(t)})),xo=vo(0,"toLowerCase"),wo=vo(0,"toUpperCase"),Oo=R((function(e,t){for(var n,r,o=new co,a=[],i=0;it.length?(n=e,r=t):(n=t,r=e),Eo(u(Wn(Qr)(n),r))})),Po=R(eo(Eo,i)),_o={F:On,T:kn,__:{"@@functional/placeholder":!0},add:K,addIndex:Rn,adjust:Q,all:J,allPass:xr,allUniq:wr,always:ee,and:te,any:ne,anyPass:Or,ap:kr,aperture:re,append:oe,apply:ae,applySpec:jr,assoc:ie,assocPath:le,binary:Nn,bind:ue,both:fo,call:Sr,chain:Er,clamp:se,clone:In,comparator:ce,complement:po,compose:eo,composeK:to,composeP:function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return $r.apply(this,It(arguments))},concat:ko,cond:Cr,construct:no,constructN:Pr,contains:ro,converge:_r,countBy:Mr,curry:An,curryN:fe,dec:pe,defaultTo:de,difference:oo,differenceWith:he,dissoc:ve,dissocPath:me,divide:ge,drop:Zn,dropLast:Dn,dropLastWhile:Fn,dropRepeats:ao,dropRepeatsWith:Tr,dropWhile:ye,either:ho,empty:be,eqBy:Rr,eqProps:Nr,equals:Ln,evolve:xe,filter:zn,find:we,findIndex:Oe,findLast:ke,findLastIndex:je,flatten:Bn,flip:Wn,forEach:Se,fromPairs:Ee,groupBy:Ir,groupWith:Ce,gt:Pe,gte:_e,has:Me,hasIn:Te,head:Hn,identical:Re,identity:Ne,ifElse:Ie,inc:Ae,indexBy:Ar,indexOf:Zr,init:Un,insert:Ze,insertAll:De,intersection:Co,intersectionWith:qn,intersperse:Fe,into:Vn,invert:$n,invertObj:Gn,invoker:vo,is:Le,isArrayLike:ze,isEmpty:Yn,isNil:Be,join:mo,juxt:Dr,keys:We,keysIn:He,last:Xn,lastIndexOf:Kn,length:Ue,lens:Fr,lensIndex:Lr,lensPath:zr,lensProp:Br,lift:io,liftN:Wr,lt:qe,lte:Ve,map:Qn,mapAccum:$e,mapAccumRight:Ge,mapObjIndexed:Jn,match:Ye,mathMod:Xe,max:Ke,maxBy:Qe,mean:Hr,median:Ur,memoize:go,merge:Je,mergeAll:et,mergeWith:er,mergeWithKey:tt,min:nt,minBy:rt,modulo:ot,multiply:at,nAry:it,negate:lt,none:ut,not:st,nth:ct,nthArg:ft,objOf:pt,of:dt,omit:lo,once:ht,or:vt,over:mt,pair:gt,partial:tr,partialRight:nr,partition:qr,path:yt,pathEq:rr,pathOr:bt,pathSatisfies:xt,pick:wt,pickAll:Ot,pickBy:kt,pipe:Vr,pipeK:function(){return to.apply(this,It(arguments))},pipeP:$r,pluck:or,prepend:jt,product:Gr,project:ar,prop:St,propEq:ir,propIs:lr,propOr:Et,propSatisfies:Ct,props:Pt,range:_t,reduce:ur,reduceBy:sr,reduceRight:Mt,reduced:Tt,reject:cr,remove:Rt,repeat:fr,replace:Nt,reverse:It,scan:At,sequence:Yr,set:Zt,slice:Dt,sort:Ft,sortBy:Lt,split:yo,splitAt:zt,splitEvery:Bt,splitWhen:Wt,subtract:Ht,sum:pr,symmetricDifference:jo,symmetricDifferenceWith:So,tail:Ut,take:qt,takeLast:dr,takeLastWhile:Vt,takeWhile:$t,tap:Gt,test:bo,times:Yt,toLower:xo,toPairs:Xt,toPairsIn:Kt,toString:uo,toUpper:wo,transduce:hr,transpose:Qt,traverse:Xr,trim:Jt,tryCatch:en,type:tn,unapply:nn,unary:rn,uncurryN:on,unfold:an,union:Po,unionWith:vr,uniq:Eo,uniqBy:Oo,uniqWith:ln,unless:un,unnest:Kr,until:sn,update:cn,useWith:fn,values:pn,valuesIn:dn,view:hn,when:vn,where:mn,whereEq:mr,without:so,wrap:gn,xprod:yn,zip:bn,zipObj:xn,zipWith:wn};e.exports=_o}).call(this)},4748:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(72791)),a=r(n(72157)),i=r(n(76760)),l=n(64622),u='Menlo, Monaco, Consolas, "Lucida Console", monospace',s='"Lucida Grande", Helvetica, arial, sans-serif',c={metaWrap:function(e){return{padding:e.fullWidth?"0 10px":0}},location:{fontSize:18,fontFamily:s,color:"#aaa",marginBottom:10},locationItem:function(e){return{color:e.last?"#000":"inerit"}},locationDel:{margin:"0 .2em",color:"#aaa"},import:{fontFamily:u,fontSize:14,marginBottom:10,color:"#aaa",float:"right"},description:{maxWidth:600,marginBottom:10,fontFamily:s,fontSize:14},files:function(e){return{margin:e.fullWidth?"20px 10px":"20px 0"}},fileName:{fontFamily:s,fontSize:14,fontWeight:"bold"},fileContnet:{fontFamily:u,fontSize:11,margin:"5px 0 20px 0",background:"#d7e5ec",padding:5,borderRadius:3,overflow:"auto"}};function f(e,t,n){var r=n.length===t+1;return[o.default.createElement("span",{key:t+"item",style:c.locationItem({last:r})},e),!r&&o.default.createElement("span",{key:t+"del",style:c.locationDel},"/")]}t.default=a.default({propTypes:{demo:i.default.node,fullWidth:i.default.bool,location:i.default.array.isRequired,importPath:i.default.string,name:i.default.string,description:i.default.node,files:i.default.arrayOf(i.default.shape({name:i.default.string.isRequired,content:i.default.string.isRequired}).isRequired)},renderFile:function(e,t){return o.default.createElement("div",{key:t},o.default.createElement("div",{style:c.fileName},e.name),o.default.createElement("pre",{style:c.fileContnet},e.content))},render:function(){var e=this.props,t=e.demo,n=e.fullWidth,r=e.location,a=e.importPath,i=e.description,u=e.files,s=e.name,p=void 0===s?l.last(r):s;return o.default.createElement("div",null,o.default.createElement("div",{style:c.metaWrap({fullWidth:n})},o.default.createElement("div",{style:c.import},"import ",p," from '",a,"'"),o.default.createElement("div",{style:c.location},l.unnest(r.map(f))),o.default.createElement("div",{style:c.description},i)),o.default.createElement("div",null,t),u&&o.default.createElement("div",{style:c.files({fullWidth:n})},u.map(this.renderFile)))}}),e.exports=t.default},81091:function(e,t,n){"use strict";var r=n(38416).default;t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1}function h(e){return{type:"node",name:e[0].location[0],children:g(e.map(f))}}function v(e){return{type:"leaf",name:e.location[0],hash:e.hash}}function m(e){var t=e.filter(d);return e.filter(p).map(v).concat(t.length>0?[h(t)]:[])}function g(e){return s.unnest(s.values(s.groupBy((function(e){return e.location[0]}),e)).map(m))}var y=function(e){return i.default.createElement("div",{style:c.node},i.default.createElement("div",{style:c.nodeName},e.name),i.default.createElement(x,{items:e.children,current:e.current}))},b=function(e){return i.default.createElement("a",{href:"#!"+e.hash,style:c.leaf({current:e.current===e.hash})},e.name)},x=function(e){return i.default.createElement("div",{style:c.menu({topLevel:e.topLevel})},e.items.map((function(t,n){return"leaf"===t.type?i.default.createElement(b,o({},t,{current:e.current,key:n})):i.default.createElement(y,o({},t,{current:e.current,key:n}))})))};t.default=l.default({propTypes:{menu:u.default.arrayOf(u.default.object.isRequired).isRequired,children:u.default.node,fullWidth:u.default.bool,currentHash:u.default.string},getInitialState:function(){return{menuOpen:!1}},handleMenuBtnClick:function(){this.setState({menuOpen:!0})},handleWrapClick:function(e){e.target!==this.refs.menuBtn&&e.target.parentNode!==this.refs.menuBtn&&this.setState({menuOpen:!1})},render:function(){var e=this.props,t=e.menu,n=e.children,r=e.fullWidth,o=e.currentHash,a=this.state.menuOpen;return i.default.createElement("div",{onClick:this.handleWrapClick,style:c.wrap},r&&i.default.createElement("button",{onClick:this.handleMenuBtnClick,ref:"menuBtn",style:c.menuBtn},i.default.createElement("div",{style:c.menuBtnBar}),i.default.createElement("div",{style:c.menuBtnBar}),i.default.createElement("div",{style:c.menuBtnBar})),i.default.createElement("div",{style:c.menuWrap({fullWidth:r,menuOpen:a})},i.default.createElement(x,{items:g(t),topLevel:!0,current:o})),i.default.createElement("div",{style:c.content({fullWidth:r}),key:o},n))}}),e.exports=t.default},44070:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(72791)),a=r(n(72157)),i=r(n(76760)),l=r(n(81091)),u=r(n(41337)),s=r(n(4748));function c(e){return"/"+e.map(encodeURIComponent).join("/")+"/"}function f(e){return e.slice().reverse().join(" \\ ")+" \u2014 Components Library"}r(n(97636)).default(),t.default=a.default({propTypes:{demos:i.default.arrayOf(i.default.object.isRequired).isRequired},render:function(){var e=this.props.demos,t=e.map((function(e){var t=e.location;return{location:t,hash:c(t)}})),n=e.map((function(e){return{title:f(e.location),hash:c(e.location),content:o.default.createElement(l.default,{menu:t,fullWidth:e.fullWidth},o.default.createElement(s.default,e))}})).concat([{title:"Components Library",hash:"",content:o.default.createElement(l.default,{menu:t},"\u2190 Use menu to start exploring the library")}]),r={title:"404 \u2014 Components Library",content:o.default.createElement(l.default,{menu:t},"404")};return o.default.createElement(u.default,{routes:n,notFoundRoute:r})}}),e.exports=t.default},41337:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(72791)),a=r(n(72157)),i=r(n(76760));t.default=a.default({propTypes:{routes:i.default.arrayOf(i.default.object.isRequired).isRequired,notFoundRoute:i.default.object.isRequired},getCurrentRoute:function(){for(var e=this.props,t=e.routes,n=e.notFoundRoute,r=location.hash.slice(2),o=0;o")}))))}}),e.exports=t.default},45625:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(72791)),a=r(n(72157)),i=r(n(90681)),l=r(n(19844)),u={color:"#777",fontSize:"11px",padding:"4px",whiteSpace:"pre",background:"#fff",overflow:"auto"};t.default=a.default({displayName:"Demo.Controls.RenderCode",propTypes:{obj:i.default.node.isRequired,indentDepth:i.default.number.isRequired},render:function(){var e=this.props,t=e.obj,n=e.indentDepth;return o.default.createElement("div",{style:u,className:"react-demo__render-code"},l.default(t,{depthLim:n}))}}),e.exports=t.default},5506:function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;tl)return"__DepthLimit";if(-1!==n.indexOf(t))return"__Circular";var p=0,d=void 0,h=function(t){return e(t,{indent:a+" ",depthLim:u-1,depth:f+1})};do{d=s[p](t,h,n,u>0?a:""),p++}while(null===d);return d}(e,t)};var o=r(n(99739)),a=r(n(68863)),i=r(n(72791)),l=20;function u(e){return"<"===e[0]?e:'"'===e[0]?e.slice(1,e.length-1):"{"+e+"}"}var s=[function(e){var t=typeof e;return null===e||void 0===e||"number"===t||"boolean"===t||o.default(e)?String(e):null},function(e){return"function"===typeof e?String(e).replace(/{[\s\S]*}/,"=> ...").replace(/.*\(/,"("):null},function(e){return"string"===typeof e?'"'+e+'"':null},function(e){return e instanceof Date?"Date('"+e.toISOString()+"')":null},function(e,t,n){if(Array.isArray(e)){if(0===e.length)return"[]";n.push(e);var r="["+e.map(t).join(", ")+"]";return n.pop(),r}return null},function(e,t,n,r){if(i.default.isValidElement(e)){var o=function(){var o=""===r?"":r.replace(/\s\s$/,""),a="string"===typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown",i=e.type&&"function"===typeof e.type.getDefaultProps?e.type.getDefaultProps():{},l=Object.keys(e.props).filter((function(t){return i[t]!==e.props[t]})),s="",c=null;if(l.length>0){n.push(e);var f=l.filter((function(e){return"children"!==e}));if(f.length>0){var p=""===r?" ":r;s=f.map((function(n){var r=e.props[n];return!0===r?n:n+"="+function(e){return'"'===e[0]?e:"{"+e+"}"}(t(r))})),s=""+p+s.join(p)+o}-1!==l.indexOf("children")&&(c=Array.isArray(e.props.children)?e.props.children.map((function(e){return u(t(e))})).join(""+r):u(t(e.props.children))),n.pop()}return{v:"<"+a+s+(null===c?"/>":">"+r+c+o+"")}}();if("object"===typeof o)return o.v}return null},function(e,t,n,r){if(a.default(e)){var o=Object.keys(e);if(0===o.length)return"{}";n.push(e);var i=""===r?", ":","+r,l=""===r?"":r.replace(/\s\s$/,""),u="{"+r+o.map((function(n){return n+": "+t(e[n])})).join(i)+l+"}";return n.pop(),u}return null},function(){return"__UnknownType"}];e.exports=t.default},48507:function(e,t,n){var r=n(51847)();e.exports=r},14376:function(e,t,n){var r=n(60311);e.exports=function(e){return(e?e.length:0)?r(e,!0):[]}},28379:function(e){e.exports=function(e){var t=e?e.length:0;return t?e[t-1]:void 0}},80964:function(e,t,n){var r=n(16054);e.exports=function(e,t){var n=-1,o=e?e.length:0,a={};for(!o||t||r(e[0])||(t=[]);++no?0:o+t),(n=void 0===n||n>o?o:+n||0)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++rs))return!1;for(;++u-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},30592:function(e){e.exports=function(e){return!!e&&"object"==typeof e}},67088:function(e,t,n){var r=n(46954);e.exports=function(e){return e===e&&!r(e)}},36482:function(e,t,n){var r=n(15086);e.exports=function(e,t){e=r(e);for(var n=-1,o=t.length,a={};++n0;++s