@equinor/ioc-common-frontend 10.12.1-beta.1 → 10.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +2 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types/components/TabbedTable/TableInsideTabbedHook.d.ts.map +1 -1
- package/build/types/components/Timeline/Timeline.d.ts.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -242,11 +242,11 @@ var TT=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
242
242
|
* @author Lea Verou <https://lea.verou.me>
|
|
243
243
|
* @namespace
|
|
244
244
|
* @public
|
|
245
|
-
*/e.exports&&(e.exports=t),void 0!==U&&(U.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(i)){a.code="",l.setAttribute(n,r);var s=l.appendChild(document.createElement("CODE"));s.textContent="Loading…";var c=l.getAttribute("data-src"),u=a.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=e[d]||d}t.util.setLanguage(s,u),t.util.setLanguage(l,u);var f=t.plugins.autoloader;f&&f.loadLanguages(u),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){l.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],c=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(a,c).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(a+1))}s.textContent=e,t.highlightElement(s)}),(function(e){l.setAttribute(n,"failed"),s.textContent=e}))}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(aQ)),aQ.exports}var sQ,cQ={};function uQ(){return sQ||(sQ=1,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}),cQ}var dQ,fQ={};function pQ(){return dQ||(dQ=1,Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript),fQ}var hQ,gQ={};function mQ(){return hQ||(hQ=1,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml),gQ}var vQ,bQ={};function yQ(){return vQ||(vQ=1,function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n);var r=l[t];return r||e})),t}(t.content),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)),bQ}var xQ,wQ={};function CQ(){return xQ||(xQ=1,Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean),wQ}var EQ,TQ={};function kQ(){return EQ||(EQ=1,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)),TQ}var SQ,NQ={};function OQ(){return SQ||(SQ=1,Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec),NQ}var AQ,MQ={};function IQ(){return AQ||(AQ=1,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}),MQ}var RQ,DQ={};function _Q(){return RQ||(RQ=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),DQ}var PQ,LQ={};function FQ(){return PQ||(PQ=1,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)),LQ}var zQ,jQ={};function BQ(){return zQ||(zQ=1,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift}))),jQ}var VQ,WQ={};function HQ(){return VQ||(VQ=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),WQ}var qQ,UQ={};function KQ(){return qQ||(qQ=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),UQ}var YQ,GQ,ZQ={};function JQ(){return YQ||(YQ=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)),ZQ}function XQ(){if(GQ)return iQ;GQ=1;var e=lQ();uQ(),pQ(),mQ(),yQ(),CQ(),kQ(),OQ(),IQ(),_Q(),FQ(),BQ(),HQ(),KQ(),JQ();var t=MU,n=xU;const r=t=>null!=t&&e.languages.hasOwnProperty(t)?t:void 0;function o(e,n){for(const r of e.childNodes){if(t.isHTMLElement(r)&&r.tagName===n)return!0;o(r,n)}return!1}const i="data-highlight-language";class a extends n.ElementNode{static getType(){return"code"}static clone(e){return new a(e.__language,e.__key)}constructor(e,t){super(t),this.__language=r(e)}createDOM(e){const n=document.createElement("code");t.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false");const r=this.getLanguage();return r&&n.setAttribute(i,r),n}updateDOM(e,t,n){const r=this.__language,o=e.__language;return r?r!==o&&t.setAttribute(i,r):o&&t.removeAttribute(i),!1}exportDOM(){const e=document.createElement("pre");e.setAttribute("spellcheck","false");const t=this.getLanguage();return t&&e.setAttribute(i,t),{element:e}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||o(e,"BR"))?{conversion:c,priority:1}:null,div:e=>({conversion:u,priority:1}),pre:e=>({conversion:c,priority:0}),table:e=>g(e)?{conversion:d,priority:3}:null,td:e=>{const t=e,n=t.closest("table");return t.classList.contains("js-file-line")?{conversion:p,priority:3}:n&&g(n)?{conversion:f,priority:3}:null},tr:e=>{const t=e.closest("table");return t&&g(t)?{conversion:f,priority:3}:null}}}static importJSON(e){const t=l(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){const r=this.getChildren(),o=r.length;if(o>=2&&"\n"===r[o-1].getTextContent()&&"\n"===r[o-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===o){r[o-1].remove(),r[o-2].remove();const e=n.$createParagraphNode();return this.insertAfter(e,t),e}const i=e.anchor,a=e.focus,l=(i.isBefore(a)?i:a).getNode();if(E(l)||n.$isTabNode(l)){let t=T(l);const r=[];for(;;)if(n.$isTabNode(t))r.push(n.$createTabNode()),t=t.getNextSibling();else{if(!E(t))break;{let e=0;const n=t.getTextContent(),o=t.getTextContentSize();for(;e<o&&" "===n[e];e++);if(0!==e&&r.push(C(" ".repeat(e))),e!==o)break;t=t.getNextSibling()}}if(r.length>0)return e.insertNodes([n.$createLineBreakNode(),...r]),r[r.length-1]}return null}canIndent(){return!1}collapseAtStart(){const e=n.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){this.getWritable().__language=r(e)}getLanguage(){return this.getLatest().__language}}function l(e){return n.$applyNodeReplacement(new a(e))}function s(e){return e instanceof a}function c(e){let n;return t.isHTMLElement(e)&&(n=e.getAttribute(i)),{node:l(n)}}function u(e){const t=e,r=h(t);return r||function(e){let t=e.parentElement;for(;null!==t;){if(h(t))return!0;t=t.parentElement}return!1}(t)?{after:t=>{const r=e.parentNode;return null!=r&&e!==r.lastChild&&t.push(n.$createLineBreakNode()),t},node:r?l():null}:{node:null}}function d(){return{node:l()}}function f(){return{node:null}}function p(e){const t=e;return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(n.$createLineBreakNode()),e),node:null}}function h(e){return null!==e.style.fontFamily.match("monospace")}function g(e){return e.classList.contains("js-file-line-container")}const m="javascript",v={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},b={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function y(e){return b[e]||e}class x extends n.TextNode{constructor(e,t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new x(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){const n=super.createDOM(e),r=w(e.theme,this.__highlightType);return t.addClassNamesToElement(n,r),n}updateDOM(e,n,r){const o=super.updateDOM(e,n,r),i=w(r.theme,e.__highlightType),a=w(r.theme,this.__highlightType);return i!==a&&(i&&t.removeClassNamesFromElement(n,i),a&&t.addClassNamesToElement(n,a)),o}static importJSON(e){const t=C(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return l()}}function w(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function C(e,t){return n.$applyNodeReplacement(new x(e,t))}function E(e){return e instanceof x}function T(e){let t=e,r=e;for(;E(r)||n.$isTabNode(r);)t=r,r=r.getPreviousSibling();return t}function k(e){let t=e,r=e;for(;E(r)||n.$isTabNode(r);)t=r,r=r.getNextSibling();return t}const S={defaultLanguage:m,tokenize(t,n){return e.tokenize(t,e.languages[n||""]||e.languages[this.defaultLanguage])}};function N(e,t){let r=null,o=null,i=e,a=t,l=e.getTextContent();for(;;){if(0===a){if(i=i.getPreviousSibling(),null===i)break;if(!(E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected a valid Code Node: CodeHighlightNode, TabNode, LineBreakNode");if(n.$isLineBreakNode(i)){r={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),l=i.getTextContent()}else a--;const e=l[a];E(i)&&" "!==e&&(o={node:i,offset:a})}if(null!==o)return o;let s=null;if(t<e.getTextContentSize())E(e)&&(s=e.getTextContent()[t]);else{const t=e.getNextSibling();E(t)&&(s=t.getTextContent()[0])}if(null!==s&&" "!==s)return r;{const o=function(e,t){let r=e,o=t,i=e.getTextContent(),a=e.getTextContentSize();for(;;){if(!E(r)||o===a){if(r=r.getNextSibling(),null===r||n.$isLineBreakNode(r))return null;E(r)&&(o=0,i=r.getTextContent(),a=r.getTextContentSize())}if(E(r)){if(" "!==i[o])return{node:r,offset:o};o++}}}(e,t);return null!==o?o:r}}function O(e){const t=k(e);if(n.$isLineBreakNode(t))throw Error("Unexpected lineBreakNode in getEndOfCodeInLine");return t}function A(e,t,r){const o=e.getParent();s(o)?R(o,t,r):E(e)&&e.replace(n.$createTextNode(e.__text))}function M(e,t){const r=t.getElementByKey(e.getKey());if(null===r)return;const o=e.getChildren(),i=o.length;if(i===r.__cachedChildrenLength)return;r.__cachedChildrenLength=i;let a="1",l=1;for(let e=0;e<i;e++)n.$isLineBreakNode(o[e])&&(a+="\n"+ ++l);r.setAttribute("data-gutter",a)}const I=new Set;function R(e,t,r){const o=e.getKey();I.has(o)||(I.add(o),void 0===e.getLanguage()&&e.setLanguage(r.defaultLanguage),t.update((()=>{!function(e,t){const r=n.$getNodeByKey(e);if(!s(r)||!r.isAttached())return;const o=n.$getSelection();if(!n.$isRangeSelection(o))return void t();const i=o.anchor,a=i.offset,l="element"===i.type&&n.$isLineBreakNode(r.getChildAtIndex(i.offset-1));let c=0;if(!l){const e=i.getNode();c=a+e.getPreviousSiblings().reduce(((e,t)=>e+t.getTextContentSize()),0)}if(!t())return;if(l)return void i.getNode().select(a,a);r.getChildren().some((e=>{const t=n.$isTextNode(e);if(t||n.$isLineBreakNode(e)){const n=e.getTextContentSize();if(t&&n>=c)return e.select(c,c),!0;c-=n}return!1}))}(o,(()=>{const t=n.$getNodeByKey(o);if(!s(t)||!t.isAttached())return!1;const i=t.getTextContent(),a=D(r.tokenize(i,t.getLanguage()||r.defaultLanguage)),l=function(e,t){let n=0;for(;n<e.length&&_(e[n],t[n]);)n++;const r=e.length,o=t.length,i=Math.min(r,o)-n;let a=0;for(;a<i;)if(a++,!_(e[r-a],t[o-a])){a--;break}const l=n,s=r-a,c=t.slice(n,o-a);return{from:l,nodesForReplacement:c,to:s}}(t.getChildren(),a),{from:c,to:u,nodesForReplacement:d}=l;return!(c===u&&!d.length)&&(e.splice(c,u-c,d),!0)}))}),{onUpdate:()=>{I.delete(o)},skipTransforms:!0}))}function D(e,t){const r=[];for(const o of e)if("string"==typeof o){const e=o.split(/(\n|\t)/),i=e.length;for(let o=0;o<i;o++){const i=e[o];"\n"===i||"\r\n"===i?r.push(n.$createLineBreakNode()):"\t"===i?r.push(n.$createTabNode()):i.length>0&&r.push(C(i,t))}}else{const{content:e}=o;"string"==typeof e?r.push(...D([e],o.type)):Array.isArray(e)&&r.push(...D(e,o.type))}return r}function _(e,t){return E(e)&&E(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||n.$isTabNode(e)&&n.$isTabNode(t)||n.$isLineBreakNode(e)&&n.$isLineBreakNode(t)}function P(e){if(!n.$isRangeSelection(e))return!1;const t=e.anchor.getNode(),r=e.focus.getNode();if(t.is(r)&&s(t))return!0;const o=t.getParent();return s(o)&&o.is(r.getParent())}function L(e){const t=e.getNodes(),r=[[]];if(1===t.length&&s(t[0]))return r;let o=r[0];for(let e=0;e<t.length;e++){const i=t[e];if(!(E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection to be inside CodeBlock and consisting of CodeHighlightNode, TabNode and LineBreakNode");n.$isLineBreakNode(i)?0!==e&&o.length>0&&(o=[],r.push(o)):o.push(i)}return r}function F(e){const t=n.$getSelection();if(!n.$isRangeSelection(t)||!P(t))return!1;const r=L(t),o=r.length;if(r.length>1){for(let t=0;t<o;t++){const o=r[t];if(o.length>0){let r=o[0];0===t&&(r=T(r)),null!==r&&(e===n.INDENT_CONTENT_COMMAND?r.insertBefore(n.$createTabNode()):n.$isTabNode(r)&&r.remove())}}return!0}const i=t.getNodes()[0];if(!(s(i)||E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection firstNode to be CodeHighlightNode or CodeTabNode");if(s(i))return e===n.INDENT_CONTENT_COMMAND&&t.insertNodes([n.$createTabNode()]),!0;const a=T(i);if(null===a)throw Error("Expected getFirstCodeNodeOfLine to return a valid Code Node");return e===n.INDENT_CONTENT_COMMAND?n.$isLineBreakNode(a)?a.insertAfter(n.$createTabNode()):a.insertBefore(n.$createTabNode()):n.$isTabNode(a)&&a.remove(),!0}function z(e,t){const r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;const{anchor:o,focus:i}=r,a=o.offset,l=i.offset,s=o.getNode(),c=i.getNode(),u=e===n.KEY_ARROW_UP_COMMAND;if(!P(r)||!E(s)&&!n.$isTabNode(s)||!E(c)&&!n.$isTabNode(c))return!1;if(!t.altKey){if(r.isCollapsed()){const e=s.getParentOrThrow();if(u&&0===a&&null===s.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!u&&a===s.getTextContentSize()&&null===s.getNextSibling()){if(null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0}}return!1}let d,f;if(s.isBefore(c)?(d=T(s),f=k(c)):(d=T(c),f=k(s)),null==d||null==f)return!1;const p=d.getNodesBetween(f);for(let e=0;e<p.length;e++){const t=p[e];if(!E(t)&&!n.$isTabNode(t)&&!n.$isLineBreakNode(t))return!1}t.preventDefault(),t.stopPropagation();const h=u?d.getPreviousSibling():f.getNextSibling();if(!n.$isLineBreakNode(h))return!0;const g=u?h.getPreviousSibling():h.getNextSibling();if(null==g)return!0;const m=E(g)||n.$isTabNode(g)||n.$isLineBreakNode(g)?u?T(g):k(g):null;let v=null!=m?m:g;return h.remove(),p.forEach((e=>e.remove())),e===n.KEY_ARROW_UP_COMMAND?(p.forEach((e=>v.insertBefore(e))),v.insertBefore(h)):(v.insertAfter(h),v=h,p.forEach((e=>{v.insertAfter(e),v=e}))),r.setTextNodeRange(s,a,c,l),!0}function j(e,t){const r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;const{anchor:o,focus:i}=r,a=o.getNode(),l=i.getNode(),s=e===n.MOVE_TO_START;if(!E(a)&&!n.$isTabNode(a)||!E(l)&&!n.$isTabNode(l))return!1;if(s){const e=N(l,i.offset);if(null!==e){const{node:t,offset:o}=e;n.$isLineBreakNode(t)?t.selectNext(0,0):r.setTextNodeRange(t,o,t,o)}else l.getParentOrThrow().selectStart()}else{O(l).select()}return t.preventDefault(),t.stopPropagation(),!0}return iQ.$createCodeHighlightNode=C,iQ.$createCodeNode=l,iQ.$isCodeHighlightNode=E,iQ.$isCodeNode=s,iQ.CODE_LANGUAGE_FRIENDLY_NAME_MAP=v,iQ.CODE_LANGUAGE_MAP=b,iQ.CodeHighlightNode=x,iQ.CodeNode=a,iQ.DEFAULT_CODE_LANGUAGE=m,iQ.PrismTokenizer=S,iQ.getCodeLanguages=()=>Object.keys(e.languages).filter((t=>"function"!=typeof e.languages[t])).sort(),iQ.getDefaultCodeLanguage=()=>m,iQ.getEndOfCodeInLine=O,iQ.getFirstCodeNodeOfLine=T,iQ.getLanguageFriendlyName=function(e){const t=y(e);return v[t]||t},iQ.getLastCodeNodeOfLine=k,iQ.getStartOfCodeInLine=N,iQ.normalizeCodeLang=y,iQ.registerCodeHighlighting=function(e,r){if(!e.hasNodes([a,x]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return null==r&&(r=S),t.mergeRegister(e.registerMutationListener(a,(t=>{e.update((()=>{for(const[r,o]of t)if("destroyed"!==o){const t=n.$getNodeByKey(r);null!==t&&M(t,e)}}))})),e.registerNodeTransform(a,(t=>R(t,e,r))),e.registerNodeTransform(n.TextNode,(t=>A(t,e,r))),e.registerNodeTransform(x,(t=>A(t,e,r))),e.registerCommand(n.KEY_TAB_COMMAND,(t=>{const r=function(e){const t=n.$getSelection();if(!n.$isRangeSelection(t)||!P(t))return null;const r=e?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND,o=e?n.OUTDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND;if(L(t).length>1)return r;const i=t.getNodes()[0];if(!(s(i)||E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection firstNode to be CodeHighlightNode or TabNode");if(s(i))return r;const a=T(i),l=k(i),c=t.anchor,u=t.focus;let d,f;return u.isBefore(c)?(d=u,f=c):(d=c,f=u),null!==a&&null!==l&&d.key===a.getKey()&&0===d.offset&&f.key===l.getKey()&&f.offset===l.getTextContentSize()?r:o}(t.shiftKey);return null!==r&&(t.preventDefault(),e.dispatchCommand(r,void 0),!0)}),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INSERT_TAB_COMMAND,(()=>!!P(n.$getSelection())&&(n.$insertNodes([n.$createTabNode()]),!0)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INDENT_CONTENT_COMMAND,(e=>F(n.INDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.OUTDENT_CONTENT_COMMAND,(e=>F(n.OUTDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_UP_COMMAND,(e=>z(n.KEY_ARROW_UP_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_DOWN_COMMAND,(e=>z(n.KEY_ARROW_DOWN_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_END,(e=>j(n.MOVE_TO_END,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_START,(e=>j(n.MOVE_TO_START,e)),n.COMMAND_PRIORITY_LOW))},iQ}var QQ,$Q,e$,t$,n$={};function r$(){if(QQ)return n$;QQ=1;var e=lQ();uQ(),pQ(),mQ(),yQ(),CQ(),kQ(),OQ(),IQ(),_Q(),FQ(),BQ(),HQ(),KQ(),JQ();var t=MU,n=xU;let r=t=>null!=t&&e.languages.hasOwnProperty(t)?t:void 0;function o(e,n){for(let r of e.childNodes){if(t.isHTMLElement(r)&&r.tagName===n)return!0;o(r,n)}return!1}class i extends n.ElementNode{static getType(){return"code"}static clone(e){return new i(e.__language,e.__key)}constructor(e,t){super(t),this.__language=r(e)}createDOM(e){let n=document.createElement("code");return t.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,t){let n=this.__language;return e=e.__language,n?n!==e&&t.setAttribute("data-highlight-language",n):e&&t.removeAttribute("data-highlight-language"),!1}exportDOM(){let e=document.createElement("pre");e.setAttribute("spellcheck","false");let t=this.getLanguage();return t&&e.setAttribute("data-highlight-language",t),{element:e}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||o(e,"BR"))?{conversion:s,priority:1}:null,div:()=>({conversion:c,priority:1}),pre:()=>({conversion:s,priority:0}),table:e=>p(e)?{conversion:u,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")?{conversion:f,priority:3}:t&&p(t)?{conversion:d,priority:3}:null},tr:e=>(e=e.closest("table"))&&p(e)?{conversion:d,priority:3}:null}}static importJSON(e){let t=a(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){var r=this.getChildren(),o=r.length;if(2<=o&&"\n"===r[o-1].getTextContent()&&"\n"===r[o-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===o)return r[o-1].remove(),r[o-2].remove(),e=n.$createParagraphNode(),this.insertAfter(e,t),e;if(t=e.anchor,r=e.focus,x(t=(t.isBefore(r)?t:r).getNode())||n.$isTabNode(t)){for(t=w(t),r=[];;)if(n.$isTabNode(t))r.push(n.$createTabNode()),t=t.getNextSibling();else{if(!x(t))break;{o=0;let e=t.getTextContent(),n=t.getTextContentSize();for(;o<n&&" "===e[o];o++);if(0!==o&&r.push(y(" ".repeat(o))),o!==n)break;t=t.getNextSibling()}}if(0<r.length)return e.insertNodes([n.$createLineBreakNode(),...r]),r[r.length-1]}return null}canIndent(){return!1}collapseAtStart(){let e=n.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){this.getWritable().__language=r(e)}getLanguage(){return this.getLatest().__language}}function a(e){return n.$applyNodeReplacement(new i(e))}function l(e){return e instanceof i}function s(e){let n;return t.isHTMLElement(e)&&(n=e.getAttribute("data-highlight-language")),{node:a(n)}}function c(e){let t=null!==e.style.fontFamily.match("monospace");return t||function(e){for(e=e.parentElement;null!==e;){if(null!==e.style.fontFamily.match("monospace"))return!0;e=e.parentElement}return!1}(e)?{after:t=>{let r=e.parentNode;return null!=r&&e!==r.lastChild&&t.push(n.$createLineBreakNode()),t},node:t?a():null}:{node:null}}function u(){return{node:a()}}function d(){return{node:null}}function f(e){return{after:t=>(e.parentNode&&e.parentNode.nextSibling&&t.push(n.$createLineBreakNode()),t),node:null}}function p(e){return e.classList.contains("js-file-line-container")}let h={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},g={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function m(e){return g[e]||e}class v extends n.TextNode{constructor(e,t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new v(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=b(e.theme,this.__highlightType),t.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let o=super.updateDOM(e,n,r);return(e=b(r.theme,e.__highlightType))!==(r=b(r.theme,this.__highlightType))&&(e&&t.removeClassNamesFromElement(n,e),r&&t.addClassNamesToElement(n,r)),o}static importJSON(e){let t=y(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return a()}}function b(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function y(e,t){return n.$applyNodeReplacement(new v(e,t))}function x(e){return e instanceof v}function w(e){let t=e;for(;x(e)||n.$isTabNode(e);)t=e,e=e.getPreviousSibling();return t}function C(e){let t=e;for(;x(e)||n.$isTabNode(e);)t=e,e=e.getNextSibling();return t}let E={defaultLanguage:"javascript",tokenize(t,n){return e.tokenize(t,e.languages[n||""]||e.languages[this.defaultLanguage])}};function T(e,t){let r=null;var o=null,i=e;let a=t,l=e.getTextContent();for(;;){if(0===a){if(null===(i=i.getPreviousSibling()))break;if(!(x(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected a valid Code Node: CodeHighlightNode, TabNode, LineBreakNode");if(n.$isLineBreakNode(i)){r={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),l=i.getTextContent()}else a--;let e=l[a];x(i)&&" "!==e&&(o={node:i,offset:a})}if(null!==o)return o;if(o=null,t<e.getTextContentSize()?x(e)&&(o=e.getTextContent()[t]):x(i=e.getNextSibling())&&(o=i.getTextContent()[0]),null!==o&&" "!==o)return r;e:for(o=e,i=e.getTextContent(),e=e.getTextContentSize();;){if(!x(o)||t===e){if(null===(o=o.getNextSibling())||n.$isLineBreakNode(o)){e=null;break e}x(o)&&(t=0,i=o.getTextContent(),e=o.getTextContentSize())}if(x(o)){if(" "!==i[t]){e={node:o,offset:t};break e}t++}}return null!==e?e:r}function k(e){if(e=C(e),n.$isLineBreakNode(e))throw Error("Unexpected lineBreakNode in getEndOfCodeInLine");return e}function S(e,t,r){let o=e.getParent();l(o)?O(o,t,r):x(e)&&e.replace(n.$createTextNode(e.__text))}let N=new Set;function O(e,t,r){let o=e.getKey();N.has(o)||(N.add(o),void 0===e.getLanguage()&&e.setLanguage(r.defaultLanguage),t.update((()=>{!function(e,t){if(e=n.$getNodeByKey(e),l(e)&&e.isAttached()){var r=n.$getSelection();if(n.$isRangeSelection(r)){var o=(r=r.anchor).offset,i="element"===r.type&&n.$isLineBreakNode(e.getChildAtIndex(r.offset-1)),a=0;if(!i){let e=r.getNode();a=o+e.getPreviousSiblings().reduce(((e,t)=>e+t.getTextContentSize()),0)}t()&&(i?r.getNode().select(o,o):e.getChildren().some((e=>{let t=n.$isTextNode(e);if(t||n.$isLineBreakNode(e)){let n=e.getTextContentSize();if(t&&n>=a)return e.select(a,a),!0;a-=n}return!1})))}else t()}}(o,(()=>{var t=n.$getNodeByKey(o);if(!l(t)||!t.isAttached())return!1;var i=t.getTextContent();i=A(i=r.tokenize(i,t.getLanguage()||r.defaultLanguage));var a=t.getChildren();for(t=0;t<a.length&&M(a[t],i[t]);)t++;var s=a.length;let c=i.length,u=Math.min(s,c)-t,d=0;for(;d<u;)if(d++,!M(a[s-d],i[c-d])){d--;break}a=t,s-=d,i=i.slice(t,c-d);let{from:f,to:p,nodesForReplacement:h}={from:a,nodesForReplacement:i,to:s};return!(f===p&&!h.length)&&(e.splice(f,p-f,h),!0)}))}),{onUpdate:()=>{N.delete(o)},skipTransforms:!0}))}function A(e,t){let r=[];for(let o of e)if("string"==typeof o){let i=(e=o.split(/(\n|\t)/)).length;for(let o=0;o<i;o++){let i=e[o];"\n"===i||"\r\n"===i?r.push(n.$createLineBreakNode()):"\t"===i?r.push(n.$createTabNode()):0<i.length&&r.push(y(i,t))}}else({content:e}=o),"string"==typeof e?r.push(...A([e],o.type)):Array.isArray(e)&&r.push(...A(e,o.type));return r}function M(e,t){return x(e)&&x(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||n.$isTabNode(e)&&n.$isTabNode(t)||n.$isLineBreakNode(e)&&n.$isLineBreakNode(t)}function I(e){if(!n.$isRangeSelection(e))return!1;var t=e.anchor.getNode();return e=e.focus.getNode(),!(!t.is(e)||!l(t))||l(t=t.getParent())&&t.is(e.getParent())}function R(e){let t=[[]];if(1===(e=e.getNodes()).length&&l(e[0]))return t;let r=t[0];for(let o=0;o<e.length;o++){let i=e[o];if(!(x(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection to be inside CodeBlock and consisting of CodeHighlightNode, TabNode and LineBreakNode");n.$isLineBreakNode(i)?0!==o&&0<r.length&&(r=[],t.push(r)):r.push(i)}return t}function D(e){var t=n.$getSelection();if(!n.$isRangeSelection(t)||!I(t))return!1;var r=R(t);let o=r.length;if(1<r.length){for(t=0;t<o;t++){var i=r[t];0<i.length&&(i=i[0],0===t&&(i=w(i)),null!==i&&(e===n.INDENT_CONTENT_COMMAND?i.insertBefore(n.$createTabNode()):n.$isTabNode(i)&&i.remove()))}return!0}if(!(l(r=t.getNodes()[0])||x(r)||n.$isTabNode(r)||n.$isLineBreakNode(r)))throw Error("Expected selection firstNode to be CodeHighlightNode or CodeTabNode");if(l(r))return e===n.INDENT_CONTENT_COMMAND&&t.insertNodes([n.$createTabNode()]),!0;if(null===(r=w(r)))throw Error("Expected getFirstCodeNodeOfLine to return a valid Code Node");return e===n.INDENT_CONTENT_COMMAND?n.$isLineBreakNode(r)?r.insertAfter(n.$createTabNode()):r.insertBefore(n.$createTabNode()):n.$isTabNode(r)&&r.remove(),!0}function _(e,t){let r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;let{anchor:o,focus:i}=r,a=o.offset,l=i.offset,s=o.getNode(),c=i.getNode();var u=e===n.KEY_ARROW_UP_COMMAND;if(!I(r)||!x(s)&&!n.$isTabNode(s)||!x(c)&&!n.$isTabNode(c))return!1;if(!t.altKey){if(r.isCollapsed())if(e=s.getParentOrThrow(),u&&0===a&&null===s.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!u&&a===s.getTextContentSize()&&null===s.getNextSibling()&&null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0;return!1}let d;if(s.isBefore(c)){var f=w(s);d=C(c)}else f=w(c),d=C(s);if(null==f||null==d)return!1;let p=f.getNodesBetween(d);for(let e=0;e<p.length;e++){let t=p[e];if(!x(t)&&!n.$isTabNode(t)&&!n.$isLineBreakNode(t))return!1}if(t.preventDefault(),t.stopPropagation(),t=u?f.getPreviousSibling():d.getNextSibling(),!n.$isLineBreakNode(t))return!0;if(null==(f=u?t.getPreviousSibling():t.getNextSibling()))return!0;let h=null!=(u=x(f)||n.$isTabNode(f)||n.$isLineBreakNode(f)?u?w(f):C(f):null)?u:f;return t.remove(),p.forEach((e=>e.remove())),e===n.KEY_ARROW_UP_COMMAND?(p.forEach((e=>h.insertBefore(e))),h.insertBefore(t)):(h.insertAfter(t),h=t,p.forEach((e=>{h.insertAfter(e),h=e}))),r.setTextNodeRange(s,a,c,l),!0}function P(e,t){let r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;let{anchor:o,focus:i}=r;var a=o.getNode();let l=i.getNode();if(e=e===n.MOVE_TO_START,!x(a)&&!n.$isTabNode(a)||!x(l)&&!n.$isTabNode(l))return!1;if(e)if(null!==(a=T(l,i.offset))){let{node:e,offset:t}=a;n.$isLineBreakNode(e)?e.selectNext(0,0):r.setTextNodeRange(e,t,e,t)}else l.getParentOrThrow().selectStart();else k(l).select();return t.preventDefault(),t.stopPropagation(),!0}return n$.$createCodeHighlightNode=y,n$.$createCodeNode=a,n$.$isCodeHighlightNode=x,n$.$isCodeNode=l,n$.CODE_LANGUAGE_FRIENDLY_NAME_MAP=h,n$.CODE_LANGUAGE_MAP=g,n$.CodeHighlightNode=v,n$.CodeNode=i,n$.DEFAULT_CODE_LANGUAGE="javascript",n$.PrismTokenizer=E,n$.getCodeLanguages=()=>Object.keys(e.languages).filter((t=>"function"!=typeof e.languages[t])).sort(),n$.getDefaultCodeLanguage=()=>"javascript",n$.getEndOfCodeInLine=k,n$.getFirstCodeNodeOfLine=w,n$.getLanguageFriendlyName=function(e){return e=m(e),h[e]||e},n$.getLastCodeNodeOfLine=C,n$.getStartOfCodeInLine=T,n$.normalizeCodeLang=m,n$.registerCodeHighlighting=function(e,r){if(!e.hasNodes([i,v]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return null==r&&(r=E),t.mergeRegister(e.registerMutationListener(i,(t=>{e.update((()=>{for(let[i,a]of t)if("destroyed"!==a){var r=n.$getNodeByKey(i);if(null!==r)e:{var o=r;if(null===(r=e.getElementByKey(o.getKey())))break e;let t=(o=o.getChildren()).length;if(t===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=t;let i="1",a=1;for(let e=0;e<t;e++)n.$isLineBreakNode(o[e])&&(i+="\n"+ ++a);r.setAttribute("data-gutter",i)}}}))})),e.registerNodeTransform(i,(t=>O(t,e,r))),e.registerNodeTransform(n.TextNode,(t=>S(t,e,r))),e.registerNodeTransform(v,(t=>S(t,e,r))),e.registerCommand(n.KEY_TAB_COMMAND,(t=>{let r=function(e){var t=n.$getSelection();if(!n.$isRangeSelection(t)||!I(t))return null;let r=e?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND;if(e=e?n.OUTDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND,1<R(t).length)return r;var o=t.getNodes()[0];if(!(l(o)||x(o)||n.$isTabNode(o)||n.$isLineBreakNode(o)))throw Error("Expected selection firstNode to be CodeHighlightNode or TabNode");if(l(o))return r;let i=w(o);o=C(o);var a=t.anchor;let s=t.focus;return s.isBefore(a)?t=s:(t=a,a=s),null!==i&&null!==o&&t.key===i.getKey()&&0===t.offset&&a.key===o.getKey()&&a.offset===o.getTextContentSize()?r:e}(t.shiftKey);return null!==r&&(t.preventDefault(),e.dispatchCommand(r,void 0),!0)}),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INSERT_TAB_COMMAND,(()=>!!I(n.$getSelection())&&(n.$insertNodes([n.$createTabNode()]),!0)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INDENT_CONTENT_COMMAND,(()=>D(n.INDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.OUTDENT_CONTENT_COMMAND,(()=>D(n.OUTDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_UP_COMMAND,(e=>_(n.KEY_ARROW_UP_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_DOWN_COMMAND,(e=>_(n.KEY_ARROW_DOWN_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_END,(e=>P(n.MOVE_TO_END,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_START,(e=>P(n.MOVE_TO_START,e)),n.COMMAND_PRIORITY_LOW))},n$}function o$(){if(e$)return $Q;e$=1;const e="development"===process.env.NODE_ENV?XQ():r$();return $Q=e}var i$,a$={};const l$="development"===process.env.NODE_ENV?function(){if(t$)return oQ;t$=1;var e=xU,t=o$(),n=sK,r=sY(),o=MU,i=JU;function a(e,t){const n={};for(const r of e){const e=t(r);n[e]?n[e].push(r):n[e]=[r]}return n}function l(e){const t=a(e,(e=>e.type));return{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}const s=/[!-/:-@[-`{-~\s]/;function c(t,n,r,o){for(const e of n){const n=e.export(t,(e=>u(e,r,o)));if(null!=n)return n}return e.$isElementNode(t)?u(t,r,o):e.$isDecoratorNode(t)?t.getTextContent():null}function u(t,n,r){const o=[],i=t.getChildren();e:for(const t of i){for(const e of r){const i=e.export(t,(e=>u(e,n,r)),((e,t)=>d(e,t,n)));if(null!=i){o.push(i);continue e}}e.$isLineBreakNode(t)?o.push("\n"):e.$isTextNode(t)?o.push(d(t,t.getTextContent(),n)):e.$isElementNode(t)?o.push(u(t,n,r)):e.$isDecoratorNode(t)&&o.push(t.getTextContent())}return o.join("")}function d(e,t,n){const r=t.trim();let o=r;const i=new Set;for(const t of n){const n=t.format[0],r=t.tag;if(p(e,n)&&!i.has(n)){i.add(n);p(f(e,!0),n)||(o=r+o);p(f(e,!1),n)||(o+=r)}}return t.replace(r,o)}function f(t,n){let r=n?t.getPreviousSibling():t.getNextSibling();if(!r){const e=t.getParentOrThrow();e.isInline()&&(r=n?e.getPreviousSibling():e.getNextSibling())}for(;r;){if(e.$isElementNode(r)){if(!r.isInline())break;const t=n?r.getLastDescendant():r.getFirstDescendant();if(e.$isTextNode(t))return t;r=n?r.getPreviousSibling():r.getNextSibling()}if(e.$isTextNode(r))return r;if(!e.$isElementNode(r))return null}return null}function p(t,n){return e.$isTextNode(t)&&t.hasFormat(n)}const h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=h&&"documentMode"in document?document.documentMode:null;h&&"InputEvent"in window&&!g&&new window.InputEvent("input");const m=h&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),v=h&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b=h&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y=h&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!b,x=/^\s{0,3}$/,w=/^```(\w{1,10})?\s?$/;function C(t){const n=l(t),r=function(e){const t={},n={},r=[],o="(?<![\\\\])";for(const o of e){const{tag:e}=o;t[e]=o;const i=e.replace(/(\*|\^|\+)/g,"\\$1");r.push(i),n[e]=m||v||y?new RegExp(`(${i})(?![${i}\\s])(.*?[^${i}\\s])${i}(?!${i})`):new RegExp(`(?<![\\\\${i}])(${i})((\\\\${i})?.*?[^${i}\\s](\\\\${i})?)((?<!\\\\)|(?<=\\\\\\\\))(${i})(?![\\\\${i}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((m||v||y?"":`${o}`)+"("+r.join("|")+")","g"),transformersByTag:t}}(n.textFormat);return(t,o)=>{const i=t.split("\n"),a=i.length,l=o||e.$getRoot();l.clear();for(let e=0;e<a;e++){const t=i[e],[o,a]=k(i,e,l);null==o?T(t,l,n.element,r,n.textMatch):e=a}const s=l.getChildren();for(const e of s)E(e)&&e.remove();null!==e.$getSelection()&&l.selectEnd()}}function E(t){if(!e.$isParagraphNode(t))return!1;const n=t.getFirstChild();return null==n||1===t.getChildrenSize()&&e.$isTextNode(n)&&x.test(n.getTextContent())}function T(t,i,a,l,s){const c=t.trim(),u=e.$createTextNode(c),d=e.$createParagraphNode();d.append(u),i.append(d);for(const{regExp:e,replace:n}of a){const r=t.match(e);if(r){u.setTextContent(t.slice(r[0].length)),n(d,[u],r,!0);break}}if(S(u,l,s),d.isAttached()&&c.length>0){const t=d.getPreviousSibling();if(e.$isParagraphNode(t)||r.$isQuoteNode(t)||n.$isListNode(t)){let r=t;if(n.$isListNode(t)){const e=t.getLastDescendant();r=null==e?null:o.$findMatchingParent(e,n.$isListItemNode)}null!=r&&r.getTextContentSize()>0&&(r.splice(r.getChildrenSize(),0,[e.$createLineBreakNode(),...d.getChildren()]),d.remove())}}}function k(n,r,o){const i=n[r].match(w);if(i){let a=r;const l=n.length;for(;++a<l;){if(n[a].match(w)){const l=t.$createCodeNode(i[1]),s=e.$createTextNode(n.slice(r+1,a).join("\n"));return l.append(s),o.append(l),[l,a]}}}return[null,r]}function S(e,t,n){const r=e.getTextContent(),o=function(e,t){const n=e.match(t.openTagsRegExp);if(null==n)return null;for(const r of n){const n=r.replace(/^\s/,""),o=t.fullMatchRegExpByTag[n];if(null==o)continue;const i=e.match(o),a=t.transformersByTag[n];if(null!=i&&null!=a){if(!1!==a.intraword)return i;const{index:t=0}=i,n=e[t-1],r=e[t+i[0].length];if((!n||s.test(n))&&(!r||s.test(r)))return i}}return null}(r,t);if(!o)return void N(e,n);let i,a,l;if(o[0]===r)i=e;else{const t=o.index||0,n=t+o[0].length;0===t?[i,a]=e.splitText(n):[l,i,a]=e.splitText(t,n)}i.setTextContent(o[2]);const c=t.transformersByTag[o[1]];if(c)for(const e of c.format)i.hasFormat(e)||i.toggleFormat(e);i.hasFormat("code")||S(i,t,n),l&&S(l,t,n),a&&S(a,t,n)}function N(e,t){let n=e;e:for(;n;){for(const e of t){const r=n.getTextContent().match(e.importRegExp);if(!r)continue;const o=r.index||0,i=o+r[0].length;let a,l,s;0===o?[a,n]=n.splitText(i):[l,a,s]=n.splitText(o,i),l&&N(l,t),s&&(n=s),e.replace(a,r);continue e}break}}function O(e,t,n){const r=n.length;for(let o=t;o>=r;o--){const t=o-r;if(A(e,t,n,0,r)&&" "!==e[t+r])return t}return-1}function A(e,t,n,r,o){for(let i=0;i<o;i++)if(e[t+i]!==n[r+i])return!1;return!0}const M=e=>(t,n,r)=>{const o=e(r);o.append(...n),t.replace(o),o.select(0,0)},I=e=>(t,r,o)=>{const i=t.getPreviousSibling(),a=t.getNextSibling(),l=n.$createListItemNode("check"===e?"x"===o[3]:void 0);if(n.$isListNode(a)&&a.getListType()===e){const e=a.getFirstChild();null!==e?e.insertBefore(l):a.append(l),t.remove()}else if(n.$isListNode(i)&&i.getListType()===e)i.append(l),t.remove();else{const r=n.$createListNode(e,"number"===e?Number(o[2]):void 0);r.append(l),t.replace(r)}l.append(...r),l.select(0,0);const s=Math.floor(o[1].length/4);s&&l.setIndent(s)},R=(e,t,r)=>{const o=[],i=e.getChildren();let a=0;for(const l of i)if(n.$isListItemNode(l)){if(1===l.getChildrenSize()){const e=l.getFirstChild();if(n.$isListNode(e)){o.push(R(e,t,r+1));continue}}const i=" ".repeat(4*r),s=e.getListType(),c="number"===s?`${e.getStart()+a}. `:"check"===s?`- [${l.getChecked()?"x":" "}] `:"- ";o.push(i+c+t(l)),a++}return o.join("\n")},D={dependencies:[r.HeadingNode],export:(e,t)=>{if(!r.$isHeadingNode(e))return null;const n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:M((e=>{const t="h"+e[1].length;return r.$createHeadingNode(t)})),type:"element"},_={dependencies:[r.QuoteNode],export:(e,t)=>{if(!r.$isQuoteNode(e))return null;const n=t(e).split("\n"),o=[];for(const e of n)o.push("> "+e);return o.join("\n")},regExp:/^>\s/,replace:(t,n,o,i)=>{if(i){const o=t.getPreviousSibling();if(r.$isQuoteNode(o))return o.splice(o.getChildrenSize(),0,[e.$createLineBreakNode(),...n]),o.select(0,0),void t.remove()}const a=r.$createQuoteNode();a.append(...n),t.replace(a),a.select(0,0)},type:"element"},P={dependencies:[t.CodeNode],export:e=>{if(!t.$isCodeNode(e))return null;const n=e.getTextContent();return"```"+(e.getLanguage()||"")+(n?"\n"+n:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:M((e=>t.$createCodeNode(e?e[1]:void 0))),type:"element"},L={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?R(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:I("bullet"),type:"element"},F={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?R(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:I("check"),type:"element"},z={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?R(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:I("number"),type:"element"},j={format:["code"],tag:"`",type:"text-format"},B={format:["highlight"],tag:"==",type:"text-format"},V={format:["bold","italic"],tag:"***",type:"text-format"},W={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},H={format:["bold"],tag:"**",type:"text-format"},q={format:["bold"],intraword:!1,tag:"__",type:"text-format"},U={format:["strikethrough"],tag:"~~",type:"text-format"},K={format:["italic"],tag:"*",type:"text-format"},Y={format:["italic"],intraword:!1,tag:"_",type:"text-format"},G={dependencies:[i.LinkNode],export:(t,n,r)=>{if(!i.$isLinkNode(t))return null;const o=t.getTitle(),a=o?`[${t.getTextContent()}](${t.getURL()} "${o}")`:`[${t.getTextContent()}](${t.getURL()})`,l=t.getFirstChild();return 1===t.getChildrenSize()&&e.$isTextNode(l)?r(l,a):a},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,n)=>{const[,r,o,a]=n,l=i.$createLinkNode(o,{title:a}),s=e.$createTextNode(r);s.setFormat(t.getFormat()),l.append(s),t.replace(l)},trigger:")",type:"text-match"},Z=[D,_,P,L,z],J=[j,V,W,H,q,B,K,Y,U],X=[G],Q=[...Z,...J,...X];return oQ.$convertFromMarkdownString=function(e,t=Q,n){return C(t)(e,n)},oQ.$convertToMarkdownString=function(t=Q,n){const r=function(t){const n=l(t),r=n.textFormat.filter((e=>1===e.format.length));return t=>{const o=[],i=(t||e.$getRoot()).getChildren();for(const e of i){const t=c(e,n.element,r,n.textMatch);null!=t&&o.push(t)}return o.join("\n\n")}}(t);return r(n)},oQ.BOLD_ITALIC_STAR=V,oQ.BOLD_ITALIC_UNDERSCORE=W,oQ.BOLD_STAR=H,oQ.BOLD_UNDERSCORE=q,oQ.CHECK_LIST=F,oQ.CODE=P,oQ.ELEMENT_TRANSFORMERS=Z,oQ.HEADING=D,oQ.HIGHLIGHT=B,oQ.INLINE_CODE=j,oQ.ITALIC_STAR=K,oQ.ITALIC_UNDERSCORE=Y,oQ.LINK=G,oQ.ORDERED_LIST=z,oQ.QUOTE=_,oQ.STRIKETHROUGH=U,oQ.TEXT_FORMAT_TRANSFORMERS=J,oQ.TEXT_MATCH_TRANSFORMERS=X,oQ.TRANSFORMERS=Q,oQ.UNORDERED_LIST=L,oQ.registerMarkdownShortcuts=function(n,r=Q){const o=l(r),i=a(o.textFormat,(({tag:e})=>e[e.length-1])),c=a(o.textMatch,(({trigger:e})=>e));for(const e of r){const t=e.type;if("element"===t||"text-match"===t){const t=e.dependencies;for(const e of t)if(!n.hasNode(e))throw Error(`MarkdownShortcuts: missing dependency ${e.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}}const u=(t,n,r)=>{(function(t,n,r,o){const i=t.getParent();if(!e.$isRootOrShadowRoot(i)||t.getFirstChild()!==n)return!1;const a=n.getTextContent();if(" "!==a[r-1])return!1;for(const{regExp:e,replace:i}of o){const o=a.match(e);if(o&&o[0].length===r){const e=n.getNextSiblings(),[a,l]=n.splitText(r);return a.remove(),i(t,l?[l,...e]:e,o,!1),!0}}return!1})(t,n,r,o.element)||function(e,t,n){let r=e.getTextContent();const o=n[r[t-1]];if(null==o)return!1;t<r.length&&(r=r.slice(0,t));for(const t of o){const n=r.match(t.regExp);if(null===n)continue;const o=n.index||0,i=o+n[0].length;let a;return 0===o?[a]=e.splitText(i):[,a]=e.splitText(o,i),a.selectNext(0,0),t.replace(a,n),!0}return!1}(n,r,c)||function(t,n,r){const o=t.getTextContent(),i=n-1,a=o[i],l=r[a];if(!l)return!1;for(const n of l){const{tag:r}=n,l=r.length,c=i-l+1;if(l>1&&!A(o,c,r,0,l))continue;if(" "===o[c-1])continue;const u=o[i+1];if(!1===n.intraword&&u&&!s.test(u))continue;const d=t;let f=d,p=O(o,c,r),h=f;for(;p<0&&(h=h.getPreviousSibling())&&!e.$isLineBreakNode(h);)if(e.$isTextNode(h)){const e=h.getTextContent();f=h,p=O(e,e.length,r)}if(p<0)continue;if(f===d&&p+l===c)continue;const g=f.getTextContent();if(p>0&&g[p-1]===a)continue;const m=g[p-1];if(!1===n.intraword&&m&&!s.test(m))continue;const v=d.getTextContent(),b=v.slice(0,c)+v.slice(i+1);d.setTextContent(b);const y=f===d?b:g;f.setTextContent(y.slice(0,p)+y.slice(p+l));const x=e.$getSelection(),w=e.$createRangeSelection();e.$setSelection(w);const C=i-l*(f===d?2:1)+1;w.anchor.set(f.__key,p,"text"),w.focus.set(d.__key,C,"text");for(const e of n.format)w.hasFormat(e)||w.formatText(e);w.anchor.set(w.focus.key,w.focus.offset,w.focus.type);for(const e of n.format)w.hasFormat(e)&&w.toggleFormat(e);return e.$isRangeSelection(x)&&(w.format=x.format),!0}}(n,r,i)};return n.registerUpdateListener((({tags:r,dirtyLeaves:o,editorState:i,prevEditorState:a})=>{if(r.has("historic"))return;if(n.isComposing())return;const l=i.read(e.$getSelection),s=a.read(e.$getSelection);if(!e.$isRangeSelection(s)||!e.$isRangeSelection(l)||!l.isCollapsed())return;const c=l.anchor.key,d=l.anchor.offset,f=i._nodeMap.get(c);!e.$isTextNode(f)||!o.has(c)||1!==d&&d>s.anchor.offset+1||n.update((()=>{if(f.hasFormat("code"))return;const e=f.getParent();null===e||t.$isCodeNode(e)||u(e,f,l.anchor.offset)}))}))},oQ}():function(){if(i$)return a$;i$=1;var e=xU,t=o$(),n=sK,r=sY(),o=MU,i=JU;function a(e,t){let n={};for(let r of e)n[e=t(r)]?n[e].push(r):n[e]=[r];return n}function l(e){return{element:(e=a(e,(e=>e.type))).element||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}let s=/[!-/:-@[-`{-~\s]/;function c(t,n,r,o){for(let e of n)if(null!=(n=e.export(t,(e=>u(e,r,o)))))return n;return e.$isElementNode(t)?u(t,r,o):e.$isDecoratorNode(t)?t.getTextContent():null}function u(t,n,r){let o=[];t=t.getChildren();e:for(let i of t){for(let e of r)if(t=e.export(i,(e=>u(e,n,r)),((e,t)=>d(e,t,n))),null!=t){o.push(t);continue e}e.$isLineBreakNode(i)?o.push("\n"):e.$isTextNode(i)?o.push(d(i,i.getTextContent(),n)):e.$isElementNode(i)?o.push(u(i,n,r)):e.$isDecoratorNode(i)&&o.push(i.getTextContent())}return o.join("")}function d(e,t,n){let r=t.trim(),o=r,i=new Set;for(let t of n){n=t.format[0];let r=t.tag;if(p(e,n)&&!i.has(n)){i.add(n);var a=f(e,!0);p(a,n)||(o=r+o),p(a=f(e,!1),n)||(o+=r)}}return t.replace(r,o)}function f(t,n){let r=n?t.getPreviousSibling():t.getNextSibling();for(r||(t=t.getParentOrThrow()).isInline()&&(r=n?t.getPreviousSibling():t.getNextSibling());r;){if(e.$isElementNode(r)){if(!r.isInline())break;if(t=n?r.getLastDescendant():r.getFirstDescendant(),e.$isTextNode(t))return t;r=n?r.getPreviousSibling():r.getNextSibling()}if(e.$isTextNode(r))return r;if(!e.$isElementNode(r))break}return null}function p(t,n){return e.$isTextNode(t)&&t.hasFormat(n)}let h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=h&&"documentMode"in document?document.documentMode:null;h&&"InputEvent"in window&&!g&&new window.InputEvent("input");let m=h&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),v=h&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b=h&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y=h&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!b,x=/^\s{0,3}$/,w=/^```(\w{1,10})?\s?$/;function C(i){let a=l(i),s=function(e){let t={},n={},r=[];for(let o of e){({tag:e}=o),t[e]=o;let i=e.replace(/(\*|\^|\+)/g,"\\$1");r.push(i),n[e]=m||v||y?new RegExp(`(${i})(?![${i}\\s])(.*?[^${i}\\s])${i}(?!${i})`):new RegExp(`(?<![\\\\${i}])(${i})((\\\\${i})?.*?[^${i}\\s](\\\\${i})?)((?<!\\\\)|(?<=\\\\\\\\))(${i})(?![\\\\${i}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((m||v||y?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:t}}(a.textFormat);return(i,l)=>{var c=(i=i.split("\n")).length;(l=l||e.$getRoot()).clear();for(let b=0;b<c;b++){var u=i[b];e:{var d=i,f=b,p=l,h=d[f].match(w);if(h)for(var g=f,m=d.length;++g<m;)if(d[g].match(w)){h=t.$createCodeNode(h[1]),d=e.$createTextNode(d.slice(f+1,g).join("\n")),h.append(d),p.append(h),p=[h,g];break e}p=[null,f]}let[c,y]=p;if(null!=c)b=y;else{p=u,m=l;var v=a.element;g=s,d=a.textMatch,f=p.trim(),h=e.$createTextNode(f),(u=e.$createParagraphNode()).append(h),m.append(u);for(let{regExp:e,replace:t}of v)if(m=p.match(e)){h.setTextContent(p.slice(m[0].length)),t(u,[h],m,!0);break}E(h,g,d),u.isAttached()&&0<f.length&&(p=u.getPreviousSibling(),e.$isParagraphNode(p)||r.$isQuoteNode(p)||n.$isListNode(p))&&(g=p,n.$isListNode(p)&&(g=null==(p=p.getLastDescendant())?null:o.$findMatchingParent(p,n.$isListItemNode)),null!=g&&0<g.getTextContentSize()&&(g.splice(g.getChildrenSize(),0,[e.$createLineBreakNode(),...u.getChildren()]),u.remove()))}}i=l.getChildren();for(let t of i)i=t,e.$isParagraphNode(i)?(c=i.getFirstChild(),i=null==c||1===i.getChildrenSize()&&e.$isTextNode(c)&&x.test(c.getTextContent())):i=!1,i&&t.remove();null!==e.$getSelection()&&l.selectEnd()}}function E(e,t,n){var r=e.getTextContent();let o=function(e,t){var n=e.match(t.openTagsRegExp);if(null==n)return null;for(let i of n){var r=i.replace(/^\s/,"");if(null!=(n=t.fullMatchRegExpByTag[r])&&(n=e.match(n),r=t.transformersByTag[r],null!=n&&null!=r)){if(!1!==r.intraword)return n;var{index:o=0}=n;if(r=e[o-1],o=e[o+n[0].length],!(r&&!s.test(r)||o&&!s.test(o)))return n}}return null}(r,t);if(o){var i,a;if(o[0]===r)var l=e;else{let t=(r=o.index||0)+o[0].length;0===r?[l,i]=e.splitText(t):[a,l,i]=e.splitText(r,t)}if(l.setTextContent(o[2]),e=t.transformersByTag[o[1]])for(let t of e.format)l.hasFormat(t)||l.toggleFormat(t);l.hasFormat("code")||E(l,t,n),a&&E(a,t,n),i&&E(i,t,n)}else T(e,n)}function T(e,t){e:for(;e;){for(let n of t){let r=e.getTextContent().match(n.importRegExp);if(!r)continue;let o,i,a,l=r.index||0,s=l+r[0].length;0===l?[o,e]=e.splitText(s):[i,o,a]=e.splitText(l,s),i&&T(i,t),a&&(e=a),n.replace(o,r);continue e}break}}function k(e,t,n){let r=n.length;for(;t>=r;t--){let o=t-r;if(S(e,o,n,0,r)&&" "!==e[o+r])return o}return-1}function S(e,t,n,r,o){for(let i=0;i<o;i++)if(e[t+i]!==n[r+i])return!1;return!0}let N=e=>(t,n,r)=>{(r=e(r)).append(...n),t.replace(r),r.select(0,0)},O=e=>(t,r,o)=>{var i=t.getPreviousSibling(),a=t.getNextSibling();const l=n.$createListItemNode("check"===e?"x"===o[3]:void 0);n.$isListNode(a)&&a.getListType()===e?(null!==(i=a.getFirstChild())?i.insertBefore(l):a.append(l),t.remove()):n.$isListNode(i)&&i.getListType()===e?(i.append(l),t.remove()):((a=n.$createListNode(e,"number"===e?Number(o[2]):void 0)).append(l),t.replace(a)),l.append(...r),l.select(0,0),(t=Math.floor(o[1].length/4))&&l.setIndent(t)},A=(e,t,r)=>{const o=[];var i=e.getChildren();let a=0;for(const s of i)if(n.$isListItemNode(s)){if(1===s.getChildrenSize()&&(i=s.getFirstChild(),n.$isListNode(i))){o.push(A(i,t,r+1));continue}i=" ".repeat(4*r);var l=e.getListType();l="number"===l?`${e.getStart()+a}. `:"check"===l?`- [${s.getChecked()?"x":" "}] `:"- ",o.push(i+l+t(s)),a++}return o.join("\n")},M={dependencies:[r.HeadingNode],export:(e,t)=>{if(!r.$isHeadingNode(e))return null;const n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:N((e=>r.$createHeadingNode("h"+e[1].length))),type:"element"},I={dependencies:[r.QuoteNode],export:(e,t)=>{if(!r.$isQuoteNode(e))return null;e=t(e).split("\n"),t=[];for(const n of e)t.push("> "+n);return t.join("\n")},regExp:/^>\s/,replace:(t,n,o,i)=>{if(i&&(o=t.getPreviousSibling(),r.$isQuoteNode(o)))return o.splice(o.getChildrenSize(),0,[e.$createLineBreakNode(),...n]),o.select(0,0),void t.remove();(o=r.$createQuoteNode()).append(...n),t.replace(o),o.select(0,0)},type:"element"},R={dependencies:[t.CodeNode],export:e=>{if(!t.$isCodeNode(e))return null;const n=e.getTextContent();return"```"+(e.getLanguage()||"")+(n?"\n"+n:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:N((e=>t.$createCodeNode(e?e[1]:void 0))),type:"element"},D={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:O("bullet"),type:"element"},_={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:O("check"),type:"element"},P={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:O("number"),type:"element"},L={format:["code"],tag:"`",type:"text-format"},F={format:["highlight"],tag:"==",type:"text-format"},z={format:["bold","italic"],tag:"***",type:"text-format"},j={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},B={format:["bold"],tag:"**",type:"text-format"},V={format:["bold"],intraword:!1,tag:"__",type:"text-format"},W={format:["strikethrough"],tag:"~~",type:"text-format"},H={format:["italic"],tag:"*",type:"text-format"},q={format:["italic"],intraword:!1,tag:"_",type:"text-format"},U={dependencies:[i.LinkNode],export:(t,n,r)=>{if(!i.$isLinkNode(t))return null;n=(n=t.getTitle())?`[${t.getTextContent()}](${t.getURL()} "${n}")`:`[${t.getTextContent()}](${t.getURL()})`;const o=t.getFirstChild();return 1===t.getChildrenSize()&&e.$isTextNode(o)?r(o,n):n},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,n)=>{const[,r,o,a]=n;n=i.$createLinkNode(o,{title:a});const l=e.$createTextNode(r);l.setFormat(t.getFormat()),n.append(l),t.replace(n)},trigger:")",type:"text-match"},K=[M,I,R,D,P],Y=[L,z,j,B,V,F,H,q,W],G=[U],Z=[...K,...Y,...G];return a$.$convertFromMarkdownString=function(e,t=Z,n){return C(t)(e,n)},a$.$convertToMarkdownString=function(t=Z,n){return function(t){let n=l(t),r=n.textFormat.filter((e=>1===e.format.length));return t=>{let o=[];t=(t||e.$getRoot()).getChildren();for(let e of t)null!=(t=c(e,n.element,r,n.textMatch))&&o.push(t);return o.join("\n\n")}}(t)(n)},a$.BOLD_ITALIC_STAR=z,a$.BOLD_ITALIC_UNDERSCORE=j,a$.BOLD_STAR=B,a$.BOLD_UNDERSCORE=V,a$.CHECK_LIST=_,a$.CODE=R,a$.ELEMENT_TRANSFORMERS=K,a$.HEADING=M,a$.HIGHLIGHT=F,a$.INLINE_CODE=L,a$.ITALIC_STAR=H,a$.ITALIC_UNDERSCORE=q,a$.LINK=U,a$.ORDERED_LIST=P,a$.QUOTE=I,a$.STRIKETHROUGH=W,a$.TEXT_FORMAT_TRANSFORMERS=Y,a$.TEXT_MATCH_TRANSFORMERS=G,a$.TRANSFORMERS=Z,a$.UNORDERED_LIST=D,a$.registerMarkdownShortcuts=function(n,r=Z){let o=l(r),i=a(o.textFormat,(({tag:e})=>e[e.length-1])),c=a(o.textMatch,(({trigger:e})=>e));for(let e of r)if("element"===(r=e.type)||"text-match"===r){r=e.dependencies;for(let e of r)if(!n.hasNode(e))throw Error(`MarkdownShortcuts: missing dependency ${e.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}return n.registerUpdateListener((({tags:r,dirtyLeaves:a,editorState:l,prevEditorState:u})=>{if(!r.has("historic")&&!n.isComposing()){var d=l.read(e.$getSelection);if(r=u.read(e.$getSelection),e.$isRangeSelection(r)&&e.$isRangeSelection(d)&&d.isCollapsed()){u=d.anchor.key;var f=d.anchor.offset,p=l._nodeMap.get(u);!e.$isTextNode(p)||!a.has(u)||1!==f&&f>r.anchor.offset+1||n.update((()=>{if(!p.hasFormat("code")){var n=p.getParent();if(null!==n&&!t.$isCodeNode(n)){var r=d.anchor.offset;e:{var a=o.element,l=n.getParent();if(e.$isRootOrShadowRoot(l)&&n.getFirstChild()===p&&" "===(l=p.getTextContent())[r-1])for(let{regExp:e,replace:t}of a)if((a=l.match(e))&&a[0].length===r){l=p.getNextSiblings();let[e,o]=p.splitText(r);e.remove(),t(n,l=o?[o,...l]:l,a,!1),n=!0;break e}n=!1}if(!n){e:{if(a=p.getTextContent(),null!=(n=c[a[r-1]]))for(f of(r<a.length&&(a=a.slice(0,r)),n))if(null!==(n=a.match(f.regExp))){l=(a=n.index||0)+n[0].length;var u=void 0;0===a?[u]=p.splitText(l):[,u]=p.splitText(a,l),u.selectNext(0,0),f.replace(u,n);var f=!0;break e}f=!1}if(!f)e:{var h=(l=p.getTextContent())[--r];if(f=i[h])for(let t of f){var{tag:g}=t;let o=r-(f=g.length)+1;if(!(1<f&&!S(l,o,g,0,f)||" "===l[o-1])&&(u=l[r+1],!1!==t.intraword||!u||s.test(u))){n=u=p,a=k(l,o,g);for(var m=n;0>a&&(m=m.getPreviousSibling())&&!e.$isLineBreakNode(m);)e.$isTextNode(m)&&(a=m.getTextContent(),n=m,a=k(a,a.length,g));if(!(0>a||n===u&&a+f===o||(g=n.getTextContent(),0<a&&g[a-1]===h||(m=g[a-1],!1===t.intraword&&m&&!s.test(m))))){l=(l=u.getTextContent()).slice(0,o)+l.slice(r+1),u.setTextContent(l),l=n===u?l:g,n.setTextContent(l.slice(0,a)+l.slice(a+f)),l=e.$getSelection(),h=e.$createRangeSelection(),e.$setSelection(h),r=r-f*(n===u?2:1)+1,h.anchor.set(n.__key,a,"text"),h.focus.set(u.__key,r,"text");for(let e of t.format)h.hasFormat(e)||h.formatText(e);h.anchor.set(h.focus.key,h.focus.offset,h.focus.type);for(let e of t.format)h.hasFormat(e)&&h.toggleFormat(e);e.$isRangeSelection(l)&&(h.format=l.format);break e}}}}}}}}))}}}))},a$}();var s$=l$,c$=function(e){var n=e.value,r=e.handleOnChange,o=wx(dU.useLexicalComposerContext(),1)[0],i=wx(b(!0),2),a=i[0],l=i[1];v((function(){var e;""===n&&o.update((function(){xU.$getRoot().clear()})),a&&(l(!1),e=n,new RegExp("(\\*|\\_)+(\\S+)(\\*|\\_)+").test(e)?o.update((function(){return s$.$convertFromMarkdownString(n,s$.TRANSFORMERS)})):o.update((function(){var e=xU.$getRoot();e.clear();var t=xU.$createParagraphNode(),r=xU.$createTextNode(n);t.append(r),e.append(t)})))}),[a,o,n]);var s=y((function(e){var t=e.read((function(){return s$.$convertToMarkdownString(s$.TRANSFORMERS)}));r(t)}),[r]);return t(rQ.OnChangePlugin,{onChange:s})};function u$(e){var t=e.maxLength,n=wx(dU.useLexicalComposerContext(),1)[0];return v((function(){var e=null;return n.registerNodeTransform(xU.RootNode,(function(r){var o=xU.$getSelection();if(xU.$isRangeSelection(o)&&o.isCollapsed()){var i=n.getEditorState(),a=i.read((function(){return r.getTextContent()})),l=r.getTextContent();if(a!==l){var s=l.length-t,c=o.anchor;s>0&&(a.length===t&&e!==i?(e=i,MU.$restoreEditorState(n,i)):kU.trimTextContentFromAnchor(n,c,s))}}}))}),[n,t]),null}var d$,f$=function(e){var o=e.placeholder,i=e.toolbarPosition,a=e.small,l=e.height,s=e.width,c=e.handleValueChange,u=e.editorNamespace,d=void 0===u?"MyEditor":u,f=e.editorValue,p=dx(e,["placeholder","toolbarPosition","small","height","width","handleValueChange","editorNamespace","editorValue"]),h=wx(b(null),2),g=h[0],m=h[1];return t(CY.LexicalComposer,Object.assign({initialConfig:Object.assign(Object.assign({},VX),{namespace:d})},p,{children:n(kX,{$width:s,children:[t("top"===i?WX:r,{}),n(wX,{ref:function(e){null!==e&&m(e)},"data-testid":"editor",children:[t(pY.RichTextPlugin,{contentEditable:t(TX,{$isSmall:a,$height:l,$width:s,id:"textInput"}),placeholder:t(CX,{children:o}),ErrorBoundary:TY}),a&&s&&t(u$,{maxLength:s}),t(bK.ListPlugin,{}),t(tK.LinkPlugin,{"data-testid":"linkPlugin"}),g&&t(JX,{anchorElem:g,"data-testid":"linkEditor"})]}),t("bottom"===i?WX:r,{}),t(HU.HistoryPlugin,{}),t(c$,{value:f,handleOnChange:c})]})}))},p$=x({canUserWrite:!1}),h$=function(e){var n=e.children,r=e.canWrite;return t(p$.Provider,{value:{canUserWrite:r},children:n})},g$=function(e){return f(p$).canUserWrite?null:t(r,{children:e.children})},m$=function(e){return f(p$).canUserWrite?t(r,{children:e.children}):null},v$=x({}),b$=function(){return f(v$)},y$=v$.Provider;function x$(e,t){if(XB(2,arguments),!t||"object"!==zb(t))return new Date(NaN);var n=t.years?dV(t.years):0,r=t.months?dV(t.months):0,o=t.weeks?dV(t.weeks):0,i=t.days?dV(t.days):0,a=t.hours?dV(t.hours):0,l=t.minutes?dV(t.minutes):0,s=t.seconds?dV(t.seconds):0,c=QB(e),u=r||n?hV(c,r+12*n):c,d=i||o?fV(u,i+7*o):u,f=1e3*(s+60*(l+60*a));return new Date(d.getTime()+f)}function w$(e){XB(1,arguments);var t=QB(e).getFullYear();return 10*Math.floor(t/10)}v$.Consumer,function(e){e.checkbox="checkbox",e.search="search",e.date="date",e.autocomplete="autocomplete"}(d$||(d$={}));var C$=["Days","Weeks","Months","Years"],E$=function(e){return C$.includes(e)},T$=["Next","Last"],k$=["Next","Last"],S$=function(e){return k$.includes(e)},N$=function(e){if(""!==e&&void 0!==e){var t=wx(null==e?void 0:e.split("_"),3),n=t[0],r=t[1],o=t[2];if(S$(n)&&E$(o)&&("number"==typeof(i=Number(r))&&!isNaN(i)))return function(e,t,n){switch(e){case"Days":return fV(new Date,("Last"===n?-1:1)*t);case"Weeks":return fV(new Date,("Last"===n?-1:1)*t*7);case"Months":return hV(new Date,("Last"===n?-1:1)*t);default:return gV(new Date,("Last"===n?-1:1)*t)}}(o,Number(r),n)}var i},O$=function(e){return void 0!==e&&"string"==typeof e&&"undefined"!==e},A$=function(e,t,n,r){switch(e.type){case d$.checkbox:case d$.autocomplete:return function(e,t,n){return null==t?void 0:t.has(e[n])}(t,n,r);case d$.search:return function(e,t,n){var r=wx(Array.from(n),1)[0].toLowerCase();return e.searchFields.reduce((function(e,n){var o,i;return"string"==typeof t[n]?t[n].toLowerCase().indexOf(r)>=0||e:(null===(i=null===(o=t[n])||void 0===o?void 0:o.toString())||void 0===i?void 0:i.indexOf(r))>=0||e}),!1)}(e,t,n);case d$.date:return function(e,t,n,r){if(!t[r])return!1;var o=uq(t[r],e.dateFormat,new Date),i=wx(Array.from(n),3),a=i[0],l=i[1],s=i[2],c=!0;if("exact"===a){if(""!==l){var u=hq(l);c=MW(o,u)||RW(o,u)}if(s){var d=x$(hq(s),{days:1});c=c&&IW(o,d)}else if(void 0===s){var f=x$(hq(l),{days:1});c=c&&IW(o,f)}}else if("period"===a){var p=N$(l);void 0!==p&&(c=MW(o,p)||RW(o,p));var h=N$(s);void 0!==h&&(c=c&&IW(o,h))}return c}(e,t,n,r);default:throw new Error("Not implemented")}},M$=function(e,t,n){var r=sx(e);return Object.values(t).forEach((function(e){var t=n[e.key]&&"function"==typeof e.filterFn?e.filterFn:A$;n[e.key]&&(r=r.filter((function(r){return t(e,r,n[e.key],e.key)})))})),r},I$=function(e,t){return e.label.localeCompare(t.label)},R$=function(e){var n=e.data,r=e.initialSelection,o=void 0===r?{}:r,i=e.filters,a=void 0===i?{}:i,l=e.children,s=e.onSelectionChange,c=wx(b(o),2),u=c[0],d=c[1];m((function(){d(Object.assign({},o))}),[n,o]);var f=function(e){d(Object.assign({},e)),void 0!==s&&s(Object.assign({},e))},p=C((function(){return{source:n,filter:a,selection:u,data:M$(n,a,u),setSelection:f}}),[u]);return t(y$,{value:p,children:l})},D$=o(jA).withConfig({displayName:"RadioButtonstyles__StyledRadioButton",componentId:"sc-oloz7y-0"})(["path{fill:",";}width:fit-content;"," &:hover{::before{background-color:#ade2e61a;}}svg{","}span{color:",";white-space:nowrap;}&:hover{background-color:transparent;&::before{background-color:#ade2e61a;}}span{&:first-of-type{padding-left:8px !important;padding-top:8px !important;padding-right:8px !important;padding-bottom:8px !important;}&:last-of-type{margin-left:4px;}}"," padding-right:8px !important;input:focus-visible + svg{outline:1px dashed ",";outline-offset:10px;}input{:disabled + svg{path{fill:#637583 !important;}}:checked + svg{path{fill:",";}}--scale:1.5;&:focus-visible{outline-color:",";outline:none;}}"],ky.semantic.text.tertiary,(function(e){return e.compact&&"width: 34px;"}),(function(e){return e.compact&&"height: 18px;\n width: 18px;"}),(function(e){return e.checked?"white":ky.semantic.text.tertiary}),(function(e){return!e.label&&"\n padding-left: 8px !important;\n padding-top: 8px !important;\n padding-bottom: 8px !important;\n "}),ky.mossGreen.tint[45],ky.mossGreen.tint[45],ky.mossGreen.tint[45]),_$=function(e){var n=dx(e,[]);return t(D$,Object.assign({},n,{"data-testid":"radioButton"}))},P$={search:{name:"search",prefix:"eds",height:"24",width:"24",svgPathData:"M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27Zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5Z",sizes:{small:{name:"search_small",prefix:"eds",height:"18",width:"18",svgPathData:"M11.224 10.691h.592l3.743 3.75-1.118 1.118-3.75-3.743v-.592l-.202-.21a4.853 4.853 0 0 1-3.173 1.177 4.875 4.875 0 1 1 4.875-4.875 4.853 4.853 0 0 1-1.177 3.173l.21.202ZM3.94 7.316a3.37 3.37 0 0 0 3.375 3.375 3.37 3.37 0 0 0 3.375-3.375 3.37 3.37 0 0 0-3.375-3.375 3.37 3.37 0 0 0-3.375 3.375Z"}}}};Vk.add(P$);var L$=o.div.withConfig({displayName:"Filterstyles__FilterContent",componentId:"sc-wv89q5-0"})(["margin-left:",";font-size:14px;font-weight:400;width:100%;"],(function(e){return e.$noMarginLeft?"0px":"30px"})),F$=o(_$).withConfig({displayName:"Filterstyles__StyledRadio",componentId:"sc-wv89q5-1"})(["margin-left:-8px;"]),z$=o(Xq).withConfig({displayName:"Filterstyles__StyledDateRangePicker",componentId:"sc-wv89q5-2"})(["margin-left:20px;"]),j$=o.div.withConfig({displayName:"Filterstyles__PeriodContainer",componentId:"sc-wv89q5-3"})(["display:grid;grid-gap:6px;grid-template-columns:repeat(3,auto);margin-right:20px;margin-left:20px;"]),B$=o.div.withConfig({displayName:"Filterstyles__AutoCompleteFilterWrapper",componentId:"sc-wv89q5-4"})(["max-width:270px;"]),V$=o.div.withConfig({displayName:"Filterstyles__OptionListItem",componentId:"sc-wv89q5-5"})(["cursor:pointer;color:",";display:flex;align-items:center;padding-left:30px;height:30px;&:hover{background:#3e4f5c;}"],ky.semantic.text.secondary),W$=o(yp).withConfig({displayName:"Filterstyles__StyledCheckbox",componentId:"sc-wv89q5-6"})(["&.MuiCheckbox-root{color:",";padding:0px;margin-right:16px;font-family:'Equinor';&.Mui-checked{color:",";}&:hover{::before{background-color:#ade2e61a;}}& svg{width:24px;height:24px;}}"],ky.slateBlue.tint[30],ky.slateBlue.tint[30]),H$=o.span.withConfig({displayName:"Filterstyles__Name",componentId:"sc-wv89q5-7"})(["font-weight:500;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:inherit;margin-top:2px;user-select:none;"]),q$=o.div.withConfig({displayName:"Filterstyles__OptionNumberWrapper",componentId:"sc-wv89q5-8"})(["color:",";margin-left:4px;margin-top:2px;"],ky.semantic.text.tertiary),U$=o(xP).withConfig({displayName:"Filterstyles__TextFieldNoPadding",componentId:"sc-wv89q5-9"})(["padding-bottom:1px;"]),K$=o(Vk).withConfig({displayName:"Filterstyles__Icon",componentId:"sc-wv89q5-10"})(["path{fill:"," !important;}"],ky.semantic.text.tertiary),Y$=o.div.withConfig({displayName:"Filterstyles__WarningWrapper",componentId:"sc-wv89q5-11"})(["color:",";margin-top:-14px;margin-left:30px;white-space:nowrap;"],ky.white.base),G$=o.div.withConfig({displayName:"Filterstyles__ErrorWrapper",componentId:"sc-wv89q5-12"})(["color:",";margin-left:24px;white-space:nowrap;"],ky.secondary.red),Z$=function(e){var r=e.checked,o=e.onChange,i=e.count;return n(V$,{onClick:o,"data-testid":"checkboxFilterAll",children:[t(W$,{checked:r}),t(H$,{children:"Select all"}),void 0!==i&&n(q$,{children:["(",i,")"]})]})},J$=function(e,t,n,r,o){var i=function(e,t){return Object.keys(e).filter((function(e){return e!==t})).reduce((function(t,n){return Object.assign(t,Bb({},n,e[n]))}),{})}(r,t),a=r[t];if(void 0===a)throw new Error("Filter is not set up correctly");var l=a.showNumbers,s=!!o&&!!l,c=s?M$(e,i,n):[],u=void 0!==a.options?a.options.filter((function(e){return!!e.trim()})):Array.from(new Set(e.map((function(e){return e[t]})))).filter((function(e){return void 0!==e&&("string"==typeof e&&""!==e.trim())})),d=u.map((function(e){var o={};return o[t]=new Set([e]),{filterKey:t,label:e,checked:!!n[t]&&n[t].has(e),count:s?M$(c,r,o).length:0,all:c.length}}));return d},X$=function(e){var r,o=b$(),i=o.source,a=o.selection,l=o.filter,s=o.setSelection,c=e.filterKey,u=e.isVisible,d=void 0===u||u,f=wx(b([]),2),p=f[0],h=f[1],g=wx(b(!1),2),v=g[0],y=g[1],x=l[c],w=!!x.showNumbers&&!!d&&i.length<10001;m((function(){var e=void 0!==x.sortFn?x.sortFn:void 0===x.options?I$:function(){return 0};h(J$(i,c,a,l,w).sort(e))}),[x,c,a,i,l,w]),m((function(){var e=p.some((function(e){return!e.checked}));y(!e)}),[p,y]);var C=function(e){return s(function(e,t,n){if(e[t]&&e[t].has(n)){var r=Array.from(e[t]),o=r.indexOf(n);r.splice(o,1),e[t]=new Set(r),0===e[t].size&&delete e[t]}else if(e[t]){var i=Array.from(e[t]);i.push(n),e[t]=new Set(i)}else e[t]=new Set([n]);return e}(a,c,e))};return n(L$,{"data-testid":"checkboxgroup-".concat(c),$noMarginLeft:!0,children:[x.showAll&&t(Z$,{onChange:function(){v?delete a[c]:(delete a[c],a[c]=new Set,p.forEach((function(e){return a[c].add(e.label)}))),s(a)},checked:v,count:w?null===(r=p[0])||void 0===r?void 0:r.all:void 0}),p.map((function(e){var r=void 0!==x.icons&&void 0!==x.icons[e.label]?x.icons[e.label]:void 0;return n(V$,{onClick:function(){return C(e.label)},children:[t(W$,{"data-testid":"checkboxFilter",checked:e.checked},"".concat(e.label,"-").concat(x.key)),r,t(H$,{children:e.label}),w&&n(q$,{children:["(",e.count,")"]})]},"div"+c+e.label)}))]})},Q$=function(e){var n=e.filterKey,r=b$(),o=r.selection,i=r.setSelection,a=wx(b(""),2),l=a[0],s=a[1];m((function(){if(o[n]){var e=wx(o[n],1)[0];s(e)}else s("")}),[n,o]);return t(L$,{children:t(U$,{handleValueChange:function(e){return t=e,(r=Object.assign({},o))[n]=new Set([t]),i(r),void s(t);var t,r},value:l,id:"textfield-text","data-testid":"searchFilter",width:"253px",height:"24px",style:{marginTop:20,marginBottom:20},iocVariant:"opportunity",placeholder:"",inputIcon:t(K$,{name:"search",color:"".concat(ky.semantic.text.tertiary," !important"),style:{fill:"".concat(ky.semantic.text.tertiary," !important")}},"search")})})},$$=function(e){var r,o,i=e.filterKey,a=b$(),l=a.selection,s=a.setSelection,c=a.filter,u=wx(b(!1),2),d=u[0],f=u[1],p=wx(b(null),2),h=p[0],g=p[1],v=wx(b(null),2),y=v[0],x=v[1],w=wx(b("period"),2),C=w[0],E=w[1],T=wx(b("Last"),2),k=T[0],S=T[1],N=wx(b("Next"),2),O=N[0],A=N[1],M=wx(b(void 0),2),I=M[0],R=M[1],D=wx(b(void 0),2),_=D[0],P=D[1],L=wx(b("Years"),2),F=L[0],z=L[1],j=wx(b("Months"),2),B=j[0],V=j[1],W=function(e){"period"===C?H(h,y):q(k,I,F,O,_,B),E(e.target.value)};m((function(){var e,t=null!==(e=l[i])&&void 0!==e?e:new Set;if(void 0!==l[i]){var n=wx(Array.from(t),3),r=n[0],o=n[1],a=n[2];if("exact"===r)E(r),void 0===o?(g(null),x(null)):void 0!==o&&void 0===a?(g(""===o?null:hq(o)),x(""===o?null:hq(o))):(g(""===o?null:hq(o)),x(""===a?null:hq(a)));else if("period"===r){E(r);var s=wx("string"==typeof o?o.split("_"):[],3),c=s[0],u=void 0===c?void 0:c,d=s[1],f=void 0===d?void 0:d,p=s[2],h=void 0===p?void 0:p,m=wx("string"==typeof a?a.split("_"):[],3),v=m[0],b=void 0===v?void 0:v,y=m[1],w=void 0===y?void 0:y,T=m[2],k=void 0===T?void 0:T;S(O$(u)&&T$.includes(u)?u:"Last"),R(void 0!==f&&"undefined"!==f?Number(f):void 0),z(O$(h)?h:"Years"),A(O$(b)&&T$.includes(b)?b:"Next"),P(void 0!==w&&"undefined"!==w?Number(w):void 0),V(O$(k)?k:"Months");var N=N$("".concat(u,"_").concat(f,"_").concat(h));g(void 0!==N?N:null);var O=N$("".concat(b,"_").concat(w,"_").concat(k));x(void 0!==O?O:null)}}else"exact"===C?(g(null),x(null)):(R(void 0),P(void 0))}),[i,l,g,x]);var H=function(e,t){if(null!==e&&null!==t&&eV(e,t))f(!0);else{if(f(!1),null===e&&null===t){var n=Object.assign({},l);return delete n[i],void s(n)}var r=e&&!isNaN(Number(e))?Eq(e,{representation:"date"}):"",o=t&&!isNaN(Number(t))?Eq(t,{representation:"date"}):"",a=Object.assign({},l);a[i]=new Set(["exact",r,o]),s(a)}},q=function(e,t,n,r,o,a){f(t===o&&e===r&&n===a);var c=Object.assign({},l);void 0!==t||void 0!==o?c[i]=new Set(["period","".concat(e,"_").concat(t,"_").concat(n),"".concat(r,"_").concat(o,"_").concat(a)]):void 0!==c[i]&&delete c[i],s(c);var u=N$("".concat(e,"_").concat(t,"_").concat(n));g(void 0!==u?u:null);var d=N$("".concat(r,"_").concat(o,"_").concat(a));x(void 0!==d?d:null)};return n(L$,{"data-testid":"datefilter-".concat(i),children:[n("div",{style:{marginTop:24},children:[t(F$,{compact:!0,label:"Period setting",name:"group",value:"period",checked:"period"===C,onChange:W}),n(j$,{children:[t(OP,{label:"From",width:"74px",height:"24px",options:k$.map((function(e){return e})),optionLabel:function(e){return e},hideClearButton:!0,disabled:"period"!==C,"data-testid":"autocomplete",selectedOptions:[k||"Last"],onOptionsChange:function(e){S(e.selectedItems[0]),q(e.selectedItems[0],I,F,O,_,B)}}),t(xP,{handleValueChange:function(e){return function(e){if(""===e&&void 0===_){var t=Object.assign({},l);return delete t[i],s(t),R(void 0),void g(null)}var n=""===e?void 0:Number(e);void 0!==n&&n<0&&(n=0),P(void 0!==n?Number(n):n),q(k,n,F,O,_,B)}(e)},value:null!==(r=null==I?void 0:I.toString())&&void 0!==r?r:"",type:"number",min:"0",disabled:"period"!==C,id:"textfield-number",width:"57px",height:"24px",iocVariant:"period"===C&&c[i].isFromDateRequired&&void 0===I?"error":void 0}),t(OP,{label:"",width:"105px",height:"24px",hideClearButton:!0,disabled:"period"!==C,options:C$.map((function(e){return e})),optionLabel:function(e){return e},"data-testid":"autocomplete",selectedOptions:[F],onOptionsChange:function(e){z(e.selectedItems[0]),q(k,I,e.selectedItems[0],O,_,B)}})]}),"period"===C&&c[i].isFromDateRequired&&void 0===I&&t(Y$,{children:"From period is required"}),n(j$,{children:[t(OP,{label:"To",width:"74px",height:"24px",options:k$.map((function(e){return e})),optionLabel:function(e){return e},hideClearButton:!0,disabled:"period"!==C,"data-testid":"autocomplete",selectedOptions:[O||"Next"],onOptionsChange:function(e){A(e.selectedItems[0]),q(k,I,F,e.selectedItems[0],_,B)}}),t(xP,{handleValueChange:function(e){return function(e){if(""===e&&void 0===I){var t=Object.assign({},l);return delete t[i],s(t),void P(void 0)}var n=""===e?void 0:Number(e);void 0!==n&&n<0&&(n=0),P(void 0!==n?Number(n):n),q(k,I,F,O,n,B)}(e)},value:null!==(o=null==_?void 0:_.toString())&&void 0!==o?o:"",type:"number",min:"0",disabled:"period"!==C,id:"textfield-number",width:"57px",height:"24px",iocVariant:"period"===C&&c[i].isToDateRequired&&void 0===_?"error":void 0}),t(OP,{label:"",width:"105px",height:"24px",hideClearButton:!0,disabled:"period"!==C,options:C$.map((function(e){return e})),optionLabel:function(e){return e},"data-testid":"autocomplete",selectedOptions:[B],onOptionsChange:function(e){V(e.selectedItems[0]),q(k,I,F,O,_,e.selectedItems[0])}})]}),"period"===C&&c[i].isToDateRequired&&void 0===_&&t(Y$,{children:"To period is required"}),d&&"period"===C&&t(G$,{children:"The from and to dataset must differ"})]}),n("div",{style:{marginTop:16},children:[t(F$,{compact:!0,label:"Exact date",name:"group",value:"exact",checked:"exact"===C,onChange:W}),t(z$,{displayVertically:!0,disabled:"exact"!==C,fromProps:{label:"From date",value:h,compact:!0,required:"exact"===C&&c[i].isFromDateRequired,onChange:function(e){H(e,y)}},toProps:{label:"To date",value:y,compact:!0,required:"exact"===C&&c[i].isToDateRequired,onChange:function(e){return H(h,e)}},rangeErrorText:"Start date must come before the end date."}),d&&"exact"===C&&t(G$,{children:"The from and to dataset must differ"})]})]})},e0=function(e){var n=e.filterKey,r=b$(),o=r.source,i=r.selection,a=r.setSelection,l=r.filter,s=wx(b([]),2),c=s[0],u=s[1],d=wx(b([]),2),f=d[0],p=d[1],h=l[n],g=function(e,t){return null===t?1:null===e?-1:null==e?void 0:e.localeCompare(t)};m((function(){var e=h.options,t=h.sortFn,r=void 0!==t?t:g,i=e;e||(i=o.map((function(e){return e[n]})).filter((function(e){return void 0!==e&&("string"!=typeof e||""!==e.trim())})).sort(r),i=Array.from(new Set(i)));var a=i.map((function(e,t){return{id:t,name:e}}));u(a)}),[u,h,o,n]),m((function(){if(0!==c.length){var e=i[n];if(void 0!==e){var t=Array.from(e).map((function(e){return c.find((function(t){return t.name===e}))}));p(t)}else p([])}}),[p,i,n,c]);return t(L$,{"data-testid":"autocompletefilter-".concat(n),children:t(B$,{style:{marginTop:20,marginBottom:4},"data-testid":"autocompletefilter",children:t(OP,{label:"",width:"253px",height:"24px",showThinBorder:!0,options:c,optionLabel:function(e){return e.name},placeholder:"Select ".concat(h.title.toLowerCase()),multiple:!0,"data-testid":"autocomplete",selectedOptions:f,onOptionsChange:function(e){var t=Object.assign({},i);if(e.selectedItems.length>0){var r=sx(e.selectedItems).map((function(e){return e.id})).filter((function(e,t,n){return n.indexOf(e)===n.lastIndexOf(e)})),o=e.selectedItems.filter((function(e){return r.includes(e.id)}));t[n]=new Set(o.map((function(e){return e.name})))}else delete t[n];a(t)}})})})};var t0=function(){this.__data__=[],this.size=0};var n0=function(e,t){return e===t||e!=e&&t!=t},r0=n0;var o0=function(e,t){for(var n=e.length;n--;)if(r0(e[n][0],t))return n;return-1},i0=o0,a0=Array.prototype.splice;var l0=function(e){var t=this.__data__,n=i0(t,e);return!(n<0)&&(n==t.length-1?t.pop():a0.call(t,n,1),--this.size,!0)},s0=o0;var c0=function(e){var t=this.__data__,n=s0(t,e);return n<0?void 0:t[n][1]},u0=o0;var d0=o0;var f0=function(e,t){var n=this.__data__,r=d0(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},p0=t0,h0=l0,g0=c0,m0=function(e){return u0(this.__data__,e)>-1},v0=f0;function b0(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}b0.prototype.clear=p0,b0.prototype.delete=h0,b0.prototype.get=g0,b0.prototype.has=m0,b0.prototype.set=v0;var y0=b0,x0=y0;var w0=function(){this.__data__=new x0,this.size=0};var C0=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var E0=function(e){return this.__data__.get(e)};var T0=function(e){return this.__data__.has(e)},k0="object"==typeof U&&U&&U.Object===Object&&U,S0=k0,N0="object"==typeof self&&self&&self.Object===Object&&self,O0=S0||N0||Function("return this")(),A0=O0.Symbol,M0=A0,I0=Object.prototype,R0=I0.hasOwnProperty,D0=I0.toString,_0=M0?M0.toStringTag:void 0;var P0=function(e){var t=R0.call(e,_0),n=e[_0];try{e[_0]=void 0;var r=!0}catch(e){}var o=D0.call(e);return r&&(t?e[_0]=n:delete e[_0]),o},L0=Object.prototype.toString;var F0=P0,z0=function(e){return L0.call(e)},j0=A0?A0.toStringTag:void 0;var B0=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j0&&j0 in Object(e)?F0(e):z0(e)};var V0=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},W0=B0,H0=V0;var q0,U0=function(e){if(!H0(e))return!1;var t=W0(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K0=O0["__core-js_shared__"],Y0=(q0=/[^.]+$/.exec(K0&&K0.keys&&K0.keys.IE_PROTO||""))?"Symbol(src)_1."+q0:"";var G0=function(e){return!!Y0&&Y0 in e},Z0=Function.prototype.toString;var J0=function(e){if(null!=e){try{return Z0.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X0=U0,Q0=G0,$0=V0,e1=J0,t1=/^\[object .+?Constructor\]$/,n1=Function.prototype,r1=Object.prototype,o1=n1.toString,i1=r1.hasOwnProperty,a1=RegExp("^"+o1.call(i1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var l1=function(e,t){return null==e?void 0:e[t]},s1=function(e){return!(!$0(e)||Q0(e))&&(X0(e)?a1:t1).test(e1(e))},c1=l1;var u1=function(e,t){var n=c1(e,t);return s1(n)?n:void 0},d1=u1(O0,"Map"),f1=u1(Object,"create"),p1=f1;var h1=function(){this.__data__=p1?p1(null):{},this.size=0};var g1=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},m1=f1,v1=Object.prototype.hasOwnProperty;var b1=function(e){var t=this.__data__;if(m1){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return v1.call(t,e)?t[e]:void 0},y1=f1,x1=Object.prototype.hasOwnProperty;var w1=f1;var C1=h1,E1=g1,T1=b1,k1=function(e){var t=this.__data__;return y1?void 0!==t[e]:x1.call(t,e)},S1=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=w1&&void 0===t?"__lodash_hash_undefined__":t,this};function N1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N1.prototype.clear=C1,N1.prototype.delete=E1,N1.prototype.get=T1,N1.prototype.has=k1,N1.prototype.set=S1;var O1=N1,A1=y0,M1=d1;var I1=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var R1=function(e,t){var n=e.__data__;return I1(t)?n["string"==typeof t?"string":"hash"]:n.map},D1=R1;var _1=R1;var P1=R1;var L1=R1;var F1=function(e,t){var n=L1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},z1=function(){this.size=0,this.__data__={hash:new O1,map:new(M1||A1),string:new O1}},j1=function(e){var t=D1(this,e).delete(e);return this.size-=t?1:0,t},B1=function(e){return _1(this,e).get(e)},V1=function(e){return P1(this,e).has(e)},W1=F1;function H1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}H1.prototype.clear=z1,H1.prototype.delete=j1,H1.prototype.get=B1,H1.prototype.has=V1,H1.prototype.set=W1;var q1=y0,U1=d1,K1=H1;var Y1=y0,G1=w0,Z1=C0,J1=E0,X1=T0,Q1=function(e,t){var n=this.__data__;if(n instanceof q1){var r=n.__data__;if(!U1||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new K1(r)}return n.set(e,t),this.size=n.size,this};function $1(e){var t=this.__data__=new Y1(e);this.size=t.size}$1.prototype.clear=G1,$1.prototype.delete=Z1,$1.prototype.get=J1,$1.prototype.has=X1,$1.prototype.set=Q1;var e2=$1;var t2=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},n2=u1,r2=function(){try{var e=n2(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var o2=function(e,t,n){"__proto__"==t&&r2?r2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},i2=o2,a2=n0,l2=Object.prototype.hasOwnProperty;var s2=function(e,t,n){var r=e[t];l2.call(e,t)&&a2(r,n)&&(void 0!==n||t in e)||i2(e,t,n)},c2=s2,u2=o2;var d2=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?u2(n,l,s):c2(n,l,s)}return n};var f2=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var p2=function(e){return null!=e&&"object"==typeof e},h2=B0,g2=p2;var m2=function(e){return g2(e)&&"[object Arguments]"==h2(e)},v2=p2,b2=Object.prototype,y2=b2.hasOwnProperty,x2=b2.propertyIsEnumerable,w2=m2(function(){return arguments}())?m2:function(e){return v2(e)&&y2.call(e,"callee")&&!x2.call(e,"callee")},C2=Array.isArray,E2={exports:{}};var T2=function(){return!1};!function(e,t){var n=O0,r=T2,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(E2,E2.exports);var k2=E2.exports,S2=/^(?:0|[1-9]\d*)$/;var N2=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&S2.test(e))&&e>-1&&e%1==0&&e<t};var O2=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},A2=B0,M2=O2,I2=p2,R2={};R2["[object Float32Array]"]=R2["[object Float64Array]"]=R2["[object Int8Array]"]=R2["[object Int16Array]"]=R2["[object Int32Array]"]=R2["[object Uint8Array]"]=R2["[object Uint8ClampedArray]"]=R2["[object Uint16Array]"]=R2["[object Uint32Array]"]=!0,R2["[object Arguments]"]=R2["[object Array]"]=R2["[object ArrayBuffer]"]=R2["[object Boolean]"]=R2["[object DataView]"]=R2["[object Date]"]=R2["[object Error]"]=R2["[object Function]"]=R2["[object Map]"]=R2["[object Number]"]=R2["[object Object]"]=R2["[object RegExp]"]=R2["[object Set]"]=R2["[object String]"]=R2["[object WeakMap]"]=!1;var D2=function(e){return I2(e)&&M2(e.length)&&!!R2[A2(e)]};var _2=function(e){return function(t){return e(t)}},P2={exports:{}};!function(e,t){var n=k0,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(P2,P2.exports);var L2=P2.exports,F2=D2,z2=_2,j2=L2&&L2.isTypedArray,B2=j2?z2(j2):F2,V2=f2,W2=w2,H2=C2,q2=k2,U2=N2,K2=B2,Y2=Object.prototype.hasOwnProperty;var G2=function(e,t){var n=H2(e),r=!n&&W2(e),o=!n&&!r&&q2(e),i=!n&&!r&&!o&&K2(e),a=n||r||o||i,l=a?V2(e.length,String):[],s=l.length;for(var c in e)!t&&!Y2.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||U2(c,s))||l.push(c);return l},Z2=Object.prototype;var J2=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Z2)};var X2=function(e,t){return function(n){return e(t(n))}},Q2=X2(Object.keys,Object),$2=J2,e3=Q2,t3=Object.prototype.hasOwnProperty;var n3=function(e){if(!$2(e))return e3(e);var t=[];for(var n in Object(e))t3.call(e,n)&&"constructor"!=n&&t.push(n);return t},r3=U0,o3=O2;var i3=function(e){return null!=e&&o3(e.length)&&!r3(e)},a3=G2,l3=n3,s3=i3;var c3=function(e){return s3(e)?a3(e):l3(e)},u3=d2,d3=c3;var f3=function(e,t){return e&&u3(t,d3(t),e)};var p3=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},h3=V0,g3=J2,m3=p3,v3=Object.prototype.hasOwnProperty;var b3=function(e){if(!h3(e))return m3(e);var t=g3(e),n=[];for(var r in e)("constructor"!=r||!t&&v3.call(e,r))&&n.push(r);return n},y3=G2,x3=b3,w3=i3;var C3=function(e){return w3(e)?y3(e,!0):x3(e)},E3=d2,T3=C3;var k3=function(e,t){return e&&E3(t,T3(t),e)},S3={exports:{}};!function(e,t){var n=O0,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(S3,S3.exports);var N3=S3.exports;var O3=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var A3=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var M3=function(){return[]},I3=A3,R3=M3,D3=Object.prototype.propertyIsEnumerable,_3=Object.getOwnPropertySymbols,P3=_3?function(e){return null==e?[]:(e=Object(e),I3(_3(e),(function(t){return D3.call(e,t)})))}:R3,L3=P3,F3=d2,z3=L3;var j3=function(e,t){return F3(e,z3(e),t)};var B3=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},V3=X2(Object.getPrototypeOf,Object),W3=B3,H3=V3,q3=L3,U3=M3,K3=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)W3(t,q3(e)),e=H3(e);return t}:U3,Y3=d2,G3=K3;var Z3=function(e,t){return Y3(e,G3(e),t)},J3=B3,X3=C2;var Q3=function(e,t,n){var r=t(e);return X3(e)?r:J3(r,n(e))},$3=Q3,e4=L3,t4=c3;var n4=function(e){return $3(e,t4,e4)},r4=Q3,o4=K3,i4=C3;var a4=function(e){return r4(e,i4,o4)},l4=u1(O0,"DataView"),s4=d1,c4=u1(O0,"Promise"),u4=u1(O0,"Set"),d4=u1(O0,"WeakMap"),f4=B0,p4=J0,h4="[object Map]",g4="[object Promise]",m4="[object Set]",v4="[object WeakMap]",b4="[object DataView]",y4=p4(l4),x4=p4(s4),w4=p4(c4),C4=p4(u4),E4=p4(d4),T4=f4;(l4&&T4(new l4(new ArrayBuffer(1)))!=b4||s4&&T4(new s4)!=h4||c4&&T4(c4.resolve())!=g4||u4&&T4(new u4)!=m4||d4&&T4(new d4)!=v4)&&(T4=function(e){var t=f4(e),n="[object Object]"==t?e.constructor:void 0,r=n?p4(n):"";if(r)switch(r){case y4:return b4;case x4:return h4;case w4:return g4;case C4:return m4;case E4:return v4}return t});var k4=T4,S4=Object.prototype.hasOwnProperty;var N4=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&S4.call(e,"index")&&(n.index=e.index,n.input=e.input),n},O4=O0.Uint8Array;var A4=function(e){var t=new e.constructor(e.byteLength);return new O4(t).set(new O4(e)),t},M4=A4;var I4=function(e,t){var n=t?M4(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},R4=/\w*$/;var D4=function(e){var t=new e.constructor(e.source,R4.exec(e));return t.lastIndex=e.lastIndex,t},_4=A0?A0.prototype:void 0,P4=_4?_4.valueOf:void 0;var L4=function(e){return P4?Object(P4.call(e)):{}},F4=A4;var z4=A4,j4=I4,B4=D4,V4=L4,W4=function(e,t){var n=t?F4(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var H4=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return z4(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return j4(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return W4(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return B4(e);case"[object Symbol]":return V4(e)}},q4=V0,U4=Object.create,K4=function(){function e(){}return function(t){if(!q4(t))return{};if(U4)return U4(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Y4=K4,G4=V3,Z4=J2;var J4=function(e){return"function"!=typeof e.constructor||Z4(e)?{}:Y4(G4(e))},X4=k4,Q4=p2;var $4=function(e){return Q4(e)&&"[object Map]"==X4(e)},e6=_2,t6=L2&&L2.isMap,n6=t6?e6(t6):$4,r6=k4,o6=p2;var i6=function(e){return o6(e)&&"[object Set]"==r6(e)},a6=_2,l6=L2&&L2.isSet,s6=l6?a6(l6):i6,c6=e2,u6=t2,d6=s2,f6=f3,p6=k3,h6=N3,g6=O3,m6=j3,v6=Z3,b6=n4,y6=a4,x6=k4,w6=N4,C6=H4,E6=J4,T6=C2,k6=k2,S6=n6,N6=V0,O6=s6,A6=c3,M6=C3,I6="[object Arguments]",R6="[object Function]",D6="[object Object]",_6={};_6[I6]=_6["[object Array]"]=_6["[object ArrayBuffer]"]=_6["[object DataView]"]=_6["[object Boolean]"]=_6["[object Date]"]=_6["[object Float32Array]"]=_6["[object Float64Array]"]=_6["[object Int8Array]"]=_6["[object Int16Array]"]=_6["[object Int32Array]"]=_6["[object Map]"]=_6["[object Number]"]=_6[D6]=_6["[object RegExp]"]=_6["[object Set]"]=_6["[object String]"]=_6["[object Symbol]"]=_6["[object Uint8Array]"]=_6["[object Uint8ClampedArray]"]=_6["[object Uint16Array]"]=_6["[object Uint32Array]"]=!0,_6["[object Error]"]=_6[R6]=_6["[object WeakMap]"]=!1;var P6=function e(t,n,r,o,i,a){var l,s=1&n,c=2&n,u=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!N6(t))return t;var d=T6(t);if(d){if(l=w6(t),!s)return g6(t,l)}else{var f=x6(t),p=f==R6||"[object GeneratorFunction]"==f;if(k6(t))return h6(t,s);if(f==D6||f==I6||p&&!i){if(l=c||p?{}:E6(t),!s)return c?v6(t,p6(l,t)):m6(t,f6(l,t))}else{if(!_6[f])return i?t:{};l=C6(t,f,s)}}a||(a=new c6);var h=a.get(t);if(h)return h;a.set(t,l),O6(t)?t.forEach((function(o){l.add(e(o,n,r,o,t,a))})):S6(t)&&t.forEach((function(o,i){l.set(i,e(o,n,r,i,t,a))}));var g=d?void 0:(u?c?y6:b6:c?M6:A6)(t);return u6(g||t,(function(o,i){g&&(o=t[i=o]),d6(l,i,e(o,n,r,i,t,a))})),l},L6=P6;var F6=K((function(e){return L6(e,5)})),z6={filter_list:Lx};Vk.add(z6);var j6=o.div.withConfig({displayName:"FilterBarstyles__FilterBarContainer",componentId:"sc-1w4mb6i-0"})(["position:relative;display:flex;flex-direction:row;background-color:",";padding-left:16px;margin:0 0px 1px 0px;"],ky.slateBlue.base),B6=o($l).withConfig({displayName:"FilterBarstyles__CurrentFilterList",componentId:"sc-1w4mb6i-1"})(["&.MuiAccordionSummary-root{display:flex;width:100%;flex-direction:row;min-height:30px !important;background-color:",";margin-bottom:2px;align-items:center;border-radius:0px;padding-left:16px;padding-right:16px;cursor:default !important;font-family:'Equinor';.MuiAccordionSummary-content{flex-wrap:wrap;margin:6px 0px;}}"],ky.slateBlue.base),V6=o.span.withConfig({displayName:"FilterBarstyles__FilterHeader",componentId:"sc-1w4mb6i-2"})(["display:flex;align-items:center;flex-grow:0;align-self:flex-start;margin-top:4px;"]),W6=o.span.withConfig({displayName:"FilterBarstyles__FilterHeaderText",componentId:"sc-1w4mb6i-3"})(["text-transform:uppercase;white-space:nowrap;font-size:12px;margin-right:4px;color:",";margin-top:3px;"],ky.semantic.text.tertiary),H6=o(Vk).withConfig({displayName:"FilterBarstyles__FilterHeaderIcon",componentId:"sc-1w4mb6i-4"})(["color:",";margin-left:6px;cursor:pointer;:hover{color:",";}"],ky.mossGreen.base,ky.mossGreen.tint[45]),q6=o.div.withConfig({displayName:"FilterBarstyles__FilterItem",componentId:"sc-1w4mb6i-5"})(["justify-content:space-between;display:flex;align-items:center;cursor:default;height:18px;margin-left:6px;background-color:",";border-radius:12px;font-size:12px;color:",";padding:2px 8px;margin-top:2px;margin-bottom:2px;span{padding-left:4px;padding-right:4px;font-weight:500;align-self:baseline;}"],ky.slateBlue.tint[20],ky.secondary.sinbad),U6=o(is).withConfig({displayName:"FilterBarstyles__RemoveFilterButton",componentId:"sc-1w4mb6i-6"})(["&.MuiButtonBase-root{color:",";padding:0px;font-family:'Equinor';&:hover{background-color:transparent;color:",";}}"],ky.secondary.sinbad,ky.white.base),K6=o(wa).withConfig({displayName:"FilterBarstyles__RemoveFilterIcon",componentId:"sc-1w4mb6i-7"})(["height:16px;width:16px;"]),Y6=x({}),G6=function(){return f(Y6)},Z6=Y6.Provider;Y6.Consumer;var J6,X6=function(){var e=b$(),r=e.selection,o=e.filter,i=e.setSelection,a=G6().onSettingsVisibilityChange,l=function(e,t){var n,a=F6(r);if((null===(n=o[e])||void 0===n?void 0:n.type)===d$.date){var l=wx(Array.from(a[e]),3),s=l[0],c=l[1],u=l[2];if(void 0===u)delete a[e];else{var d=c===t?"":c,f=u===t?"":u;""!==d&&!d.includes("undefined")||""!==f&&!f.includes("undefined")?a[e]=new Set([s,d,f]):delete a[e]}}else{var p=Array.from(a[e]),h=p.indexOf(t);p.splice(h,1),a[e]=new Set(p),0===a[e].size&&delete a[e]}i(a)},s=Object.keys(r);return n(j6,{"data-testid":"filterBar",children:[n(V6,{children:[t(W6,{children:"Active filters"}),t(H6,{name:"filter_list",onClick:a},"filter_list")]}),t(B6,{children:s.map((function(e){return t(Q6,{filter:o[e],onDeleteItem:l,selection:r[e]},"filterlabel-".concat(e))}))})]},"filterBar")},Q6=function(e){var o=e.filter,i=e.selection,a=e.onDeleteItem,l=Array.from(i),s=function(e,r,i){return n(q6,{"data-testid":"filterBarItem",children:[t("span",{style:{textTransform:"capitalize",width:"max-content"},children:r}),!i&&t(U6,{"data-testid":"RemoveFilterButton",onClick:function(t){t.stopPropagation(),a(null==o?void 0:o.key,e)},children:t(K6,{fontSize:"small",children:t("path",{d:jx})})})]},"filterBarItem-".concat(e,"-").concat(null==o?void 0:o.key))};if((null==o?void 0:o.type)===d$.date){var c=void 0,u=void 0,d=l[0],f=l[1],p=l[2];if("exact"===d)""!==f&&(c="".concat(null==o?void 0:o.title," from - ").concat(wW(hq(f),o.dateFormat))),""!==p&&(u="".concat(null==o?void 0:o.title," to - ").concat(wW(hq(p),o.dateFormat)));else if("period"===d){if(""!==f&&void 0!==f){var h=wx(null==f?void 0:f.split("_"),3),g=h[0],m=h[1],v=h[2];c="undefined"===m?void 0:"".concat(null==o?void 0:o.title," from - ").concat(g," ").concat(m," ").concat(v)}if(""!==p&&void 0!==p){var b=wx(null==p?void 0:p.split("_"),3),y=b[0],x=b[1],w=b[2];u="undefined"===x?void 0:"".concat(null==o?void 0:o.title," to - ").concat(y," ").concat(x," ").concat(w)}}return n(r,{children:[void 0!==c&&s(l[1],c,o.isFromDateRequired),void 0!==u&&s(l[2],u,o.isToDateRequired)]})}return t(r,{children:l.map((function(e,t){return void 0===e||""===e.trim()?null:s(e,function(e,t){var n;try{switch(null==o?void 0:o.type){case d$.date:return"".concat(null==o?void 0:o.title," ").concat(0===t?"from":"to"," - ").concat(wW(hq(e),o.dateFormat));case d$.checkbox:case d$.autocomplete:case d$.search:default:return"".concat(null!==(n=null==o?void 0:o.title)&&void 0!==n?n:"Search"," - ").concat(e)}}catch(n){console.error(n,e,t,o,i)}return""}(e,t))}))})},$6=o.div.withConfig({displayName:"SmallDialog__DialogWrapper",componentId:"sc-1cmginq-0"})(["z-index:1000;width:258px;border-radius:4px;background:#3e4f5c;left:",";top:",";position:inherit;padding:0;padding-bottom:12px;box-shadow:0px 3px 5px -1px rgb(0 0 0 / 20%),0px 5px 8px 0px rgb(0 0 0 / 14%),0px 1px 14px 0px rgb(0 0 0 / 12%);:hover{background:#3e4f5c;}"],(function(e){return e.$horizontallyCenterDialog?"calc(50% - 129px)":"6px"}),(function(e){return e.$verticallyCenterDialog?"calc(50% - 64px)":"0"})),e5=o.div.withConfig({displayName:"SmallDialog__BackdropWrapper",componentId:"sc-1cmginq-1"})(["z-index:1000;width:100%;height:100%;background:rgba(19,38,52,0.5);position:absolute;top:0;left:0;"]),t5=o.div.withConfig({displayName:"SmallDialog__IconTextWrapper",componentId:"sc-1cmginq-2"})(["display:flex;flex-direction:row;align-items:end;padding-left:12px;"]),n5=o(wa).withConfig({displayName:"SmallDialog__Icon",componentId:"sc-1cmginq-3"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),r5=o.div.withConfig({displayName:"SmallDialog__DialogHeaderRow",componentId:"sc-1cmginq-4"})(["display:flex;justify-content:space-between;padding:0;align-items:center;:hover{background:#3e4f5c;}"]),o5=o.span.withConfig({displayName:"SmallDialog__Title",componentId:"sc-1cmginq-5"})(["color:",";font-size:12px;font-weight:500;"],ky.semantic.text.tertiary),i5=o.div.withConfig({displayName:"SmallDialog__ButtonWrapper",componentId:"sc-1cmginq-6"})((function(e){var t=e.theme;return i(J6||(J6=lD(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: ",";\n gap: 8px;\n "])),t.spacing(2,2,0,2))})),a5=o.div.withConfig({displayName:"SmallDialog__DialogContentContainer",componentId:"sc-1cmginq-7"})(["display:flex;flex-direction:column;margin-left:24px;margin-right:24px;font-size:12px;font-weight:500;"]),l5=function(e){var r=e.handleClose,o=e.primaryButtonProps,i=e.secondaryButtonProps,a=e.customActionComponent,l=e.testId,s=e.titleText,c=e.titleIcon,u=e.primaryButtonText,d=e.secondaryButtonText,f=e.horizontallyCenterDialog,p=e.verticallyCenterDialog,h=e.children;return t(e5,{children:n($6,{"data-testid":null!=l?l:"SmallDialog",$horizontallyCenterDialog:f,$verticallyCenterDialog:p,children:[n(r5,{children:[n(t5,{children:[c,t(o5,{children:s})]}),t(is,{"data-testid":"xCloseButton",onClick:function(e){e.stopPropagation(),r()},children:t(n5,{children:t("path",{d:jx})})})]}),t(a5,{children:null!=h?h:""}),n(i5,{children:[i&&t(xw,Object.assign({"data-testid":"SecondaryButton",buttonstyle:"secondary",height:"24px"},i,{children:null!=d?d:"Cancel"})),o&&t(xw,Object.assign({"data-testid":"PrimaryButton",buttonstyle:"outlined",height:"24px"},o,{children:null!=u?u:"Confirm"})),a]})]})})},s5=o(wa).withConfig({displayName:"SaveTabCopyDialog__Icon",componentId:"sc-1qokt2n-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),c5=function(e){var n=e.tabId,r=e.handleClose,o=e.handleRemoveTab,i=e.handleSaveTab,a=e.titleText,l=e.contentText,s=e.saveButtonText,c=e.cancelButtonText;return t(l5,{testId:"SaveTabCopyDialog",horizontallyCenterDialog:!0,showBackdrop:!0,handleClose:r,titleText:a,titleIcon:t(s5,{children:t("path",{d:Vx})}),primaryButtonProps:{onClick:function(){i(n),r()},children:null!=s?s:"Save copy"},primaryButtonText:null!=s?s:"Save copy",secondaryButtonProps:{onClick:function(){o(n),r()},children:null!=c?c:"Remove"},secondaryButtonText:null!=c?c:"Remove",children:l})},u5={exports:{}},d5={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(d5);var f5=d5.exports;!function(e){var t=f5.default;function n(){e.exports=n=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var r,o={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new D(r||[]);return l(i,"_invoke",{value:A(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}o.wrap=p;var g="suspendedStart",m="suspendedYield",v="executing",b="completed",y={};function x(){}function w(){}function C(){}var E={};f(E,c,(function(){return this}));var T=Object.getPrototypeOf,k=T&&T(T(_([])));k&&k!==i&&a.call(k,c)&&(E=k);var S=C.prototype=x.prototype=Object.create(E);function N(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,n){function r(o,i,l,s){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==t(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):n.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return r("throw",e,l,s)}))}s(c.arg)}var o;l(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function A(e,t,n){var o=g;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var s=M(l,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===g)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=h(e,t,n);if("normal"===c.type){if(o=n.done?b:m,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=b,n.method="throw",n.arg=c.arg)}}}function M(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,M(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=h(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,y;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,y):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=C,l(S,"constructor",{value:C,configurable:!0}),l(C,"constructor",{value:w,configurable:!0}),w.displayName=f(C,d,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,f(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},o.awrap=function(e){return{__await:e}},N(O.prototype),f(O.prototype,u,(function(){return this})),o.AsyncIterator=O,o.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var a=new O(p(e,t,n,r),i);return o.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(S),f(S,d,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},o.values=_,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return l.type="throw",l.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),y}},o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(u5);var p5=(0,u5.exports)(),h5=p5;try{regeneratorRuntime=p5}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=p5:Function("r","regeneratorRuntime = r")(p5)}var g5,m5,v5,b5,y5=K(h5),x5=o(wa).withConfig({displayName:"LinkDialog__Icon",componentId:"sc-19lxkw8-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),w5=o.div.withConfig({displayName:"LinkDialog__LinkButton",componentId:"sc-19lxkw8-1"})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-end;&:hover{text-decoration:underline;color:",";cursor:pointer;}"],ky.mossGreen.tint[45]),C5=o.span.withConfig({displayName:"LinkDialog__CopyLink",componentId:"sc-19lxkw8-2"})((function(e){var t=e.theme;return i(g5||(g5=lD(["\n font-size: 14px;\n padding: ",";\n color: ",";\n "])),t.spacing(0,1),ky.mossGreen.tint[45])})),E5=function(e){var r=e.url,o=e.handleClose,i=e.titleText,a=e.linkContentText,l=e.copyLinkText,s=e.linkCopiedText,c=e.showTooltipOnLinkClick,u=wx(b(!1),2),d=u[0],f=u[1];return t(l5,{testId:"LinkDialog",handleClose:o,titleText:i,titleIcon:t(x5,{children:t("path",{d:tw})}),customActionComponent:t(Mk,{hidden:!c&&!d,title:null!=s?s:"Link copied to clipboard","data-testid":"tooltipLink",children:n(w5,{"data-testid":"LinkButton",onClick:function(e){fx(void 0,void 0,void 0,y5.mark((function e(){return y5.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,navigator.clipboard.writeText(null!=r?r:window.location.href);case 3:setTimeout((function(){f(!1),o()}),2e3);case 4:case"end":return e.stop()}}),e)}))),e.stopPropagation()},children:[t(x5,{children:t("path",{d:sw})}),t(C5,{children:null!=l?l:"Copy link"})]})},"tooltipLink"),children:a})},T5=function(){var e,o,i,a,l,s,c=G6(),u=c.tableProps,d=c.currentTab,f=c.tabTypes,p=c.initialSort,h=c.onSortChange,g=c.visibleColumns,y=c.columnOrder,x=c.rowsSelected,w=c.onRowSelectionChange,E=c.isSaveTabDialogOpen,T=c.setIsSaveTabDialogOpen,k=c.onTabDelete,S=wx(b(p),2),N=S[0],O=S[1],A=wx(b(g),2),M=A[0],I=A[1],R=wx(b(y),2),D=R[0],_=R[1],P=b$().data,L=wx(b(f.find((function(e){return e.id===(null==d?void 0:d.dataSource)}))),2),F=L[0],z=L[1],j=wx(b(void 0),2),B=j[0],V=j[1];v((function(){u.onCurrentTabChange(null==d?void 0:d.id),z(f.find((function(e){return e.id===(null==d?void 0:d.dataSource)})))}),[u.onCurrentTabChange,null==d?void 0:d.id]),m((function(){O(p)}),[null==d?void 0:d.id]),m((function(){I(g)}),[g]),m((function(){h(N)}),[N]),m((function(){_(y)}),[y]);var W=wx(b({}),2),H=W[0],q=W[1],U=u.tableName,K=u.testId,Y=u.skeletonItems,G=void 0===Y?3:Y,Z=u.onRetry,J=u.onSaveTabClick,X=u.textProps,Q=u.pageSizeArray,$=void 0===Q?[5,10,20,100,1e3]:Q,ee=u.stickyTableHeader,te=void 0!==ee&&ee,ne=function(e){var t;(null==F?void 0:F.isSelectableRows)&&(null===(t=null==F?void 0:F.onRowClick)||void 0===t||t.call(F,e))},re=null!==(e=localStorage.getItem("table-pagination-cache"))&&void 0!==e?e:"{}";v((function(){se((function(e){return Object.assign(Object.assign({},e),{pageSize:(null==F?void 0:F.showPagination)?ie:(null==F?void 0:F.isLoading)?3:P.length})}))}),[re,U,null==d?void 0:d.id,F]);var oe=null===(o=JSON.parse(re))||void 0===o?void 0:o[U],ie=$.indexOf(oe)>-1?oe:5,ae=wx(b({pageIndex:0,pageSize:ie}),2),le=ae[0],se=ae[1],ce=(null===(i=null==F?void 0:F.emptyDataProps)||void 0===i?void 0:i.isError)?t(_w,{showCloseButton:!0,"data-testid":null==F?void 0:F.emptyDataProps.testId,onButtonClick:Z,style:{marginTop:"12px",marginBottom:"-1px"},buttonText:null==F?void 0:F.emptyDataProps.retryButtonText,children:null==F?void 0:F.emptyDataProps.message}):t(Sw,{showCloseButton:!0,"data-testid":void 0===F?"noVisibleTabsInfoBox":null==F?void 0:F.emptyDataProps.testId,style:{marginTop:"12px",marginBottom:"-1px"},children:null!==(l=null===(a=null==F?void 0:F.emptyDataProps)||void 0===a?void 0:a.message)&&void 0!==l?l:"You have no visible tabs. Please add a new tab or make an existing one visible in the settings."}),ue=kL({data:C((function(){return(null==F?void 0:F.isLoading)?Array.from({length:G},(function(e,t){return t+1})):P}),[P,G,null==F?void 0:F.isLoading]),columns:C((function(){var e,n,r={accessorKey:"select",cell:function(e){var n=e.row;return t(tU,{onClick:function(e){return e.stopPropagation()},checked:n.getIsSelected(),onChange:n.getToggleSelectedHandler()})},size:1},o=null!==(e=null==F?void 0:F.columns.slice().map((function(e,n){return Object.assign(Object.assign({},e),{cell:function(e){return t(GL,{"data-testid":"SkeletonCell",animation:"wave",variant:"rectangular"})}})})))&&void 0!==e?e:[];return(null==F?void 0:F.isLoading)?o:(null==F?void 0:F.enableCheckboxRowSelection)?[r].concat(sx(null==F?void 0:F.columns)):null!==(n=null==F?void 0:F.columns)&&void 0!==n?n:[]}),[null==F?void 0:F.columns,null==F?void 0:F.enableCheckboxRowSelection,null==F?void 0:F.isLoading]),state:{rowSelection:null!=x?x:{},sorting:N,pagination:le,columnVisibility:M,columnOrder:D},onColumnVisibilityChange:I,onColumnOrderChange:_,onSortingChange:O,enableRowSelection:null==F?void 0:F.enableCheckboxRowSelection,enableMultiRowSelection:null!==(s=null==F?void 0:F.enableCheckboxMultiRowSelection)&&void 0!==s&&s,onRowSelectionChange:q,getCoreRowModel:yL(),getSortedRowModel:CL(),getFilteredRowModel:wL(),getPaginationRowModel:EL(),debugTable:!0}),de=ue.getRowModel().rows,fe=ue.getRowModel().rowsById;v((function(){!function(e,t){var n,r,o,i=e.filter((function(e,t){return H[t]})),a=i.map((function(e){return t.findIndex((function(t){return t.id===e.id}))}));null==w||w(null!==(r=null===(n=a.map((function(e){return Bb({},e,!0)})))||void 0===n?void 0:n[0])&&void 0!==r?r:{},i.map((function(e){return e.id}))),null===(o=null==F?void 0:F.onCheckboxSelectionChange)||void 0===o||o.call(F,["5"])}(ue.getFilteredRowModel().flatRows.map((function(e){return e.original})),de.map((function(e){return e.original})))}),[H]);var pe=function(){V(void 0)},he=function(e){V(e)};return n(r,{children:[void 0!==F&&n(jL,{"data-testid":K,children:[n(AL,{"data-testid":"".concat(U,"-thead"),$stickyTableHeader:te,children:[t("tr",{children:t("th",{colSpan:99,children:t(X6,{})})}),ue.getHeaderGroups().map((function(e){return t("tr",{"data-testid":"".concat(U,"-headerRow"),children:e.headers.map((function(e){var r;return t(ML,{colSpan:e.colSpan,$isCheckbox:"select"===e.id,style:{width:e.getSize()},children:e.isPlaceholder?null:n("div",{className:e.column.getCanSort()&&"select"!==e.id?"cursor-pointer select-none":"",onClick:e.column.getToggleSortingHandler(),children:[TL(e.column.columnDef.header,e.getContext()),null!==(r={asc:t(NL,{name:"arrow_up"},"ascendingIcon"),desc:t(NL,{name:"arrow_down"},"descendingIcon"),false:t(NL,{$isNotSorted:!0,name:"arrow_up"},"unsortedIcon")}[e.column.getIsSorted()])&&void 0!==r?r:null]})},e.id)}))},e.id)}))]}),t("tbody",{"data-testid":"".concat(U,"-tbody"),children:t(r,{children:de.length>0?de.map((function(e,o){var i;return t(LL,{$isSelectable:null!==(i=null==F?void 0:F.isSelectableRows)&&void 0!==i&&i,"data-testid":"".concat(U,"-row"),onClick:function(){return ne(e)},children:e.getVisibleCells().map((function(e){var o,i;return t(IL,{"data-testid":"".concat(U,"-cell"),$isCheckbox:e.id.includes("select"),$hasShareIcon:(null===(o=null==F?void 0:F.shareableColumnIds)||void 0===o?void 0:o.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading),children:(null===(i=null==F?void 0:F.shareableColumnIds)||void 0===i?void 0:i.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading)?n(RL,{children:[TL(e.column.columnDef.cell,e.getContext()),t(is,{className:"linkIcon","data-testid":"LinkButton",size:"small",style:{opacity:0},onClick:function(t){t.stopPropagation(),he(e.id)},children:t(NL,{name:"share"},"share")}),B===e.id&&t(JL,{className:"linkDialog",children:t(E5,{handleClose:pe,titleText:"Share issue",linkContentText:"Anyone at Equinor with a link can view the annotation.",url:(null==F?void 0:F.shareableCellUrlBase)+e.getValue()})})]}):t(r,{children:TL(e.column.columnDef.cell,e.getContext())})},e.id)}))},e.id)})):Object.keys(fe).map((function(e){var o;return t(LL,{$isSelectable:null!==(o=null==F?void 0:F.isSelectableRows)&&void 0!==o&&o,"data-testid":"".concat(U,"-row"),onClick:function(){return ne(fe[e])},children:fe[e].getVisibleCells().map((function(e){var o,i,a;return t(IL,{"data-testid":"".concat(U,"-cell"),$isCheckbox:e.id.includes("select"),$hasShareIcon:(null===(o=null==F?void 0:F.shareableColumnIds)||void 0===o?void 0:o.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading),children:(null===(i=null==F?void 0:F.shareableColumnIds)||void 0===i?void 0:i.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading)?n(RL,{children:[TL(e.column.columnDef.cell,e.getContext()),(null===(a=null==F?void 0:F.shareableColumnIds)||void 0===a?void 0:a.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading)&&t(is,{className:"linkIcon","data-testid":"LinkButton",size:"small",style:{opacity:0},onClick:function(t){t.stopPropagation(),he(e.id)},children:t(NL,{name:"share"},"share")}),B===e.id&&t(JL,{className:"linkDialog",children:t(E5,{handleClose:pe,titleText:"Share issue",linkContentText:"Anyone at Equinor with a link can view the annotation.",url:(null==F?void 0:F.shareableCellUrlBase)+e.getValue()})})]}):t(r,{children:TL(e.column.columnDef.cell,e.getContext())})},e.id)}))},e)}))})})]}),(!(null==F?void 0:F.isLoading)&&0===P.length||void 0===F)&&ce,(null==F?void 0:F.showPagination)&&t(XL,{pagination:le,setPagination:se,tableName:U,totalItems:P.length,currentItemsShown:ue.getRowModel().rows.length,selectText:null==X?void 0:X.paginationLabelRowsSelect,ofText:null==X?void 0:X.paginationLabelDisplayedRowsOf,itemsText:null==X?void 0:X.paginationLabelDisplayedRowsItems,pageSizeArray:$}),E&&t(c5,{tabId:null==d?void 0:d.id,handleClose:function(){return T(!1)},handleRemoveTab:function(e){return k(e)},handleSaveTab:function(e){return d.id===e&&(null==J?void 0:J(d))},contentText:"In order to make changes to this tab, you must first save a copy of it.",titleText:"Save tab"})]})},k5=function(e){var n,r,o,i=e.children,a=e.tableProps,l=a.defaultTabIndex,s=a.tabTypes,c=a.defaultTableSettings,u=wx(b(null===(n=c[null!=l?l:0])||void 0===n?void 0:n.id),2),d=u[0],f=u[1],p=wx(b(F6(c)),2),h=p[0],g=p[1],m=wx(b(!1),2),x=m[0],w=m[1],E=wx(b(!1),2),T=E[0],k=E[1],S=function(e){f(e)};v((function(){var e,t=c.filter((function(e){return!h.some((function(t){return t.id===e.id}))})),n=h.filter((function(e){return!c.some((function(t){return t.id===e.id}))}));1===t.length&&1===n.length&&n[0].name===t[0].name&&(g(F6(c)),f(null===(e=t[0])||void 0===e?void 0:e.id))}),[c]),v((function(){var e;if(void 0===d){var t=null===(e=h[null!=l?l:0])||void 0===e?void 0:e.id;void 0!==t&&f(t)}}),[h]);var N=function(e){var t,n,r=h.map((function(t){return t.id===d?Object.assign(Object.assign({},t),{selection:e}):t}));if(g(r),null===(t=c.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===t?void 0:t.isNotSaved)k(!0);else{var o=r.find((function(e){return e.id===d}));void 0!==o&&(null===(n=a.onTabSettingsChange)||void 0===n||n.call(a,o))}},O=s.reduce((function(e,t){var n;return Object.assign(Object.assign({},e),Bb({},t.id,null!==(n=t.defaultSortBy)&&void 0!==n?n:[]))}),{}),A=wx(b(O),2),M=A[0],I=A[1],R=function(e){var t=Object.assign(Object.assign({},M),{tabId:e});I(t)},D=y((function(e){var t,n,r;return(null!==(r=null===(n=null===(t=s[e])||void 0===t?void 0:t.initialCheckedRowIndexes)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0?Object.assign.apply(Object,[{}].concat(sx(s[e].initialCheckedRowIndexes.map((function(e){return Bb({},e,!0)}))))):{}}),[s]),_=y((function(e){var t,n=null===(t=s[e])||void 0===t?void 0:t.rowData.filter((function(t,n){var r;return null===(r=s[e].initialCheckedRowIndexes)||void 0===r?void 0:r.some((function(e){return n===e}))}));return null==n?void 0:n.map((function(e){return null==e?void 0:e.id}))}),[s]),P=wx(b(D(s.findIndex((function(e){return(null==e?void 0:e.id)===d})))),2),L=P[0],F=P[1],z=wx(b(_(s.findIndex((function(e){return(null==e?void 0:e.id)===d})))),2),j=z[0],B=z[1],V=null===(r=s.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===r?void 0:r.initialCheckedRowIndexes;v((function(){F(D(s.findIndex((function(e){return(null==e?void 0:e.id)===d})))),B(_(s.findIndex((function(e){return(null==e?void 0:e.id)===d}))))}),[JSON.stringify(V),d]);var W=function(e,t){var n;F(e),B(t),(null===(n=c.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===n?void 0:n.isNotSaved)&&k(!0)},H=h.reduce((function(e,t){var n;return Object.assign(Object.assign({},e),Bb({},t.id,null!==(n=t.columnVisibility)&&void 0!==n?n:{}))}),{}),q=wx(b(H),2),U=q[0],K=q[1],Y=function(e){var t,n,r=Object.assign({},U[d]);r.hasOwnProperty(e)&&!r[e]?delete r[e]:r[e]=!1;var o=Object.assign({},U);o[d]=r;var i=h.map((function(e){return e.id===d?Object.assign(Object.assign({},e),{columnVisibility:r}):e}));if(K(o),g(i),null===(t=c.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===t?void 0:t.isNotSaved)k(!0);else{var l=i.find((function(e){return e.id===d}));void 0!==l&&(null===(n=a.onTabSettingsChange)||void 0===n||n.call(a,l))}},G=h.reduce((function(e,t){var n,r;return Object.assign(Object.assign({},e),Bb({},t.id,null!==(n=t.columnOrder)&&void 0!==n?n:null===(r=null==s?void 0:s.find((function(e){return e.id===d})))||void 0===r?void 0:r.columns.map((function(e){return e.id}))))}),{}),Z=wx(b(G),2),J=Z[0],X=Z[1],Q=function(e){var t,n=Object.assign({},J);n[d]=e;var r=h.map((function(t){return t.id===d?Object.assign(Object.assign({},t),{columnOrder:e}):t}));X(n),g(r);var o=r.find((function(e){return e.id===d}));void 0!==o&&(null===(t=a.onTabSettingsChange)||void 0===t||t.call(a,o))},$=function(){w(!x)},ee=function(e){var t,n=sx(h),r=n.findIndex((function(t){return(null==t?void 0:t.id)===e}));n.splice(r,1),f(n[0].id),g(n),(null===(t=c.find((function(t){return(null==t?void 0:t.id)===e})))||void 0===t?void 0:t.isNotSaved)||a.onDeleteTab(e)},te=function(e,t,n){var r,o=n?function(e,t,n){var r=e,o=h.find((function(e){return(null==e?void 0:e.id)===n}));if(!o)throw new Error("Unable to find table settings for copied tab id ".concat(n));var i=F6(o);return i.name=e,i.id=r,i.dataSource=t,i.isDefaultTab=!1,i}(e,t,n):function(e,t){var n,r;return{name:e,id:"".concat(e),dataSource:t,isDefaultTab:!1,columnOrder:[],columnVisibility:{},filters:{},isVisible:!0,selection:{},columns:null!==(r=null===(n=s.find((function(e){return e.id===t})))||void 0===n?void 0:n.columns.map((function(e){return{id:e.id,name:e.header}})))&&void 0!==r?r:[]}}(e,t);g([].concat(sx(h),[o])),f(o.id),null===(r=a.onTabSettingsChange)||void 0===r||r.call(a,o)},ne=function(e,t){var n,r,o,i=h.findIndex((function(t){return(null==t?void 0:t.id)===e})),l=sx(h);if(l[i].isVisible=t,g(l),(null===(n=c.find((function(t){return(null==t?void 0:t.id)===e})))||void 0===n?void 0:n.isNotSaved)?k(!0):null===(r=a.onTabSettingsChange)||void 0===r||r.call(a,l[i]),e===d){var s=l.findIndex((function(e){return null==e?void 0:e.isVisible}));if(-1!==s){var u=null===(o=l[s])||void 0===o?void 0:o.id;f(u)}}else t&&f(e)},re=function(e){g(sx(e)),a.onTabOrderChange(e.map((function(e){return e.id})))},oe=function(e,t){var n,r,o=c.findIndex((function(t){return(null==t?void 0:t.id)===e})),i=sx(h);i[o].name=t,g(i),(null===(n=c.find((function(t){return(null==t?void 0:t.id)===e})))||void 0===n?void 0:n.isNotSaved)?k(!0):null===(r=a.onTabSettingsChange)||void 0===r||r.call(a,i[o])},ie=function(){g(F6(c)),-1===c.findIndex((function(e){return(null==e?void 0:e.id)===d}))&&f(h[0].id),a.onDeleteSettings()},ae=!(s.length>0)||(null===(o=s.find((function(e){var t;return e.id===(null===(t=h.find((function(e){return e.id===d})))||void 0===t?void 0:t.dataSource)})))||void 0===o?void 0:o.isLoading),le=C((function(){var e,t,n,r,o,i,l,c,u=h.findIndex((function(e){return e.id===d})),f=(null===(e=h.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===e?void 0:e.isVisible)?h[u]:h.length>0?h[0]:void 0;return{isSettingsOpen:x,isSaveTabDialogOpen:T,setIsSaveTabDialogOpen:k,currentTab:f,tabTypes:s,filters:void 0!==u&&null!==(n=null===(t=s.find((function(e){var t;return e.id===(null===(t=h[u])||void 0===t?void 0:t.dataSource)})))||void 0===t?void 0:t.filters)&&void 0!==n?n:[],data:void 0!==u&&null!==(o=null===(r=s.find((function(e){var t;return e.id===(null===(t=h[u])||void 0===t?void 0:t.dataSource)})))||void 0===r?void 0:r.rowData)&&void 0!==o?o:[],initialSelection:(null===(i=h.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===i?void 0:i.isVisible)&&null!==(c=null===(l=h.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===l?void 0:l.selection)&&void 0!==c?c:{},tableProps:a,tableSettings:h,initialSort:M[d],visibleColumns:U[d],columnOrder:J[d],rowsSelected:L,idsSelected:j,onRowSelectionChange:W,changeTab:S,onSelectionChange:N,onSortChange:R,onColumnVisibilityChange:Y,onColumnOrderChange:Q,onSettingsVisibilityChange:$,onDeleteSettings:ie,onTabDelete:ee,onTabAdd:te,onTabOrderChange:re,onTabVisibilityChange:ne,onTabNameChange:oe}}),[d,a,s,ae,L,U,J,x,h,T]);return t(Z6,{value:le,children:i})},S5={arrow_down:gw,arrow_up:vw,arrow_drop_down:bw,table_chart:{name:"table_chart",prefix:"eds",height:"24",width:"24",svgPathData:"M19.5 3h-15c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 2v3h-15V5h15Zm-10 14h5v-9h-5v9Zm-5-9h3v9h-3v-9Zm12 0v9h3v-9h-3Z"},lock:ew,drag_handle:{name:"drag_handle",prefix:"eds",height:"24",width:"24",svgPathData:"M4 9h16v2H4V9Zm16 6H4v-2h16v2Z"},more_vertical:{name:"more_vertical",prefix:"eds",height:"24",width:"24",svgPathData:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-2 8c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2Z"},edit:zx,delete_to_trash:qx,share:$x,copy:{name:"copy",prefix:"eds",height:"24",width:"24",svgPathData:"M16.5 1h-12c-1.1 0-2 .9-2 2v14h2V3h12V1Zm3 4h-11c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2Zm-11 16h11V7h-11v14Z"},add_circle_filled:Bx,restore:Hx};Vk.add(S5);var N5=o.div.withConfig({displayName:"TableSettingsstyles__TableSettingsContainer",componentId:"sc-1brtwba-0"})(["justify-content:space-between;align-items:center;margin:0px;margin-top:38px;z-index:2;width:0px;position:sticky;right:-1px;background-color:",";overflow:hidden;&.open{overflow:visible;width:318px;margin-left:-318px;}transition:width 0.4s ease-out;"],ky.bigStone.base),O5=o.div.withConfig({displayName:"TableSettingsstyles__TableSettingsInnerContainer",componentId:"sc-1brtwba-1"})(["position:",";top:0px;"],(function(e){return e.$disableStickyContainer?"relative":"sticky"})),A5=o(Vk).withConfig({displayName:"TableSettingsstyles__StyledInfoIcon",componentId:"sc-1brtwba-2"})((function(e){var t=e.theme;return i(m5||(m5=lD(["\n width: ",";\n height: ",";\n margin-left: 6px;\n "])),t.spacing(3),t.spacing(3))})),M5=o(Vk).withConfig({displayName:"TableSettingsstyles__ArrowDropDownIcon",componentId:"sc-1brtwba-3"})((function(e){var t=e.theme;return i(v5||(v5=lD(["\n width: ",";\n height: ",";\n "])),t.spacing(3),t.spacing(3))})),I5=o(Vk).withConfig({displayName:"TableSettingsstyles__DragIcon",componentId:"sc-1brtwba-4"})(["width:24px;height:24px;margin-left:6px;color:",";cursor:grab;&:active{cursor:grabbing;}"],(function(e){return e.$isLightVersion?"#858f98":ky.slateBlue.tint[30]})),R5=o(Vk).withConfig({displayName:"TableSettingsstyles__ActionIcon",componentId:"sc-1brtwba-5"})(["width:18px;height:18px;color:",";"],(function(e){return e.$isActive?ky.semantic.interactive.primaryHover:ky.semantic.infographic.primary})),D5=o.div.withConfig({displayName:"TableSettingsstyles__ActionIconWrapper",componentId:"sc-1brtwba-6"})(["background-color:",";color:",";height:32px;width:inherit;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:2px;",";svg{margin:4px;}&:hover{background-color:",";svg{color:",";}}"],ky.slateBlue.tint[20],ky.semantic.text.secondary,(function(e){return e.$isOpen&&"\n border-bottom: none;\n box-shadow: inset 0px 0px 0px 2px ".concat(ky.semantic.interactive.primaryHover,"; \n svg {\n color: ").concat(ky.semantic.interactive.primaryHover,";\n }\n ")}),ky.slateBlue.tint[30],ky.semantic.interactive.primaryHover),_5=o.div.withConfig({displayName:"TableSettingsstyles__MoreIconWrapper",componentId:"sc-1brtwba-7"})(["background-color:",";color:",";height:32px;min-width:32px;width:32px;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;cursor:pointer;",";&:hover{background-color:",";svg{color:",";}}"],ky.slateBlue.tint[20],ky.semantic.text.secondary,(function(e){return e.$isOpen&&"\n border-bottom: none;\n box-shadow: inset 0px 0px 0px 2px ".concat(ky.semantic.interactive.primaryHover,"; \n ")}),ky.slateBlue.tint[30],ky.semantic.interactive.primaryHover),P5=o.div.withConfig({displayName:"TableSettingsstyles__TextContainer",componentId:"sc-1brtwba-8"})((function(e){var t=e.theme;return i(b5||(b5=lD(["\n font-size: 18px;\n font-weight: 500;\n margin-left: ",";\n "])),t.spacing(2))})),L5=o.div.withConfig({displayName:"TableSettingsstyles__HeaderContainer",componentId:"sc-1brtwba-9"})(["display:flex;align-items:center;"]);o(xw).withConfig({displayName:"TableSettingsstyles__CustomButton",componentId:"sc-1brtwba-10"})(["min-width:109px;"]);var F5=o.div.withConfig({displayName:"TableSettingsstyles__HeaderRowContainer",componentId:"sc-1brtwba-11"})(["display:flex;justify-content:space-between;color:",";height:40px;"],ky.semantic.infographic.primary),z5=o(is).withConfig({displayName:"TableSettingsstyles__CloseButton",componentId:"sc-1brtwba-12"})(["padding:",";margin-left:",";color:",";height:32px;"],(function(e){return e.theme.spacing(1)}),(function(e){return e.theme.spacing(1)}),ky.semantic.text.secondary),j5=o(Ix).withConfig({displayName:"TableSettingsstyles__StyledCloseIcon",componentId:"sc-1brtwba-13"})(["width:18px;height:18px;color:",";"],ky.semantic.infographic.primary),B5=o(Ib).withConfig({displayName:"TableSettingsstyles__Tabs",componentId:"sc-1brtwba-14"})(["&.MuiTabs-root{height:34px;min-height:34px;}"]),V5=o(ob).withConfig({displayName:"TableSettingsstyles__SettingsTab",componentId:"sc-1brtwba-15"})(["&.MuiTab-root{font-weight:500;font-size:12px;text-transform:none;height:34px;min-height:34px;color:",";background-color:transparent;border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;font-family:'Equinor';&.Mui-selected{color:",";background-color:#364855;border-bottom:none;}}"],(function(e){return e.$isActive?ky.mossGreen.tint[66]:"#97CACE80"}),ky.mossGreen.tint[66]),W5=o(Sg).withConfig({displayName:"TableSettingsstyles__TabList",componentId:"sc-1brtwba-16"})(["&.MuiList-root{padding:0;}"]);o.div.withConfig({displayName:"TableSettingsstyles__TabListItem",componentId:"sc-1brtwba-17"})(["height:32px;border-radius:0;color:#505f6b;padding-left:0;padding-right:0;background-color:transparent;"," &:hover{div{background-color:#67737e;}}"],(function(e){return e.$isOpen&&"\n div {\n background-color: #67737e;\n } \n "}));var H5=o(_g).withConfig({displayName:"TableSettingsstyles__ExpandableTabListItem",componentId:"sc-1brtwba-18"})(["&.MuiListItemButton-root{height:32px;border-radius:0;color:#505f6b;padding-left:0;padding-right:0;background-color:transparent;font-family:'Equinor';"," &:hover{div{background-color:",";}}}"],(function(e){return e.$isOpen&&"\n div {\n background-color: ".concat(ky.slateBlue.tint[30],"; \n } \n ")}),ky.slateBlue.tint[30]),q5=o(_g).withConfig({displayName:"TableSettingsstyles__ExpandableFilterListItem",componentId:"sc-1brtwba-19"})(["&.MuiListItemButton-root{height:32px;border-radius:0;color:#505f6b;padding-left:0;padding-right:0;background-color:transparent;font-family:'Equinor';"," &:hover{text-decoration:none;background-color:rgba(255,255,255,0.08);}}"],(function(e){return e.$isOpen&&"\n svg {\n color: ".concat(ky.mossGreen.base,";\n } \n ")})),U5=o(Qg).withConfig({displayName:"TableSettingsstyles__TabListItemText",componentId:"sc-1brtwba-20"})(["&.MuiListItemText-root{background-color:",";color:",";height:32px;margin:0;margin-left:2px;display:flex;align-items:center;font-size:14px;font-weight:500 !important;padding-left:16px;border-bottom:1px solid #858f98;span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:260px;}}"],ky.slateBlue.tint[20],ky.semantic.text.secondary),K5=o.div.withConfig({displayName:"TableSettingsstyles__FilterContainer",componentId:"sc-1brtwba-21"})(["background-color:#243746;display:flex;"]),Y5=o.div.withConfig({displayName:"TableSettingsstyles__VerticalLine",componentId:"sc-1brtwba-22"})(["border-left:2px solid ",";position:absolute;height:calc(100% - 27px);top:24px;left:15px;"],ky.mossGreen.base),G5=o.div.withConfig({displayName:"TableSettingsstyles__FilterContent",componentId:"sc-1brtwba-23"})(["margin-left:35px;font-size:14px;font-weight:400;"]),Z5=o.span.withConfig({displayName:"TableSettingsstyles__TabName",componentId:"sc-1brtwba-24"})(["font-weight:500;font-size:14px;"]),J5=o.span.withConfig({displayName:"TableSettingsstyles__ColumnName",componentId:"sc-1brtwba-25"})(["font-weight:500;font-size:14px;padding-left:18px;color:",";",""],ky.semantic.text.tertiary,(function(e){return e.$isOpen&&"\n color: ".concat(ky.semantic.text.secondary,";\n ")})),X5=o.div.withConfig({displayName:"TableSettingsstyles__ExpandButton",componentId:"sc-1brtwba-26"})(["background-color:",";color:",";height:32px;width:32px;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;svg{height:24px;width:24px;transform:rotate(-90deg);&.open{transform:rotate(0);}transition:transform 0.4s;}"],ky.slateBlue.tint[20],ky.semantic.text.secondary),Q5=o.div.withConfig({displayName:"TableSettingsstyles__ExpandColumnButton",componentId:"sc-1brtwba-27"})(["background-color:transparent;color:",";height:32px;width:32px;display:flex;justify-content:center;align-items:center;svg{height:24px;width:24px;transform:rotate(-90deg);&.open{transform:rotate(0);}transition:transform 0.4s;}"],ky.slateBlue.tint[20]),$5=o.div.withConfig({displayName:"TableSettingsstyles__ActionsContainer",componentId:"sc-1brtwba-28"})(["width:0;display:flex;overflow:hidden;&.open{width:",";&.edit{width:54px;}&.default{width:",";}}transition:width 0.4s ease-out;"],(function(e){return e.$showUrlCopyButton?"246px":"127px"}),(function(e){return e.$showUrlCopyButton?"126px":"52px"})),e9=o.div.withConfig({displayName:"TableSettingsstyles__ColumnListItem",componentId:"sc-1brtwba-29"})(["background-color:transparent;color:",";height:28px;font-size:14px;font-weight:500;color:",";display:flex;justify-content:space-between;align-items:center;padding-left:14px;padding-right:16px;cursor:pointer;&:hover{background:#2e3f4d;span{color:",";}}"],ky.semantic.text.secondary,ky.semantic.text.tertiary,ky.slateBlue.tint[50]);o.div.withConfig({displayName:"TableSettingsstyles__ColumnFilterListItem",componentId:"sc-1brtwba-30"})(["background-color:transparent;color:",";height:28px;font-size:14px;font-weight:500;color:",";display:flex;justify-content:space-between;align-items:center;padding-left:14px;padding-right:16px;cursor:pointer;&:hover{background:#2e3f4d;span{color:",";}}"],ky.semantic.text.secondary,ky.semantic.text.tertiary,ky.slateBlue.tint[50]);var t9=o.div.withConfig({displayName:"TableSettingsstyles__TabCheckBoxWrapper",componentId:"sc-1brtwba-31"})(["background-color:",";color:",";height:32px;min-width:32px;width:32px;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;"],ky.slateBlue.tint[20],ky.semantic.text.secondary),n9=o(yp).withConfig({displayName:"TableSettingsstyles__TabCheckbox",componentId:"sc-1brtwba-32"})(["&.MuiCheckbox-root{color:",";padding:0px;&.Mui-checked{color:",";}& svg{width:24px;height:24px;}}"],ky.semantic.text.tertiary,ky.semantic.text.tertiary),r9=o.div.withConfig({displayName:"TableSettingsstyles__TabRow",componentId:"sc-1brtwba-33"})(["background-color:",";color:",";height:32px;padding-right:14px;margin-left:2px;margin-right:2px;display:flex;align-items:center;font-size:14px;font-weight:500 !important;padding-left:12px;border-bottom:1px solid #858f98;width:100%;justify-content:space-between;cursor:grab;&:active{cursor:grabbing;}"],ky.slateBlue.tint[20],ky.semantic.text.secondary),o9=o.div.withConfig({displayName:"TableSettingsstyles__TabRowWrapper",componentId:"sc-1brtwba-34"})(["position:relative;"]),i9=o.div.withConfig({displayName:"TableSettingsstyles__TabRowContainer",componentId:"sc-1brtwba-35"})(["position:relative;height:32px;margin:0;padding:0;display:flex;align-items:center;font-size:14px;font-weight:500 !important;width:100%;justify-content:space-between;cursor:grab;&:hover{div{&:not(.open){background-color:",";}}}"],ky.slateBlue.tint[30]),a9=o(yp).withConfig({displayName:"TableSettingsstyles__StyledCheckbox",componentId:"sc-1brtwba-36"})(["&.MuiCheckbox-root{color:",";padding:0px;margin-right:16px;&.Mui-checked{color:",";}& svg{width:24px;height:24px;}}"],ky.slateBlue.tint[30],ky.slateBlue.tint[30]),l9=o.span.withConfig({displayName:"TableSettingsstyles__Name",componentId:"sc-1brtwba-37"})(["font-weight:500;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:inherit;margin-top:2px;"]),s9=o(l9).withConfig({displayName:"TableSettingsstyles__TabSettingsName",componentId:"sc-1brtwba-38"})(["width:",";transition:width 0.4s ease-out;"],(function(e){return e.$isOpen?"93px":"194px"})),c9=o(xP).withConfig({displayName:"TableSettingsstyles__TabTextField",componentId:"sc-1brtwba-39"})(["padding:0;margin-top:4px;margin-left:-8px;margin-right:-9px;margin-bottom:3px;input{font-weight:500;font-size:14px;background:#3a444d;}div{div{padding-right:0px;}}"]),u9=o.div.withConfig({displayName:"TableSettingsstyles__OptionListItem",componentId:"sc-1brtwba-40"})(["cursor:pointer;color:",";display:flex;align-items:center;"],ky.semantic.text.secondary),d9=o.div.withConfig({displayName:"TableSettingsstyles__OptionNumberWrapper",componentId:"sc-1brtwba-41"})(["color:",";margin-left:4px;margin-top:2px;"],ky.semantic.text.tertiary),f9=o(jA).withConfig({displayName:"TableSettingsstyles__RadioButton",componentId:"sc-1brtwba-42"})([""]),p9=o.div.withConfig({displayName:"TableSettingsstyles__AdditionalActions",componentId:"sc-1brtwba-43"})(["margin-top:22px;margin-left:8px;font-size:14px;color:",";"],ky.semantic.text.secondary),h9=o.div.withConfig({displayName:"TableSettingsstyles__AddNewTabContainer",componentId:"sc-1brtwba-44"})(["display:flex;cursor:pointer;&:hover{color:",";svg{color:",";}}"],ky.white.base,ky.semantic.interactive.primaryHover),g9=o.span.withConfig({displayName:"TableSettingsstyles__ActionText",componentId:"sc-1brtwba-45"})(["margin-left:6px;"]),m9=o.div.withConfig({displayName:"TableSettingsstyles__DuplicateTabContainer",componentId:"sc-1brtwba-46"})(["display:flex;cursor:pointer;&:hover{color:",";svg{color:",";}}"],ky.white.base,ky.semantic.interactive.primaryHover),v9=o.div.withConfig({displayName:"TableSettingsstyles__RestoreSettingsContainer",componentId:"sc-1brtwba-47"})(["margin-top:20px;display:flex;flex-direction:column;"]),b9=o.div.withConfig({displayName:"TableSettingsstyles__ActionsRow",componentId:"sc-1brtwba-48"})(["display:flex;gap:18px;"]);o.div.withConfig({displayName:"TableSettingsstyles__WarningText",componentId:"sc-1brtwba-49"})(["display:flex;font-size:12px;font-weight:500;color:",";margin-left:24px;margin-right:60px;margin-top:12px;"],ky.semantic.text.tertiary);var y9=o.div.withConfig({displayName:"TableSettingsstyles__RestoreSettingsInnerContainer",componentId:"sc-1brtwba-50"})(["display:flex;cursor:pointer;&:hover{color:",";svg{color:",";}}"],ky.white.base,ky.semantic.interactive.primaryHover),x9={},w9=Sx;Object.defineProperty(x9,"__esModule",{value:!0});var C9=x9.default=void 0,E9=e,T9=(0,w9(Ax()).default)((0,E9.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");C9=x9.default=T9;var k9,S9=function(e){var o=e.tabs,i=e.openTabId,a=e.onOpenTabIdChange,l=b$().filter,s=void 0!==l,c=o.findIndex((function(e){return e.id===i})),u=wx(b(c>=0?c:void 0),2),d=u[0],f=u[1],p=wx(b(void 0),2),h=p[0],g=p[1],m=wx(b({}),2),y=m[0],x=m[1];v((function(){x({})}),[h]),v((function(){return-1!==c&&c!==d?f(c):function(){}}),[c]);var w=function(e){g(h===e?void 0:e)},C=function(e){switch(e.type){case d$.search:return t(Q$,{filterKey:e.key});case d$.checkbox:return t(X$,{filterKey:e.key});case d$.autocomplete:return t(e0,{filterKey:e.key});case d$.date:return t($$,{filterKey:e.key});default:return t(r,{})}};return t(W5,{"data-testid":"FilterSettingsContainer",children:o.map((function(e,i){return n("div",{children:[n(H5,{"data-testid":"FilterSettingsTabListItem-".concat(e.id),onClick:function(){return function(e){f(d===e?void 0:e),c!==e&&a(o[e].id),g(void 0)}(i)},$isOpen:d===i,children:[t(X5,{children:t(C9,{className:"".concat(d===i?"open":"closed")},"".concat(e.id,"-ExpandMore"))},"".concat(e.id,"-ExpandButton")),t(U5,{children:t(Z5,{children:e.name},"".concat(e.id,"-Name"))},"".concat(e.id,"-Text"))]},e.id),t(al,{in:d===i,timeout:"auto",unmountOnExit:!0,children:t(Sg,{component:"div",disablePadding:!0,children:t(r,s?{children:Object.values(l).map((function(e){return n("div",{style:{position:"relative"},children:[n(q5,{onClick:function(){return w(e.key)},$isOpen:h===e.key,children:[t(Q5,{children:t(M5,{name:"arrow_drop_down",className:"".concat(h===e.key?"open":"closed")},"arrow_drop_down")}),t(J5,{$isOpen:h===e.key,children:e.title})]},e.key),t(al,{in:h===e.key,timeout:"auto",unmountOnExit:!0,children:n(K5,{children:[t(Y5,{}),C(e)]})})]},"".concat(e.key,"-WithFilterProvider"))}))}:void 0===d?{}:{children:Object.values(o[d].filters).map((function(e){return n("div",{style:{position:"relative"},children:[n(q5,{onClick:function(){return w(e.key)},$isOpen:h===e.key,children:[t(Q5,{children:t(M5,{name:"arrow_drop_down",className:"".concat(h===e.key?"open":"closed")},"".concat(e.key,"-ArrowDropdown"))},"".concat(e.key,"-ExpandColumnButton")),t(J5,{$isOpen:h===e.key,children:e.title},"".concat(e.key,"-ColumnName"))]},"".concat(e.key,"-FilterListItem")),t(al,{in:h===e.key,timeout:"auto",unmountOnExit:!0,children:n(K5,{children:[t(Y5,{},"".concat(e.key,"-Line")),t(G5,{children:e.type===k9.Checkbox?n(r,{children:[n(u9,{children:[t(a9,{checked:!1},"".concat(e.key,"-CheckBox")),t(l9,{children:"Select all"},"".concat(e.key,"-Name")),t(d9,{children:"(1045)"},"".concat(e.key,"-Number"))]},"".concat(e.key,"-OptionListItem")),e.options.map((function(r){return n(u9,{onClick:function(){return x((function(e){var t=Object.assign({},e);return t[r.id]=!1===e[r.id],t}))},children:[t(a9,{checked:!0===y[r.id]},"".concat(r.id,"-CheckBox")),t(l9,{children:r.title},"".concat(e.key,"-Name")),n(d9,{children:["(",r.result,")"]},"".concat(e.key,"-Number"))]},"".concat(e.key,"-OptionListItem"))}))]}):e.options.map((function(r){return n(u9,{onClick:function(){return x((function(e){var t=Object.assign({},e);return t[r.id]=!1===e[r.id],t}))},children:[t(f9,{name:r.id,"aria-labelledby":r.id,checked:!0===y[r.id]},"".concat(r.id,"-RadioButton")),t(l9,{id:r.id,children:r.title},"".concat(e.key,"-Name")),n(d9,{children:["(",r.result,")"]},"".concat(e.key,"-Number"))]},"".concat(e.key,"-OptionListItem"))}))},"".concat(e.key,"-FilterContent"))]})},"".concat(e.key,"-Collapse"))]},"".concat(e.key,"-FilterContainer"))}))})},"".concat(e.id,"-List"))},"".concat(e.id,"-Collapse"))]},"".concat(e.id,"-tabListItemContainer"))}))},"FilterSettingsContainer")},N9=function(e){var r,o,i=e.tabs,a=e.openTabId,l=e.onOpenTabIdChange,s=e.onColumnOrderChange,c=e.onColumnVisibilityChange,d=i.findIndex((function(e){return e.id===a})),f=wx(b(d>=0?i[d].columnVisibility:{}),2),p=f[0],h=f[1],g=wx(u.useState(d>=0?d:void 0),2),m=g[0],y=g[1],x=wx(b(d>=0?(null!==(o=null===(r=i[d].columnOrder)||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0?i[d].columnOrder:i[d].columns.map((function(e){return e.id})):[]),2),C=x[0],E=x[1];v((function(){return-1!==d&&d!==m?y(d):function(){}}),[d]),v((function(){var e,t;h(d>=0?i[d].columnVisibility:{});var n=d>=0?(null!==(t=null===(e=i[d].columnOrder)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0?i[d].columnOrder:i[d].columns.map((function(e){return e.id})):[];E(n)}),[d]);var T=w(),k=w();v((function(){var e,t;E(void 0!==m?(null!==(t=null===(e=i[m].columnOrder)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0?i[m].columnOrder:i[m].columns.map((function(e){return e.id})):[])}),[m,i]);var S=function(){if(void 0!==T.current&&void 0!==k.current){var e=sx(C),t=e[T.current];e.splice(T.current,1),e.splice(k.current,0,t),T.current=void 0,k.current=void 0,E(e),s(e)}};return t(W5,{"data-testid":"ColumnSettingsContainer",children:i.map((function(e,r){return n("div",{children:[n(H5,{"data-testid":"ColumnSettingsTabListItem-".concat(e.id),onClick:function(){return function(e,t){var n=m;y(n===t?void 0:t),n!==t&&l(e)}(e.id,r)},$isOpen:m===r,children:[t(X5,{children:t(C9,{className:"".concat(m===r?"open":"closed")},"".concat(e.id,"-expandMore"))},"".concat(e.id,"-expandButton")),t(U5,{children:t(Mk,{title:e.name,children:t(Z5,{children:e.name},"".concat(e.id,"-tabName"))},"".concat(e.id,"-tooltip"))},"".concat(e.id,"-tablistItemText"))]},e.id),t(al,{in:m===r,timeout:"auto",unmountOnExit:!0,children:t(Sg,{component:"div",disablePadding:!0,children:void 0!==m&&C.map((function(e,r){var o;return n(e9,{onDragStart:function(e){return function(e,t){T.current=t}(0,r)},onDragEnter:function(e){return function(e,t){k.current=t}(0,r)},onDragEnd:S,"data-testid":"ColumnListItem-".concat(e,"-Tab").concat(i[m].id),draggable:!0,onClick:function(){return function(e){var t=!1;h((function(n){var r=Object.assign({},n);return r[e]=!1===n[e],t=n[e],r})),c(e,!t)}(e)},children:[n("div",{children:[t(a9,{checked:!1!==p[e]},e),t(l9,{children:null===(o=i[m].columns.find((function(t){return t.id===e})))||void 0===o?void 0:o.name})]}),t(I5,{"data-testid":"".concat(e,"-drag_handle"),name:"drag_handle",onClick:function(e){e.stopPropagation(),e.preventDefault()}},"".concat(e,"-drag_handle"))]},"".concat(e,"-columnlistItem"))}))},"".concat(e.id,"-list"))},"".concat(e.id,"-collapse"))]},"".concat(e.id,"-container"))}))})},O9=o(wa).withConfig({displayName:"ConfirmDeleteDialog__Icon",componentId:"sc-2qn4xt-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),A9=function(e){var n=e.handleClose,r=e.handleDeleteTab,o=e.titleText,i=e.contentText,a=e.confirmButtonText,l=e.cancelButtonText;return t(l5,{testId:"ConfirmDeleteDialog",handleClose:n,titleText:o,titleIcon:t(O9,{children:t("path",{d:qx.svgPathData})}),primaryButtonProps:{onClick:function(){r(),n()},children:null!=a?a:"Delete"},secondaryButtonProps:{onClick:n,children:null!=l?l:"Cancel"},children:i})},M9=o(wa).withConfig({displayName:"AddNewTabDialog__Icon",componentId:"sc-cdgrpd-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),I9=function(e){var r=e.dataSources,o=e.dataSourceSelectLabel,i=e.tabName,a=e.dataSource,l=e.existingTabNames,s=e.handleClose,c=e.handleAddTab,u=e.titleText,d=e.confirmButtonText,f=e.cancelButtonText,p=wx(b(i),2),h=p[0],g=p[1],m=wx(b(a),2),y=m[0],x=m[1],w=wx(b(l.some((function(e){return e===h}))),2),C=w[0],E=w[1];v((function(){var e=l.some((function(e){return e===h}));C!==e&&E(e)}),[h]);return n(l5,{testId:"AddNewTabDialog",handleClose:s,titleText:u,titleIcon:t(M9,{children:t("path",{d:Bx.svgPathData})}),primaryButtonProps:{onClick:function(){void 0===h||void 0===y||C||c(h,y),s()},disabled:void 0===h||""===h||void 0===y||C,children:null!=d?d:"Add tab"},secondaryButtonProps:{onClick:s,children:null!=f?f:"Cancel"},children:[t(xP,{handleValueChange:function(e){return g(e)},value:null!=h?h:"",id:"newTabNameTextField","data-testid":"newTabNameTextField",label:"Name",width:"210px",helperText:C?"The name must be unique":void 0,iocVariant:C?"error":"default"}),t(OP,{"data-testid":"newTabDataSourceSelect",label:o,options:r,readOnly:void 0!==a,onOptionsChange:function(e){x(e.selectedItems[0])},initialSelectedOptions:a?[a]:void 0})]})},R9=o(wa).withConfig({displayName:"RestoreSettingsDialog__Icon",componentId:"sc-1odoiok-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),D9=function(e){var n=e.handleClose,r=e.handleRestoreSettings,o=e.titleText,i=e.contentText,a=e.confirmButtonText,l=e.cancelButtonText;return t(l5,{testId:"RestoreSettingsDialog",handleClose:n,titleText:o,titleIcon:t(R9,{style:{marginRight:2},children:t("path",{d:Hx.svgPathData})}),primaryButtonProps:{onClick:function(){r(),n()},children:null!=a?a:"Restore"},secondaryButtonProps:{onClick:n,children:null!=l?l:"Cancel"},children:i})},_9=function(e){var o,i,a,l=e.tabs,s=e.currentTabId,c=e.dataSources,u=e.showUrlCopyButton,d=e.urlBase,f=e.onOpenTabIdChange,p=e.onTabOrderChange,h=e.onTabVisibilityChange,g=e.onTabNameChange,m=e.onTabDelete,y=e.onTabAdd,x=e.onDeleteSettings,C=wx(b(l),2),E=C[0],T=C[1],k=wx(b(void 0),2),S=k[0],N=k[1];v((function(){T(l)}),[l]);var O=wx(b({isOpen:!1,copyCurrentTab:!1}),2),A=O[0],M=O[1],I=wx(b(!1),2),R=I[0],D=I[1],_=wx(b(void 0),2),P=_[0],L=_[1],F=wx(b(void 0),2),z=F[0],j=F[1],B=wx(b(void 0),2),V=B[0],W=B[1],H=w(),q=w(),U=function(){if(void 0!==H.current&&void 0!==q.current){var e=sx(E),t=e[H.current];e.splice(H.current,1),e.splice(q.current,0,t),H.current=void 0,q.current=void 0,p(e)}};return n(r,{children:[t(Sg,{component:"div",disablePadding:!0,"data-testid":"TabSettingsContainer",children:E.map((function(e,o){return n(o9,{children:[n(i9,{"data-testid":"TabRow-".concat(e.id),onDragStart:function(e){return function(e,t){H.current=t}(0,o)},onDragEnter:function(e){return function(e,t){q.current=t}(0,o)},onDragEnd:U,draggable:!0,children:[t(t9,{children:t(n9,{"data-testid":"TabCheckbox",checked:E[o].isVisible,onClick:function(t){return function(e,t){var n=E.findIndex((function(e){return e.id===t})),r=E[n].isVisible;h(t,!r)}(0,e.id)}},"TabCheckbox-".concat(e.id))},"TabCheckBoxWrapper-".concat(e.id)),t(r9,{children:P===e.id?t(c9,{"data-testid":"TabTextField",width:"208px",autoFocus:!0,handleValueChange:function(t){return function(e,t){var n=sx(E),r=n.findIndex((function(e){return e.id===t}));n[r].name=e,T(n)}(t,e.id)},value:e.name,id:"textfield-text",height:"24px",onBlur:function(){var t,n;t=e.name,n=e.id,g(n,t),setTimeout((function(){L(void 0)}),100)}},"TabTextField-".concat(e.id)):n(r,{children:[t(Mk,{title:e.name,children:t(s9,{$isOpen:S===e.id,children:e.name},"TabSettingsName-".concat(e.id))}),t(I5,{"data-testid":"DragIcon-".concat(e.id),$isLightVersion:!0,name:"drag_handle",onClick:function(e){e.preventDefault(),e.stopPropagation()}},"DragIcon-".concat(e.id))]})},"TabRow-".concat(e.id)),n($5,{$showUrlCopyButton:u&&void 0!==d,"data-testid":"TabActionsContainer",className:"".concat(S===e.id?"open":""," ").concat(P===e.id?"edit":""," ").concat(e.isDefaultTab?"default":""),children:[P!==e.id&&n(r,{children:[u&&void 0!==d&&t(D5,{$isOpen:z===e.id,"data-testid":"ShareLinkButton",onClick:function(t){j(z===e.id?void 0:e.id),t.preventDefault(),t.stopPropagation()},children:t(R5,{name:"share",$isActive:z===e.id},"share")}),!e.isDefaultTab&&t(D5,{"data-testid":"DeleteTabButton",onClick:function(t){W(e.id),t.preventDefault(),t.stopPropagation()},children:t(R5,{name:"delete_to_trash"},"delete_to_trash")})]}),t(D5,{$isOpen:P===e.id,"data-testid":"EditTabButton",onClick:function(t){L((function(t){return t===e.id?void 0:e.id})),t.preventDefault(),t.stopPropagation()},children:t(R5,{name:"edit",$isActive:P===e.id},"edit")})]}),t(_5,{"data-testid":"moreActionsButton",$isOpen:S===e.id&&void 0===P&&void 0===z,onClick:function(t){S!==e.id&&f(e.id),L(void 0),j(void 0),W(void 0),N((function(t){return t===e.id?void 0:e.id})),t.preventDefault(),t.stopPropagation()},children:t(R5,{$isActive:S===e.id,name:"more_vertical"},"more_vertical")})]},e.id),z===e.id&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){j(void 0)}),200)},children:t("div",{style:{position:"absolute",zIndex:1e3},children:t(E5,{url:d+e.id,linkContentText:"Anyone at Equinor with a link can view the content.",handleClose:function(){return j(void 0)},titleText:"Share"})})}),V===e.id&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){W(void 0)}),200)},children:t("div",{style:{position:"absolute",zIndex:1e3},children:t(A9,{contentText:"Are you sure you want to delete this tab?",titleText:"Delete",handleDeleteTab:function(){return m(e.id)},handleClose:function(){return W(void 0)}})})})]},"TabRowWrapper-".concat(e.id))}))}),n(p9,{children:[n(b9,{children:[n(h9,{"data-testid":"AddNewTabButton",onClick:function(){M({isOpen:!!A.copyCurrentTab||!A.isOpen,copyCurrentTab:!1})},children:[t(R5,{name:"add_circle_filled"},"add_circle_filled"),t(g9,{children:"Add new tab"})]}),n(m9,{"data-testid":"DuplicateTabButton",onClick:function(){M({isOpen:!A.copyCurrentTab||!A.isOpen,copyCurrentTab:!0})},children:[t(R5,{name:"copy"},"copy"),t(g9,{children:"Duplicate current tab"})]})]}),t(v9,{"data-testid":"RestoreSettingsButton",onClick:function(){D(!R)},children:n(y9,{children:[t(R5,{name:"restore"},"restore"),t(g9,{children:"Restore table settings to default"})]})}),A.isOpen&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){M({isOpen:!1,copyCurrentTab:!1})}),200)},children:t("div",{children:t(I9,{titleText:"Add tab",tabName:A.copyCurrentTab?function(e){var t=/\((\d+)\)$/,n=e.match(t);if(n){var r=Number(n[1])+1;return e.replace(t,"(".concat(r,")"))}return e+" (2)"}(null!==(i=null===(o=l.find((function(e){return e.id===s})))||void 0===o?void 0:o.name)&&void 0!==i?i:""):void 0,dataSource:A.copyCurrentTab?null===(a=l.find((function(e){return e.id===s})))||void 0===a?void 0:a.dataSource:void 0,existingTabNames:l.map((function(e){return e.name})),handleAddTab:function(e,t){return y(e,t,A.copyCurrentTab?s:void 0)},handleClose:function(){return M({isOpen:!1,copyCurrentTab:!1})},dataSources:c,dataSourceSelectLabel:"Data source"})})}),R&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){D(!1)}),200)},children:t("div",{children:t(D9,{titleText:"Restore settings",handleRestoreSettings:x,handleClose:function(){return D(!1)},contentText:"Warning! All customization you have done to settings will be\n lost"})})})]})]})};!function(e){e[e.Checkbox=0]="Checkbox",e[e.Radio=1]="Radio",e[e.Autocomplete=2]="Autocomplete",e[e.Search=3]="Search",e[e.SearchAll=4]="SearchAll",e[e.Custom=5]="Custom"}(k9||(k9={}));var P9=function(e){var o=dx(e,[]),i=wx(b(0),2),a=i[0],l=i[1];return t(N5,{"data-testid":"tableSettings",className:o.isSettingsOpen?"open":"",children:n(O5,{$disableStickyContainer:o.disableStickyContainer||!1,children:[n(F5,{children:[t(L5,{children:n(r,{children:[t(A5,{name:"table_chart"},"table_chart"),t(P5,{children:"Settings"})]})}),t(z5,{"data-testid":"settingsCloseButton",onClick:o.onCloseSettings,children:t(j5,{})})]}),n(B5,{variant:"fullWidth",value:a,onChange:function(e,t){return l(t)},TabIndicatorProps:{style:{display:"none"}},children:[t(V5,{$isActive:0===a,"data-testid":"FiltersTab",value:0,label:t("span",{children:"Filter"})},"FiltersTab"),t(V5,{$isActive:1===a,"data-testid":"ColumnTab",value:1,label:t("span",{children:"Column"})},"ColumnTab"),t(V5,{$isActive:2===a,"data-testid":"TabTab",value:2,label:t("span",{children:"Tab"})},"TabTab")]}),0===a&&t(S9,{tabs:o.tabs,openTabId:o.openTabId,onOpenTabIdChange:o.onOpenTabChange}),1===a&&t(N9,{tabs:o.tabs,openTabId:o.openTabId,onOpenTabIdChange:o.onOpenTabChange,onColumnOrderChange:o.onColumnOrderChange,onColumnVisibilityChange:o.onColumnVisibilityChange}),2===a&&t(_9,{tabs:o.tabs,currentTabId:o.openTabId,dataSources:o.dataSources,showUrlCopyButton:o.showUrlCopyButton,urlBase:o.urlBase,onOpenTabIdChange:o.onOpenTabChange,onTabOrderChange:o.onTabOrderChange,onTabVisibilityChange:o.onTabVisibilityChange,onTabNameChange:o.onTabNameChange,onTabDelete:o.onTabDelete,onTabAdd:o.onTabAdd,onDeleteSettings:o.onDeleteSettings})]})})},L9=function(e){var n=e.isLocked,r=e.isNotSaved,o=e.onSaveClick,i=dx(e,["isLocked","isNotSaved","onSaveClick"]);return t(Mk,{title:e.name,children:t(YL,Object.assign({$isLocked:n,$isNotSaved:r,disabled:e.isLocked,"data-testid":"Tab-".concat(e.id),label:t("span",{children:e.name}),icon:r?t(UL,{onClick:function(){null==o||o(e.id)},"data-testid":"FullscreenIcon",children:t(HL,{fontSize:"small",children:t("path",{"data-testid":"SaveTab",d:Vx})})}):void 0,iconPosition:"end"},i),"".concat(e.name,"Tab"))})},F9=function(){var e=G6(),r=e.currentTab,o=e.tabTypes,i=e.changeTab,a=e.tableProps,l=e.tableSettings,s=a.isFullscreenable,c=a.fullscreenProps,u=l.findIndex((function(e){return e.id===(null==r?void 0:r.id)}));return n(WL,{$showFilters:!1,children:[t(KL,{TabIndicatorProps:{style:{display:"none"}},value:u<0?0:u,onChange:function(e,t){i(l[t].id)},children:l.map((function(e,n){var i;return e.isVisible&&t(L9,{value:n,id:e.id,name:e.name,isLocked:null===(i=o.find((function(e){var t;return e.id===(null===(t=l.find((function(e){return e.id===(null==r?void 0:r.id)})))||void 0===t?void 0:t.dataSource)})))||void 0===i?void 0:i.isLocked,isNotSaved:e.isNotSaved,onSaveClick:function(){var t;return null===(t=a.onSaveTabClick)||void 0===t?void 0:t.call(a,e)}},"".concat(n,"-TabWithTooltip"))}))}),s&&t(qL,{onClick:function(){var e;null===(e=null==c?void 0:c.toggleFullscreen)||void 0===e||e.call(c)},"data-testid":"FullscreenIcon",children:t(HL,{fontSize:"small",children:t("path",{"data-testid":(null==c?void 0:c.isFullscreen)?"closeFullscreen":"openFullscreen",d:(null==c?void 0:c.isFullscreen)?Px:Fx})})})]})},z9=function(){var e=G6(),o=e.currentTab,i=e.tabTypes,a=e.tableProps,l=e.tableSettings,s=e.idsSelected,c=i.find((function(e){return e.id===(null==o?void 0:o.dataSource)}));return t(r,{children:a.defaultToolbarProps||(null==c?void 0:c.toolbarProps)&&t(zL,{children:n(r,{children:[t(FL,{children:1===l.length&&l[0].name}),t(Qq,Object.assign({},a.defaultToolbarProps,null==c?void 0:c.toolbarProps,{selectedIds:s}))]})})})},j9=o.div.withConfig({displayName:"TabbedTable__TableWrapper",componentId:"sc-1ugm3gz-0"})(["flex-grow:1;"]),B9=o.div.withConfig({displayName:"TabbedTable__TableAndFilterWrapper",componentId:"sc-1ugm3gz-1"})(["display:flex;flex-direction:row;position:relative;"]),V9=o((function(){var e=G6(),n=e.changeTab,r=e.tableSettings,o=e.currentTab,i=e.tableProps,a=e.onColumnVisibilityChange,l=e.onColumnOrderChange,s=e.isSettingsOpen,c=e.onSettingsVisibilityChange,u=e.onTabDelete,d=e.onTabAdd,f=e.onTabOrderChange,p=e.onTabVisibilityChange,h=e.onTabNameChange,g=e.onDeleteSettings,m=i.tabTypes.map((function(e){return e.id}));return t(P9,{isSettingsOpen:s,tabs:r,openTabId:null==o?void 0:o.id,showUrlCopyButton:i.showUrlCopyButton,urlBase:i.urlBase,onOpenTabChange:function(e){n(e)},onTabOrderChange:f,onTabVisibilityChange:p,onTabNameChange:h,onColumnVisibilityChange:a,onColumnOrderChange:l,onCloseSettings:c,onTabDelete:u,onTabAdd:d,onDeleteSettings:g,dataSources:m})})).withConfig({displayName:"TabbedTable__StyledTableSettings",componentId:"sc-1ugm3gz-2"})(["flex-shrink:1;max-width:320px;min-width:320px;flex-basis:320px;"]),W9=function(){var e=G6(),r=e.data,o=e.filters,i=e.initialSelection,a=e.onSelectionChange;return t(R$,{data:r,filters:o,initialSelection:i,onSelectionChange:a,children:n(B9,{children:[t(j9,{children:t(T5,{})}),t(V9,{})]})})},H9=function(e){return n(k5,{tableProps:e,children:[t(z9,{}),t(F9,{}),t(W9,{})]})},q9=o(yg).withConfig({displayName:"Linkstyles__StyledLink",componentId:"sc-1esxdfu-0"})(["font-size:14px;text-decoration:none;"," &:hover{","}"],(function(e){return e.$isDark?"\n text-decoration-color: ".concat(ky.mossGreen.tint[66],";\n color: ").concat(ky.mossGreen.tint[66],";\n "):"\n text-decoration-color: ".concat(ky.secondary.sinbad,";\n color: ").concat(ky.secondary.sinbad,";\n ")}),(function(e){return e.$isDark?"\n color: ".concat(ky.semantic.text.secondary,";\n text-decoration-color: ").concat(ky.semantic.text.secondary,";\n text-decoration: underline;\n "):""})),U9=o(yg).withConfig({displayName:"Linkstyles__StyledInlineLink",componentId:"sc-1esxdfu-1"})(["color:",";font-weight:bold;&:hover{text-decoration:none;}"],(function(e){return e.$isDark?ky.mossGreen.base:ky.secondary.sinbad})),K9=o.div.withConfig({displayName:"Linkstyles__LinkWithIconContainer",componentId:"sc-1esxdfu-2"})(["display:flex;"]),Y9=o.div.withConfig({displayName:"Linkstyles__IconContainer",componentId:"sc-1esxdfu-3"})(["margin-right:10px;color:",";"],ky.semantic.infographic.primary),G9=function(e){var n=e.href,r=e.linkStyle,o=void 0===r?"light":r,i=e.testid,a=e.children,l=e.target,s=void 0===l?"_blank":l,c=dx(e,["href","linkStyle","testid","children","target"]);return t(q9,Object.assign({"data-testid":i,$isDark:"dark"===o,target:s,underline:"always",href:n},c,{children:a}))},Z9=function(e){var n=e.href,r=e.testid,o=e.linkStyle,i=void 0===o?"light":o,a=e.children,l=e.target,s=void 0===l?"_blank":l,c=dx(e,["href","testid","linkStyle","children","target"]);return t(U9,Object.assign({"data-testid":r,$isDark:"dark"===i,target:s,href:n,underline:"none"},c,{children:a}))},J9=function(e){var r=e.href,o=e.linkStyle,i=void 0===o?"light":o,a=e.testid,l=e.children,s=e.target,c=void 0===s?"_blank":s,u=e.iconData,d=e.iconName,f=e.iconSize,p=dx(e,["href","linkStyle","testid","children","target","iconData","iconName","iconSize"]);return n(K9,{children:[t(Y9,{children:t(Vk,{data:u,name:d,size:f})}),t(q9,Object.assign({"data-testid":a,$isDark:"dark"===i,target:c,underline:"always",href:r},p,{children:l}))]})},X9=o.div.withConfig({displayName:"FooterSectionstyles__StyledFooterSectionHeader",componentId:"sc-1r4vor6-0"})(["font-size:10px;text-transform:uppercase;color:",";margin-bottom:16px;"],ky.semantic.text.tertiary),Q9=o.div.withConfig({displayName:"FooterSectionstyles__StyledFooterSection",componentId:"sc-1r4vor6-1"})(["color:",";border-left:3px solid ",";padding-left:15px;margin-right:42px;"],ky.semantic.text.secondary,ky.mossGreen.base),$9=o.div.withConfig({displayName:"FooterSectionstyles__StyledFooterChild",componentId:"sc-1r4vor6-2"})(["width:100%;"]),e7=function(e){var r=e.header,o=e.children;return n(Q9,{children:[t(X9,{children:r}),null==o?void 0:o.map((function(e){return t($9,{children:e})}))]})},t7=O0,n7=/\s/;var r7=function(e){for(var t=e.length;t--&&n7.test(e.charAt(t)););return t},o7=r7,i7=/^\s+/;var a7=B0,l7=p2;var s7=function(e){return e?e.slice(0,o7(e)+1).replace(i7,""):e},c7=V0,u7=function(e){return"symbol"==typeof e||l7(e)&&"[object Symbol]"==a7(e)},d7=/^[-+]0x[0-9a-f]+$/i,f7=/^0b[01]+$/i,p7=/^0o[0-7]+$/i,h7=parseInt;var g7=V0,m7=function(){return t7.Date.now()},v7=function(e){if("number"==typeof e)return e;if(u7(e))return NaN;if(c7(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c7(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s7(e);var n=f7.test(e);return n||p7.test(e)?h7(e.slice(2),n?2:8):d7.test(e)?NaN:+e},b7=Math.max,y7=Math.min;var x7=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function g(){var e=m7();if(h(e))return m(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?y7(n,i-(e-c)):n}(e))}function m(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=m7(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(g,t),u?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=v7(t)||0,g7(n)&&(u=!!n.leading,i=(d="maxWait"in n)?b7(v7(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:m(m7())},v},w7=K(x7),C7=R7,E7=O7(be),T7=O7(x7),k7=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=N7(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(u),S7=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function N7(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(N7=function(e){return e?n:t})(e)}function O7(e){return e&&e.__esModule?e:{default:e}}function A7(){return A7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A7.apply(this,arguments)}var M7=[],I7={width:"100%",height:"100%"};function R7(e){var t=e.className,n=e.children,r=e.debounceTime,o=void 0===r?300:r,i=e.ignoreDimensions,a=void 0===i?M7:i,l=e.parentSizeStyles,s=void 0===l?I7:l,c=e.enableDebounceLeadingCall,u=void 0===c||c,d=e.resizeObserverPolyfill,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,S7),p=(0,k7.useRef)(null),h=(0,k7.useRef)(0),g=(0,k7.useState)({width:0,height:0,top:0,left:0}),m=g[0],v=g[1],b=(0,k7.useMemo)((function(){var e=Array.isArray(a)?a:[a];return(0,T7.default)((function(t){v((function(n){return Object.keys(n).filter((function(e){return n[e]!==t[e]})).every((function(t){return e.includes(t)}))?n:t}))}),o,{leading:u})}),[o,u,a]);return(0,k7.useEffect)((function(){var e=new(d||window.ResizeObserver)((function(e){e.forEach((function(e){var t,n=null!=(t=null==e?void 0:e.contentRect)?t:{},r=n.left,o=n.top,i=n.width,a=n.height;h.current=window.requestAnimationFrame((function(){b({width:i,height:a,top:o,left:r})}))}))}));return p.current&&e.observe(p.current),function(){window.cancelAnimationFrame(h.current),e.disconnect(),b.cancel()}}),[b,d]),k7.default.createElement("div",A7({style:s,ref:p,className:t},f),n(A7({},m,{ref:p.current,resize:b})))}function D7(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _7(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function P7(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=D7,n=(t,n)=>D7(e(t),n),r=(t,n)=>e(t)-n):(t=e===D7||e===_7?e:L7,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function L7(){return 0}R7.propTypes={className:E7.default.string,debounceTime:E7.default.number,enableDebounceLeadingCall:E7.default.bool,ignoreDimensions:E7.default.oneOfType([E7.default.any,E7.default.arrayOf(E7.default.any)]),children:E7.default.func.isRequired};const F7=P7(D7).right;P7((function(e){return null===e?NaN:+e})).center;var z7=F7;class j7 extends Map{constructor(e,t=V7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(B7(this,e))}has(e){return super.has(B7(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function B7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function V7(e){return null!==e&&"object"==typeof e?e.valueOf():e}const W7=Math.sqrt(50),H7=Math.sqrt(10),q7=Math.sqrt(2);function U7(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=W7?10:i>=H7?5:i>=q7?2:1;let l,s,c;return o<0?(c=Math.pow(10,-o)/a,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,o)*a,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?U7(e,t,2*n):[l,s,c]}function K7(e,t,n){return U7(e=+e,t=+t,n=+n)[2]}function Y7(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?K7(t,e,n):K7(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function G7(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const Z7=Symbol("implicit");function J7(){var e=new j7,t=[],n=[],r=Z7;function o(o){let i=e.get(o);if(void 0===i){if(r!==Z7)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new j7;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return J7(t,n).unknown(r)},G7.apply(o,arguments),o}function X7(){var e,t,n=J7().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=a<i,f=d?a:i,p=d?i:a;e=(p-f)/Math.max(1,n-s+2*c),l&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*u,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return X7(r(),[i,a]).round(l).paddingInner(s).paddingOuter(c).align(u)},G7.apply(d(),arguments)}function Q7(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $7(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function e8(){}var t8=.7,n8=1/t8,r8="\\s*([+-]?\\d+)\\s*",o8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a8=/^#([0-9a-f]{3,8})$/,l8=new RegExp(`^rgb\\(${r8},${r8},${r8}\\)$`),s8=new RegExp(`^rgb\\(${i8},${i8},${i8}\\)$`),c8=new RegExp(`^rgba\\(${r8},${r8},${r8},${o8}\\)$`),u8=new RegExp(`^rgba\\(${i8},${i8},${i8},${o8}\\)$`),d8=new RegExp(`^hsl\\(${o8},${i8},${i8}\\)$`),f8=new RegExp(`^hsla\\(${o8},${i8},${i8},${o8}\\)$`),p8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function h8(){return this.rgb().formatHex()}function g8(){return this.rgb().formatRgb()}function m8(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=a8.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?v8(t):3===n?new w8(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?b8(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?b8(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=l8.exec(e))?new w8(t[1],t[2],t[3],1):(t=s8.exec(e))?new w8(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c8.exec(e))?b8(t[1],t[2],t[3],t[4]):(t=u8.exec(e))?b8(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d8.exec(e))?N8(t[1],t[2]/100,t[3]/100,1):(t=f8.exec(e))?N8(t[1],t[2]/100,t[3]/100,t[4]):p8.hasOwnProperty(e)?v8(p8[e]):"transparent"===e?new w8(NaN,NaN,NaN,0):null}function v8(e){return new w8(e>>16&255,e>>8&255,255&e,1)}function b8(e,t,n,r){return r<=0&&(e=t=n=NaN),new w8(e,t,n,r)}function y8(e){return e instanceof e8||(e=m8(e)),e?new w8((e=e.rgb()).r,e.g,e.b,e.opacity):new w8}function x8(e,t,n,r){return 1===arguments.length?y8(e):new w8(e,t,n,null==r?1:r)}function w8(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C8(){return`#${S8(this.r)}${S8(this.g)}${S8(this.b)}`}function E8(){const e=T8(this.opacity);return`${1===e?"rgb(":"rgba("}${k8(this.r)}, ${k8(this.g)}, ${k8(this.b)}${1===e?")":`, ${e})`}`}function T8(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k8(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function S8(e){return((e=k8(e))<16?"0":"")+e.toString(16)}function N8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M8(e,t,n,r)}function O8(e){if(e instanceof M8)return new M8(e.h,e.s,e.l,e.opacity);if(e instanceof e8||(e=m8(e)),!e)return new M8;if(e instanceof M8)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new M8(a,l,s,e.opacity)}function A8(e,t,n,r){return 1===arguments.length?O8(e):new M8(e,t,n,null==r?1:r)}function M8(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function I8(e){return(e=(e||0)%360)<0?e+360:e}function R8(e){return Math.max(0,Math.min(1,e||0))}function D8(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Q7(e8,m8,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:h8,formatHex:h8,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return O8(this).formatHsl()},formatRgb:g8,toString:g8}),Q7(w8,x8,$7(e8,{brighter(e){return e=null==e?n8:Math.pow(n8,e),new w8(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?t8:Math.pow(t8,e),new w8(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new w8(k8(this.r),k8(this.g),k8(this.b),T8(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C8,formatHex:C8,formatHex8:function(){return`#${S8(this.r)}${S8(this.g)}${S8(this.b)}${S8(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:E8,toString:E8})),Q7(M8,A8,$7(e8,{brighter(e){return e=null==e?n8:Math.pow(n8,e),new M8(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?t8:Math.pow(t8,e),new M8(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new w8(D8(e>=240?e-240:e+120,o,r),D8(e,o,r),D8(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new M8(I8(this.h),R8(this.s),R8(this.l),T8(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=T8(this.opacity);return`${1===e?"hsl(":"hsla("}${I8(this.h)}, ${100*R8(this.s)}%, ${100*R8(this.l)}%${1===e?")":`, ${e})`}`}}));const _8=Math.PI/180,P8=180/Math.PI,L8=.96422,F8=1,z8=.82521,j8=4/29,B8=6/29,V8=3*B8*B8,W8=B8*B8*B8;function H8(e){if(e instanceof U8)return new U8(e.l,e.a,e.b,e.opacity);if(e instanceof X8)return Q8(e);e instanceof w8||(e=y8(e));var t,n,r=Z8(e.r),o=Z8(e.g),i=Z8(e.b),a=K8((.2225045*r+.7168786*o+.0606169*i)/F8);return r===o&&o===i?t=n=a:(t=K8((.4360747*r+.3850649*o+.1430804*i)/L8),n=K8((.0139322*r+.0971045*o+.7141733*i)/z8)),new U8(116*a-16,500*(t-a),200*(a-n),e.opacity)}function q8(e,t,n,r){return 1===arguments.length?H8(e):new U8(e,t,n,null==r?1:r)}function U8(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function K8(e){return e>W8?Math.pow(e,1/3):e/V8+j8}function Y8(e){return e>B8?e*e*e:V8*(e-j8)}function G8(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Z8(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function J8(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof X8)return new X8(e.h,e.c,e.l,e.opacity);if(e instanceof U8||(e=H8(e)),0===e.a&&0===e.b)return new X8(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*P8;return new X8(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new X8(e,t,n,null==r?1:r)}function X8(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Q8(e){if(isNaN(e.h))return new U8(e.l,0,0,e.opacity);var t=e.h*_8;return new U8(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Q7(U8,q8,$7(e8,{brighter(e){return new U8(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new U8(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new w8(G8(3.1338561*(t=L8*Y8(t))-1.6168667*(e=F8*Y8(e))-.4906146*(n=z8*Y8(n))),G8(-.9787684*t+1.9161415*e+.033454*n),G8(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Q7(X8,J8,$7(e8,{brighter(e){return new X8(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new X8(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Q8(this).rgb()}}));var $8=-.14861,eee=1.78277,tee=-.29227,nee=-.90649,ree=1.97294,oee=ree*nee,iee=ree*eee,aee=eee*tee-nee*$8;function lee(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof see)return new see(e.h,e.s,e.l,e.opacity);e instanceof w8||(e=y8(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(aee*r+oee*t-iee*n)/(aee+oee-iee),i=r-o,a=(ree*(n-o)-tee*i)/nee,l=Math.sqrt(a*a+i*i)/(ree*o*(1-o)),s=l?Math.atan2(a,i)*P8-120:NaN;return new see(s<0?s+360:s,l,o,e.opacity)}(e):new see(e,t,n,null==r?1:r)}function see(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Q7(see,lee,$7(e8,{brighter(e){return e=null==e?n8:Math.pow(n8,e),new see(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?t8:Math.pow(t8,e),new see(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*_8,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new w8(255*(t+n*($8*r+eee*o)),255*(t+n*(tee*r+nee*o)),255*(t+n*(ree*r)),this.opacity)}}));var cee=e=>()=>e;function uee(e,t){return function(n){return e+n*t}}function dee(e,t){var n=t-e;return n?uee(e,n>180||n<-180?n-360*Math.round(n/360):n):cee(isNaN(e)?t:e)}function fee(e){return 1==(e=+e)?pee:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):cee(isNaN(t)?n:t)}}function pee(e,t){var n=t-e;return n?uee(e,n):cee(isNaN(e)?t:e)}var hee=function e(t){var n=fee(t);function r(e,t){var r=n((e=x8(e)).r,(t=x8(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pee(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function gee(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function mee(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Eee(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function vee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bee(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yee(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Eee(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var xee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wee=new RegExp(xee.source,"g");function Cee(e,t){var n,r,o,i=xee.lastIndex=wee.lastIndex=0,a=-1,l=[],s=[];for(e+="",t+="";(n=xee.exec(e))&&(r=wee.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:bee(n,r)})),i=wee.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function Eee(e,t){var n,r=typeof t;return null==t||"boolean"===r?cee(t):("number"===r?bee:"string"===r?(n=m8(t))?(t=n,hee):Cee:t instanceof m8?hee:t instanceof Date?vee:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?gee:Array.isArray(t)?mee:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?yee:bee)(e,t)}function Tee(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var kee,See=180/Math.PI,Nee={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Oee(e,t,n,r,o,i){var a,l,s;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r<t*n&&(e=-e,t=-t,s=-s,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*See,skewX:Math.atan(s)*See,scaleX:a,scaleY:l}}function Aee(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var l=[],s=[];return i=e(i),a=e(a),function(e,r,o,i,a,l){if(e!==o||r!==i){var s=a.push("translate(",null,t,null,n);l.push({i:s-4,x:bee(e,o)},{i:s-2,x:bee(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,l,s),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:bee(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,l,s),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:bee(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,l,s),function(e,t,n,r,i,a){if(e!==n||t!==r){var l=i.push(o(i)+"scale(",null,",",null,")");a.push({i:l-4,x:bee(e,n)},{i:l-2,x:bee(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,l,s),i=a=null,function(e){for(var t,n=-1,r=s.length;++n<r;)l[(t=s[n]).i]=t.x(e);return l.join("")}}}var Mee=Aee((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Nee:Oee(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Iee=Aee((function(e){return null==e?Nee:(kee||(kee=document.createElementNS("http://www.w3.org/2000/svg","g")),kee.setAttribute("transform",e),(e=kee.transform.baseVal.consolidate())?Oee((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Nee)}),", ",")",")");function Ree(e){return((e=Math.exp(e))+1/e)/2}var Dee=function e(t,n,r){function o(e,o){var i,a,l=e[0],s=e[1],c=e[2],u=o[0],d=o[1],f=o[2],p=u-l,h=d-s,g=p*p+h*h;if(g<1e-12)a=Math.log(f/c)/t,i=function(e){return[l+e*p,s+e*h,c*Math.exp(t*e*a)]};else{var m=Math.sqrt(g),v=(f*f-c*c+r*g)/(2*c*n*m),b=(f*f-c*c-r*g)/(2*f*n*m),y=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(b*b+1)-b);a=(x-y)/t,i=function(e){var r=e*a,o=Ree(y),i=c/(n*m)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+y)-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[l+i*p,s+i*h,c*o/Ree(t*r+y)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4);function _ee(e){return function(t,n){var r=e((t=A8(t)).h,(n=A8(n)).h),o=pee(t.s,n.s),i=pee(t.l,n.l),a=pee(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=i(e),t.opacity=a(e),t+""}}}var Pee=_ee(dee),Lee=_ee(pee);function Fee(e){return function(t,n){var r=e((t=J8(t)).h,(n=J8(n)).h),o=pee(t.c,n.c),i=pee(t.l,n.l),a=pee(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=o(e),t.l=i(e),t.opacity=a(e),t+""}}}var zee=Fee(dee),jee=Fee(pee);function Bee(e){return function t(n){function r(t,r){var o=e((t=lee(t)).h,(r=lee(r)).h),i=pee(t.s,r.s),a=pee(t.l,r.l),l=pee(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var Vee=Bee(dee),Wee=Bee(pee);function Hee(e){return+e}var qee=[0,1];function Uee(e){return e}function Kee(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Yee(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Kee(o,r),i=n(a,i)):(r=Kee(r,o),i=n(i,a)),function(e){return i(r(e))}}function Gee(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Kee(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=z7(e,t,1,r)-1;return i[n](o[n](t))}}function Zee(){var e,t,n,r,o,i,a=qee,l=qee,s=Eee,c=Uee;function u(){var e=Math.min(a.length,l.length);return c!==Uee&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Gee:Yee,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(l,a.map(e),bee)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Hee),u()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=Tee,u()},d.clamp=function(e){return arguments.length?(c=!!e||Uee,u()):c!==Uee},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}const Jee=new Date,Xee=new Date;function Qee(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let l;do{a.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return a},o.filter=n=>Qee((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(Jee.setTime(+t),Xee.setTime(+r),e(Jee),e(Xee),Math.floor(n(Jee,Xee))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const $ee=Qee((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));$ee.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Qee((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):$ee:null),$ee.range;const ete=1e3,tte=6e4,nte=36e5,rte=864e5,ote=6048e5,ite=2592e6,ate=31536e6,lte=Qee((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*ete)}),((e,t)=>(t-e)/ete),(e=>e.getUTCSeconds()));lte.range;const ste=Qee((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ete)}),((e,t)=>{e.setTime(+e+t*tte)}),((e,t)=>(t-e)/tte),(e=>e.getMinutes()));ste.range;const cte=Qee((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*tte)}),((e,t)=>(t-e)/tte),(e=>e.getUTCMinutes()));cte.range;const ute=Qee((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ete-e.getMinutes()*tte)}),((e,t)=>{e.setTime(+e+t*nte)}),((e,t)=>(t-e)/nte),(e=>e.getHours()));ute.range;const dte=Qee((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*nte)}),((e,t)=>(t-e)/nte),(e=>e.getUTCHours()));dte.range;const fte=Qee((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tte)/rte),(e=>e.getDate()-1));fte.range;const pte=Qee((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/rte),(e=>e.getUTCDate()-1));pte.range;const hte=Qee((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/rte),(e=>Math.floor(e/rte)));function gte(e){return Qee((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tte)/ote))}hte.range;const mte=gte(0),vte=gte(1),bte=gte(2),yte=gte(3),xte=gte(4),wte=gte(5),Cte=gte(6);function Ete(e){return Qee((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ote))}mte.range,vte.range,bte.range,yte.range,xte.range,wte.range,Cte.range;const Tte=Ete(0),kte=Ete(1),Ste=Ete(2),Nte=Ete(3),Ote=Ete(4),Ate=Ete(5),Mte=Ete(6);Tte.range,kte.range,Ste.range,Nte.range,Ote.range,Ate.range,Mte.range;const Ite=Qee((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Ite.range;const Rte=Qee((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));Rte.range;const Dte=Qee((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));Dte.every=e=>isFinite(e=Math.floor(e))&&e>0?Qee((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,Dte.range;const _te=Qee((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));_te.every=e=>isFinite(e=Math.floor(e))&&e>0?Qee((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,_te.range;const[Pte,Lte]=function(e,t,n,r,o,i){const a=[[lte,1,ete],[lte,5,5e3],[lte,15,15e3],[lte,30,3e4],[i,1,tte],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,nte],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,rte],[r,2,1728e5],[n,1,ote],[t,1,ite],[t,3,7776e6],[e,1,ate]];function l(t,n,r){const o=Math.abs(n-t)/r,i=P7((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Y7(t/ate,n/ate,r));if(0===i)return $ee.every(Math.max(Y7(t,n,r),1));const[l,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}(Dte,Ite,mte,fte,ute,ste);function Fte(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zte(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jte(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Bte,Vte,Wte={"-":"",_:" ",0:"0"},Hte=/^\s*\d+/,qte=/^%/,Ute=/[\\^$*+?|[\]().{}]/g;function Kte(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Yte(e){return e.replace(Ute,"\\$&")}function Gte(e){return new RegExp("^(?:"+e.map(Yte).join("|")+")","i")}function Zte(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Jte(e,t,n){var r=Hte.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xte(e,t,n){var r=Hte.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qte(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $te(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ene(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tne(e,t,n){var r=Hte.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nne(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rne(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function one(e,t,n){var r=Hte.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function ine(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ane(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lne(e,t,n){var r=Hte.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sne(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cne(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function une(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dne(e,t,n){var r=Hte.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fne(e,t,n){var r=Hte.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pne(e,t,n){var r=qte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hne(e,t,n){var r=Hte.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gne(e,t,n){var r=Hte.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mne(e,t){return Kte(e.getDate(),t,2)}function vne(e,t){return Kte(e.getHours(),t,2)}function bne(e,t){return Kte(e.getHours()%12||12,t,2)}function yne(e,t){return Kte(1+fte.count(Dte(e),e),t,3)}function xne(e,t){return Kte(e.getMilliseconds(),t,3)}function wne(e,t){return xne(e,t)+"000"}function Cne(e,t){return Kte(e.getMonth()+1,t,2)}function Ene(e,t){return Kte(e.getMinutes(),t,2)}function Tne(e,t){return Kte(e.getSeconds(),t,2)}function kne(e){var t=e.getDay();return 0===t?7:t}function Sne(e,t){return Kte(mte.count(Dte(e)-1,e),t,2)}function Nne(e){var t=e.getDay();return t>=4||0===t?xte(e):xte.ceil(e)}function One(e,t){return e=Nne(e),Kte(xte.count(Dte(e),e)+(4===Dte(e).getDay()),t,2)}function Ane(e){return e.getDay()}function Mne(e,t){return Kte(vte.count(Dte(e)-1,e),t,2)}function Ine(e,t){return Kte(e.getFullYear()%100,t,2)}function Rne(e,t){return Kte((e=Nne(e)).getFullYear()%100,t,2)}function Dne(e,t){return Kte(e.getFullYear()%1e4,t,4)}function _ne(e,t){var n=e.getDay();return Kte((e=n>=4||0===n?xte(e):xte.ceil(e)).getFullYear()%1e4,t,4)}function Pne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Kte(t/60|0,"0",2)+Kte(t%60,"0",2)}function Lne(e,t){return Kte(e.getUTCDate(),t,2)}function Fne(e,t){return Kte(e.getUTCHours(),t,2)}function zne(e,t){return Kte(e.getUTCHours()%12||12,t,2)}function jne(e,t){return Kte(1+pte.count(_te(e),e),t,3)}function Bne(e,t){return Kte(e.getUTCMilliseconds(),t,3)}function Vne(e,t){return Bne(e,t)+"000"}function Wne(e,t){return Kte(e.getUTCMonth()+1,t,2)}function Hne(e,t){return Kte(e.getUTCMinutes(),t,2)}function qne(e,t){return Kte(e.getUTCSeconds(),t,2)}function Une(e){var t=e.getUTCDay();return 0===t?7:t}function Kne(e,t){return Kte(Tte.count(_te(e)-1,e),t,2)}function Yne(e){var t=e.getUTCDay();return t>=4||0===t?Ote(e):Ote.ceil(e)}function Gne(e,t){return e=Yne(e),Kte(Ote.count(_te(e),e)+(4===_te(e).getUTCDay()),t,2)}function Zne(e){return e.getUTCDay()}function Jne(e,t){return Kte(kte.count(_te(e)-1,e),t,2)}function Xne(e,t){return Kte(e.getUTCFullYear()%100,t,2)}function Qne(e,t){return Kte((e=Yne(e)).getUTCFullYear()%100,t,2)}function $ne(e,t){return Kte(e.getUTCFullYear()%1e4,t,4)}function ere(e,t){var n=e.getUTCDay();return Kte((e=n>=4||0===n?Ote(e):Ote.ceil(e)).getUTCFullYear()%1e4,t,4)}function tre(){return"+0000"}function nre(){return"%"}function rre(e){return+e}function ore(e){return Math.floor(+e/1e3)}function ire(e){return new Date(e)}function are(e){return e instanceof Date?+e:+new Date(+e)}function lre(e,t,n,r,o,i,a,l,s,c){var u=Zee()(Uee,Uee),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),b=c("%b %d"),y=c("%B"),x=c("%Y");function w(e){return(s(e)<e?p:l(e)<e?h:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:b:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,are)):f().map(ire)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):u},u.copy=function(){return d=u,lre(e,t,n,r,o,i,a,l,s,c).domain(d.domain()).range(d.range()).interpolate(d.interpolate()).clamp(d.clamp()).unknown(d.unknown());var d},u}Bte=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,c=Gte(o),u=Zte(o),d=Gte(i),f=Zte(i),p=Gte(a),h=Zte(a),g=Gte(l),m=Zte(l),v=Gte(s),b=Zte(s),y={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:mne,e:mne,f:wne,g:Rne,G:_ne,H:vne,I:bne,j:yne,L:xne,m:Cne,M:Ene,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rre,s:ore,S:Tne,u:kne,U:Sne,V:One,w:Ane,W:Mne,x:null,X:null,y:Ine,Y:Dne,Z:Pne,"%":nre},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Lne,e:Lne,f:Vne,g:Qne,G:ere,H:Fne,I:zne,j:jne,L:Bne,m:Wne,M:Hne,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rre,s:ore,S:qne,u:Une,U:Kne,V:Gne,w:Zne,W:Jne,x:null,X:null,y:Xne,Y:$ne,Z:tre,"%":nre},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:ane,e:ane,f:fne,g:nne,G:tne,H:sne,I:sne,j:lne,L:dne,m:ine,M:cne,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:one,Q:hne,s:gne,S:une,u:Xte,U:Qte,V:$te,w:Jte,W:ene,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:nne,Y:tne,Z:rne,"%":pne};function C(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l<c;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(o=Wte[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function E(e,t){return function(n){var r,o,i=jte(1900,void 0,1);if(T(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=zte(jte(i.y,0,1))).getUTCDay(),r=o>4||0===o?kte.ceil(r):kte(r),r=pte.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Fte(jte(i.y,0,1))).getDay(),r=o>4||0===o?vte.ceil(r):vte(r),r=fte.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?zte(jte(i.y,0,1)).getUTCDay():Fte(jte(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,zte(i)):Fte(i)}}function T(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Wte?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Vte=Bte.format,Bte.parse,Bte.utcFormat,Bte.utcParse;var sre={lab:function(e,t){var n=pee((e=q8(e)).l,(t=q8(t)).l),r=pee(e.a,t.a),o=pee(e.b,t.b),i=pee(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=o(t),e.opacity=i(t),e+""}},hcl:zee,"hcl-long":jee,hsl:Pee,"hsl-long":Lee,cubehelix:Vee,"cubehelix-long":Wee,rgb:hee};var cre=new Date(Date.UTC(2020,1,2,3,4,5)),ure="%Y-%m-%d %H:%M";var dre={day:fte,hour:ute,minute:ste,month:Ite,second:lte,week:mte,year:Dte},fre={day:pte,hour:dte,minute:cte,month:Rte,second:lte,week:Tte,year:_te};var pre=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],hre={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=e,o=function(e){return"2020-02-02 03:04"===e.tickFormat(1,ure)(cre)}(r);if("string"==typeof n)r.nice(o?fre[n]:dre[n]);else{var i=n.interval,a=n.step,l=(o?fre[i]:dre[i]).every(a);null!=l&&r.nice(l)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],o=n[1],i=o<r,a=i?[o,r]:[r,o],l=a[0],s=a[1],c=[Math.min(0,l),Math.max(0,s)];e.domain(i?c.reverse():c)}},interpolate:function(e,t){if("interpolate"in t&&"interpolate"in e&&void 0!==t.interpolate){var n=function(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return sre[e]}var t=e.type,n=e.gamma,r=sre[t];return void 0===n?r:r.gamma(n)}(t.interpolate);e.interpolate(n)}},round:function(e,t){"round"in t&&void 0!==t.round&&(t.round&&"interpolate"in t&&void 0!==t.interpolate?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(Tee))},align:function(e,t){"align"in e&&"align"in t&&void 0!==t.align&&e.align(t.align)},base:function(e,t){"base"in e&&"base"in t&&void 0!==t.base&&e.base(t.base)},clamp:function(e,t){"clamp"in e&&"clamp"in t&&void 0!==t.clamp&&e.clamp(t.clamp)},constant:function(e,t){"constant"in e&&"constant"in t&&void 0!==t.constant&&e.constant(t.constant)},exponent:function(e,t){"exponent"in e&&"exponent"in t&&void 0!==t.exponent&&e.exponent(t.exponent)},padding:function(e,t){"padding"in e&&"padding"in t&&void 0!==t.padding&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&void 0!==t.paddingInner&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&void 0!==t.paddingOuter&&e.paddingOuter(t.paddingOuter)},range:function(e,t){t.range&&e.range(t.range)},reverse:function(e,t){if(t.reverse){var n=e.range().slice().reverse();e.range(n)}},unknown:function(e,t){"unknown"in e&&"unknown"in t&&void 0!==t.unknown&&e.unknown(t.unknown)}};function gre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=pre.filter((function(e){return r.has(e)}));return function(e,t){return void 0!==t&&o.forEach((function(n){hre[n](e,t)})),e}}var mre=gre("domain","range","reverse","align","padding","round");function vre(e){return mre(X7(),e)}var bre=gre("domain","range","reverse","clamp","interpolate","nice","round");function yre(e){return bre(function(){return G7.apply(lre(Pte,Lte,Dte,Ite,mte,fte,ute,ste,lte,Vte).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}(),e)}var xre=gre("domain","range","reverse","unknown");var wre={value:()=>{}};function Cre(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Ere(r)}function Ere(e){this._=e}function Tre(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function kre(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=wre,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Ere.prototype=Cre.prototype={constructor:Ere,on:function(e,t){var n,r,o=this._,i=(r=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),a=-1,l=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<l;)if(n=(e=i[a]).type)o[n]=kre(o[n],e.name,t);else if(null==t)for(n in o)o[n]=kre(o[n],e.name,null);return this}for(;++a<l;)if((n=(e=i[a]).type)&&(n=Tre(o[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ere(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};var Sre="http://www.w3.org/1999/xhtml",Nre={svg:"http://www.w3.org/2000/svg",xhtml:Sre,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ore(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Nre.hasOwnProperty(t)?{space:Nre[t],local:e}:e}function Are(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Sre&&t.documentElement.namespaceURI===Sre?t.createElement(e):t.createElementNS(n,e)}}function Mre(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ire(e){var t=Ore(e);return(t.local?Mre:Are)(t)}function Rre(){}function Dre(e){return null==e?Rre:function(){return this.querySelector(e)}}function _re(){return[]}function Pre(e){return null==e?_re:function(){return this.querySelectorAll(e)}}function Lre(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function Fre(e){return function(){return this.matches(e)}}function zre(e){return function(t){return t.matches(e)}}var jre=Array.prototype.find;function Bre(){return this.firstElementChild}var Vre=Array.prototype.filter;function Wre(){return Array.from(this.children)}function Hre(e){return new Array(e.length)}function qre(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Ure(e,t,n,r,o,i){for(var a,l=0,s=t.length,c=i.length;l<c;++l)(a=t[l])?(a.__data__=i[l],r[l]=a):n[l]=new qre(e,i[l]);for(;l<s;++l)(a=t[l])&&(o[l]=a)}function Kre(e,t,n,r,o,i,a){var l,s,c,u=new Map,d=t.length,f=i.length,p=new Array(d);for(l=0;l<d;++l)(s=t[l])&&(p[l]=c=a.call(s,s.__data__,l,t)+"",u.has(c)?o[l]=s:u.set(c,s));for(l=0;l<f;++l)c=a.call(e,i[l],l,i)+"",(s=u.get(c))?(r[l]=s,s.__data__=i[l],u.delete(c)):n[l]=new qre(e,i[l]);for(l=0;l<d;++l)(s=t[l])&&u.get(p[l])===s&&(o[l]=s)}function Yre(e){return e.__data__}function Gre(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Zre(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jre(e){return function(){this.removeAttribute(e)}}function Xre(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qre(e,t){return function(){this.setAttribute(e,t)}}function $re(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function eoe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function toe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function noe(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function roe(e){return function(){this.style.removeProperty(e)}}function ooe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ioe(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function aoe(e,t){return e.style.getPropertyValue(t)||noe(e).getComputedStyle(e,null).getPropertyValue(t)}function loe(e){return function(){delete this[e]}}function soe(e,t){return function(){this[e]=t}}function coe(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function uoe(e){return e.trim().split(/^|\s+/)}function doe(e){return e.classList||new foe(e)}function foe(e){this._node=e,this._names=uoe(e.getAttribute("class")||"")}function poe(e,t){for(var n=doe(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function hoe(e,t){for(var n=doe(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function goe(e){return function(){poe(this,e)}}function moe(e){return function(){hoe(this,e)}}function voe(e,t){return function(){(t.apply(this,arguments)?poe:hoe)(this,e)}}function boe(){this.textContent=""}function yoe(e){return function(){this.textContent=e}}function xoe(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function woe(){this.innerHTML=""}function Coe(e){return function(){this.innerHTML=e}}function Eoe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Toe(){this.nextSibling&&this.parentNode.appendChild(this)}function koe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Soe(){return null}function Noe(){var e=this.parentNode;e&&e.removeChild(this)}function Ooe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Aoe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Moe(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Ioe(e,t,n){return function(){var r,o=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var a=0,l=o.length;a<l;++a)if((r=o[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function Roe(e,t,n){var r=noe(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Doe(e,t){return function(){return Roe(this,e,t)}}function _oe(e,t){return function(){return Roe(this,e,t.apply(this,arguments))}}qre.prototype={constructor:qre,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},foe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Poe=[null];function Loe(e,t){this._groups=e,this._parents=t}function Foe(){return new Loe([[document.documentElement]],Poe)}function zoe(e){return"string"==typeof e?new Loe([[document.querySelector(e)]],[document.documentElement]):new Loe([[e]],Poe)}function joe(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Loe.prototype=Foe.prototype={constructor:Loe,select:function(e){"function"!=typeof e&&(e=Dre(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,l=t[o],s=l.length,c=r[o]=new Array(s),u=0;u<s;++u)(i=l[u])&&(a=e.call(i,i.__data__,u,l))&&("__data__"in i&&(a.__data__=i.__data__),c[u]=a);return new Loe(r,this._parents)},selectAll:function(e){e="function"==typeof e?Lre(e):Pre(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,l=t[i],s=l.length,c=0;c<s;++c)(a=l[c])&&(r.push(e.call(a,a.__data__,c,l)),o.push(a));return new Loe(r,o)},selectChild:function(e){return this.select(null==e?Bre:function(e){return function(){return jre.call(this.children,e)}}("function"==typeof e?e:zre(e)))},selectChildren:function(e){return this.selectAll(null==e?Wre:function(e){return function(){return Vre.call(this.children,e)}}("function"==typeof e?e:zre(e)))},filter:function(e){"function"!=typeof e&&(e=Fre(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],l=a.length,s=r[o]=[],c=0;c<l;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&s.push(i);return new Loe(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Yre);var n=t?Kre:Ure,r=this._parents,o=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var i=o.length,a=new Array(i),l=new Array(i),s=new Array(i),c=0;c<i;++c){var u=r[c],d=o[c],f=d.length,p=Gre(e.call(u,u&&u.__data__,c,r)),h=p.length,g=l[c]=new Array(h),m=a[c]=new Array(h);n(u,d,g,m,s[c]=new Array(f),p,t);for(var v,b,y=0,x=0;y<h;++y)if(v=g[y]){for(y>=x&&(x=y+1);!(b=m[x])&&++x<h;);v._next=b||null}}return(a=new Loe(a,r))._enter=l,a._exit=s,a},enter:function(){return new Loe(this._enter||this._groups.map(Hre),this._parents)},exit:function(){return new Loe(this._exit||this._groups.map(Hre),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),l=new Array(o),s=0;s<a;++s)for(var c,u=n[s],d=r[s],f=u.length,p=l[s]=new Array(f),h=0;h<f;++h)(c=u[h]||d[h])&&(p[h]=c);for(;s<o;++s)l[s]=n[s];return new Loe(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Zre);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,l=n[i],s=l.length,c=o[i]=new Array(s),u=0;u<s;++u)(a=l[u])&&(c[u]=a);c.sort(t)}return new Loe(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,l=i.length;a<l;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=Ore(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Xre:Jre:"function"==typeof t?n.local?toe:eoe:n.local?$re:Qre)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?roe:"function"==typeof t?ioe:ooe)(e,t,null==n?"":n)):aoe(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?loe:"function"==typeof t?coe:soe)(e,t)):this.node()[e]},classed:function(e,t){var n=uoe(e+"");if(arguments.length<2){for(var r=doe(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?voe:t?goe:moe)(n,t))},text:function(e){return arguments.length?this.each(null==e?boe:("function"==typeof e?xoe:yoe)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?woe:("function"==typeof e?Eoe:Coe)(e)):this.node().innerHTML},raise:function(){return this.each(Toe)},lower:function(){return this.each(koe)},append:function(e){var t="function"==typeof e?e:Ire(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ire(e),r=null==t?Soe:"function"==typeof t?t:Dre(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Noe)},clone:function(e){return this.select(e?Aoe:Ooe)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(l=t?Ioe:Moe,r=0;r<a;++r)this.each(l(i[r],t,n));return this}var l=this.node().__on;if(l)for(var s,c=0,u=l.length;c<u;++c)for(r=0,s=l[c];r<a;++r)if((o=i[r]).type===s.type&&o.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?_oe:Doe)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,o=e[t],i=0,a=o.length;i<a;++i)(r=o[i])&&(yield r)}};const Boe={capture:!0,passive:!1};function Voe(e){e.preventDefault(),e.stopImmediatePropagation()}var Woe,Hoe,qoe=0,Uoe=0,Koe=0,Yoe=1e3,Goe=0,Zoe=0,Joe=0,Xoe="object"==typeof performance&&performance.now?performance:Date,Qoe="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function $oe(){return Zoe||(Qoe(eie),Zoe=Xoe.now()+Joe)}function eie(){Zoe=0}function tie(){this._call=this._time=this._next=null}function nie(e,t,n){var r=new tie;return r.restart(e,t,n),r}function rie(){Zoe=(Goe=Xoe.now())+Joe,qoe=Uoe=0;try{!function(){$oe(),++qoe;for(var e,t=Woe;t;)(e=Zoe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--qoe}()}finally{qoe=0,function(){var e,t,n=Woe,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Woe=t);Hoe=e,iie(r)}(),Zoe=0}}function oie(){var e=Xoe.now(),t=e-Goe;t>Yoe&&(Joe-=t,Goe=e)}function iie(e){qoe||(Uoe&&(Uoe=clearTimeout(Uoe)),e-Zoe>24?(e<1/0&&(Uoe=setTimeout(rie,e-Xoe.now()-Joe)),Koe&&(Koe=clearInterval(Koe))):(Koe||(Goe=Xoe.now(),Koe=setInterval(oie,Yoe)),qoe=1,Qoe(rie)))}function aie(e,t,n){var r=new tie;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}tie.prototype=nie.prototype={constructor:tie,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?$oe():+n)+(null==t?0:+t),this._next||Hoe===this||(Hoe?Hoe._next=this:Woe=this,Hoe=this),this._call=e,this._time=n,iie()},stop:function(){this._call&&(this._call=null,this._time=1/0,iie())}};var lie=Cre("start","end","cancel","interrupt"),sie=[],cie=0,uie=1,die=2,fie=3,pie=4,hie=5,gie=6;function mie(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(e){n.state=uie,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(i){var c,u,d,f;if(n.state!==uie)return s();for(c in o)if((f=o[c]).name===n.name){if(f.state===fie)return aie(a);f.state===pie?(f.state=gie,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[c]):+c<t&&(f.state=gie,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[c])}if(aie((function(){n.state===fie&&(n.state=pie,n.timer.restart(l,n.delay,n.time),l(i))})),n.state=die,n.on.call("start",e,e.__data__,n.index,n.group),n.state===die){for(n.state=fie,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function l(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=hie,1),i=-1,a=r.length;++i<a;)r[i].call(e,o);n.state===hie&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=gie,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=nie(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:lie,tween:sie,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:cie})}function vie(e,t){var n=yie(e,t);if(n.state>cie)throw new Error("too late; already scheduled");return n}function bie(e,t){var n=yie(e,t);if(n.state>fie)throw new Error("too late; already running");return n}function yie(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function xie(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>die&&n.state<hie,n.state=gie,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}function wie(e,t){var n,r;return function(){var o=bie(this,e),i=o.tween;if(i!==n)for(var a=0,l=(r=n=i).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}o.tween=r}}function Cie(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=bie(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var l={name:t,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===t){o[s]=l;break}s===c&&o.push(l)}i.tween=o}}function Eie(e,t,n){var r=e._id;return e.each((function(){var e=bie(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return yie(e,r).value[t]}}function Tie(e,t){var n;return("number"==typeof t?bee:t instanceof m8?hee:(n=m8(t))?(t=n,hee):Cee)(e,t)}function kie(e){return function(){this.removeAttribute(e)}}function Sie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nie(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Oie(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function Aie(e,t,n){var r,o,i;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttribute(e))===(l=s+"")?null:a===r&&l===o?i:(o=l,i=t(r=a,s));this.removeAttribute(e)}}function Mie(e,t,n){var r,o,i;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===(l=s+"")?null:a===r&&l===o?i:(o=l,i=t(r=a,s));this.removeAttributeNS(e.space,e.local)}}function Iie(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Rie(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Die(e,t){return function(){vie(this,e).delay=+t.apply(this,arguments)}}function _ie(e,t){return t=+t,function(){vie(this,e).delay=t}}function Pie(e,t){return function(){bie(this,e).duration=+t.apply(this,arguments)}}function Lie(e,t){return t=+t,function(){bie(this,e).duration=t}}var Fie=Foe.prototype.constructor;function zie(e){return function(){this.style.removeProperty(e)}}var jie=0;function Bie(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Vie(){return++jie}var Wie=Foe.prototype;function Hie(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}Bie.prototype={constructor:Bie,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Dre(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var l,s,c=r[a],u=c.length,d=i[a]=new Array(u),f=0;f<u;++f)(l=c[f])&&(s=e.call(l,l.__data__,f,c))&&("__data__"in l&&(s.__data__=l.__data__),d[f]=s,mie(d[f],t,n,f,d,yie(l,n)));return new Bie(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Pre(e));for(var r=this._groups,o=r.length,i=[],a=[],l=0;l<o;++l)for(var s,c=r[l],u=c.length,d=0;d<u;++d)if(s=c[d]){for(var f,p=e.call(s,s.__data__,d,c),h=yie(s,n),g=0,m=p.length;g<m;++g)(f=p[g])&&mie(f,t,n,g,p,h);i.push(p),a.push(s)}return new Bie(i,a,t,n)},selectChild:Wie.selectChild,selectChildren:Wie.selectChildren,filter:function(e){"function"!=typeof e&&(e=Fre(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],l=a.length,s=r[o]=[],c=0;c<l;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&s.push(i);return new Bie(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),l=0;l<i;++l)for(var s,c=t[l],u=n[l],d=c.length,f=a[l]=new Array(d),p=0;p<d;++p)(s=c[p]||u[p])&&(f[p]=s);for(;l<r;++l)a[l]=t[l];return new Bie(a,this._parents,this._name,this._id)},selection:function(){return new Fie(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Vie(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,l=r[i],s=l.length,c=0;c<s;++c)if(a=l[c]){var u=yie(a,t);mie(a,e,n,c,l,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Bie(r,this._parents,e,n)},call:Wie.call,nodes:Wie.nodes,node:Wie.node,size:Wie.size,empty:Wie.empty,each:Wie.each,on:function(e,t){var n=this._id;return arguments.length<2?yie(this.node(),n).on.on(e):this.each(function(e,t,n){var r,o,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?vie:bie;return function(){var a=i(this,e),l=a.on;l!==r&&(o=(r=l).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=Ore(e),r="transform"===n?Iee:Tie;return this.attrTween(e,"function"==typeof t?(n.local?Mie:Aie)(n,r,Eie(this,"attr."+e,t)):null==t?(n.local?Sie:kie)(n):(n.local?Oie:Nie)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Ore(e);return this.tween(n,(r.local?Iie:Rie)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Mee:Tie;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=aoe(this,e),a=(this.style.removeProperty(e),aoe(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,zie(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=aoe(this,e),l=n(this),s=l+"";return null==l&&(this.style.removeProperty(e),s=l=aoe(this,e)),a===s?null:a===r&&s===o?i:(o=s,i=t(r=a,l))}}(e,r,Eie(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,l="end."+a;return function(){var s=bie(this,e),c=s.on,u=null==s.value[a]?i||(i=zie(t)):void 0;c===n&&o===u||(r=(n=c).copy()).on(l,o=u),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=aoe(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Eie(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=yie(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===e)return r.value;return null}return this.each((null==t?wie:Cie)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Die:_ie)(t,e)):yie(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Pie:Lie)(t,e)):yie(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){bie(this,e).ease=t}}(t,e)):yie(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;bie(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(i,a){var l={value:a},s={value:function(){0==--o&&i()}};n.each((function(){var n=bie(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),n.on=t})),0===o&&i()}))},[Symbol.iterator]:Wie[Symbol.iterator]};var qie={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Uie(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}Foe.prototype.interrupt=function(e){return this.each((function(){xie(this,e)}))},Foe.prototype.transition=function(e){var t,n;e instanceof Bie?(t=e._id,e=e._name):(t=Vie(),(n=qie).time=$oe(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,l=r[i],s=l.length,c=0;c<s;++c)(a=l[c])&&mie(a,e,t,c,l,n||Uie(a,t));return new Bie(r,this._parents,e,t)};var Kie=e=>()=>e;function Yie(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Gie(e,t,n){this.k=e,this.x=t,this.y=n}Gie.prototype={constructor:Gie,scale:function(e){return 1===e?this:new Gie(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Gie(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zie,Jie,Xie,Qie,$ie,eae=new Gie(1,0,0);function tae(e){e.stopImmediatePropagation()}function nae(e){e.preventDefault(),e.stopImmediatePropagation()}function rae(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function oae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function iae(){return this.__zoom||eae}function aae(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lae(){return navigator.maxTouchPoints||"ontouchstart"in this}function sae(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function cae(){var e,t,n,r=rae,o=oae,i=sae,a=aae,l=lae,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=Dee,f=Cre("start","zoom","end"),p=500,h=150,g=0,m=10;function v(e){e.property("__zoom",iae).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(l).on("touchstart.zoom",N).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new Gie(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Gie(e.k,r,o)}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){C(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=C(e,i).event(r),l=o.apply(e,i),s=null==n?x(l):"function"==typeof n?n.apply(e,i):n,c=Math.max(l[1][0]-l[0][0],l[1][1]-l[0][1]),u=e.__zoom,f="function"==typeof t?t.apply(e,i):t,p=d(u.invert(s).concat(c/u.k),f.invert(s).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new Gie(n,s[0]-t[0]*n,s[1]-t[1]*n)}a.zoom(null,e)}}))}function C(e,t,n){return!n&&e.__zooming||new E(e,t)}function E(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function T(e,...t){if(r.apply(this,arguments)){var n=C(this,t).event(e),o=this.__zoom,l=Math.max(s[0],Math.min(s[1],o.k*Math.pow(2,a.apply(this,arguments)))),u=joe(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=o.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(o.k===l)return;n.mouse=[u,o.invert(u)],xie(this),n.start()}nae(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),h),n.zoom("mouse",i(y(b(o,l),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=C(this,t,!0).event(e),l=zoe(e.view).on("mousemove.zoom",(function(e){if(nae(e),!a.moved){var t=e.clientX-u,n=e.clientY-d;a.moved=t*t+n*n>g}a.event(e).zoom("mouse",i(y(a.that.__zoom,a.mouse[0]=joe(e,o),a.mouse[1]),a.extent,c))}),!0).on("mouseup.zoom",(function(e){l.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,r=zoe(e).on("dragstart.drag",null);t&&(r.on("click.drag",Voe,Boe),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,a.moved),nae(e),a.event(e).end()}),!0),s=joe(e,o),u=e.clientX,d=e.clientY;!function(e){var t=e.document.documentElement,n=zoe(e).on("dragstart.drag",Voe,Boe);"onselectstart"in t?n.on("selectstart.drag",Voe,Boe):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),tae(e),a.mouse=[s,this.__zoom.invert(s)],xie(this),a.start()}}function S(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=joe(e.changedTouches?e.changedTouches[0]:e,this),l=n.invert(a),s=n.k*(e.shiftKey?.5:2),d=i(y(b(n,s),a,l),o.apply(this,t),c);nae(e),u>0?zoe(this).transition().duration(u).call(w,d,a,e):zoe(this).call(v.transform,d,a,e)}}function N(n,...o){if(r.apply(this,arguments)){var i,a,l,s,c=n.touches,u=c.length,d=C(this,o,n.changedTouches.length===u).event(n);for(tae(n),a=0;a<u;++a)s=[s=joe(l=c[a],this),this.__zoom.invert(s),l.identifier],d.touch0?d.touch1||d.touch0[2]===s[2]||(d.touch1=s,d.taps=0):(d.touch0=s,i=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),i&&(d.taps<2&&(t=s[0],e=setTimeout((function(){e=null}),p)),xie(this),d.start())}}function O(e,...t){if(this.__zooming){var n,r,o,a,l=C(this,t).event(e),s=e.changedTouches,u=s.length;for(nae(e),n=0;n<u;++n)o=joe(r=s[n],this),l.touch0&&l.touch0[2]===r.identifier?l.touch0[0]=o:l.touch1&&l.touch1[2]===r.identifier&&(l.touch1[0]=o);if(r=l.that.__zoom,l.touch1){var d=l.touch0[0],f=l.touch0[1],p=l.touch1[0],h=l.touch1[1],g=(g=p[0]-d[0])*g+(g=p[1]-d[1])*g,m=(m=h[0]-f[0])*m+(m=h[1]-f[1])*m;r=b(r,Math.sqrt(g/m)),o=[(d[0]+p[0])/2,(d[1]+p[1])/2],a=[(f[0]+h[0])/2,(f[1]+h[1])/2]}else{if(!l.touch0)return;o=l.touch0[0],a=l.touch0[1]}l.zoom("touch",i(y(r,o,a),l.extent,c))}}function A(e,...r){if(this.__zooming){var o,i,a=C(this,r).event(e),l=e.changedTouches,s=l.length;for(tae(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<s;++o)i=l[o],a.touch0&&a.touch0[2]===i.identifier?delete a.touch0:a.touch1&&a.touch1[2]===i.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(i=joe(i,this),Math.hypot(t[0]-i[0],t[1]-i[1])<m)){var c=zoe(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",iae),e!==o?w(e,t,n,r):o.interrupt().each((function(){C(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?x(e):"function"==typeof n?n.apply(this,arguments):n,l=r.invert(a),s="function"==typeof t?t.apply(this,arguments):t;return i(y(b(r,s),a,l),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=o.apply(this,arguments),a=this.__zoom,l=null==r?x(e):"function"==typeof r?r.apply(this,arguments):r;return i(eae.translate(l[0],l[1]).scale(a.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),r,a)},E.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=zoe(this.that).datum();f.call(e,this.that,new Yie(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:f}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"==typeof e?e:Kie(+e),v):a},v.filter=function(e){return arguments.length?(r="function"==typeof e?e:Kie(!!e),v):r},v.touchable=function(e){return arguments.length?(l="function"==typeof e?e:Kie(!!e),v):l},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:Kie([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],v):[s[0],s[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(i=e,v):i},v.duration=function(e){return arguments.length?(u=+e,v):u},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=f.on.apply(f,arguments);return e===f?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}Gie.prototype;var uae,dae=o.svg.withConfig({displayName:"Timelinestyles__TimelineContainer",componentId:"sc-zxjw6a-0"})(["width:100%;height:auto;text{fill:",";}"],ky.white.base),fae=o.rect.withConfig({displayName:"Timelinestyles__TimelineInnerBorder",componentId:"sc-zxjw6a-1"})(["stroke:",";stroke-width:1px;",""],ky.slateBlue.base,(function(e){return e.$grabbable&&i(Zie||(Zie=lD(["\n cursor: grab;\n "])))})),pae=o.line.withConfig({displayName:"Timelinestyles__HorizontalTick",componentId:"sc-zxjw6a-2"})(["stroke:",";stroke-width:1px;fill:none;"],ky.slateBlue.base),hae=o.line.withConfig({displayName:"Timelinestyles__TickLine",componentId:"sc-zxjw6a-3"})(["stroke:",";"],ky.white.base),gae=o.text.withConfig({displayName:"Timelinestyles__TickText",componentId:"sc-zxjw6a-4"})(["font-size:0.75em;"]),mae=o.g.withConfig({displayName:"Timelinestyles__TimelineItemContainer",componentId:"sc-zxjw6a-5"})(["svg{cursor:pointer;}",""],(function(e){var t=e.$active;return i(void 0===t?Jie||(Jie=lD(["\n opacity: 1;\n "])):!0===t?Xie||(Xie=lD(["\n opacity: 1;\n "])):Qie||(Qie=lD(["\n opacity: 0.3;\n :hover {\n opacity: 0.7;\n }\n "])))})),vae=o.line.withConfig({displayName:"Timelinestyles__TimelineItemLine",componentId:"sc-zxjw6a-6"})(["stroke:",";stroke-width:1.5px;stroke-dasharray:4;fill:none;",""],ky.secondary.sinbad,(function(e){return!0===e.$active&&i($ie||($ie=lD(["\n stroke-width: 2px;\n stroke: ",";\n "])),ky.secondary.java)})),bae=o.circle.withConfig({displayName:"Timelinestyles__TimelineClusterIconCircle",componentId:"sc-zxjw6a-7"})(["fill:",";"],(function(e){return e.color})),yae={position:"absolute",padding:"8px 8px",background:"#121212",color:"#ffffff",border:"1px solid #808080",borderRadius:"8px",fontWeight:"400",fontSize:"1em"},xae=o.div.withConfig({displayName:"Timelinestyles__ClusteredTimelineItemTooltipContainer",componentId:"sc-zxjw6a-8"})(["display:grid;grid-template-columns:1fr;justify-items:start;align-content:center;> span{display:grid;grid-template-columns:1fr 1fr;column-gap:0.4em;align-items:center;}"]),wae=function(e,t,n){for(var r=!0,o=function(){var o=[];r=!1,e.forEach((function(i){var a=function(e,t,n,r){return e.find((function(e){var o=null==n?void 0:n(e.date),i=null==n?void 0:n(t.date),a=Math.abs(o-i);return e.id!==t.id&&a<=r}))}(e,i,t,n);void 0===a||r?o.some((function(e){var t,n;return null===(n=null===(t=null==e?void 0:e.clusteredItems)||void 0===t?void 0:t.some)||void 0===n?void 0:n.call(t,(function(e){return e.id===i.id}))}))||o.push(i):(r=!0,o.push(function(e,t){var n;return{id:"".concat(e.id,"-").concat(t.id),icon:e.icon,type:e.type,date:pV(null!==(n=[e.date,t.date].sort(mV)[0])&&void 0!==n?n:e.date,Math.abs(e.date.valueOf()-t.date.valueOf())/2),clusteredItems:[].concat(sx(void 0===e.clusteredItems?[e]:e.clusteredItems),sx(void 0===t.clusteredItems?[t]:t.clusteredItems)),original:[].concat(sx(Array.isArray(e.original)?e.original:[e.original]),sx(Array.isArray(t.original)?t.original:[t.original]))}}(i,a)))})),e=o};r;)o();return e},Cae=function(e){return function(t){return e.name===AW.name?1===CW(t)&&0===NW(t):e.name===w$.name?AW(t)%10==0:e.name===CW.name?1===CW(t):0===e(t)}},Eae=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return 0===r||1===r?n(e,t):n(e,t)*Math.abs(r)},Tae=function(e,t){var n;if(0!==e.length){var r="first"===t?IW:MW;return null!==(n=e.reduce((function(e,t){return!e||r(t.date,e)?t.date:e}),null))&&void 0!==n?n:void 0}},kae=100,Sae=1440,Nae={top:0,right:16,bottom:24,left:32},Oae={errorStateButtonWidth:80,errorStateDescriptionWidth:200,errorStateLeftMargin:15},Aae=s(uae||(uae=lD(["\n 0% {\n opacity: 1;\n }\n 85% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n"]))),Mae=o.div.withConfig({displayName:"TimelineRowLoadingStatesstyles__TimelineErrorDescriptionContainer",componentId:"sc-1kvj1en-0"})(["transition:all 0.2s;background:",";border-radius:4px;padding:2px 2px 2px 12px;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.custom.colors.semantic.interactive.danger})),Iae=o.div.withConfig({displayName:"TimelineRowLoadingStatesstyles__TimelineErrorDescription",componentId:"sc-1kvj1en-1"})(["background:",";height:","px;padding:0 8px;"],(function(e){return e.theme.custom.colors.bigStone.base}),(function(e){return e.$height-4})),Rae=o.g.withConfig({displayName:"TimelineRowLoadingStatesstyles__TimelineErrorRetryButton",componentId:"sc-1kvj1en-2"})(["transition:all 0.2s;rect{fill:",";cursor:pointer;}text{cursor:pointer;}"],(function(e){return e.theme.custom.colors.semantic.interactive.danger})),Dae=o(Uq).withConfig({displayName:"TimelineRowLoadingStatesstyles__ErrorIcon",componentId:"sc-1kvj1en-3"})(["fill:",";"],(function(e){return e.theme.custom.colors.semantic.interactive.danger})),_ae=o(Wq).withConfig({displayName:"TimelineRowLoadingStatesstyles__DoneIcon",componentId:"sc-1kvj1en-4"})(["fill:",";animation:"," 4s linear;animation-fill-mode:forwards;"],(function(e){return e.theme.custom.colors.secondary.sinbad}),Aae),Pae=o.line.withConfig({displayName:"TimelineRowLoadingStatesstyles__DoneLine",componentId:"sc-1kvj1en-5"})(["stroke:",";stroke-width:2px;animation:"," 4s linear;animation-fill-mode:forwards;"],(function(e){return e.theme.custom.colors.secondary.sinbad}),Aae),Lae={margins:Nae,width:Sae,height:kae,customBrushIconRadius:6,innerWidth:Sae-Nae.left-Nae.right,innerHeight:kae-Nae.top-Nae.bottom,iconHeight:24,tickOffset:5,timelineRowOptions:Oae,rowHeight:kae,xScale:yre({domain:[new Date,new Date],range:[0,Math.abs(Sae-Nae.left-Nae.right)],nice:!0}),yScale:vre({domain:sx(Array(1).keys()),range:[0,kae-Nae.top-Nae.bottom]})},Fae=x(Lae);Fae.displayName="TimelineOptionsContext";var zae=function(){return f(Fae)},jae=function(e){var n=e.timelineOptions,r=e.xScale,o=e.yScale,i=e.children,a=Object.assign(Object.assign(Object.assign({},Lae),n),{xScale:r,yScale:o});return t(Fae.Provider,{value:a,children:i})},Bae=function(e){var r,o=e.dataRow,i=void 0===o?[]:o,a=zae(),l=a.innerHeight,s=a.yScale,c=a.timelineRowOptions,u=c.errorStateButtonWidth,d=c.errorStateDescriptionWidth,f=c.errorStateLeftMargin,p=l-(null!==(r=s(i.length-1))&&void 0!==r?r:0)-1,h=p/2;return t("g",{name:"timeline-error",children:i.map((function(e,r){var o,i,a,l,c=(null!==(o=s(r))&&void 0!==o?o:1)+p/2-h/2;return"Error"!==e.loadingState?null:n("g",{"data-testid":"timeline-error-".concat(r),transform:"translate(".concat(f,", ").concat(c,")"),children:[t("g",{name:"errorDescription",children:t("foreignObject",{width:d,height:h,children:t(Mae,{children:t(Iae,{$height:h,children:null===(i=e.errorHandling)||void 0===i?void 0:i.errorDescription})})})}),n(Rae,{name:"retryButton","data-testid":"timeline-error-".concat(r,"-retryButton"),transform:"translate(".concat(d+5,", 0)"),onClick:null===(a=e.errorHandling)||void 0===a?void 0:a.onRetry,children:[t("rect",{rx:4,height:h,width:u}),t("text",{x:u/2,y:h/2+5,textAnchor:"middle",children:null===(l=e.errorHandling)||void 0===l?void 0:l.retryText})]})]},r)}))})},Vae=function(e){var r=e.dataRow,o=zae(),i=o.innerWidth,a=o.innerHeight,l=o.yScale,s=C((function(){var e;return a-(null!==(e=l(0))&&void 0!==e?e:0)-1}),[a,l]);return C((function(){return null==r?void 0:r.some((function(e){return e.loadingState}))}),[r])?n("g",{name:"timeline-loading-skeleton",children:[t("rect",{width:i,height:a,fill:"url(#timelineSkeletonGradient)",clipPath:"url(#timelineSkeletonClipPath)"}),n("defs",{children:[t("clipPath",{id:"timelineSkeletonClipPath",children:null==r?void 0:r.map((function(e,n){var r,o=(null!==(r=l(n))&&void 0!==r?r:0)+1;return"Loading"!==e.loadingState?null:t("rect",{"data-testid":"timeline-skeleton-".concat(n),y:o,width:i,height:s},n)}))}),n("linearGradient",{id:"timelineSkeletonGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[t("stop",{offset:"0%",style:{stopColor:ky.white.transparent[92],stopOpacity:0},children:t("animate",{attributeName:"offset",values:"-2; -2; 1",keyTimes:"0; 0.25; 1",dur:"1.5s",repeatCount:"indefinite"})}),t("stop",{offset:"50%",style:{stopColor:ky.white.transparent[92],stopOpacity:1},children:t("animate",{attributeName:"offset",values:"-1; -1; 2",keyTimes:"0; 0.25; 1",dur:"1.5s",repeatCount:"indefinite"})}),t("stop",{offset:"100%",style:{stopColor:ky.white.transparent[92],stopOpacity:0},children:t("animate",{attributeName:"offset",values:"0; 0; 3",keyTimes:"0; 0.25; 1",dur:"1.5s",repeatCount:"indefinite"})})]})]})]}):null},Wae=function(e){var o=e.bandStates;return n(r,{children:[t(Vae,{dataRow:o}),t(Bae,{dataRow:o})]})},Hae=function(e){return t("span",{children:"".concat(wW(e.date,"dd.MM.yyyy")," - ").concat(e.id)})},qae=function(e){var r,o=e.clusteredItems,i=void 0===o?[]:o,a=null!==(r=null==i?void 0:i.reduce((function(e,t){var n=e.findIndex((function(e){return e.timelineItem.type===t.type}));return n<0?e.push({timelineItem:t,total:1}):e[n].total=e[n].total+1,e}),[]))&&void 0!==r?r:[];return t(xae,{children:a.map((function(e){var t=e.timelineItem,r=e.total;return n("span",{children:[t.icon.icon,r]},t.type)}))})},Uae=function(e){var n,o,i,a,l,s,c=e.timelineItem,u=c.clusteredItems,d=void 0===u?[]:u,f=c.renderTooltip,p=null===(n=d.find((function(e){return void 0!==e.date})))||void 0===n?void 0:n.date,h=void 0!==p&&d.every((function(e){return e.date.getTime()===p.getTime()}));return d.length>0?t(r,h?{children:null!==(l=null!==(o=null==f?void 0:f(c))&&void 0!==o?o:null===(a=null===(i=d.find((function(e){return void 0!==e.renderTooltip})))||void 0===i?void 0:i.renderTooltip)||void 0===a?void 0:a.call(i,c))&&void 0!==l?l:Hae(c)}:{children:qae(c)}):t(r,{children:null!==(s=null==f?void 0:f(c))&&void 0!==s?s:Hae(c)})},Kae={exports:{}};
|
|
245
|
+
*/e.exports&&(e.exports=t),void 0!==U&&(U.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",(function(e){e.selector+=", "+i})),t.hooks.add("before-sanity-check",(function(a){var l=a.element;if(l.matches(i)){a.code="",l.setAttribute(n,r);var s=l.appendChild(document.createElement("CODE"));s.textContent="Loading…";var c=l.getAttribute("data-src"),u=a.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=e[d]||d}t.util.setLanguage(s,u),t.util.setLanguage(l,u);var f=t.plugins.autoloader;f&&f.loadLanguages(u),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(e){l.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(l.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],c=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),c<0&&(c+=i.length),c=Math.max(0,Math.min(c,i.length)),e=i.slice(a,c).join("\n"),l.hasAttribute("data-start")||l.setAttribute("data-start",String(a+1))}s.textContent=e,t.highlightElement(s)}),(function(e){l.setAttribute(n,"failed"),s.textContent=e}))}})),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(aQ)),aQ.exports}var sQ,cQ={};function uQ(){return sQ||(sQ=1,Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}),cQ}var dQ,fQ={};function pQ(){return dQ||(dQ=1,Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript),fQ}var hQ,gQ={};function mQ(){return hQ||(hQ=1,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml),gQ}var vQ,bQ={};function yQ(){return vQ||(vQ=1,function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var l=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n);var r=l[t];return r||e})),t}(t.content),u,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)),bQ}var xQ,wQ={};function CQ(){return xQ||(xQ=1,Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean),wQ}var EQ,TQ={};function kQ(){return EQ||(EQ=1,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)),TQ}var SQ,NQ={};function OQ(){return SQ||(SQ=1,Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec),NQ}var AQ,MQ={};function IQ(){return AQ||(AQ=1,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}),MQ}var RQ,DQ={};function _Q(){return RQ||(RQ=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python),DQ}var PQ,LQ={};function FQ(){return PQ||(PQ=1,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)),LQ}var zQ,jQ={};function BQ(){return zQ||(zQ=1,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift}))),jQ}var VQ,WQ={};function HQ(){return VQ||(VQ=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),WQ}var qQ,UQ={};function KQ(){return qQ||(qQ=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)),UQ}var YQ,GQ,ZQ={};function JQ(){return YQ||(YQ=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)),ZQ}function XQ(){if(GQ)return iQ;GQ=1;var e=lQ();uQ(),pQ(),mQ(),yQ(),CQ(),kQ(),OQ(),IQ(),_Q(),FQ(),BQ(),HQ(),KQ(),JQ();var t=MU,n=xU;const r=t=>null!=t&&e.languages.hasOwnProperty(t)?t:void 0;function o(e,n){for(const r of e.childNodes){if(t.isHTMLElement(r)&&r.tagName===n)return!0;o(r,n)}return!1}const i="data-highlight-language";class a extends n.ElementNode{static getType(){return"code"}static clone(e){return new a(e.__language,e.__key)}constructor(e,t){super(t),this.__language=r(e)}createDOM(e){const n=document.createElement("code");t.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false");const r=this.getLanguage();return r&&n.setAttribute(i,r),n}updateDOM(e,t,n){const r=this.__language,o=e.__language;return r?r!==o&&t.setAttribute(i,r):o&&t.removeAttribute(i),!1}exportDOM(){const e=document.createElement("pre");e.setAttribute("spellcheck","false");const t=this.getLanguage();return t&&e.setAttribute(i,t),{element:e}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||o(e,"BR"))?{conversion:c,priority:1}:null,div:e=>({conversion:u,priority:1}),pre:e=>({conversion:c,priority:0}),table:e=>g(e)?{conversion:d,priority:3}:null,td:e=>{const t=e,n=t.closest("table");return t.classList.contains("js-file-line")?{conversion:p,priority:3}:n&&g(n)?{conversion:f,priority:3}:null},tr:e=>{const t=e.closest("table");return t&&g(t)?{conversion:f,priority:3}:null}}}static importJSON(e){const t=l(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){const r=this.getChildren(),o=r.length;if(o>=2&&"\n"===r[o-1].getTextContent()&&"\n"===r[o-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===o){r[o-1].remove(),r[o-2].remove();const e=n.$createParagraphNode();return this.insertAfter(e,t),e}const i=e.anchor,a=e.focus,l=(i.isBefore(a)?i:a).getNode();if(E(l)||n.$isTabNode(l)){let t=T(l);const r=[];for(;;)if(n.$isTabNode(t))r.push(n.$createTabNode()),t=t.getNextSibling();else{if(!E(t))break;{let e=0;const n=t.getTextContent(),o=t.getTextContentSize();for(;e<o&&" "===n[e];e++);if(0!==e&&r.push(C(" ".repeat(e))),e!==o)break;t=t.getNextSibling()}}if(r.length>0)return e.insertNodes([n.$createLineBreakNode(),...r]),r[r.length-1]}return null}canIndent(){return!1}collapseAtStart(){const e=n.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){this.getWritable().__language=r(e)}getLanguage(){return this.getLatest().__language}}function l(e){return n.$applyNodeReplacement(new a(e))}function s(e){return e instanceof a}function c(e){let n;return t.isHTMLElement(e)&&(n=e.getAttribute(i)),{node:l(n)}}function u(e){const t=e,r=h(t);return r||function(e){let t=e.parentElement;for(;null!==t;){if(h(t))return!0;t=t.parentElement}return!1}(t)?{after:t=>{const r=e.parentNode;return null!=r&&e!==r.lastChild&&t.push(n.$createLineBreakNode()),t},node:r?l():null}:{node:null}}function d(){return{node:l()}}function f(){return{node:null}}function p(e){const t=e;return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(n.$createLineBreakNode()),e),node:null}}function h(e){return null!==e.style.fontFamily.match("monospace")}function g(e){return e.classList.contains("js-file-line-container")}const m="javascript",v={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},b={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function y(e){return b[e]||e}class x extends n.TextNode{constructor(e,t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new x(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){const n=super.createDOM(e),r=w(e.theme,this.__highlightType);return t.addClassNamesToElement(n,r),n}updateDOM(e,n,r){const o=super.updateDOM(e,n,r),i=w(r.theme,e.__highlightType),a=w(r.theme,this.__highlightType);return i!==a&&(i&&t.removeClassNamesFromElement(n,i),a&&t.addClassNamesToElement(n,a)),o}static importJSON(e){const t=C(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return l()}}function w(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function C(e,t){return n.$applyNodeReplacement(new x(e,t))}function E(e){return e instanceof x}function T(e){let t=e,r=e;for(;E(r)||n.$isTabNode(r);)t=r,r=r.getPreviousSibling();return t}function k(e){let t=e,r=e;for(;E(r)||n.$isTabNode(r);)t=r,r=r.getNextSibling();return t}const S={defaultLanguage:m,tokenize(t,n){return e.tokenize(t,e.languages[n||""]||e.languages[this.defaultLanguage])}};function N(e,t){let r=null,o=null,i=e,a=t,l=e.getTextContent();for(;;){if(0===a){if(i=i.getPreviousSibling(),null===i)break;if(!(E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected a valid Code Node: CodeHighlightNode, TabNode, LineBreakNode");if(n.$isLineBreakNode(i)){r={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),l=i.getTextContent()}else a--;const e=l[a];E(i)&&" "!==e&&(o={node:i,offset:a})}if(null!==o)return o;let s=null;if(t<e.getTextContentSize())E(e)&&(s=e.getTextContent()[t]);else{const t=e.getNextSibling();E(t)&&(s=t.getTextContent()[0])}if(null!==s&&" "!==s)return r;{const o=function(e,t){let r=e,o=t,i=e.getTextContent(),a=e.getTextContentSize();for(;;){if(!E(r)||o===a){if(r=r.getNextSibling(),null===r||n.$isLineBreakNode(r))return null;E(r)&&(o=0,i=r.getTextContent(),a=r.getTextContentSize())}if(E(r)){if(" "!==i[o])return{node:r,offset:o};o++}}}(e,t);return null!==o?o:r}}function O(e){const t=k(e);if(n.$isLineBreakNode(t))throw Error("Unexpected lineBreakNode in getEndOfCodeInLine");return t}function A(e,t,r){const o=e.getParent();s(o)?R(o,t,r):E(e)&&e.replace(n.$createTextNode(e.__text))}function M(e,t){const r=t.getElementByKey(e.getKey());if(null===r)return;const o=e.getChildren(),i=o.length;if(i===r.__cachedChildrenLength)return;r.__cachedChildrenLength=i;let a="1",l=1;for(let e=0;e<i;e++)n.$isLineBreakNode(o[e])&&(a+="\n"+ ++l);r.setAttribute("data-gutter",a)}const I=new Set;function R(e,t,r){const o=e.getKey();I.has(o)||(I.add(o),void 0===e.getLanguage()&&e.setLanguage(r.defaultLanguage),t.update((()=>{!function(e,t){const r=n.$getNodeByKey(e);if(!s(r)||!r.isAttached())return;const o=n.$getSelection();if(!n.$isRangeSelection(o))return void t();const i=o.anchor,a=i.offset,l="element"===i.type&&n.$isLineBreakNode(r.getChildAtIndex(i.offset-1));let c=0;if(!l){const e=i.getNode();c=a+e.getPreviousSiblings().reduce(((e,t)=>e+t.getTextContentSize()),0)}if(!t())return;if(l)return void i.getNode().select(a,a);r.getChildren().some((e=>{const t=n.$isTextNode(e);if(t||n.$isLineBreakNode(e)){const n=e.getTextContentSize();if(t&&n>=c)return e.select(c,c),!0;c-=n}return!1}))}(o,(()=>{const t=n.$getNodeByKey(o);if(!s(t)||!t.isAttached())return!1;const i=t.getTextContent(),a=D(r.tokenize(i,t.getLanguage()||r.defaultLanguage)),l=function(e,t){let n=0;for(;n<e.length&&_(e[n],t[n]);)n++;const r=e.length,o=t.length,i=Math.min(r,o)-n;let a=0;for(;a<i;)if(a++,!_(e[r-a],t[o-a])){a--;break}const l=n,s=r-a,c=t.slice(n,o-a);return{from:l,nodesForReplacement:c,to:s}}(t.getChildren(),a),{from:c,to:u,nodesForReplacement:d}=l;return!(c===u&&!d.length)&&(e.splice(c,u-c,d),!0)}))}),{onUpdate:()=>{I.delete(o)},skipTransforms:!0}))}function D(e,t){const r=[];for(const o of e)if("string"==typeof o){const e=o.split(/(\n|\t)/),i=e.length;for(let o=0;o<i;o++){const i=e[o];"\n"===i||"\r\n"===i?r.push(n.$createLineBreakNode()):"\t"===i?r.push(n.$createTabNode()):i.length>0&&r.push(C(i,t))}}else{const{content:e}=o;"string"==typeof e?r.push(...D([e],o.type)):Array.isArray(e)&&r.push(...D(e,o.type))}return r}function _(e,t){return E(e)&&E(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||n.$isTabNode(e)&&n.$isTabNode(t)||n.$isLineBreakNode(e)&&n.$isLineBreakNode(t)}function P(e){if(!n.$isRangeSelection(e))return!1;const t=e.anchor.getNode(),r=e.focus.getNode();if(t.is(r)&&s(t))return!0;const o=t.getParent();return s(o)&&o.is(r.getParent())}function L(e){const t=e.getNodes(),r=[[]];if(1===t.length&&s(t[0]))return r;let o=r[0];for(let e=0;e<t.length;e++){const i=t[e];if(!(E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection to be inside CodeBlock and consisting of CodeHighlightNode, TabNode and LineBreakNode");n.$isLineBreakNode(i)?0!==e&&o.length>0&&(o=[],r.push(o)):o.push(i)}return r}function F(e){const t=n.$getSelection();if(!n.$isRangeSelection(t)||!P(t))return!1;const r=L(t),o=r.length;if(r.length>1){for(let t=0;t<o;t++){const o=r[t];if(o.length>0){let r=o[0];0===t&&(r=T(r)),null!==r&&(e===n.INDENT_CONTENT_COMMAND?r.insertBefore(n.$createTabNode()):n.$isTabNode(r)&&r.remove())}}return!0}const i=t.getNodes()[0];if(!(s(i)||E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection firstNode to be CodeHighlightNode or CodeTabNode");if(s(i))return e===n.INDENT_CONTENT_COMMAND&&t.insertNodes([n.$createTabNode()]),!0;const a=T(i);if(null===a)throw Error("Expected getFirstCodeNodeOfLine to return a valid Code Node");return e===n.INDENT_CONTENT_COMMAND?n.$isLineBreakNode(a)?a.insertAfter(n.$createTabNode()):a.insertBefore(n.$createTabNode()):n.$isTabNode(a)&&a.remove(),!0}function z(e,t){const r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;const{anchor:o,focus:i}=r,a=o.offset,l=i.offset,s=o.getNode(),c=i.getNode(),u=e===n.KEY_ARROW_UP_COMMAND;if(!P(r)||!E(s)&&!n.$isTabNode(s)||!E(c)&&!n.$isTabNode(c))return!1;if(!t.altKey){if(r.isCollapsed()){const e=s.getParentOrThrow();if(u&&0===a&&null===s.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!u&&a===s.getTextContentSize()&&null===s.getNextSibling()){if(null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0}}return!1}let d,f;if(s.isBefore(c)?(d=T(s),f=k(c)):(d=T(c),f=k(s)),null==d||null==f)return!1;const p=d.getNodesBetween(f);for(let e=0;e<p.length;e++){const t=p[e];if(!E(t)&&!n.$isTabNode(t)&&!n.$isLineBreakNode(t))return!1}t.preventDefault(),t.stopPropagation();const h=u?d.getPreviousSibling():f.getNextSibling();if(!n.$isLineBreakNode(h))return!0;const g=u?h.getPreviousSibling():h.getNextSibling();if(null==g)return!0;const m=E(g)||n.$isTabNode(g)||n.$isLineBreakNode(g)?u?T(g):k(g):null;let v=null!=m?m:g;return h.remove(),p.forEach((e=>e.remove())),e===n.KEY_ARROW_UP_COMMAND?(p.forEach((e=>v.insertBefore(e))),v.insertBefore(h)):(v.insertAfter(h),v=h,p.forEach((e=>{v.insertAfter(e),v=e}))),r.setTextNodeRange(s,a,c,l),!0}function j(e,t){const r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;const{anchor:o,focus:i}=r,a=o.getNode(),l=i.getNode(),s=e===n.MOVE_TO_START;if(!E(a)&&!n.$isTabNode(a)||!E(l)&&!n.$isTabNode(l))return!1;if(s){const e=N(l,i.offset);if(null!==e){const{node:t,offset:o}=e;n.$isLineBreakNode(t)?t.selectNext(0,0):r.setTextNodeRange(t,o,t,o)}else l.getParentOrThrow().selectStart()}else{O(l).select()}return t.preventDefault(),t.stopPropagation(),!0}return iQ.$createCodeHighlightNode=C,iQ.$createCodeNode=l,iQ.$isCodeHighlightNode=E,iQ.$isCodeNode=s,iQ.CODE_LANGUAGE_FRIENDLY_NAME_MAP=v,iQ.CODE_LANGUAGE_MAP=b,iQ.CodeHighlightNode=x,iQ.CodeNode=a,iQ.DEFAULT_CODE_LANGUAGE=m,iQ.PrismTokenizer=S,iQ.getCodeLanguages=()=>Object.keys(e.languages).filter((t=>"function"!=typeof e.languages[t])).sort(),iQ.getDefaultCodeLanguage=()=>m,iQ.getEndOfCodeInLine=O,iQ.getFirstCodeNodeOfLine=T,iQ.getLanguageFriendlyName=function(e){const t=y(e);return v[t]||t},iQ.getLastCodeNodeOfLine=k,iQ.getStartOfCodeInLine=N,iQ.normalizeCodeLang=y,iQ.registerCodeHighlighting=function(e,r){if(!e.hasNodes([a,x]))throw new Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return null==r&&(r=S),t.mergeRegister(e.registerMutationListener(a,(t=>{e.update((()=>{for(const[r,o]of t)if("destroyed"!==o){const t=n.$getNodeByKey(r);null!==t&&M(t,e)}}))})),e.registerNodeTransform(a,(t=>R(t,e,r))),e.registerNodeTransform(n.TextNode,(t=>A(t,e,r))),e.registerNodeTransform(x,(t=>A(t,e,r))),e.registerCommand(n.KEY_TAB_COMMAND,(t=>{const r=function(e){const t=n.$getSelection();if(!n.$isRangeSelection(t)||!P(t))return null;const r=e?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND,o=e?n.OUTDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND;if(L(t).length>1)return r;const i=t.getNodes()[0];if(!(s(i)||E(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection firstNode to be CodeHighlightNode or TabNode");if(s(i))return r;const a=T(i),l=k(i),c=t.anchor,u=t.focus;let d,f;return u.isBefore(c)?(d=u,f=c):(d=c,f=u),null!==a&&null!==l&&d.key===a.getKey()&&0===d.offset&&f.key===l.getKey()&&f.offset===l.getTextContentSize()?r:o}(t.shiftKey);return null!==r&&(t.preventDefault(),e.dispatchCommand(r,void 0),!0)}),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INSERT_TAB_COMMAND,(()=>!!P(n.$getSelection())&&(n.$insertNodes([n.$createTabNode()]),!0)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INDENT_CONTENT_COMMAND,(e=>F(n.INDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.OUTDENT_CONTENT_COMMAND,(e=>F(n.OUTDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_UP_COMMAND,(e=>z(n.KEY_ARROW_UP_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_DOWN_COMMAND,(e=>z(n.KEY_ARROW_DOWN_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_END,(e=>j(n.MOVE_TO_END,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_START,(e=>j(n.MOVE_TO_START,e)),n.COMMAND_PRIORITY_LOW))},iQ}var QQ,$Q,e$,t$,n$={};function r$(){if(QQ)return n$;QQ=1;var e=lQ();uQ(),pQ(),mQ(),yQ(),CQ(),kQ(),OQ(),IQ(),_Q(),FQ(),BQ(),HQ(),KQ(),JQ();var t=MU,n=xU;let r=t=>null!=t&&e.languages.hasOwnProperty(t)?t:void 0;function o(e,n){for(let r of e.childNodes){if(t.isHTMLElement(r)&&r.tagName===n)return!0;o(r,n)}return!1}class i extends n.ElementNode{static getType(){return"code"}static clone(e){return new i(e.__language,e.__key)}constructor(e,t){super(t),this.__language=r(e)}createDOM(e){let n=document.createElement("code");return t.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,t){let n=this.__language;return e=e.__language,n?n!==e&&t.setAttribute("data-highlight-language",n):e&&t.removeAttribute("data-highlight-language"),!1}exportDOM(){let e=document.createElement("pre");e.setAttribute("spellcheck","false");let t=this.getLanguage();return t&&e.setAttribute("data-highlight-language",t),{element:e}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||o(e,"BR"))?{conversion:s,priority:1}:null,div:()=>({conversion:c,priority:1}),pre:()=>({conversion:s,priority:0}),table:e=>p(e)?{conversion:u,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")?{conversion:f,priority:3}:t&&p(t)?{conversion:d,priority:3}:null},tr:e=>(e=e.closest("table"))&&p(e)?{conversion:d,priority:3}:null}}static importJSON(e){let t=a(e.language);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,t=!0){var r=this.getChildren(),o=r.length;if(2<=o&&"\n"===r[o-1].getTextContent()&&"\n"===r[o-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===o)return r[o-1].remove(),r[o-2].remove(),e=n.$createParagraphNode(),this.insertAfter(e,t),e;if(t=e.anchor,r=e.focus,x(t=(t.isBefore(r)?t:r).getNode())||n.$isTabNode(t)){for(t=w(t),r=[];;)if(n.$isTabNode(t))r.push(n.$createTabNode()),t=t.getNextSibling();else{if(!x(t))break;{o=0;let e=t.getTextContent(),n=t.getTextContentSize();for(;o<n&&" "===e[o];o++);if(0!==o&&r.push(y(" ".repeat(o))),o!==n)break;t=t.getNextSibling()}}if(0<r.length)return e.insertNodes([n.$createLineBreakNode(),...r]),r[r.length-1]}return null}canIndent(){return!1}collapseAtStart(){let e=n.$createParagraphNode();return this.getChildren().forEach((t=>e.append(t))),this.replace(e),!0}setLanguage(e){this.getWritable().__language=r(e)}getLanguage(){return this.getLatest().__language}}function a(e){return n.$applyNodeReplacement(new i(e))}function l(e){return e instanceof i}function s(e){let n;return t.isHTMLElement(e)&&(n=e.getAttribute("data-highlight-language")),{node:a(n)}}function c(e){let t=null!==e.style.fontFamily.match("monospace");return t||function(e){for(e=e.parentElement;null!==e;){if(null!==e.style.fontFamily.match("monospace"))return!0;e=e.parentElement}return!1}(e)?{after:t=>{let r=e.parentNode;return null!=r&&e!==r.lastChild&&t.push(n.$createLineBreakNode()),t},node:t?a():null}:{node:null}}function u(){return{node:a()}}function d(){return{node:null}}function f(e){return{after:t=>(e.parentNode&&e.parentNode.nextSibling&&t.push(n.$createLineBreakNode()),t),node:null}}function p(e){return e.classList.contains("js-file-line-container")}let h={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},g={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function m(e){return g[e]||e}class v extends n.TextNode{constructor(e,t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new v(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=b(e.theme,this.__highlightType),t.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let o=super.updateDOM(e,n,r);return(e=b(r.theme,e.__highlightType))!==(r=b(r.theme,this.__highlightType))&&(e&&t.removeClassNamesFromElement(n,e),r&&t.addClassNamesToElement(n,r)),o}static importJSON(e){let t=y(e.text,e.highlightType);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return a()}}function b(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function y(e,t){return n.$applyNodeReplacement(new v(e,t))}function x(e){return e instanceof v}function w(e){let t=e;for(;x(e)||n.$isTabNode(e);)t=e,e=e.getPreviousSibling();return t}function C(e){let t=e;for(;x(e)||n.$isTabNode(e);)t=e,e=e.getNextSibling();return t}let E={defaultLanguage:"javascript",tokenize(t,n){return e.tokenize(t,e.languages[n||""]||e.languages[this.defaultLanguage])}};function T(e,t){let r=null;var o=null,i=e;let a=t,l=e.getTextContent();for(;;){if(0===a){if(null===(i=i.getPreviousSibling()))break;if(!(x(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected a valid Code Node: CodeHighlightNode, TabNode, LineBreakNode");if(n.$isLineBreakNode(i)){r={node:i,offset:1};break}a=Math.max(0,i.getTextContentSize()-1),l=i.getTextContent()}else a--;let e=l[a];x(i)&&" "!==e&&(o={node:i,offset:a})}if(null!==o)return o;if(o=null,t<e.getTextContentSize()?x(e)&&(o=e.getTextContent()[t]):x(i=e.getNextSibling())&&(o=i.getTextContent()[0]),null!==o&&" "!==o)return r;e:for(o=e,i=e.getTextContent(),e=e.getTextContentSize();;){if(!x(o)||t===e){if(null===(o=o.getNextSibling())||n.$isLineBreakNode(o)){e=null;break e}x(o)&&(t=0,i=o.getTextContent(),e=o.getTextContentSize())}if(x(o)){if(" "!==i[t]){e={node:o,offset:t};break e}t++}}return null!==e?e:r}function k(e){if(e=C(e),n.$isLineBreakNode(e))throw Error("Unexpected lineBreakNode in getEndOfCodeInLine");return e}function S(e,t,r){let o=e.getParent();l(o)?O(o,t,r):x(e)&&e.replace(n.$createTextNode(e.__text))}let N=new Set;function O(e,t,r){let o=e.getKey();N.has(o)||(N.add(o),void 0===e.getLanguage()&&e.setLanguage(r.defaultLanguage),t.update((()=>{!function(e,t){if(e=n.$getNodeByKey(e),l(e)&&e.isAttached()){var r=n.$getSelection();if(n.$isRangeSelection(r)){var o=(r=r.anchor).offset,i="element"===r.type&&n.$isLineBreakNode(e.getChildAtIndex(r.offset-1)),a=0;if(!i){let e=r.getNode();a=o+e.getPreviousSiblings().reduce(((e,t)=>e+t.getTextContentSize()),0)}t()&&(i?r.getNode().select(o,o):e.getChildren().some((e=>{let t=n.$isTextNode(e);if(t||n.$isLineBreakNode(e)){let n=e.getTextContentSize();if(t&&n>=a)return e.select(a,a),!0;a-=n}return!1})))}else t()}}(o,(()=>{var t=n.$getNodeByKey(o);if(!l(t)||!t.isAttached())return!1;var i=t.getTextContent();i=A(i=r.tokenize(i,t.getLanguage()||r.defaultLanguage));var a=t.getChildren();for(t=0;t<a.length&&M(a[t],i[t]);)t++;var s=a.length;let c=i.length,u=Math.min(s,c)-t,d=0;for(;d<u;)if(d++,!M(a[s-d],i[c-d])){d--;break}a=t,s-=d,i=i.slice(t,c-d);let{from:f,to:p,nodesForReplacement:h}={from:a,nodesForReplacement:i,to:s};return!(f===p&&!h.length)&&(e.splice(f,p-f,h),!0)}))}),{onUpdate:()=>{N.delete(o)},skipTransforms:!0}))}function A(e,t){let r=[];for(let o of e)if("string"==typeof o){let i=(e=o.split(/(\n|\t)/)).length;for(let o=0;o<i;o++){let i=e[o];"\n"===i||"\r\n"===i?r.push(n.$createLineBreakNode()):"\t"===i?r.push(n.$createTabNode()):0<i.length&&r.push(y(i,t))}}else({content:e}=o),"string"==typeof e?r.push(...A([e],o.type)):Array.isArray(e)&&r.push(...A(e,o.type));return r}function M(e,t){return x(e)&&x(t)&&e.__text===t.__text&&e.__highlightType===t.__highlightType||n.$isTabNode(e)&&n.$isTabNode(t)||n.$isLineBreakNode(e)&&n.$isLineBreakNode(t)}function I(e){if(!n.$isRangeSelection(e))return!1;var t=e.anchor.getNode();return e=e.focus.getNode(),!(!t.is(e)||!l(t))||l(t=t.getParent())&&t.is(e.getParent())}function R(e){let t=[[]];if(1===(e=e.getNodes()).length&&l(e[0]))return t;let r=t[0];for(let o=0;o<e.length;o++){let i=e[o];if(!(x(i)||n.$isTabNode(i)||n.$isLineBreakNode(i)))throw Error("Expected selection to be inside CodeBlock and consisting of CodeHighlightNode, TabNode and LineBreakNode");n.$isLineBreakNode(i)?0!==o&&0<r.length&&(r=[],t.push(r)):r.push(i)}return t}function D(e){var t=n.$getSelection();if(!n.$isRangeSelection(t)||!I(t))return!1;var r=R(t);let o=r.length;if(1<r.length){for(t=0;t<o;t++){var i=r[t];0<i.length&&(i=i[0],0===t&&(i=w(i)),null!==i&&(e===n.INDENT_CONTENT_COMMAND?i.insertBefore(n.$createTabNode()):n.$isTabNode(i)&&i.remove()))}return!0}if(!(l(r=t.getNodes()[0])||x(r)||n.$isTabNode(r)||n.$isLineBreakNode(r)))throw Error("Expected selection firstNode to be CodeHighlightNode or CodeTabNode");if(l(r))return e===n.INDENT_CONTENT_COMMAND&&t.insertNodes([n.$createTabNode()]),!0;if(null===(r=w(r)))throw Error("Expected getFirstCodeNodeOfLine to return a valid Code Node");return e===n.INDENT_CONTENT_COMMAND?n.$isLineBreakNode(r)?r.insertAfter(n.$createTabNode()):r.insertBefore(n.$createTabNode()):n.$isTabNode(r)&&r.remove(),!0}function _(e,t){let r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;let{anchor:o,focus:i}=r,a=o.offset,l=i.offset,s=o.getNode(),c=i.getNode();var u=e===n.KEY_ARROW_UP_COMMAND;if(!I(r)||!x(s)&&!n.$isTabNode(s)||!x(c)&&!n.$isTabNode(c))return!1;if(!t.altKey){if(r.isCollapsed())if(e=s.getParentOrThrow(),u&&0===a&&null===s.getPreviousSibling()){if(null===e.getPreviousSibling())return e.selectPrevious(),t.preventDefault(),!0}else if(!u&&a===s.getTextContentSize()&&null===s.getNextSibling()&&null===e.getNextSibling())return e.selectNext(),t.preventDefault(),!0;return!1}let d;if(s.isBefore(c)){var f=w(s);d=C(c)}else f=w(c),d=C(s);if(null==f||null==d)return!1;let p=f.getNodesBetween(d);for(let e=0;e<p.length;e++){let t=p[e];if(!x(t)&&!n.$isTabNode(t)&&!n.$isLineBreakNode(t))return!1}if(t.preventDefault(),t.stopPropagation(),t=u?f.getPreviousSibling():d.getNextSibling(),!n.$isLineBreakNode(t))return!0;if(null==(f=u?t.getPreviousSibling():t.getNextSibling()))return!0;let h=null!=(u=x(f)||n.$isTabNode(f)||n.$isLineBreakNode(f)?u?w(f):C(f):null)?u:f;return t.remove(),p.forEach((e=>e.remove())),e===n.KEY_ARROW_UP_COMMAND?(p.forEach((e=>h.insertBefore(e))),h.insertBefore(t)):(h.insertAfter(t),h=t,p.forEach((e=>{h.insertAfter(e),h=e}))),r.setTextNodeRange(s,a,c,l),!0}function P(e,t){let r=n.$getSelection();if(!n.$isRangeSelection(r))return!1;let{anchor:o,focus:i}=r;var a=o.getNode();let l=i.getNode();if(e=e===n.MOVE_TO_START,!x(a)&&!n.$isTabNode(a)||!x(l)&&!n.$isTabNode(l))return!1;if(e)if(null!==(a=T(l,i.offset))){let{node:e,offset:t}=a;n.$isLineBreakNode(e)?e.selectNext(0,0):r.setTextNodeRange(e,t,e,t)}else l.getParentOrThrow().selectStart();else k(l).select();return t.preventDefault(),t.stopPropagation(),!0}return n$.$createCodeHighlightNode=y,n$.$createCodeNode=a,n$.$isCodeHighlightNode=x,n$.$isCodeNode=l,n$.CODE_LANGUAGE_FRIENDLY_NAME_MAP=h,n$.CODE_LANGUAGE_MAP=g,n$.CodeHighlightNode=v,n$.CodeNode=i,n$.DEFAULT_CODE_LANGUAGE="javascript",n$.PrismTokenizer=E,n$.getCodeLanguages=()=>Object.keys(e.languages).filter((t=>"function"!=typeof e.languages[t])).sort(),n$.getDefaultCodeLanguage=()=>"javascript",n$.getEndOfCodeInLine=k,n$.getFirstCodeNodeOfLine=w,n$.getLanguageFriendlyName=function(e){return e=m(e),h[e]||e},n$.getLastCodeNodeOfLine=C,n$.getStartOfCodeInLine=T,n$.normalizeCodeLang=m,n$.registerCodeHighlighting=function(e,r){if(!e.hasNodes([i,v]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return null==r&&(r=E),t.mergeRegister(e.registerMutationListener(i,(t=>{e.update((()=>{for(let[i,a]of t)if("destroyed"!==a){var r=n.$getNodeByKey(i);if(null!==r)e:{var o=r;if(null===(r=e.getElementByKey(o.getKey())))break e;let t=(o=o.getChildren()).length;if(t===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=t;let i="1",a=1;for(let e=0;e<t;e++)n.$isLineBreakNode(o[e])&&(i+="\n"+ ++a);r.setAttribute("data-gutter",i)}}}))})),e.registerNodeTransform(i,(t=>O(t,e,r))),e.registerNodeTransform(n.TextNode,(t=>S(t,e,r))),e.registerNodeTransform(v,(t=>S(t,e,r))),e.registerCommand(n.KEY_TAB_COMMAND,(t=>{let r=function(e){var t=n.$getSelection();if(!n.$isRangeSelection(t)||!I(t))return null;let r=e?n.OUTDENT_CONTENT_COMMAND:n.INDENT_CONTENT_COMMAND;if(e=e?n.OUTDENT_CONTENT_COMMAND:n.INSERT_TAB_COMMAND,1<R(t).length)return r;var o=t.getNodes()[0];if(!(l(o)||x(o)||n.$isTabNode(o)||n.$isLineBreakNode(o)))throw Error("Expected selection firstNode to be CodeHighlightNode or TabNode");if(l(o))return r;let i=w(o);o=C(o);var a=t.anchor;let s=t.focus;return s.isBefore(a)?t=s:(t=a,a=s),null!==i&&null!==o&&t.key===i.getKey()&&0===t.offset&&a.key===o.getKey()&&a.offset===o.getTextContentSize()?r:e}(t.shiftKey);return null!==r&&(t.preventDefault(),e.dispatchCommand(r,void 0),!0)}),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INSERT_TAB_COMMAND,(()=>!!I(n.$getSelection())&&(n.$insertNodes([n.$createTabNode()]),!0)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.INDENT_CONTENT_COMMAND,(()=>D(n.INDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.OUTDENT_CONTENT_COMMAND,(()=>D(n.OUTDENT_CONTENT_COMMAND)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_UP_COMMAND,(e=>_(n.KEY_ARROW_UP_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.KEY_ARROW_DOWN_COMMAND,(e=>_(n.KEY_ARROW_DOWN_COMMAND,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_END,(e=>P(n.MOVE_TO_END,e)),n.COMMAND_PRIORITY_LOW),e.registerCommand(n.MOVE_TO_START,(e=>P(n.MOVE_TO_START,e)),n.COMMAND_PRIORITY_LOW))},n$}function o$(){if(e$)return $Q;e$=1;const e="development"===process.env.NODE_ENV?XQ():r$();return $Q=e}var i$,a$={};const l$="development"===process.env.NODE_ENV?function(){if(t$)return oQ;t$=1;var e=xU,t=o$(),n=sK,r=sY(),o=MU,i=JU;function a(e,t){const n={};for(const r of e){const e=t(r);n[e]?n[e].push(r):n[e]=[r]}return n}function l(e){const t=a(e,(e=>e.type));return{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}const s=/[!-/:-@[-`{-~\s]/;function c(t,n,r,o){for(const e of n){const n=e.export(t,(e=>u(e,r,o)));if(null!=n)return n}return e.$isElementNode(t)?u(t,r,o):e.$isDecoratorNode(t)?t.getTextContent():null}function u(t,n,r){const o=[],i=t.getChildren();e:for(const t of i){for(const e of r){const i=e.export(t,(e=>u(e,n,r)),((e,t)=>d(e,t,n)));if(null!=i){o.push(i);continue e}}e.$isLineBreakNode(t)?o.push("\n"):e.$isTextNode(t)?o.push(d(t,t.getTextContent(),n)):e.$isElementNode(t)?o.push(u(t,n,r)):e.$isDecoratorNode(t)&&o.push(t.getTextContent())}return o.join("")}function d(e,t,n){const r=t.trim();let o=r;const i=new Set;for(const t of n){const n=t.format[0],r=t.tag;if(p(e,n)&&!i.has(n)){i.add(n);p(f(e,!0),n)||(o=r+o);p(f(e,!1),n)||(o+=r)}}return t.replace(r,o)}function f(t,n){let r=n?t.getPreviousSibling():t.getNextSibling();if(!r){const e=t.getParentOrThrow();e.isInline()&&(r=n?e.getPreviousSibling():e.getNextSibling())}for(;r;){if(e.$isElementNode(r)){if(!r.isInline())break;const t=n?r.getLastDescendant():r.getFirstDescendant();if(e.$isTextNode(t))return t;r=n?r.getPreviousSibling():r.getNextSibling()}if(e.$isTextNode(r))return r;if(!e.$isElementNode(r))return null}return null}function p(t,n){return e.$isTextNode(t)&&t.hasFormat(n)}const h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=h&&"documentMode"in document?document.documentMode:null;h&&"InputEvent"in window&&!g&&new window.InputEvent("input");const m=h&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),v=h&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b=h&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y=h&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!b,x=/^\s{0,3}$/,w=/^```(\w{1,10})?\s?$/;function C(t){const n=l(t),r=function(e){const t={},n={},r=[],o="(?<![\\\\])";for(const o of e){const{tag:e}=o;t[e]=o;const i=e.replace(/(\*|\^|\+)/g,"\\$1");r.push(i),n[e]=m||v||y?new RegExp(`(${i})(?![${i}\\s])(.*?[^${i}\\s])${i}(?!${i})`):new RegExp(`(?<![\\\\${i}])(${i})((\\\\${i})?.*?[^${i}\\s](\\\\${i})?)((?<!\\\\)|(?<=\\\\\\\\))(${i})(?![\\\\${i}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((m||v||y?"":`${o}`)+"("+r.join("|")+")","g"),transformersByTag:t}}(n.textFormat);return(t,o)=>{const i=t.split("\n"),a=i.length,l=o||e.$getRoot();l.clear();for(let e=0;e<a;e++){const t=i[e],[o,a]=k(i,e,l);null==o?T(t,l,n.element,r,n.textMatch):e=a}const s=l.getChildren();for(const e of s)E(e)&&e.remove();null!==e.$getSelection()&&l.selectEnd()}}function E(t){if(!e.$isParagraphNode(t))return!1;const n=t.getFirstChild();return null==n||1===t.getChildrenSize()&&e.$isTextNode(n)&&x.test(n.getTextContent())}function T(t,i,a,l,s){const c=t.trim(),u=e.$createTextNode(c),d=e.$createParagraphNode();d.append(u),i.append(d);for(const{regExp:e,replace:n}of a){const r=t.match(e);if(r){u.setTextContent(t.slice(r[0].length)),n(d,[u],r,!0);break}}if(S(u,l,s),d.isAttached()&&c.length>0){const t=d.getPreviousSibling();if(e.$isParagraphNode(t)||r.$isQuoteNode(t)||n.$isListNode(t)){let r=t;if(n.$isListNode(t)){const e=t.getLastDescendant();r=null==e?null:o.$findMatchingParent(e,n.$isListItemNode)}null!=r&&r.getTextContentSize()>0&&(r.splice(r.getChildrenSize(),0,[e.$createLineBreakNode(),...d.getChildren()]),d.remove())}}}function k(n,r,o){const i=n[r].match(w);if(i){let a=r;const l=n.length;for(;++a<l;){if(n[a].match(w)){const l=t.$createCodeNode(i[1]),s=e.$createTextNode(n.slice(r+1,a).join("\n"));return l.append(s),o.append(l),[l,a]}}}return[null,r]}function S(e,t,n){const r=e.getTextContent(),o=function(e,t){const n=e.match(t.openTagsRegExp);if(null==n)return null;for(const r of n){const n=r.replace(/^\s/,""),o=t.fullMatchRegExpByTag[n];if(null==o)continue;const i=e.match(o),a=t.transformersByTag[n];if(null!=i&&null!=a){if(!1!==a.intraword)return i;const{index:t=0}=i,n=e[t-1],r=e[t+i[0].length];if((!n||s.test(n))&&(!r||s.test(r)))return i}}return null}(r,t);if(!o)return void N(e,n);let i,a,l;if(o[0]===r)i=e;else{const t=o.index||0,n=t+o[0].length;0===t?[i,a]=e.splitText(n):[l,i,a]=e.splitText(t,n)}i.setTextContent(o[2]);const c=t.transformersByTag[o[1]];if(c)for(const e of c.format)i.hasFormat(e)||i.toggleFormat(e);i.hasFormat("code")||S(i,t,n),l&&S(l,t,n),a&&S(a,t,n)}function N(e,t){let n=e;e:for(;n;){for(const e of t){const r=n.getTextContent().match(e.importRegExp);if(!r)continue;const o=r.index||0,i=o+r[0].length;let a,l,s;0===o?[a,n]=n.splitText(i):[l,a,s]=n.splitText(o,i),l&&N(l,t),s&&(n=s),e.replace(a,r);continue e}break}}function O(e,t,n){const r=n.length;for(let o=t;o>=r;o--){const t=o-r;if(A(e,t,n,0,r)&&" "!==e[t+r])return t}return-1}function A(e,t,n,r,o){for(let i=0;i<o;i++)if(e[t+i]!==n[r+i])return!1;return!0}const M=e=>(t,n,r)=>{const o=e(r);o.append(...n),t.replace(o),o.select(0,0)},I=e=>(t,r,o)=>{const i=t.getPreviousSibling(),a=t.getNextSibling(),l=n.$createListItemNode("check"===e?"x"===o[3]:void 0);if(n.$isListNode(a)&&a.getListType()===e){const e=a.getFirstChild();null!==e?e.insertBefore(l):a.append(l),t.remove()}else if(n.$isListNode(i)&&i.getListType()===e)i.append(l),t.remove();else{const r=n.$createListNode(e,"number"===e?Number(o[2]):void 0);r.append(l),t.replace(r)}l.append(...r),l.select(0,0);const s=Math.floor(o[1].length/4);s&&l.setIndent(s)},R=(e,t,r)=>{const o=[],i=e.getChildren();let a=0;for(const l of i)if(n.$isListItemNode(l)){if(1===l.getChildrenSize()){const e=l.getFirstChild();if(n.$isListNode(e)){o.push(R(e,t,r+1));continue}}const i=" ".repeat(4*r),s=e.getListType(),c="number"===s?`${e.getStart()+a}. `:"check"===s?`- [${l.getChecked()?"x":" "}] `:"- ";o.push(i+c+t(l)),a++}return o.join("\n")},D={dependencies:[r.HeadingNode],export:(e,t)=>{if(!r.$isHeadingNode(e))return null;const n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:M((e=>{const t="h"+e[1].length;return r.$createHeadingNode(t)})),type:"element"},_={dependencies:[r.QuoteNode],export:(e,t)=>{if(!r.$isQuoteNode(e))return null;const n=t(e).split("\n"),o=[];for(const e of n)o.push("> "+e);return o.join("\n")},regExp:/^>\s/,replace:(t,n,o,i)=>{if(i){const o=t.getPreviousSibling();if(r.$isQuoteNode(o))return o.splice(o.getChildrenSize(),0,[e.$createLineBreakNode(),...n]),o.select(0,0),void t.remove()}const a=r.$createQuoteNode();a.append(...n),t.replace(a),a.select(0,0)},type:"element"},P={dependencies:[t.CodeNode],export:e=>{if(!t.$isCodeNode(e))return null;const n=e.getTextContent();return"```"+(e.getLanguage()||"")+(n?"\n"+n:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:M((e=>t.$createCodeNode(e?e[1]:void 0))),type:"element"},L={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?R(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:I("bullet"),type:"element"},F={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?R(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:I("check"),type:"element"},z={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?R(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:I("number"),type:"element"},j={format:["code"],tag:"`",type:"text-format"},B={format:["highlight"],tag:"==",type:"text-format"},V={format:["bold","italic"],tag:"***",type:"text-format"},W={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},H={format:["bold"],tag:"**",type:"text-format"},q={format:["bold"],intraword:!1,tag:"__",type:"text-format"},U={format:["strikethrough"],tag:"~~",type:"text-format"},K={format:["italic"],tag:"*",type:"text-format"},Y={format:["italic"],intraword:!1,tag:"_",type:"text-format"},G={dependencies:[i.LinkNode],export:(t,n,r)=>{if(!i.$isLinkNode(t))return null;const o=t.getTitle(),a=o?`[${t.getTextContent()}](${t.getURL()} "${o}")`:`[${t.getTextContent()}](${t.getURL()})`,l=t.getFirstChild();return 1===t.getChildrenSize()&&e.$isTextNode(l)?r(l,a):a},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,n)=>{const[,r,o,a]=n,l=i.$createLinkNode(o,{title:a}),s=e.$createTextNode(r);s.setFormat(t.getFormat()),l.append(s),t.replace(l)},trigger:")",type:"text-match"},Z=[D,_,P,L,z],J=[j,V,W,H,q,B,K,Y,U],X=[G],Q=[...Z,...J,...X];return oQ.$convertFromMarkdownString=function(e,t=Q,n){return C(t)(e,n)},oQ.$convertToMarkdownString=function(t=Q,n){const r=function(t){const n=l(t),r=n.textFormat.filter((e=>1===e.format.length));return t=>{const o=[],i=(t||e.$getRoot()).getChildren();for(const e of i){const t=c(e,n.element,r,n.textMatch);null!=t&&o.push(t)}return o.join("\n\n")}}(t);return r(n)},oQ.BOLD_ITALIC_STAR=V,oQ.BOLD_ITALIC_UNDERSCORE=W,oQ.BOLD_STAR=H,oQ.BOLD_UNDERSCORE=q,oQ.CHECK_LIST=F,oQ.CODE=P,oQ.ELEMENT_TRANSFORMERS=Z,oQ.HEADING=D,oQ.HIGHLIGHT=B,oQ.INLINE_CODE=j,oQ.ITALIC_STAR=K,oQ.ITALIC_UNDERSCORE=Y,oQ.LINK=G,oQ.ORDERED_LIST=z,oQ.QUOTE=_,oQ.STRIKETHROUGH=U,oQ.TEXT_FORMAT_TRANSFORMERS=J,oQ.TEXT_MATCH_TRANSFORMERS=X,oQ.TRANSFORMERS=Q,oQ.UNORDERED_LIST=L,oQ.registerMarkdownShortcuts=function(n,r=Q){const o=l(r),i=a(o.textFormat,(({tag:e})=>e[e.length-1])),c=a(o.textMatch,(({trigger:e})=>e));for(const e of r){const t=e.type;if("element"===t||"text-match"===t){const t=e.dependencies;for(const e of t)if(!n.hasNode(e))throw Error(`MarkdownShortcuts: missing dependency ${e.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}}const u=(t,n,r)=>{(function(t,n,r,o){const i=t.getParent();if(!e.$isRootOrShadowRoot(i)||t.getFirstChild()!==n)return!1;const a=n.getTextContent();if(" "!==a[r-1])return!1;for(const{regExp:e,replace:i}of o){const o=a.match(e);if(o&&o[0].length===r){const e=n.getNextSiblings(),[a,l]=n.splitText(r);return a.remove(),i(t,l?[l,...e]:e,o,!1),!0}}return!1})(t,n,r,o.element)||function(e,t,n){let r=e.getTextContent();const o=n[r[t-1]];if(null==o)return!1;t<r.length&&(r=r.slice(0,t));for(const t of o){const n=r.match(t.regExp);if(null===n)continue;const o=n.index||0,i=o+n[0].length;let a;return 0===o?[a]=e.splitText(i):[,a]=e.splitText(o,i),a.selectNext(0,0),t.replace(a,n),!0}return!1}(n,r,c)||function(t,n,r){const o=t.getTextContent(),i=n-1,a=o[i],l=r[a];if(!l)return!1;for(const n of l){const{tag:r}=n,l=r.length,c=i-l+1;if(l>1&&!A(o,c,r,0,l))continue;if(" "===o[c-1])continue;const u=o[i+1];if(!1===n.intraword&&u&&!s.test(u))continue;const d=t;let f=d,p=O(o,c,r),h=f;for(;p<0&&(h=h.getPreviousSibling())&&!e.$isLineBreakNode(h);)if(e.$isTextNode(h)){const e=h.getTextContent();f=h,p=O(e,e.length,r)}if(p<0)continue;if(f===d&&p+l===c)continue;const g=f.getTextContent();if(p>0&&g[p-1]===a)continue;const m=g[p-1];if(!1===n.intraword&&m&&!s.test(m))continue;const v=d.getTextContent(),b=v.slice(0,c)+v.slice(i+1);d.setTextContent(b);const y=f===d?b:g;f.setTextContent(y.slice(0,p)+y.slice(p+l));const x=e.$getSelection(),w=e.$createRangeSelection();e.$setSelection(w);const C=i-l*(f===d?2:1)+1;w.anchor.set(f.__key,p,"text"),w.focus.set(d.__key,C,"text");for(const e of n.format)w.hasFormat(e)||w.formatText(e);w.anchor.set(w.focus.key,w.focus.offset,w.focus.type);for(const e of n.format)w.hasFormat(e)&&w.toggleFormat(e);return e.$isRangeSelection(x)&&(w.format=x.format),!0}}(n,r,i)};return n.registerUpdateListener((({tags:r,dirtyLeaves:o,editorState:i,prevEditorState:a})=>{if(r.has("historic"))return;if(n.isComposing())return;const l=i.read(e.$getSelection),s=a.read(e.$getSelection);if(!e.$isRangeSelection(s)||!e.$isRangeSelection(l)||!l.isCollapsed())return;const c=l.anchor.key,d=l.anchor.offset,f=i._nodeMap.get(c);!e.$isTextNode(f)||!o.has(c)||1!==d&&d>s.anchor.offset+1||n.update((()=>{if(f.hasFormat("code"))return;const e=f.getParent();null===e||t.$isCodeNode(e)||u(e,f,l.anchor.offset)}))}))},oQ}():function(){if(i$)return a$;i$=1;var e=xU,t=o$(),n=sK,r=sY(),o=MU,i=JU;function a(e,t){let n={};for(let r of e)n[e=t(r)]?n[e].push(r):n[e]=[r];return n}function l(e){return{element:(e=a(e,(e=>e.type))).element||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}let s=/[!-/:-@[-`{-~\s]/;function c(t,n,r,o){for(let e of n)if(null!=(n=e.export(t,(e=>u(e,r,o)))))return n;return e.$isElementNode(t)?u(t,r,o):e.$isDecoratorNode(t)?t.getTextContent():null}function u(t,n,r){let o=[];t=t.getChildren();e:for(let i of t){for(let e of r)if(t=e.export(i,(e=>u(e,n,r)),((e,t)=>d(e,t,n))),null!=t){o.push(t);continue e}e.$isLineBreakNode(i)?o.push("\n"):e.$isTextNode(i)?o.push(d(i,i.getTextContent(),n)):e.$isElementNode(i)?o.push(u(i,n,r)):e.$isDecoratorNode(i)&&o.push(i.getTextContent())}return o.join("")}function d(e,t,n){let r=t.trim(),o=r,i=new Set;for(let t of n){n=t.format[0];let r=t.tag;if(p(e,n)&&!i.has(n)){i.add(n);var a=f(e,!0);p(a,n)||(o=r+o),p(a=f(e,!1),n)||(o+=r)}}return t.replace(r,o)}function f(t,n){let r=n?t.getPreviousSibling():t.getNextSibling();for(r||(t=t.getParentOrThrow()).isInline()&&(r=n?t.getPreviousSibling():t.getNextSibling());r;){if(e.$isElementNode(r)){if(!r.isInline())break;if(t=n?r.getLastDescendant():r.getFirstDescendant(),e.$isTextNode(t))return t;r=n?r.getPreviousSibling():r.getNextSibling()}if(e.$isTextNode(r))return r;if(!e.$isElementNode(r))break}return null}function p(t,n){return e.$isTextNode(t)&&t.hasFormat(n)}let h="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=h&&"documentMode"in document?document.documentMode:null;h&&"InputEvent"in window&&!g&&new window.InputEvent("input");let m=h&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),v=h&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b=h&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y=h&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!b,x=/^\s{0,3}$/,w=/^```(\w{1,10})?\s?$/;function C(i){let a=l(i),s=function(e){let t={},n={},r=[];for(let o of e){({tag:e}=o),t[e]=o;let i=e.replace(/(\*|\^|\+)/g,"\\$1");r.push(i),n[e]=m||v||y?new RegExp(`(${i})(?![${i}\\s])(.*?[^${i}\\s])${i}(?!${i})`):new RegExp(`(?<![\\\\${i}])(${i})((\\\\${i})?.*?[^${i}\\s](\\\\${i})?)((?<!\\\\)|(?<=\\\\\\\\))(${i})(?![\\\\${i}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((m||v||y?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:t}}(a.textFormat);return(i,l)=>{var c=(i=i.split("\n")).length;(l=l||e.$getRoot()).clear();for(let b=0;b<c;b++){var u=i[b];e:{var d=i,f=b,p=l,h=d[f].match(w);if(h)for(var g=f,m=d.length;++g<m;)if(d[g].match(w)){h=t.$createCodeNode(h[1]),d=e.$createTextNode(d.slice(f+1,g).join("\n")),h.append(d),p.append(h),p=[h,g];break e}p=[null,f]}let[c,y]=p;if(null!=c)b=y;else{p=u,m=l;var v=a.element;g=s,d=a.textMatch,f=p.trim(),h=e.$createTextNode(f),(u=e.$createParagraphNode()).append(h),m.append(u);for(let{regExp:e,replace:t}of v)if(m=p.match(e)){h.setTextContent(p.slice(m[0].length)),t(u,[h],m,!0);break}E(h,g,d),u.isAttached()&&0<f.length&&(p=u.getPreviousSibling(),e.$isParagraphNode(p)||r.$isQuoteNode(p)||n.$isListNode(p))&&(g=p,n.$isListNode(p)&&(g=null==(p=p.getLastDescendant())?null:o.$findMatchingParent(p,n.$isListItemNode)),null!=g&&0<g.getTextContentSize()&&(g.splice(g.getChildrenSize(),0,[e.$createLineBreakNode(),...u.getChildren()]),u.remove()))}}i=l.getChildren();for(let t of i)i=t,e.$isParagraphNode(i)?(c=i.getFirstChild(),i=null==c||1===i.getChildrenSize()&&e.$isTextNode(c)&&x.test(c.getTextContent())):i=!1,i&&t.remove();null!==e.$getSelection()&&l.selectEnd()}}function E(e,t,n){var r=e.getTextContent();let o=function(e,t){var n=e.match(t.openTagsRegExp);if(null==n)return null;for(let i of n){var r=i.replace(/^\s/,"");if(null!=(n=t.fullMatchRegExpByTag[r])&&(n=e.match(n),r=t.transformersByTag[r],null!=n&&null!=r)){if(!1!==r.intraword)return n;var{index:o=0}=n;if(r=e[o-1],o=e[o+n[0].length],!(r&&!s.test(r)||o&&!s.test(o)))return n}}return null}(r,t);if(o){var i,a;if(o[0]===r)var l=e;else{let t=(r=o.index||0)+o[0].length;0===r?[l,i]=e.splitText(t):[a,l,i]=e.splitText(r,t)}if(l.setTextContent(o[2]),e=t.transformersByTag[o[1]])for(let t of e.format)l.hasFormat(t)||l.toggleFormat(t);l.hasFormat("code")||E(l,t,n),a&&E(a,t,n),i&&E(i,t,n)}else T(e,n)}function T(e,t){e:for(;e;){for(let n of t){let r=e.getTextContent().match(n.importRegExp);if(!r)continue;let o,i,a,l=r.index||0,s=l+r[0].length;0===l?[o,e]=e.splitText(s):[i,o,a]=e.splitText(l,s),i&&T(i,t),a&&(e=a),n.replace(o,r);continue e}break}}function k(e,t,n){let r=n.length;for(;t>=r;t--){let o=t-r;if(S(e,o,n,0,r)&&" "!==e[o+r])return o}return-1}function S(e,t,n,r,o){for(let i=0;i<o;i++)if(e[t+i]!==n[r+i])return!1;return!0}let N=e=>(t,n,r)=>{(r=e(r)).append(...n),t.replace(r),r.select(0,0)},O=e=>(t,r,o)=>{var i=t.getPreviousSibling(),a=t.getNextSibling();const l=n.$createListItemNode("check"===e?"x"===o[3]:void 0);n.$isListNode(a)&&a.getListType()===e?(null!==(i=a.getFirstChild())?i.insertBefore(l):a.append(l),t.remove()):n.$isListNode(i)&&i.getListType()===e?(i.append(l),t.remove()):((a=n.$createListNode(e,"number"===e?Number(o[2]):void 0)).append(l),t.replace(a)),l.append(...r),l.select(0,0),(t=Math.floor(o[1].length/4))&&l.setIndent(t)},A=(e,t,r)=>{const o=[];var i=e.getChildren();let a=0;for(const s of i)if(n.$isListItemNode(s)){if(1===s.getChildrenSize()&&(i=s.getFirstChild(),n.$isListNode(i))){o.push(A(i,t,r+1));continue}i=" ".repeat(4*r);var l=e.getListType();l="number"===l?`${e.getStart()+a}. `:"check"===l?`- [${s.getChecked()?"x":" "}] `:"- ",o.push(i+l+t(s)),a++}return o.join("\n")},M={dependencies:[r.HeadingNode],export:(e,t)=>{if(!r.$isHeadingNode(e))return null;const n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:N((e=>r.$createHeadingNode("h"+e[1].length))),type:"element"},I={dependencies:[r.QuoteNode],export:(e,t)=>{if(!r.$isQuoteNode(e))return null;e=t(e).split("\n"),t=[];for(const n of e)t.push("> "+n);return t.join("\n")},regExp:/^>\s/,replace:(t,n,o,i)=>{if(i&&(o=t.getPreviousSibling(),r.$isQuoteNode(o)))return o.splice(o.getChildrenSize(),0,[e.$createLineBreakNode(),...n]),o.select(0,0),void t.remove();(o=r.$createQuoteNode()).append(...n),t.replace(o),o.select(0,0)},type:"element"},R={dependencies:[t.CodeNode],export:e=>{if(!t.$isCodeNode(e))return null;const n=e.getTextContent();return"```"+(e.getLanguage()||"")+(n?"\n"+n:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:N((e=>t.$createCodeNode(e?e[1]:void 0))),type:"element"},D={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:O("bullet"),type:"element"},_={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:O("check"),type:"element"},P={dependencies:[n.ListNode,n.ListItemNode],export:(e,t)=>n.$isListNode(e)?A(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:O("number"),type:"element"},L={format:["code"],tag:"`",type:"text-format"},F={format:["highlight"],tag:"==",type:"text-format"},z={format:["bold","italic"],tag:"***",type:"text-format"},j={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},B={format:["bold"],tag:"**",type:"text-format"},V={format:["bold"],intraword:!1,tag:"__",type:"text-format"},W={format:["strikethrough"],tag:"~~",type:"text-format"},H={format:["italic"],tag:"*",type:"text-format"},q={format:["italic"],intraword:!1,tag:"_",type:"text-format"},U={dependencies:[i.LinkNode],export:(t,n,r)=>{if(!i.$isLinkNode(t))return null;n=(n=t.getTitle())?`[${t.getTextContent()}](${t.getURL()} "${n}")`:`[${t.getTextContent()}](${t.getURL()})`;const o=t.getFirstChild();return 1===t.getChildrenSize()&&e.$isTextNode(o)?r(o,n):n},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,n)=>{const[,r,o,a]=n;n=i.$createLinkNode(o,{title:a});const l=e.$createTextNode(r);l.setFormat(t.getFormat()),n.append(l),t.replace(n)},trigger:")",type:"text-match"},K=[M,I,R,D,P],Y=[L,z,j,B,V,F,H,q,W],G=[U],Z=[...K,...Y,...G];return a$.$convertFromMarkdownString=function(e,t=Z,n){return C(t)(e,n)},a$.$convertToMarkdownString=function(t=Z,n){return function(t){let n=l(t),r=n.textFormat.filter((e=>1===e.format.length));return t=>{let o=[];t=(t||e.$getRoot()).getChildren();for(let e of t)null!=(t=c(e,n.element,r,n.textMatch))&&o.push(t);return o.join("\n\n")}}(t)(n)},a$.BOLD_ITALIC_STAR=z,a$.BOLD_ITALIC_UNDERSCORE=j,a$.BOLD_STAR=B,a$.BOLD_UNDERSCORE=V,a$.CHECK_LIST=_,a$.CODE=R,a$.ELEMENT_TRANSFORMERS=K,a$.HEADING=M,a$.HIGHLIGHT=F,a$.INLINE_CODE=L,a$.ITALIC_STAR=H,a$.ITALIC_UNDERSCORE=q,a$.LINK=U,a$.ORDERED_LIST=P,a$.QUOTE=I,a$.STRIKETHROUGH=W,a$.TEXT_FORMAT_TRANSFORMERS=Y,a$.TEXT_MATCH_TRANSFORMERS=G,a$.TRANSFORMERS=Z,a$.UNORDERED_LIST=D,a$.registerMarkdownShortcuts=function(n,r=Z){let o=l(r),i=a(o.textFormat,(({tag:e})=>e[e.length-1])),c=a(o.textMatch,(({trigger:e})=>e));for(let e of r)if("element"===(r=e.type)||"text-match"===r){r=e.dependencies;for(let e of r)if(!n.hasNode(e))throw Error(`MarkdownShortcuts: missing dependency ${e.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}return n.registerUpdateListener((({tags:r,dirtyLeaves:a,editorState:l,prevEditorState:u})=>{if(!r.has("historic")&&!n.isComposing()){var d=l.read(e.$getSelection);if(r=u.read(e.$getSelection),e.$isRangeSelection(r)&&e.$isRangeSelection(d)&&d.isCollapsed()){u=d.anchor.key;var f=d.anchor.offset,p=l._nodeMap.get(u);!e.$isTextNode(p)||!a.has(u)||1!==f&&f>r.anchor.offset+1||n.update((()=>{if(!p.hasFormat("code")){var n=p.getParent();if(null!==n&&!t.$isCodeNode(n)){var r=d.anchor.offset;e:{var a=o.element,l=n.getParent();if(e.$isRootOrShadowRoot(l)&&n.getFirstChild()===p&&" "===(l=p.getTextContent())[r-1])for(let{regExp:e,replace:t}of a)if((a=l.match(e))&&a[0].length===r){l=p.getNextSiblings();let[e,o]=p.splitText(r);e.remove(),t(n,l=o?[o,...l]:l,a,!1),n=!0;break e}n=!1}if(!n){e:{if(a=p.getTextContent(),null!=(n=c[a[r-1]]))for(f of(r<a.length&&(a=a.slice(0,r)),n))if(null!==(n=a.match(f.regExp))){l=(a=n.index||0)+n[0].length;var u=void 0;0===a?[u]=p.splitText(l):[,u]=p.splitText(a,l),u.selectNext(0,0),f.replace(u,n);var f=!0;break e}f=!1}if(!f)e:{var h=(l=p.getTextContent())[--r];if(f=i[h])for(let t of f){var{tag:g}=t;let o=r-(f=g.length)+1;if(!(1<f&&!S(l,o,g,0,f)||" "===l[o-1])&&(u=l[r+1],!1!==t.intraword||!u||s.test(u))){n=u=p,a=k(l,o,g);for(var m=n;0>a&&(m=m.getPreviousSibling())&&!e.$isLineBreakNode(m);)e.$isTextNode(m)&&(a=m.getTextContent(),n=m,a=k(a,a.length,g));if(!(0>a||n===u&&a+f===o||(g=n.getTextContent(),0<a&&g[a-1]===h||(m=g[a-1],!1===t.intraword&&m&&!s.test(m))))){l=(l=u.getTextContent()).slice(0,o)+l.slice(r+1),u.setTextContent(l),l=n===u?l:g,n.setTextContent(l.slice(0,a)+l.slice(a+f)),l=e.$getSelection(),h=e.$createRangeSelection(),e.$setSelection(h),r=r-f*(n===u?2:1)+1,h.anchor.set(n.__key,a,"text"),h.focus.set(u.__key,r,"text");for(let e of t.format)h.hasFormat(e)||h.formatText(e);h.anchor.set(h.focus.key,h.focus.offset,h.focus.type);for(let e of t.format)h.hasFormat(e)&&h.toggleFormat(e);e.$isRangeSelection(l)&&(h.format=l.format);break e}}}}}}}}))}}}))},a$}();var s$=l$,c$=function(e){var n=e.value,r=e.handleOnChange,o=wx(dU.useLexicalComposerContext(),1)[0],i=wx(b(!0),2),a=i[0],l=i[1];v((function(){var e;""===n&&o.update((function(){xU.$getRoot().clear()})),a&&(l(!1),e=n,new RegExp("(\\*|\\_)+(\\S+)(\\*|\\_)+").test(e)?o.update((function(){return s$.$convertFromMarkdownString(n,s$.TRANSFORMERS)})):o.update((function(){var e=xU.$getRoot();e.clear();var t=xU.$createParagraphNode(),r=xU.$createTextNode(n);t.append(r),e.append(t)})))}),[a,o,n]);var s=y((function(e){var t=e.read((function(){return s$.$convertToMarkdownString(s$.TRANSFORMERS)}));r(t)}),[r]);return t(rQ.OnChangePlugin,{onChange:s})};function u$(e){var t=e.maxLength,n=wx(dU.useLexicalComposerContext(),1)[0];return v((function(){var e=null;return n.registerNodeTransform(xU.RootNode,(function(r){var o=xU.$getSelection();if(xU.$isRangeSelection(o)&&o.isCollapsed()){var i=n.getEditorState(),a=i.read((function(){return r.getTextContent()})),l=r.getTextContent();if(a!==l){var s=l.length-t,c=o.anchor;s>0&&(a.length===t&&e!==i?(e=i,MU.$restoreEditorState(n,i)):kU.trimTextContentFromAnchor(n,c,s))}}}))}),[n,t]),null}var d$,f$=function(e){var o=e.placeholder,i=e.toolbarPosition,a=e.small,l=e.height,s=e.width,c=e.handleValueChange,u=e.editorNamespace,d=void 0===u?"MyEditor":u,f=e.editorValue,p=dx(e,["placeholder","toolbarPosition","small","height","width","handleValueChange","editorNamespace","editorValue"]),h=wx(b(null),2),g=h[0],m=h[1];return t(CY.LexicalComposer,Object.assign({initialConfig:Object.assign(Object.assign({},VX),{namespace:d})},p,{children:n(kX,{$width:s,children:[t("top"===i?WX:r,{}),n(wX,{ref:function(e){null!==e&&m(e)},"data-testid":"editor",children:[t(pY.RichTextPlugin,{contentEditable:t(TX,{$isSmall:a,$height:l,$width:s,id:"textInput"}),placeholder:t(CX,{children:o}),ErrorBoundary:TY}),a&&s&&t(u$,{maxLength:s}),t(bK.ListPlugin,{}),t(tK.LinkPlugin,{"data-testid":"linkPlugin"}),g&&t(JX,{anchorElem:g,"data-testid":"linkEditor"})]}),t("bottom"===i?WX:r,{}),t(HU.HistoryPlugin,{}),t(c$,{value:f,handleOnChange:c})]})}))},p$=x({canUserWrite:!1}),h$=function(e){var n=e.children,r=e.canWrite;return t(p$.Provider,{value:{canUserWrite:r},children:n})},g$=function(e){return f(p$).canUserWrite?null:t(r,{children:e.children})},m$=function(e){return f(p$).canUserWrite?t(r,{children:e.children}):null},v$=x({}),b$=function(){return f(v$)},y$=v$.Provider;function x$(e,t){if(XB(2,arguments),!t||"object"!==zb(t))return new Date(NaN);var n=t.years?dV(t.years):0,r=t.months?dV(t.months):0,o=t.weeks?dV(t.weeks):0,i=t.days?dV(t.days):0,a=t.hours?dV(t.hours):0,l=t.minutes?dV(t.minutes):0,s=t.seconds?dV(t.seconds):0,c=QB(e),u=r||n?hV(c,r+12*n):c,d=i||o?fV(u,i+7*o):u,f=1e3*(s+60*(l+60*a));return new Date(d.getTime()+f)}function w$(e){XB(1,arguments);var t=QB(e).getFullYear();return 10*Math.floor(t/10)}v$.Consumer,function(e){e.checkbox="checkbox",e.search="search",e.date="date",e.autocomplete="autocomplete"}(d$||(d$={}));var C$=["Days","Weeks","Months","Years"],E$=function(e){return C$.includes(e)},T$=["Next","Last"],k$=["Next","Last"],S$=function(e){return k$.includes(e)},N$=function(e){if(""!==e&&void 0!==e){var t=wx(null==e?void 0:e.split("_"),3),n=t[0],r=t[1],o=t[2];if(S$(n)&&E$(o)&&("number"==typeof(i=Number(r))&&!isNaN(i)))return function(e,t,n){switch(e){case"Days":return fV(new Date,("Last"===n?-1:1)*t);case"Weeks":return fV(new Date,("Last"===n?-1:1)*t*7);case"Months":return hV(new Date,("Last"===n?-1:1)*t);default:return gV(new Date,("Last"===n?-1:1)*t)}}(o,Number(r),n)}var i},O$=function(e){return void 0!==e&&"string"==typeof e&&"undefined"!==e},A$=function(e,t,n,r){switch(e.type){case d$.checkbox:case d$.autocomplete:return function(e,t,n){return null==t?void 0:t.has(e[n])}(t,n,r);case d$.search:return function(e,t,n){var r=wx(Array.from(n),1)[0].toLowerCase();return e.searchFields.reduce((function(e,n){var o,i;return"string"==typeof t[n]?t[n].toLowerCase().indexOf(r)>=0||e:(null===(i=null===(o=t[n])||void 0===o?void 0:o.toString())||void 0===i?void 0:i.indexOf(r))>=0||e}),!1)}(e,t,n);case d$.date:return function(e,t,n,r){if(!t[r])return!1;var o=uq(t[r],e.dateFormat,new Date),i=wx(Array.from(n),3),a=i[0],l=i[1],s=i[2],c=!0;if("exact"===a){if(""!==l){var u=hq(l);c=MW(o,u)||RW(o,u)}if(s){var d=x$(hq(s),{days:1});c=c&&IW(o,d)}else if(void 0===s){var f=x$(hq(l),{days:1});c=c&&IW(o,f)}}else if("period"===a){var p=N$(l);void 0!==p&&(c=MW(o,p)||RW(o,p));var h=N$(s);void 0!==h&&(c=c&&IW(o,h))}return c}(e,t,n,r);default:throw new Error("Not implemented")}},M$=function(e,t,n){var r=sx(e);return Object.values(t).forEach((function(e){var t=n[e.key]&&"function"==typeof e.filterFn?e.filterFn:A$;n[e.key]&&(r=r.filter((function(r){return t(e,r,n[e.key],e.key)})))})),r},I$=function(e,t){return e.label.localeCompare(t.label)},R$=function(e){var n=e.data,r=e.initialSelection,o=void 0===r?{}:r,i=e.filters,a=void 0===i?{}:i,l=e.children,s=e.onSelectionChange,c=wx(b(o),2),u=c[0],d=c[1];m((function(){d(Object.assign({},o))}),[n,o]);var f=function(e){d(Object.assign({},e)),void 0!==s&&s(Object.assign({},e))},p=C((function(){return{source:n,filter:a,selection:u,data:M$(n,a,u),setSelection:f}}),[u]);return t(y$,{value:p,children:l})},D$=o(jA).withConfig({displayName:"RadioButtonstyles__StyledRadioButton",componentId:"sc-oloz7y-0"})(["path{fill:",";}width:fit-content;"," &:hover{::before{background-color:#ade2e61a;}}svg{","}span{color:",";white-space:nowrap;}&:hover{background-color:transparent;&::before{background-color:#ade2e61a;}}span{&:first-of-type{padding-left:8px !important;padding-top:8px !important;padding-right:8px !important;padding-bottom:8px !important;}&:last-of-type{margin-left:4px;}}"," padding-right:8px !important;input:focus-visible + svg{outline:1px dashed ",";outline-offset:10px;}input{:disabled + svg{path{fill:#637583 !important;}}:checked + svg{path{fill:",";}}--scale:1.5;&:focus-visible{outline-color:",";outline:none;}}"],ky.semantic.text.tertiary,(function(e){return e.compact&&"width: 34px;"}),(function(e){return e.compact&&"height: 18px;\n width: 18px;"}),(function(e){return e.checked?"white":ky.semantic.text.tertiary}),(function(e){return!e.label&&"\n padding-left: 8px !important;\n padding-top: 8px !important;\n padding-bottom: 8px !important;\n "}),ky.mossGreen.tint[45],ky.mossGreen.tint[45],ky.mossGreen.tint[45]),_$=function(e){var n=dx(e,[]);return t(D$,Object.assign({},n,{"data-testid":"radioButton"}))},P$={search:{name:"search",prefix:"eds",height:"24",width:"24",svgPathData:"M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27Zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5Z",sizes:{small:{name:"search_small",prefix:"eds",height:"18",width:"18",svgPathData:"M11.224 10.691h.592l3.743 3.75-1.118 1.118-3.75-3.743v-.592l-.202-.21a4.853 4.853 0 0 1-3.173 1.177 4.875 4.875 0 1 1 4.875-4.875 4.853 4.853 0 0 1-1.177 3.173l.21.202ZM3.94 7.316a3.37 3.37 0 0 0 3.375 3.375 3.37 3.37 0 0 0 3.375-3.375 3.37 3.37 0 0 0-3.375-3.375 3.37 3.37 0 0 0-3.375 3.375Z"}}}};Vk.add(P$);var L$=o.div.withConfig({displayName:"Filterstyles__FilterContent",componentId:"sc-wv89q5-0"})(["margin-left:",";font-size:14px;font-weight:400;width:100%;"],(function(e){return e.$noMarginLeft?"0px":"30px"})),F$=o(_$).withConfig({displayName:"Filterstyles__StyledRadio",componentId:"sc-wv89q5-1"})(["margin-left:-8px;"]),z$=o(Xq).withConfig({displayName:"Filterstyles__StyledDateRangePicker",componentId:"sc-wv89q5-2"})(["margin-left:20px;"]),j$=o.div.withConfig({displayName:"Filterstyles__PeriodContainer",componentId:"sc-wv89q5-3"})(["display:grid;grid-gap:6px;grid-template-columns:repeat(3,auto);margin-right:20px;margin-left:20px;"]),B$=o.div.withConfig({displayName:"Filterstyles__AutoCompleteFilterWrapper",componentId:"sc-wv89q5-4"})(["max-width:270px;"]),V$=o.div.withConfig({displayName:"Filterstyles__OptionListItem",componentId:"sc-wv89q5-5"})(["cursor:pointer;color:",";display:flex;align-items:center;padding-left:30px;height:30px;&:hover{background:#3e4f5c;}"],ky.semantic.text.secondary),W$=o(yp).withConfig({displayName:"Filterstyles__StyledCheckbox",componentId:"sc-wv89q5-6"})(["&.MuiCheckbox-root{color:",";padding:0px;margin-right:16px;font-family:'Equinor';&.Mui-checked{color:",";}&:hover{::before{background-color:#ade2e61a;}}& svg{width:24px;height:24px;}}"],ky.slateBlue.tint[30],ky.slateBlue.tint[30]),H$=o.span.withConfig({displayName:"Filterstyles__Name",componentId:"sc-wv89q5-7"})(["font-weight:500;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:inherit;margin-top:2px;user-select:none;"]),q$=o.div.withConfig({displayName:"Filterstyles__OptionNumberWrapper",componentId:"sc-wv89q5-8"})(["color:",";margin-left:4px;margin-top:2px;"],ky.semantic.text.tertiary),U$=o(xP).withConfig({displayName:"Filterstyles__TextFieldNoPadding",componentId:"sc-wv89q5-9"})(["padding-bottom:1px;"]),K$=o(Vk).withConfig({displayName:"Filterstyles__Icon",componentId:"sc-wv89q5-10"})(["path{fill:"," !important;}"],ky.semantic.text.tertiary),Y$=o.div.withConfig({displayName:"Filterstyles__WarningWrapper",componentId:"sc-wv89q5-11"})(["color:",";margin-top:-14px;margin-left:30px;white-space:nowrap;"],ky.white.base),G$=o.div.withConfig({displayName:"Filterstyles__ErrorWrapper",componentId:"sc-wv89q5-12"})(["color:",";margin-left:24px;white-space:nowrap;"],ky.secondary.red),Z$=function(e){var r=e.checked,o=e.onChange,i=e.count;return n(V$,{onClick:o,"data-testid":"checkboxFilterAll",children:[t(W$,{checked:r}),t(H$,{children:"Select all"}),void 0!==i&&n(q$,{children:["(",i,")"]})]})},J$=function(e,t,n,r,o){var i=function(e,t){return Object.keys(e).filter((function(e){return e!==t})).reduce((function(t,n){return Object.assign(t,Bb({},n,e[n]))}),{})}(r,t),a=r[t];if(void 0===a)throw new Error("Filter is not set up correctly");var l=a.showNumbers,s=!!o&&!!l,c=s?M$(e,i,n):[],u=void 0!==a.options?a.options.filter((function(e){return!!e.trim()})):Array.from(new Set(e.map((function(e){return e[t]})))).filter((function(e){return void 0!==e&&("string"==typeof e&&""!==e.trim())})),d=u.map((function(e){var o={};return o[t]=new Set([e]),{filterKey:t,label:e,checked:!!n[t]&&n[t].has(e),count:s?M$(c,r,o).length:0,all:c.length}}));return d},X$=function(e){var r,o=b$(),i=o.source,a=o.selection,l=o.filter,s=o.setSelection,c=e.filterKey,u=e.isVisible,d=void 0===u||u,f=wx(b([]),2),p=f[0],h=f[1],g=wx(b(!1),2),v=g[0],y=g[1],x=l[c],w=!!x.showNumbers&&!!d&&i.length<10001;m((function(){var e=void 0!==x.sortFn?x.sortFn:void 0===x.options?I$:function(){return 0};h(J$(i,c,a,l,w).sort(e))}),[x,c,a,i,l,w]),m((function(){var e=p.some((function(e){return!e.checked}));y(!e)}),[p,y]);var C=function(e){return s(function(e,t,n){if(e[t]&&e[t].has(n)){var r=Array.from(e[t]),o=r.indexOf(n);r.splice(o,1),e[t]=new Set(r),0===e[t].size&&delete e[t]}else if(e[t]){var i=Array.from(e[t]);i.push(n),e[t]=new Set(i)}else e[t]=new Set([n]);return e}(a,c,e))};return n(L$,{"data-testid":"checkboxgroup-".concat(c),$noMarginLeft:!0,children:[x.showAll&&t(Z$,{onChange:function(){v?delete a[c]:(delete a[c],a[c]=new Set,p.forEach((function(e){return a[c].add(e.label)}))),s(a)},checked:v,count:w?null===(r=p[0])||void 0===r?void 0:r.all:void 0}),p.map((function(e){var r=void 0!==x.icons&&void 0!==x.icons[e.label]?x.icons[e.label]:void 0;return n(V$,{onClick:function(){return C(e.label)},children:[t(W$,{"data-testid":"checkboxFilter",checked:e.checked},"".concat(e.label,"-").concat(x.key)),r,t(H$,{children:e.label}),w&&n(q$,{children:["(",e.count,")"]})]},"div"+c+e.label)}))]})},Q$=function(e){var n=e.filterKey,r=b$(),o=r.selection,i=r.setSelection,a=wx(b(""),2),l=a[0],s=a[1];m((function(){if(o[n]){var e=wx(o[n],1)[0];s(e)}else s("")}),[n,o]);return t(L$,{children:t(U$,{handleValueChange:function(e){return t=e,(r=Object.assign({},o))[n]=new Set([t]),i(r),void s(t);var t,r},value:l,id:"textfield-text","data-testid":"searchFilter",width:"253px",height:"24px",style:{marginTop:20,marginBottom:20},iocVariant:"opportunity",placeholder:"",inputIcon:t(K$,{name:"search",color:"".concat(ky.semantic.text.tertiary," !important"),style:{fill:"".concat(ky.semantic.text.tertiary," !important")}},"search")})})},$$=function(e){var r,o,i=e.filterKey,a=b$(),l=a.selection,s=a.setSelection,c=a.filter,u=wx(b(!1),2),d=u[0],f=u[1],p=wx(b(null),2),h=p[0],g=p[1],v=wx(b(null),2),y=v[0],x=v[1],w=wx(b("period"),2),C=w[0],E=w[1],T=wx(b("Last"),2),k=T[0],S=T[1],N=wx(b("Next"),2),O=N[0],A=N[1],M=wx(b(void 0),2),I=M[0],R=M[1],D=wx(b(void 0),2),_=D[0],P=D[1],L=wx(b("Years"),2),F=L[0],z=L[1],j=wx(b("Months"),2),B=j[0],V=j[1],W=function(e){"period"===C?H(h,y):q(k,I,F,O,_,B),E(e.target.value)};m((function(){var e,t=null!==(e=l[i])&&void 0!==e?e:new Set;if(void 0!==l[i]){var n=wx(Array.from(t),3),r=n[0],o=n[1],a=n[2];if("exact"===r)E(r),void 0===o?(g(null),x(null)):void 0!==o&&void 0===a?(g(""===o?null:hq(o)),x(""===o?null:hq(o))):(g(""===o?null:hq(o)),x(""===a?null:hq(a)));else if("period"===r){E(r);var s=wx("string"==typeof o?o.split("_"):[],3),c=s[0],u=void 0===c?void 0:c,d=s[1],f=void 0===d?void 0:d,p=s[2],h=void 0===p?void 0:p,m=wx("string"==typeof a?a.split("_"):[],3),v=m[0],b=void 0===v?void 0:v,y=m[1],w=void 0===y?void 0:y,T=m[2],k=void 0===T?void 0:T;S(O$(u)&&T$.includes(u)?u:"Last"),R(void 0!==f&&"undefined"!==f?Number(f):void 0),z(O$(h)?h:"Years"),A(O$(b)&&T$.includes(b)?b:"Next"),P(void 0!==w&&"undefined"!==w?Number(w):void 0),V(O$(k)?k:"Months");var N=N$("".concat(u,"_").concat(f,"_").concat(h));g(void 0!==N?N:null);var O=N$("".concat(b,"_").concat(w,"_").concat(k));x(void 0!==O?O:null)}}else"exact"===C?(g(null),x(null)):(R(void 0),P(void 0))}),[i,l,g,x]);var H=function(e,t){if(null!==e&&null!==t&&eV(e,t))f(!0);else{if(f(!1),null===e&&null===t){var n=Object.assign({},l);return delete n[i],void s(n)}var r=e&&!isNaN(Number(e))?Eq(e,{representation:"date"}):"",o=t&&!isNaN(Number(t))?Eq(t,{representation:"date"}):"",a=Object.assign({},l);a[i]=new Set(["exact",r,o]),s(a)}},q=function(e,t,n,r,o,a){f(t===o&&e===r&&n===a);var c=Object.assign({},l);void 0!==t||void 0!==o?c[i]=new Set(["period","".concat(e,"_").concat(t,"_").concat(n),"".concat(r,"_").concat(o,"_").concat(a)]):void 0!==c[i]&&delete c[i],s(c);var u=N$("".concat(e,"_").concat(t,"_").concat(n));g(void 0!==u?u:null);var d=N$("".concat(r,"_").concat(o,"_").concat(a));x(void 0!==d?d:null)};return n(L$,{"data-testid":"datefilter-".concat(i),children:[n("div",{style:{marginTop:24},children:[t(F$,{compact:!0,label:"Period setting",name:"group",value:"period",checked:"period"===C,onChange:W}),n(j$,{children:[t(OP,{label:"From",width:"74px",height:"24px",options:k$.map((function(e){return e})),optionLabel:function(e){return e},hideClearButton:!0,disabled:"period"!==C,"data-testid":"autocomplete",selectedOptions:[k||"Last"],onOptionsChange:function(e){S(e.selectedItems[0]),q(e.selectedItems[0],I,F,O,_,B)}}),t(xP,{handleValueChange:function(e){return function(e){if(""===e&&void 0===_){var t=Object.assign({},l);return delete t[i],s(t),R(void 0),void g(null)}var n=""===e?void 0:Number(e);void 0!==n&&n<0&&(n=0),P(void 0!==n?Number(n):n),q(k,n,F,O,_,B)}(e)},value:null!==(r=null==I?void 0:I.toString())&&void 0!==r?r:"",type:"number",min:"0",disabled:"period"!==C,id:"textfield-number",width:"57px",height:"24px",iocVariant:"period"===C&&c[i].isFromDateRequired&&void 0===I?"error":void 0}),t(OP,{label:"",width:"105px",height:"24px",hideClearButton:!0,disabled:"period"!==C,options:C$.map((function(e){return e})),optionLabel:function(e){return e},"data-testid":"autocomplete",selectedOptions:[F],onOptionsChange:function(e){z(e.selectedItems[0]),q(k,I,e.selectedItems[0],O,_,B)}})]}),"period"===C&&c[i].isFromDateRequired&&void 0===I&&t(Y$,{children:"From period is required"}),n(j$,{children:[t(OP,{label:"To",width:"74px",height:"24px",options:k$.map((function(e){return e})),optionLabel:function(e){return e},hideClearButton:!0,disabled:"period"!==C,"data-testid":"autocomplete",selectedOptions:[O||"Next"],onOptionsChange:function(e){A(e.selectedItems[0]),q(k,I,F,e.selectedItems[0],_,B)}}),t(xP,{handleValueChange:function(e){return function(e){if(""===e&&void 0===I){var t=Object.assign({},l);return delete t[i],s(t),void P(void 0)}var n=""===e?void 0:Number(e);void 0!==n&&n<0&&(n=0),P(void 0!==n?Number(n):n),q(k,I,F,O,n,B)}(e)},value:null!==(o=null==_?void 0:_.toString())&&void 0!==o?o:"",type:"number",min:"0",disabled:"period"!==C,id:"textfield-number",width:"57px",height:"24px",iocVariant:"period"===C&&c[i].isToDateRequired&&void 0===_?"error":void 0}),t(OP,{label:"",width:"105px",height:"24px",hideClearButton:!0,disabled:"period"!==C,options:C$.map((function(e){return e})),optionLabel:function(e){return e},"data-testid":"autocomplete",selectedOptions:[B],onOptionsChange:function(e){V(e.selectedItems[0]),q(k,I,F,O,_,e.selectedItems[0])}})]}),"period"===C&&c[i].isToDateRequired&&void 0===_&&t(Y$,{children:"To period is required"}),d&&"period"===C&&t(G$,{children:"The from and to dataset must differ"})]}),n("div",{style:{marginTop:16},children:[t(F$,{compact:!0,label:"Exact date",name:"group",value:"exact",checked:"exact"===C,onChange:W}),t(z$,{displayVertically:!0,disabled:"exact"!==C,fromProps:{label:"From date",value:h,compact:!0,required:"exact"===C&&c[i].isFromDateRequired,onChange:function(e){H(e,y)}},toProps:{label:"To date",value:y,compact:!0,required:"exact"===C&&c[i].isToDateRequired,onChange:function(e){return H(h,e)}},rangeErrorText:"Start date must come before the end date."}),d&&"exact"===C&&t(G$,{children:"The from and to dataset must differ"})]})]})},e0=function(e){var n=e.filterKey,r=b$(),o=r.source,i=r.selection,a=r.setSelection,l=r.filter,s=wx(b([]),2),c=s[0],u=s[1],d=wx(b([]),2),f=d[0],p=d[1],h=l[n],g=function(e,t){return null===t?1:null===e?-1:null==e?void 0:e.localeCompare(t)};m((function(){var e=h.options,t=h.sortFn,r=void 0!==t?t:g,i=e;e||(i=o.map((function(e){return e[n]})).filter((function(e){return void 0!==e&&("string"!=typeof e||""!==e.trim())})).sort(r),i=Array.from(new Set(i)));var a=i.map((function(e,t){return{id:t,name:e}}));u(a)}),[u,h,o,n]),m((function(){if(0!==c.length){var e=i[n];if(void 0!==e){var t=Array.from(e).map((function(e){return c.find((function(t){return t.name===e}))}));p(t)}else p([])}}),[p,i,n,c]);return t(L$,{"data-testid":"autocompletefilter-".concat(n),children:t(B$,{style:{marginTop:20,marginBottom:4},"data-testid":"autocompletefilter",children:t(OP,{label:"",width:"253px",height:"24px",showThinBorder:!0,options:c,optionLabel:function(e){return e.name},placeholder:"Select ".concat(h.title.toLowerCase()),multiple:!0,"data-testid":"autocomplete",selectedOptions:f,onOptionsChange:function(e){var t=Object.assign({},i);if(e.selectedItems.length>0){var r=sx(e.selectedItems).map((function(e){return e.id})).filter((function(e,t,n){return n.indexOf(e)===n.lastIndexOf(e)})),o=e.selectedItems.filter((function(e){return r.includes(e.id)}));t[n]=new Set(o.map((function(e){return e.name})))}else delete t[n];a(t)}})})})};var t0=function(){this.__data__=[],this.size=0};var n0=function(e,t){return e===t||e!=e&&t!=t},r0=n0;var o0=function(e,t){for(var n=e.length;n--;)if(r0(e[n][0],t))return n;return-1},i0=o0,a0=Array.prototype.splice;var l0=function(e){var t=this.__data__,n=i0(t,e);return!(n<0)&&(n==t.length-1?t.pop():a0.call(t,n,1),--this.size,!0)},s0=o0;var c0=function(e){var t=this.__data__,n=s0(t,e);return n<0?void 0:t[n][1]},u0=o0;var d0=o0;var f0=function(e,t){var n=this.__data__,r=d0(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},p0=t0,h0=l0,g0=c0,m0=function(e){return u0(this.__data__,e)>-1},v0=f0;function b0(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}b0.prototype.clear=p0,b0.prototype.delete=h0,b0.prototype.get=g0,b0.prototype.has=m0,b0.prototype.set=v0;var y0=b0,x0=y0;var w0=function(){this.__data__=new x0,this.size=0};var C0=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var E0=function(e){return this.__data__.get(e)};var T0=function(e){return this.__data__.has(e)},k0="object"==typeof U&&U&&U.Object===Object&&U,S0=k0,N0="object"==typeof self&&self&&self.Object===Object&&self,O0=S0||N0||Function("return this")(),A0=O0.Symbol,M0=A0,I0=Object.prototype,R0=I0.hasOwnProperty,D0=I0.toString,_0=M0?M0.toStringTag:void 0;var P0=function(e){var t=R0.call(e,_0),n=e[_0];try{e[_0]=void 0;var r=!0}catch(e){}var o=D0.call(e);return r&&(t?e[_0]=n:delete e[_0]),o},L0=Object.prototype.toString;var F0=P0,z0=function(e){return L0.call(e)},j0=A0?A0.toStringTag:void 0;var B0=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j0&&j0 in Object(e)?F0(e):z0(e)};var V0=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},W0=B0,H0=V0;var q0,U0=function(e){if(!H0(e))return!1;var t=W0(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K0=O0["__core-js_shared__"],Y0=(q0=/[^.]+$/.exec(K0&&K0.keys&&K0.keys.IE_PROTO||""))?"Symbol(src)_1."+q0:"";var G0=function(e){return!!Y0&&Y0 in e},Z0=Function.prototype.toString;var J0=function(e){if(null!=e){try{return Z0.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X0=U0,Q0=G0,$0=V0,e1=J0,t1=/^\[object .+?Constructor\]$/,n1=Function.prototype,r1=Object.prototype,o1=n1.toString,i1=r1.hasOwnProperty,a1=RegExp("^"+o1.call(i1).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var l1=function(e,t){return null==e?void 0:e[t]},s1=function(e){return!(!$0(e)||Q0(e))&&(X0(e)?a1:t1).test(e1(e))},c1=l1;var u1=function(e,t){var n=c1(e,t);return s1(n)?n:void 0},d1=u1(O0,"Map"),f1=u1(Object,"create"),p1=f1;var h1=function(){this.__data__=p1?p1(null):{},this.size=0};var g1=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},m1=f1,v1=Object.prototype.hasOwnProperty;var b1=function(e){var t=this.__data__;if(m1){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return v1.call(t,e)?t[e]:void 0},y1=f1,x1=Object.prototype.hasOwnProperty;var w1=f1;var C1=h1,E1=g1,T1=b1,k1=function(e){var t=this.__data__;return y1?void 0!==t[e]:x1.call(t,e)},S1=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=w1&&void 0===t?"__lodash_hash_undefined__":t,this};function N1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N1.prototype.clear=C1,N1.prototype.delete=E1,N1.prototype.get=T1,N1.prototype.has=k1,N1.prototype.set=S1;var O1=N1,A1=y0,M1=d1;var I1=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var R1=function(e,t){var n=e.__data__;return I1(t)?n["string"==typeof t?"string":"hash"]:n.map},D1=R1;var _1=R1;var P1=R1;var L1=R1;var F1=function(e,t){var n=L1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},z1=function(){this.size=0,this.__data__={hash:new O1,map:new(M1||A1),string:new O1}},j1=function(e){var t=D1(this,e).delete(e);return this.size-=t?1:0,t},B1=function(e){return _1(this,e).get(e)},V1=function(e){return P1(this,e).has(e)},W1=F1;function H1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}H1.prototype.clear=z1,H1.prototype.delete=j1,H1.prototype.get=B1,H1.prototype.has=V1,H1.prototype.set=W1;var q1=y0,U1=d1,K1=H1;var Y1=y0,G1=w0,Z1=C0,J1=E0,X1=T0,Q1=function(e,t){var n=this.__data__;if(n instanceof q1){var r=n.__data__;if(!U1||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new K1(r)}return n.set(e,t),this.size=n.size,this};function $1(e){var t=this.__data__=new Y1(e);this.size=t.size}$1.prototype.clear=G1,$1.prototype.delete=Z1,$1.prototype.get=J1,$1.prototype.has=X1,$1.prototype.set=Q1;var e2=$1;var t2=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},n2=u1,r2=function(){try{var e=n2(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var o2=function(e,t,n){"__proto__"==t&&r2?r2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},i2=o2,a2=n0,l2=Object.prototype.hasOwnProperty;var s2=function(e,t,n){var r=e[t];l2.call(e,t)&&a2(r,n)&&(void 0!==n||t in e)||i2(e,t,n)},c2=s2,u2=o2;var d2=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=r?r(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),o?u2(n,l,s):c2(n,l,s)}return n};var f2=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var p2=function(e){return null!=e&&"object"==typeof e},h2=B0,g2=p2;var m2=function(e){return g2(e)&&"[object Arguments]"==h2(e)},v2=p2,b2=Object.prototype,y2=b2.hasOwnProperty,x2=b2.propertyIsEnumerable,w2=m2(function(){return arguments}())?m2:function(e){return v2(e)&&y2.call(e,"callee")&&!x2.call(e,"callee")},C2=Array.isArray,E2={exports:{}};var T2=function(){return!1};!function(e,t){var n=O0,r=T2,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(E2,E2.exports);var k2=E2.exports,S2=/^(?:0|[1-9]\d*)$/;var N2=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&S2.test(e))&&e>-1&&e%1==0&&e<t};var O2=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},A2=B0,M2=O2,I2=p2,R2={};R2["[object Float32Array]"]=R2["[object Float64Array]"]=R2["[object Int8Array]"]=R2["[object Int16Array]"]=R2["[object Int32Array]"]=R2["[object Uint8Array]"]=R2["[object Uint8ClampedArray]"]=R2["[object Uint16Array]"]=R2["[object Uint32Array]"]=!0,R2["[object Arguments]"]=R2["[object Array]"]=R2["[object ArrayBuffer]"]=R2["[object Boolean]"]=R2["[object DataView]"]=R2["[object Date]"]=R2["[object Error]"]=R2["[object Function]"]=R2["[object Map]"]=R2["[object Number]"]=R2["[object Object]"]=R2["[object RegExp]"]=R2["[object Set]"]=R2["[object String]"]=R2["[object WeakMap]"]=!1;var D2=function(e){return I2(e)&&M2(e.length)&&!!R2[A2(e)]};var _2=function(e){return function(t){return e(t)}},P2={exports:{}};!function(e,t){var n=k0,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(P2,P2.exports);var L2=P2.exports,F2=D2,z2=_2,j2=L2&&L2.isTypedArray,B2=j2?z2(j2):F2,V2=f2,W2=w2,H2=C2,q2=k2,U2=N2,K2=B2,Y2=Object.prototype.hasOwnProperty;var G2=function(e,t){var n=H2(e),r=!n&&W2(e),o=!n&&!r&&q2(e),i=!n&&!r&&!o&&K2(e),a=n||r||o||i,l=a?V2(e.length,String):[],s=l.length;for(var c in e)!t&&!Y2.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||U2(c,s))||l.push(c);return l},Z2=Object.prototype;var J2=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Z2)};var X2=function(e,t){return function(n){return e(t(n))}},Q2=X2(Object.keys,Object),$2=J2,e3=Q2,t3=Object.prototype.hasOwnProperty;var n3=function(e){if(!$2(e))return e3(e);var t=[];for(var n in Object(e))t3.call(e,n)&&"constructor"!=n&&t.push(n);return t},r3=U0,o3=O2;var i3=function(e){return null!=e&&o3(e.length)&&!r3(e)},a3=G2,l3=n3,s3=i3;var c3=function(e){return s3(e)?a3(e):l3(e)},u3=d2,d3=c3;var f3=function(e,t){return e&&u3(t,d3(t),e)};var p3=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},h3=V0,g3=J2,m3=p3,v3=Object.prototype.hasOwnProperty;var b3=function(e){if(!h3(e))return m3(e);var t=g3(e),n=[];for(var r in e)("constructor"!=r||!t&&v3.call(e,r))&&n.push(r);return n},y3=G2,x3=b3,w3=i3;var C3=function(e){return w3(e)?y3(e,!0):x3(e)},E3=d2,T3=C3;var k3=function(e,t){return e&&E3(t,T3(t),e)},S3={exports:{}};!function(e,t){var n=O0,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(S3,S3.exports);var N3=S3.exports;var O3=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var A3=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var M3=function(){return[]},I3=A3,R3=M3,D3=Object.prototype.propertyIsEnumerable,_3=Object.getOwnPropertySymbols,P3=_3?function(e){return null==e?[]:(e=Object(e),I3(_3(e),(function(t){return D3.call(e,t)})))}:R3,L3=P3,F3=d2,z3=L3;var j3=function(e,t){return F3(e,z3(e),t)};var B3=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},V3=X2(Object.getPrototypeOf,Object),W3=B3,H3=V3,q3=L3,U3=M3,K3=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)W3(t,q3(e)),e=H3(e);return t}:U3,Y3=d2,G3=K3;var Z3=function(e,t){return Y3(e,G3(e),t)},J3=B3,X3=C2;var Q3=function(e,t,n){var r=t(e);return X3(e)?r:J3(r,n(e))},$3=Q3,e4=L3,t4=c3;var n4=function(e){return $3(e,t4,e4)},r4=Q3,o4=K3,i4=C3;var a4=function(e){return r4(e,i4,o4)},l4=u1(O0,"DataView"),s4=d1,c4=u1(O0,"Promise"),u4=u1(O0,"Set"),d4=u1(O0,"WeakMap"),f4=B0,p4=J0,h4="[object Map]",g4="[object Promise]",m4="[object Set]",v4="[object WeakMap]",b4="[object DataView]",y4=p4(l4),x4=p4(s4),w4=p4(c4),C4=p4(u4),E4=p4(d4),T4=f4;(l4&&T4(new l4(new ArrayBuffer(1)))!=b4||s4&&T4(new s4)!=h4||c4&&T4(c4.resolve())!=g4||u4&&T4(new u4)!=m4||d4&&T4(new d4)!=v4)&&(T4=function(e){var t=f4(e),n="[object Object]"==t?e.constructor:void 0,r=n?p4(n):"";if(r)switch(r){case y4:return b4;case x4:return h4;case w4:return g4;case C4:return m4;case E4:return v4}return t});var k4=T4,S4=Object.prototype.hasOwnProperty;var N4=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&S4.call(e,"index")&&(n.index=e.index,n.input=e.input),n},O4=O0.Uint8Array;var A4=function(e){var t=new e.constructor(e.byteLength);return new O4(t).set(new O4(e)),t},M4=A4;var I4=function(e,t){var n=t?M4(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},R4=/\w*$/;var D4=function(e){var t=new e.constructor(e.source,R4.exec(e));return t.lastIndex=e.lastIndex,t},_4=A0?A0.prototype:void 0,P4=_4?_4.valueOf:void 0;var L4=function(e){return P4?Object(P4.call(e)):{}},F4=A4;var z4=A4,j4=I4,B4=D4,V4=L4,W4=function(e,t){var n=t?F4(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var H4=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return z4(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return j4(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return W4(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return B4(e);case"[object Symbol]":return V4(e)}},q4=V0,U4=Object.create,K4=function(){function e(){}return function(t){if(!q4(t))return{};if(U4)return U4(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Y4=K4,G4=V3,Z4=J2;var J4=function(e){return"function"!=typeof e.constructor||Z4(e)?{}:Y4(G4(e))},X4=k4,Q4=p2;var $4=function(e){return Q4(e)&&"[object Map]"==X4(e)},e6=_2,t6=L2&&L2.isMap,n6=t6?e6(t6):$4,r6=k4,o6=p2;var i6=function(e){return o6(e)&&"[object Set]"==r6(e)},a6=_2,l6=L2&&L2.isSet,s6=l6?a6(l6):i6,c6=e2,u6=t2,d6=s2,f6=f3,p6=k3,h6=N3,g6=O3,m6=j3,v6=Z3,b6=n4,y6=a4,x6=k4,w6=N4,C6=H4,E6=J4,T6=C2,k6=k2,S6=n6,N6=V0,O6=s6,A6=c3,M6=C3,I6="[object Arguments]",R6="[object Function]",D6="[object Object]",_6={};_6[I6]=_6["[object Array]"]=_6["[object ArrayBuffer]"]=_6["[object DataView]"]=_6["[object Boolean]"]=_6["[object Date]"]=_6["[object Float32Array]"]=_6["[object Float64Array]"]=_6["[object Int8Array]"]=_6["[object Int16Array]"]=_6["[object Int32Array]"]=_6["[object Map]"]=_6["[object Number]"]=_6[D6]=_6["[object RegExp]"]=_6["[object Set]"]=_6["[object String]"]=_6["[object Symbol]"]=_6["[object Uint8Array]"]=_6["[object Uint8ClampedArray]"]=_6["[object Uint16Array]"]=_6["[object Uint32Array]"]=!0,_6["[object Error]"]=_6[R6]=_6["[object WeakMap]"]=!1;var P6=function e(t,n,r,o,i,a){var l,s=1&n,c=2&n,u=4&n;if(r&&(l=i?r(t,o,i,a):r(t)),void 0!==l)return l;if(!N6(t))return t;var d=T6(t);if(d){if(l=w6(t),!s)return g6(t,l)}else{var f=x6(t),p=f==R6||"[object GeneratorFunction]"==f;if(k6(t))return h6(t,s);if(f==D6||f==I6||p&&!i){if(l=c||p?{}:E6(t),!s)return c?v6(t,p6(l,t)):m6(t,f6(l,t))}else{if(!_6[f])return i?t:{};l=C6(t,f,s)}}a||(a=new c6);var h=a.get(t);if(h)return h;a.set(t,l),O6(t)?t.forEach((function(o){l.add(e(o,n,r,o,t,a))})):S6(t)&&t.forEach((function(o,i){l.set(i,e(o,n,r,i,t,a))}));var g=d?void 0:(u?c?y6:b6:c?M6:A6)(t);return u6(g||t,(function(o,i){g&&(o=t[i=o]),d6(l,i,e(o,n,r,i,t,a))})),l},L6=P6;var F6=K((function(e){return L6(e,5)})),z6={filter_list:Lx};Vk.add(z6);var j6=o.div.withConfig({displayName:"FilterBarstyles__FilterBarContainer",componentId:"sc-1w4mb6i-0"})(["position:relative;display:flex;flex-direction:row;background-color:",";padding-left:16px;margin:0 0px 1px 0px;"],ky.slateBlue.base),B6=o($l).withConfig({displayName:"FilterBarstyles__CurrentFilterList",componentId:"sc-1w4mb6i-1"})(["&.MuiAccordionSummary-root{display:flex;width:100%;flex-direction:row;min-height:30px !important;background-color:",";margin-bottom:2px;align-items:center;border-radius:0px;padding-left:16px;padding-right:16px;cursor:default !important;font-family:'Equinor';.MuiAccordionSummary-content{flex-wrap:wrap;margin:6px 0px;}}"],ky.slateBlue.base),V6=o.span.withConfig({displayName:"FilterBarstyles__FilterHeader",componentId:"sc-1w4mb6i-2"})(["display:flex;align-items:center;flex-grow:0;align-self:flex-start;margin-top:4px;"]),W6=o.span.withConfig({displayName:"FilterBarstyles__FilterHeaderText",componentId:"sc-1w4mb6i-3"})(["text-transform:uppercase;white-space:nowrap;font-size:12px;margin-right:4px;color:",";margin-top:3px;"],ky.semantic.text.tertiary),H6=o(Vk).withConfig({displayName:"FilterBarstyles__FilterHeaderIcon",componentId:"sc-1w4mb6i-4"})(["color:",";margin-left:6px;cursor:pointer;:hover{color:",";}"],ky.mossGreen.base,ky.mossGreen.tint[45]),q6=o.div.withConfig({displayName:"FilterBarstyles__FilterItem",componentId:"sc-1w4mb6i-5"})(["justify-content:space-between;display:flex;align-items:center;cursor:default;height:18px;margin-left:6px;background-color:",";border-radius:12px;font-size:12px;color:",";padding:2px 8px;margin-top:2px;margin-bottom:2px;span{padding-left:4px;padding-right:4px;font-weight:500;align-self:baseline;}"],ky.slateBlue.tint[20],ky.secondary.sinbad),U6=o(is).withConfig({displayName:"FilterBarstyles__RemoveFilterButton",componentId:"sc-1w4mb6i-6"})(["&.MuiButtonBase-root{color:",";padding:0px;font-family:'Equinor';&:hover{background-color:transparent;color:",";}}"],ky.secondary.sinbad,ky.white.base),K6=o(wa).withConfig({displayName:"FilterBarstyles__RemoveFilterIcon",componentId:"sc-1w4mb6i-7"})(["height:16px;width:16px;"]),Y6=x({}),G6=function(){return f(Y6)},Z6=Y6.Provider;Y6.Consumer;var J6,X6=function(){var e=b$(),r=e.selection,o=e.filter,i=e.setSelection,a=G6().onSettingsVisibilityChange,l=function(e,t){var n,a=F6(r);if((null===(n=o[e])||void 0===n?void 0:n.type)===d$.date){var l=wx(Array.from(a[e]),3),s=l[0],c=l[1],u=l[2];if(void 0===u)delete a[e];else{var d=c===t?"":c,f=u===t?"":u;""!==d&&!d.includes("undefined")||""!==f&&!f.includes("undefined")?a[e]=new Set([s,d,f]):delete a[e]}}else{var p=Array.from(a[e]),h=p.indexOf(t);p.splice(h,1),a[e]=new Set(p),0===a[e].size&&delete a[e]}i(a)},s=Object.keys(r);return n(j6,{"data-testid":"filterBar",children:[n(V6,{children:[t(W6,{children:"Active filters"}),t(H6,{name:"filter_list",onClick:a},"filter_list")]}),t(B6,{children:s.map((function(e){return t(Q6,{filter:o[e],onDeleteItem:l,selection:r[e]},"filterlabel-".concat(e))}))})]},"filterBar")},Q6=function(e){var o=e.filter,i=e.selection,a=e.onDeleteItem,l=Array.from(i),s=function(e,r,i){return n(q6,{"data-testid":"filterBarItem",children:[t("span",{style:{textTransform:"capitalize",width:"max-content"},children:r}),!i&&t(U6,{"data-testid":"RemoveFilterButton",onClick:function(t){t.stopPropagation(),a(null==o?void 0:o.key,e)},children:t(K6,{fontSize:"small",children:t("path",{d:jx})})})]},"filterBarItem-".concat(e,"-").concat(null==o?void 0:o.key))};if((null==o?void 0:o.type)===d$.date){var c=void 0,u=void 0,d=l[0],f=l[1],p=l[2];if("exact"===d)""!==f&&(c="".concat(null==o?void 0:o.title," from - ").concat(wW(hq(f),o.dateFormat))),""!==p&&(u="".concat(null==o?void 0:o.title," to - ").concat(wW(hq(p),o.dateFormat)));else if("period"===d){if(""!==f&&void 0!==f){var h=wx(null==f?void 0:f.split("_"),3),g=h[0],m=h[1],v=h[2];c="undefined"===m?void 0:"".concat(null==o?void 0:o.title," from - ").concat(g," ").concat(m," ").concat(v)}if(""!==p&&void 0!==p){var b=wx(null==p?void 0:p.split("_"),3),y=b[0],x=b[1],w=b[2];u="undefined"===x?void 0:"".concat(null==o?void 0:o.title," to - ").concat(y," ").concat(x," ").concat(w)}}return n(r,{children:[void 0!==c&&s(l[1],c,o.isFromDateRequired),void 0!==u&&s(l[2],u,o.isToDateRequired)]})}return t(r,{children:l.map((function(e,t){return void 0===e||""===e.trim()?null:s(e,function(e,t){var n;try{switch(null==o?void 0:o.type){case d$.date:return"".concat(null==o?void 0:o.title," ").concat(0===t?"from":"to"," - ").concat(wW(hq(e),o.dateFormat));case d$.checkbox:case d$.autocomplete:case d$.search:default:return"".concat(null!==(n=null==o?void 0:o.title)&&void 0!==n?n:"Search"," - ").concat(e)}}catch(n){console.error(n,e,t,o,i)}return""}(e,t))}))})},$6=o.div.withConfig({displayName:"SmallDialog__DialogWrapper",componentId:"sc-1cmginq-0"})(["z-index:1000;width:258px;border-radius:4px;background:#3e4f5c;left:",";top:",";position:inherit;padding:0;padding-bottom:12px;box-shadow:0px 3px 5px -1px rgb(0 0 0 / 20%),0px 5px 8px 0px rgb(0 0 0 / 14%),0px 1px 14px 0px rgb(0 0 0 / 12%);:hover{background:#3e4f5c;}"],(function(e){return e.$horizontallyCenterDialog?"calc(50% - 129px)":"6px"}),(function(e){return e.$verticallyCenterDialog?"calc(50% - 64px)":"0"})),e5=o.div.withConfig({displayName:"SmallDialog__BackdropWrapper",componentId:"sc-1cmginq-1"})(["z-index:1000;width:100%;height:100%;background:rgba(19,38,52,0.5);position:absolute;top:0;left:0;"]),t5=o.div.withConfig({displayName:"SmallDialog__IconTextWrapper",componentId:"sc-1cmginq-2"})(["display:flex;flex-direction:row;align-items:end;padding-left:12px;"]),n5=o(wa).withConfig({displayName:"SmallDialog__Icon",componentId:"sc-1cmginq-3"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),r5=o.div.withConfig({displayName:"SmallDialog__DialogHeaderRow",componentId:"sc-1cmginq-4"})(["display:flex;justify-content:space-between;padding:0;align-items:center;:hover{background:#3e4f5c;}"]),o5=o.span.withConfig({displayName:"SmallDialog__Title",componentId:"sc-1cmginq-5"})(["color:",";font-size:12px;font-weight:500;"],ky.semantic.text.tertiary),i5=o.div.withConfig({displayName:"SmallDialog__ButtonWrapper",componentId:"sc-1cmginq-6"})((function(e){var t=e.theme;return i(J6||(J6=lD(["\n display: flex;\n align-items: center;\n justify-content: flex-end;\n padding: ",";\n gap: 8px;\n "])),t.spacing(2,2,0,2))})),a5=o.div.withConfig({displayName:"SmallDialog__DialogContentContainer",componentId:"sc-1cmginq-7"})(["display:flex;flex-direction:column;margin-left:24px;margin-right:24px;font-size:12px;font-weight:500;"]),l5=function(e){var r=e.handleClose,o=e.primaryButtonProps,i=e.secondaryButtonProps,a=e.customActionComponent,l=e.testId,s=e.titleText,c=e.titleIcon,u=e.primaryButtonText,d=e.secondaryButtonText,f=e.horizontallyCenterDialog,p=e.verticallyCenterDialog,h=e.children;return t(e5,{children:n($6,{"data-testid":null!=l?l:"SmallDialog",$horizontallyCenterDialog:f,$verticallyCenterDialog:p,children:[n(r5,{children:[n(t5,{children:[c,t(o5,{children:s})]}),t(is,{"data-testid":"xCloseButton",onClick:function(e){e.stopPropagation(),r()},children:t(n5,{children:t("path",{d:jx})})})]}),t(a5,{children:null!=h?h:""}),n(i5,{children:[i&&t(xw,Object.assign({"data-testid":"SecondaryButton",buttonstyle:"secondary",height:"24px"},i,{children:null!=d?d:"Cancel"})),o&&t(xw,Object.assign({"data-testid":"PrimaryButton",buttonstyle:"outlined",height:"24px"},o,{children:null!=u?u:"Confirm"})),a]})]})})},s5=o(wa).withConfig({displayName:"SaveTabCopyDialog__Icon",componentId:"sc-1qokt2n-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),c5=function(e){var n=e.tabId,r=e.handleClose,o=e.handleRemoveTab,i=e.handleSaveTab,a=e.titleText,l=e.contentText,s=e.saveButtonText,c=e.cancelButtonText;return t(l5,{testId:"SaveTabCopyDialog",horizontallyCenterDialog:!0,showBackdrop:!0,handleClose:r,titleText:a,titleIcon:t(s5,{children:t("path",{d:Vx})}),primaryButtonProps:{onClick:function(){i(n),r()},children:null!=s?s:"Save copy"},primaryButtonText:null!=s?s:"Save copy",secondaryButtonProps:{onClick:function(){o(n),r()},children:null!=c?c:"Remove"},secondaryButtonText:null!=c?c:"Remove",children:l})},u5={exports:{}},d5={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(d5);var f5=d5.exports;!function(e){var t=f5.default;function n(){e.exports=n=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var r,o={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof x?t:x,i=Object.create(o.prototype),a=new D(r||[]);return l(i,"_invoke",{value:A(e,n,a)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}o.wrap=p;var g="suspendedStart",m="suspendedYield",v="executing",b="completed",y={};function x(){}function w(){}function C(){}var E={};f(E,c,(function(){return this}));var T=Object.getPrototypeOf,k=T&&T(T(_([])));k&&k!==i&&a.call(k,c)&&(E=k);var S=C.prototype=x.prototype=Object.create(E);function N(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,n){function r(o,i,l,s){var c=h(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==t(d)&&a.call(d,"__await")?n.resolve(d.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):n.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return r("throw",e,l,s)}))}s(c.arg)}var o;l(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function A(e,t,n){var o=g;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var l=n.delegate;if(l){var s=M(l,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===g)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=h(e,t,n);if("normal"===c.type){if(o=n.done?b:m,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=b,n.method="throw",n.arg=c.arg)}}}function M(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,M(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=h(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,y;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,y):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function _(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=C,l(S,"constructor",{value:C,configurable:!0}),l(C,"constructor",{value:w,configurable:!0}),w.displayName=f(C,d,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,f(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},o.awrap=function(e){return{__await:e}},N(O.prototype),f(O.prototype,u,(function(){return this})),o.AsyncIterator=O,o.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var a=new O(p(e,t,n,r),i);return o.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(S),f(S,d,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},o.values=_,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(R),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return l.type="throw",l.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;R(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),y}},o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(u5);var p5=(0,u5.exports)(),h5=p5;try{regeneratorRuntime=p5}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=p5:Function("r","regeneratorRuntime = r")(p5)}var g5,m5,v5,b5,y5=K(h5),x5=o(wa).withConfig({displayName:"LinkDialog__Icon",componentId:"sc-19lxkw8-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),w5=o.div.withConfig({displayName:"LinkDialog__LinkButton",componentId:"sc-19lxkw8-1"})(["display:flex;flex-direction:row;align-items:center;justify-content:flex-end;&:hover{text-decoration:underline;color:",";cursor:pointer;}"],ky.mossGreen.tint[45]),C5=o.span.withConfig({displayName:"LinkDialog__CopyLink",componentId:"sc-19lxkw8-2"})((function(e){var t=e.theme;return i(g5||(g5=lD(["\n font-size: 14px;\n padding: ",";\n color: ",";\n "])),t.spacing(0,1),ky.mossGreen.tint[45])})),E5=function(e){var r=e.url,o=e.handleClose,i=e.titleText,a=e.linkContentText,l=e.copyLinkText,s=e.linkCopiedText,c=e.showTooltipOnLinkClick,u=wx(b(!1),2),d=u[0],f=u[1];return t(l5,{testId:"LinkDialog",handleClose:o,titleText:i,titleIcon:t(x5,{children:t("path",{d:tw})}),customActionComponent:t(Mk,{hidden:!c&&!d,title:null!=s?s:"Link copied to clipboard","data-testid":"tooltipLink",children:n(w5,{"data-testid":"LinkButton",onClick:function(e){fx(void 0,void 0,void 0,y5.mark((function e(){return y5.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,navigator.clipboard.writeText(null!=r?r:window.location.href);case 3:setTimeout((function(){f(!1),o()}),2e3);case 4:case"end":return e.stop()}}),e)}))),e.stopPropagation()},children:[t(x5,{children:t("path",{d:sw})}),t(C5,{children:null!=l?l:"Copy link"})]})},"tooltipLink"),children:a})},T5=function(){var e,o,i,a,l,s,c=G6(),u=c.tableProps,d=c.currentTab,f=c.tabTypes,p=c.initialSort,h=c.onSortChange,g=c.visibleColumns,y=c.columnOrder,x=c.rowsSelected,w=c.onRowSelectionChange,E=c.isSaveTabDialogOpen,T=c.setIsSaveTabDialogOpen,k=c.onTabDelete,S=wx(b(p),2),N=S[0],O=S[1],A=wx(b(g),2),M=A[0],I=A[1],R=wx(b(y),2),D=R[0],_=R[1],P=b$().data,L=wx(b(f.find((function(e){return e.id===(null==d?void 0:d.dataSource)}))),2),F=L[0],z=L[1],j=wx(b(void 0),2),B=j[0],V=j[1];v((function(){u.onCurrentTabChange(null==d?void 0:d.id),z(f.find((function(e){return e.id===(null==d?void 0:d.dataSource)})))}),[u.onCurrentTabChange,null==d?void 0:d.id]),m((function(){O(p)}),[null==d?void 0:d.id]),m((function(){I(g)}),[g]),m((function(){h(N)}),[N]),m((function(){_(y)}),[y]);var W=wx(b({}),2),H=W[0],q=W[1],U=u.tableName,K=u.testId,Y=u.skeletonItems,G=void 0===Y?3:Y,Z=u.onRetry,J=u.onSaveTabClick,X=u.textProps,Q=u.pageSizeArray,$=void 0===Q?[5,10,20,100,1e3]:Q,ee=u.stickyTableHeader,te=void 0!==ee&&ee,ne=function(e){var t;(null==F?void 0:F.isSelectableRows)&&(null===(t=null==F?void 0:F.onRowClick)||void 0===t||t.call(F,e))},re=null!==(e=localStorage.getItem("table-pagination-cache"))&&void 0!==e?e:"{}";v((function(){se((function(e){return Object.assign(Object.assign({},e),{pageSize:(null==F?void 0:F.showPagination)?ie:(null==F?void 0:F.isLoading)?3:P.length})}))}),[re,U,null==d?void 0:d.id,F]);var oe=null===(o=JSON.parse(re))||void 0===o?void 0:o[U],ie=$.indexOf(oe)>-1?oe:5,ae=wx(b({pageIndex:0,pageSize:ie}),2),le=ae[0],se=ae[1],ce=(null===(i=null==F?void 0:F.emptyDataProps)||void 0===i?void 0:i.isError)?t(_w,{showCloseButton:!0,"data-testid":null==F?void 0:F.emptyDataProps.testId,onButtonClick:Z,style:{marginTop:"12px",marginBottom:"-1px"},buttonText:null==F?void 0:F.emptyDataProps.retryButtonText,children:null==F?void 0:F.emptyDataProps.message}):t(Sw,{showCloseButton:!0,"data-testid":void 0===F?"noVisibleTabsInfoBox":null==F?void 0:F.emptyDataProps.testId,style:{marginTop:"12px",marginBottom:"-1px"},children:null!==(l=null===(a=null==F?void 0:F.emptyDataProps)||void 0===a?void 0:a.message)&&void 0!==l?l:"You have no visible tabs. Please add a new tab or make an existing one visible in the settings."}),ue=kL({data:C((function(){return(null==F?void 0:F.isLoading)?Array.from({length:G},(function(e,t){return t+1})):P}),[P,G,null==F?void 0:F.isLoading]),columns:C((function(){var e,n,r={accessorKey:"select",cell:function(e){var n=e.row;return t(tU,{onClick:function(e){return e.stopPropagation()},checked:n.getIsSelected(),onChange:n.getToggleSelectedHandler()})},size:1},o=null!==(e=null==F?void 0:F.columns.slice().map((function(e,n){return Object.assign(Object.assign({},e),{cell:function(e){return t(GL,{"data-testid":"SkeletonCell",animation:"wave",variant:"rectangular"})}})})))&&void 0!==e?e:[];return(null==F?void 0:F.isLoading)?o:(null==F?void 0:F.enableCheckboxRowSelection)?[r].concat(sx(null==F?void 0:F.columns)):null!==(n=null==F?void 0:F.columns)&&void 0!==n?n:[]}),[null==F?void 0:F.columns,null==F?void 0:F.enableCheckboxRowSelection,null==F?void 0:F.isLoading]),state:{rowSelection:null!=x?x:{},sorting:N,pagination:le,columnVisibility:M,columnOrder:D},onColumnVisibilityChange:I,onColumnOrderChange:_,onSortingChange:O,enableRowSelection:null==F?void 0:F.enableCheckboxRowSelection,enableMultiRowSelection:null!==(s=null==F?void 0:F.enableCheckboxMultiRowSelection)&&void 0!==s&&s,onRowSelectionChange:q,getCoreRowModel:yL(),getSortedRowModel:CL(),getFilteredRowModel:wL(),getPaginationRowModel:EL(),debugTable:!0}),de=ue.getRowModel().rows,fe=ue.getRowModel().rowsById;v((function(){!function(e,t){var n,r,o,i=e.filter((function(e,t){return H[t]})),a=i.map((function(e){return t.findIndex((function(t){return t.id===e.id}))}));null==w||w(null!==(r=null===(n=a.map((function(e){return Bb({},e,!0)})))||void 0===n?void 0:n[0])&&void 0!==r?r:{},i.map((function(e){return e.id}))),null===(o=null==F?void 0:F.onCheckboxSelectionChange)||void 0===o||o.call(F,["5"])}(ue.getFilteredRowModel().flatRows.map((function(e){return e.original})),de.map((function(e){return e.original})))}),[H]);var pe=function(){V(void 0)},he=function(e){V(e)};return n(r,{children:[void 0!==F&&n(jL,{"data-testid":K,children:[n(AL,{"data-testid":"".concat(U,"-thead"),$stickyTableHeader:te,children:[t("tr",{children:t("th",{colSpan:99,children:t(X6,{})})}),ue.getHeaderGroups().map((function(e){return t("tr",{"data-testid":"".concat(U,"-headerRow"),children:e.headers.map((function(e){var r;return t(ML,{colSpan:e.colSpan,$isCheckbox:"select"===e.id,style:{width:e.getSize()},children:e.isPlaceholder?null:n("div",{className:e.column.getCanSort()&&"select"!==e.id?"cursor-pointer select-none":"",onClick:e.column.getToggleSortingHandler(),children:[TL(e.column.columnDef.header,e.getContext()),null!==(r={asc:t(NL,{name:"arrow_up"},"ascendingIcon"),desc:t(NL,{name:"arrow_down"},"descendingIcon"),false:t(NL,{$isNotSorted:!0,name:"arrow_up"},"unsortedIcon")}[e.column.getIsSorted()])&&void 0!==r?r:null]})},e.id)}))},e.id)}))]}),t("tbody",{"data-testid":"".concat(U,"-tbody"),children:de.length>0?de.map((function(e,o){var i;return t(LL,{$isSelectable:null!==(i=null==F?void 0:F.isSelectableRows)&&void 0!==i&&i,"data-testid":"".concat(U,"-row"),onClick:function(){return ne(e)},children:e.getVisibleCells().map((function(e){var o,i;return t(IL,{"data-testid":"".concat(U,"-cell"),$isCheckbox:e.id.includes("select"),$hasShareIcon:(null===(o=null==F?void 0:F.shareableColumnIds)||void 0===o?void 0:o.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading),children:(null===(i=null==F?void 0:F.shareableColumnIds)||void 0===i?void 0:i.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading)?n(RL,{children:[TL(e.column.columnDef.cell,e.getContext()),t(is,{className:"linkIcon","data-testid":"LinkButton",size:"small",style:{opacity:0},onClick:function(t){t.stopPropagation(),he(e.id)},children:t(NL,{name:"share"},"share")}),B===e.id&&t(JL,{className:"linkDialog",children:t(E5,{handleClose:pe,titleText:"Share issue",linkContentText:"Anyone at Equinor with a link can view the annotation.",url:(null==F?void 0:F.shareableCellUrlBase)+e.getValue()})})]}):t(r,{children:TL(e.column.columnDef.cell,e.getContext())})},e.id)}))},e.id)})):Object.keys(fe).map((function(e){var o;return t(LL,{$isSelectable:null!==(o=null==F?void 0:F.isSelectableRows)&&void 0!==o&&o,"data-testid":"".concat(U,"-row"),onClick:function(){return ne(fe[e])},children:fe[e].getVisibleCells().map((function(e){var o,i,a;return t(IL,{"data-testid":"".concat(U,"-cell"),$isCheckbox:e.id.includes("select"),$hasShareIcon:(null===(o=null==F?void 0:F.shareableColumnIds)||void 0===o?void 0:o.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading),children:(null===(i=null==F?void 0:F.shareableColumnIds)||void 0===i?void 0:i.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading)?n(RL,{children:[TL(e.column.columnDef.cell,e.getContext()),(null===(a=null==F?void 0:F.shareableColumnIds)||void 0===a?void 0:a.includes(e.id.split("_")[1]))&&!(null==F?void 0:F.isLoading)&&t(is,{className:"linkIcon","data-testid":"LinkButton",size:"small",style:{opacity:0},onClick:function(t){t.stopPropagation(),he(e.id)},children:t(NL,{name:"share"},"share")}),B===e.id&&t(JL,{className:"linkDialog",children:t(E5,{handleClose:pe,titleText:"Share issue",linkContentText:"Anyone at Equinor with a link can view the annotation.",url:(null==F?void 0:F.shareableCellUrlBase)+e.getValue()})})]}):t(r,{children:TL(e.column.columnDef.cell,e.getContext())})},e.id)}))},e)}))})]}),(!(null==F?void 0:F.isLoading)&&0===P.length||void 0===F)&&ce,(null==F?void 0:F.showPagination)&&t(XL,{pagination:le,setPagination:se,tableName:U,totalItems:P.length,currentItemsShown:ue.getRowModel().rows.length,selectText:null==X?void 0:X.paginationLabelRowsSelect,ofText:null==X?void 0:X.paginationLabelDisplayedRowsOf,itemsText:null==X?void 0:X.paginationLabelDisplayedRowsItems,pageSizeArray:$}),E&&t(c5,{tabId:null==d?void 0:d.id,handleClose:function(){return T(!1)},handleRemoveTab:function(e){return k(e)},handleSaveTab:function(e){return d.id===e&&(null==J?void 0:J(d))},contentText:"In order to make changes to this tab, you must first save a copy of it.",titleText:"Save tab"})]})},k5=function(e){var n,r,o,i=e.children,a=e.tableProps,l=a.defaultTabIndex,s=a.tabTypes,c=a.defaultTableSettings,u=wx(b(null===(n=c[null!=l?l:0])||void 0===n?void 0:n.id),2),d=u[0],f=u[1],p=wx(b(F6(c)),2),h=p[0],g=p[1],m=wx(b(!1),2),x=m[0],w=m[1],E=wx(b(!1),2),T=E[0],k=E[1],S=function(e){f(e)};v((function(){var e,t=c.filter((function(e){return!h.some((function(t){return t.id===e.id}))})),n=h.filter((function(e){return!c.some((function(t){return t.id===e.id}))}));1===t.length&&1===n.length&&n[0].name===t[0].name&&(g(F6(c)),f(null===(e=t[0])||void 0===e?void 0:e.id))}),[c]),v((function(){var e;if(void 0===d){var t=null===(e=h[null!=l?l:0])||void 0===e?void 0:e.id;void 0!==t&&f(t)}}),[h]);var N=function(e){var t,n,r=h.map((function(t){return t.id===d?Object.assign(Object.assign({},t),{selection:e}):t}));if(g(r),null===(t=c.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===t?void 0:t.isNotSaved)k(!0);else{var o=r.find((function(e){return e.id===d}));void 0!==o&&(null===(n=a.onTabSettingsChange)||void 0===n||n.call(a,o))}},O=s.reduce((function(e,t){var n;return Object.assign(Object.assign({},e),Bb({},t.id,null!==(n=t.defaultSortBy)&&void 0!==n?n:[]))}),{}),A=wx(b(O),2),M=A[0],I=A[1],R=function(e){var t=Object.assign(Object.assign({},M),{tabId:e});I(t)},D=y((function(e){var t,n,r;return(null!==(r=null===(n=null===(t=s[e])||void 0===t?void 0:t.initialCheckedRowIndexes)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0?Object.assign.apply(Object,[{}].concat(sx(s[e].initialCheckedRowIndexes.map((function(e){return Bb({},e,!0)}))))):{}}),[s]),_=y((function(e){var t,n=null===(t=s[e])||void 0===t?void 0:t.rowData.filter((function(t,n){var r;return null===(r=s[e].initialCheckedRowIndexes)||void 0===r?void 0:r.some((function(e){return n===e}))}));return null==n?void 0:n.map((function(e){return null==e?void 0:e.id}))}),[s]),P=wx(b(D(s.findIndex((function(e){return(null==e?void 0:e.id)===d})))),2),L=P[0],F=P[1],z=wx(b(_(s.findIndex((function(e){return(null==e?void 0:e.id)===d})))),2),j=z[0],B=z[1],V=null===(r=s.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===r?void 0:r.initialCheckedRowIndexes;v((function(){F(D(s.findIndex((function(e){return(null==e?void 0:e.id)===d})))),B(_(s.findIndex((function(e){return(null==e?void 0:e.id)===d}))))}),[JSON.stringify(V),d]);var W=function(e,t){var n;F(e),B(t),(null===(n=c.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===n?void 0:n.isNotSaved)&&k(!0)},H=h.reduce((function(e,t){var n;return Object.assign(Object.assign({},e),Bb({},t.id,null!==(n=t.columnVisibility)&&void 0!==n?n:{}))}),{}),q=wx(b(H),2),U=q[0],K=q[1],Y=function(e){var t,n,r=Object.assign({},U[d]);r.hasOwnProperty(e)&&!r[e]?delete r[e]:r[e]=!1;var o=Object.assign({},U);o[d]=r;var i=h.map((function(e){return e.id===d?Object.assign(Object.assign({},e),{columnVisibility:r}):e}));if(K(o),g(i),null===(t=c.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===t?void 0:t.isNotSaved)k(!0);else{var l=i.find((function(e){return e.id===d}));void 0!==l&&(null===(n=a.onTabSettingsChange)||void 0===n||n.call(a,l))}},G=h.reduce((function(e,t){var n,r;return Object.assign(Object.assign({},e),Bb({},t.id,null!==(n=t.columnOrder)&&void 0!==n?n:null===(r=null==s?void 0:s.find((function(e){return e.id===d})))||void 0===r?void 0:r.columns.map((function(e){return e.id}))))}),{}),Z=wx(b(G),2),J=Z[0],X=Z[1],Q=function(e){var t,n=Object.assign({},J);n[d]=e;var r=h.map((function(t){return t.id===d?Object.assign(Object.assign({},t),{columnOrder:e}):t}));X(n),g(r);var o=r.find((function(e){return e.id===d}));void 0!==o&&(null===(t=a.onTabSettingsChange)||void 0===t||t.call(a,o))},$=function(){w(!x)},ee=function(e){var t,n=sx(h),r=n.findIndex((function(t){return(null==t?void 0:t.id)===e}));n.splice(r,1),f(n[0].id),g(n),(null===(t=c.find((function(t){return(null==t?void 0:t.id)===e})))||void 0===t?void 0:t.isNotSaved)||a.onDeleteTab(e)},te=function(e,t,n){var r,o=n?function(e,t,n){var r=e,o=h.find((function(e){return(null==e?void 0:e.id)===n}));if(!o)throw new Error("Unable to find table settings for copied tab id ".concat(n));var i=F6(o);return i.name=e,i.id=r,i.dataSource=t,i.isDefaultTab=!1,i}(e,t,n):function(e,t){var n,r;return{name:e,id:"".concat(e),dataSource:t,isDefaultTab:!1,columnOrder:[],columnVisibility:{},filters:{},isVisible:!0,selection:{},columns:null!==(r=null===(n=s.find((function(e){return e.id===t})))||void 0===n?void 0:n.columns.map((function(e){return{id:e.id,name:e.header}})))&&void 0!==r?r:[]}}(e,t);g([].concat(sx(h),[o])),f(o.id),null===(r=a.onTabSettingsChange)||void 0===r||r.call(a,o)},ne=function(e,t){var n,r,o,i=h.findIndex((function(t){return(null==t?void 0:t.id)===e})),l=sx(h);if(l[i].isVisible=t,g(l),(null===(n=c.find((function(t){return(null==t?void 0:t.id)===e})))||void 0===n?void 0:n.isNotSaved)?k(!0):null===(r=a.onTabSettingsChange)||void 0===r||r.call(a,l[i]),e===d){var s=l.findIndex((function(e){return null==e?void 0:e.isVisible}));if(-1!==s){var u=null===(o=l[s])||void 0===o?void 0:o.id;f(u)}}else t&&f(e)},re=function(e){g(sx(e)),a.onTabOrderChange(e.map((function(e){return e.id})))},oe=function(e,t){var n,r,o=c.findIndex((function(t){return(null==t?void 0:t.id)===e})),i=sx(h);i[o].name=t,g(i),(null===(n=c.find((function(t){return(null==t?void 0:t.id)===e})))||void 0===n?void 0:n.isNotSaved)?k(!0):null===(r=a.onTabSettingsChange)||void 0===r||r.call(a,i[o])},ie=function(){g(F6(c)),-1===c.findIndex((function(e){return(null==e?void 0:e.id)===d}))&&f(h[0].id),a.onDeleteSettings()},ae=!(s.length>0)||(null===(o=s.find((function(e){var t;return e.id===(null===(t=h.find((function(e){return e.id===d})))||void 0===t?void 0:t.dataSource)})))||void 0===o?void 0:o.isLoading),le=C((function(){var e,t,n,r,o,i,l,c,u=h.findIndex((function(e){return e.id===d})),f=(null===(e=h.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===e?void 0:e.isVisible)?h[u]:h.length>0?h[0]:void 0;return{isSettingsOpen:x,isSaveTabDialogOpen:T,setIsSaveTabDialogOpen:k,currentTab:f,tabTypes:s,filters:void 0!==u&&null!==(n=null===(t=s.find((function(e){var t;return e.id===(null===(t=h[u])||void 0===t?void 0:t.dataSource)})))||void 0===t?void 0:t.filters)&&void 0!==n?n:[],data:void 0!==u&&null!==(o=null===(r=s.find((function(e){var t;return e.id===(null===(t=h[u])||void 0===t?void 0:t.dataSource)})))||void 0===r?void 0:r.rowData)&&void 0!==o?o:[],initialSelection:(null===(i=h.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===i?void 0:i.isVisible)&&null!==(c=null===(l=h.find((function(e){return(null==e?void 0:e.id)===d})))||void 0===l?void 0:l.selection)&&void 0!==c?c:{},tableProps:a,tableSettings:h,initialSort:M[d],visibleColumns:U[d],columnOrder:J[d],rowsSelected:L,idsSelected:j,onRowSelectionChange:W,changeTab:S,onSelectionChange:N,onSortChange:R,onColumnVisibilityChange:Y,onColumnOrderChange:Q,onSettingsVisibilityChange:$,onDeleteSettings:ie,onTabDelete:ee,onTabAdd:te,onTabOrderChange:re,onTabVisibilityChange:ne,onTabNameChange:oe}}),[d,a,s,ae,L,U,J,x,h,T]);return t(Z6,{value:le,children:i})},S5={arrow_down:gw,arrow_up:vw,arrow_drop_down:bw,table_chart:{name:"table_chart",prefix:"eds",height:"24",width:"24",svgPathData:"M19.5 3h-15c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 2v3h-15V5h15Zm-10 14h5v-9h-5v9Zm-5-9h3v9h-3v-9Zm12 0v9h3v-9h-3Z"},lock:ew,drag_handle:{name:"drag_handle",prefix:"eds",height:"24",width:"24",svgPathData:"M4 9h16v2H4V9Zm16 6H4v-2h16v2Z"},more_vertical:{name:"more_vertical",prefix:"eds",height:"24",width:"24",svgPathData:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2Zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Zm-2 8c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2Z"},edit:zx,delete_to_trash:qx,share:$x,copy:{name:"copy",prefix:"eds",height:"24",width:"24",svgPathData:"M16.5 1h-12c-1.1 0-2 .9-2 2v14h2V3h12V1Zm3 4h-11c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2Zm-11 16h11V7h-11v14Z"},add_circle_filled:Bx,restore:Hx};Vk.add(S5);var N5=o.div.withConfig({displayName:"TableSettingsstyles__TableSettingsContainer",componentId:"sc-1brtwba-0"})(["justify-content:space-between;align-items:center;margin:0px;margin-top:38px;z-index:2;width:0px;position:sticky;right:-1px;background-color:",";overflow:hidden;&.open{overflow:visible;width:318px;margin-left:-318px;}transition:width 0.4s ease-out;"],ky.bigStone.base),O5=o.div.withConfig({displayName:"TableSettingsstyles__TableSettingsInnerContainer",componentId:"sc-1brtwba-1"})(["position:",";top:0px;"],(function(e){return e.$disableStickyContainer?"relative":"sticky"})),A5=o(Vk).withConfig({displayName:"TableSettingsstyles__StyledInfoIcon",componentId:"sc-1brtwba-2"})((function(e){var t=e.theme;return i(m5||(m5=lD(["\n width: ",";\n height: ",";\n margin-left: 6px;\n "])),t.spacing(3),t.spacing(3))})),M5=o(Vk).withConfig({displayName:"TableSettingsstyles__ArrowDropDownIcon",componentId:"sc-1brtwba-3"})((function(e){var t=e.theme;return i(v5||(v5=lD(["\n width: ",";\n height: ",";\n "])),t.spacing(3),t.spacing(3))})),I5=o(Vk).withConfig({displayName:"TableSettingsstyles__DragIcon",componentId:"sc-1brtwba-4"})(["width:24px;height:24px;margin-left:6px;color:",";cursor:grab;&:active{cursor:grabbing;}"],(function(e){return e.$isLightVersion?"#858f98":ky.slateBlue.tint[30]})),R5=o(Vk).withConfig({displayName:"TableSettingsstyles__ActionIcon",componentId:"sc-1brtwba-5"})(["width:18px;height:18px;color:",";"],(function(e){return e.$isActive?ky.semantic.interactive.primaryHover:ky.semantic.infographic.primary})),D5=o.div.withConfig({displayName:"TableSettingsstyles__ActionIconWrapper",componentId:"sc-1brtwba-6"})(["background-color:",";color:",";height:32px;width:inherit;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;cursor:pointer;margin-right:2px;",";svg{margin:4px;}&:hover{background-color:",";svg{color:",";}}"],ky.slateBlue.tint[20],ky.semantic.text.secondary,(function(e){return e.$isOpen&&"\n border-bottom: none;\n box-shadow: inset 0px 0px 0px 2px ".concat(ky.semantic.interactive.primaryHover,"; \n svg {\n color: ").concat(ky.semantic.interactive.primaryHover,";\n }\n ")}),ky.slateBlue.tint[30],ky.semantic.interactive.primaryHover),_5=o.div.withConfig({displayName:"TableSettingsstyles__MoreIconWrapper",componentId:"sc-1brtwba-7"})(["background-color:",";color:",";height:32px;min-width:32px;width:32px;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;cursor:pointer;",";&:hover{background-color:",";svg{color:",";}}"],ky.slateBlue.tint[20],ky.semantic.text.secondary,(function(e){return e.$isOpen&&"\n border-bottom: none;\n box-shadow: inset 0px 0px 0px 2px ".concat(ky.semantic.interactive.primaryHover,"; \n ")}),ky.slateBlue.tint[30],ky.semantic.interactive.primaryHover),P5=o.div.withConfig({displayName:"TableSettingsstyles__TextContainer",componentId:"sc-1brtwba-8"})((function(e){var t=e.theme;return i(b5||(b5=lD(["\n font-size: 18px;\n font-weight: 500;\n margin-left: ",";\n "])),t.spacing(2))})),L5=o.div.withConfig({displayName:"TableSettingsstyles__HeaderContainer",componentId:"sc-1brtwba-9"})(["display:flex;align-items:center;"]);o(xw).withConfig({displayName:"TableSettingsstyles__CustomButton",componentId:"sc-1brtwba-10"})(["min-width:109px;"]);var F5=o.div.withConfig({displayName:"TableSettingsstyles__HeaderRowContainer",componentId:"sc-1brtwba-11"})(["display:flex;justify-content:space-between;color:",";height:40px;"],ky.semantic.infographic.primary),z5=o(is).withConfig({displayName:"TableSettingsstyles__CloseButton",componentId:"sc-1brtwba-12"})(["padding:",";margin-left:",";color:",";height:32px;"],(function(e){return e.theme.spacing(1)}),(function(e){return e.theme.spacing(1)}),ky.semantic.text.secondary),j5=o(Ix).withConfig({displayName:"TableSettingsstyles__StyledCloseIcon",componentId:"sc-1brtwba-13"})(["width:18px;height:18px;color:",";"],ky.semantic.infographic.primary),B5=o(Ib).withConfig({displayName:"TableSettingsstyles__Tabs",componentId:"sc-1brtwba-14"})(["&.MuiTabs-root{height:34px;min-height:34px;}"]),V5=o(ob).withConfig({displayName:"TableSettingsstyles__SettingsTab",componentId:"sc-1brtwba-15"})(["&.MuiTab-root{font-weight:500;font-size:12px;text-transform:none;height:34px;min-height:34px;color:",";background-color:transparent;border-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0;font-family:'Equinor';&.Mui-selected{color:",";background-color:#364855;border-bottom:none;}}"],(function(e){return e.$isActive?ky.mossGreen.tint[66]:"#97CACE80"}),ky.mossGreen.tint[66]),W5=o(Sg).withConfig({displayName:"TableSettingsstyles__TabList",componentId:"sc-1brtwba-16"})(["&.MuiList-root{padding:0;}"]);o.div.withConfig({displayName:"TableSettingsstyles__TabListItem",componentId:"sc-1brtwba-17"})(["height:32px;border-radius:0;color:#505f6b;padding-left:0;padding-right:0;background-color:transparent;"," &:hover{div{background-color:#67737e;}}"],(function(e){return e.$isOpen&&"\n div {\n background-color: #67737e;\n } \n "}));var H5=o(_g).withConfig({displayName:"TableSettingsstyles__ExpandableTabListItem",componentId:"sc-1brtwba-18"})(["&.MuiListItemButton-root{height:32px;border-radius:0;color:#505f6b;padding-left:0;padding-right:0;background-color:transparent;font-family:'Equinor';"," &:hover{div{background-color:",";}}}"],(function(e){return e.$isOpen&&"\n div {\n background-color: ".concat(ky.slateBlue.tint[30],"; \n } \n ")}),ky.slateBlue.tint[30]),q5=o(_g).withConfig({displayName:"TableSettingsstyles__ExpandableFilterListItem",componentId:"sc-1brtwba-19"})(["&.MuiListItemButton-root{height:32px;border-radius:0;color:#505f6b;padding-left:0;padding-right:0;background-color:transparent;font-family:'Equinor';"," &:hover{text-decoration:none;background-color:rgba(255,255,255,0.08);}}"],(function(e){return e.$isOpen&&"\n svg {\n color: ".concat(ky.mossGreen.base,";\n } \n ")})),U5=o(Qg).withConfig({displayName:"TableSettingsstyles__TabListItemText",componentId:"sc-1brtwba-20"})(["&.MuiListItemText-root{background-color:",";color:",";height:32px;margin:0;margin-left:2px;display:flex;align-items:center;font-size:14px;font-weight:500 !important;padding-left:16px;border-bottom:1px solid #858f98;span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:260px;}}"],ky.slateBlue.tint[20],ky.semantic.text.secondary),K5=o.div.withConfig({displayName:"TableSettingsstyles__FilterContainer",componentId:"sc-1brtwba-21"})(["background-color:#243746;display:flex;"]),Y5=o.div.withConfig({displayName:"TableSettingsstyles__VerticalLine",componentId:"sc-1brtwba-22"})(["border-left:2px solid ",";position:absolute;height:calc(100% - 27px);top:24px;left:15px;"],ky.mossGreen.base),G5=o.div.withConfig({displayName:"TableSettingsstyles__FilterContent",componentId:"sc-1brtwba-23"})(["margin-left:35px;font-size:14px;font-weight:400;"]),Z5=o.span.withConfig({displayName:"TableSettingsstyles__TabName",componentId:"sc-1brtwba-24"})(["font-weight:500;font-size:14px;"]),J5=o.span.withConfig({displayName:"TableSettingsstyles__ColumnName",componentId:"sc-1brtwba-25"})(["font-weight:500;font-size:14px;padding-left:18px;color:",";",""],ky.semantic.text.tertiary,(function(e){return e.$isOpen&&"\n color: ".concat(ky.semantic.text.secondary,";\n ")})),X5=o.div.withConfig({displayName:"TableSettingsstyles__ExpandButton",componentId:"sc-1brtwba-26"})(["background-color:",";color:",";height:32px;width:32px;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;svg{height:24px;width:24px;transform:rotate(-90deg);&.open{transform:rotate(0);}transition:transform 0.4s;}"],ky.slateBlue.tint[20],ky.semantic.text.secondary),Q5=o.div.withConfig({displayName:"TableSettingsstyles__ExpandColumnButton",componentId:"sc-1brtwba-27"})(["background-color:transparent;color:",";height:32px;width:32px;display:flex;justify-content:center;align-items:center;svg{height:24px;width:24px;transform:rotate(-90deg);&.open{transform:rotate(0);}transition:transform 0.4s;}"],ky.slateBlue.tint[20]),$5=o.div.withConfig({displayName:"TableSettingsstyles__ActionsContainer",componentId:"sc-1brtwba-28"})(["width:0;display:flex;overflow:hidden;&.open{width:",";&.edit{width:54px;}&.default{width:",";}}transition:width 0.4s ease-out;"],(function(e){return e.$showUrlCopyButton?"246px":"127px"}),(function(e){return e.$showUrlCopyButton?"126px":"52px"})),e9=o.div.withConfig({displayName:"TableSettingsstyles__ColumnListItem",componentId:"sc-1brtwba-29"})(["background-color:transparent;color:",";height:28px;font-size:14px;font-weight:500;color:",";display:flex;justify-content:space-between;align-items:center;padding-left:14px;padding-right:16px;cursor:pointer;&:hover{background:#2e3f4d;span{color:",";}}"],ky.semantic.text.secondary,ky.semantic.text.tertiary,ky.slateBlue.tint[50]);o.div.withConfig({displayName:"TableSettingsstyles__ColumnFilterListItem",componentId:"sc-1brtwba-30"})(["background-color:transparent;color:",";height:28px;font-size:14px;font-weight:500;color:",";display:flex;justify-content:space-between;align-items:center;padding-left:14px;padding-right:16px;cursor:pointer;&:hover{background:#2e3f4d;span{color:",";}}"],ky.semantic.text.secondary,ky.semantic.text.tertiary,ky.slateBlue.tint[50]);var t9=o.div.withConfig({displayName:"TableSettingsstyles__TabCheckBoxWrapper",componentId:"sc-1brtwba-31"})(["background-color:",";color:",";height:32px;min-width:32px;width:32px;border-bottom:1px solid #858f98;display:flex;justify-content:center;align-items:center;"],ky.slateBlue.tint[20],ky.semantic.text.secondary),n9=o(yp).withConfig({displayName:"TableSettingsstyles__TabCheckbox",componentId:"sc-1brtwba-32"})(["&.MuiCheckbox-root{color:",";padding:0px;&.Mui-checked{color:",";}& svg{width:24px;height:24px;}}"],ky.semantic.text.tertiary,ky.semantic.text.tertiary),r9=o.div.withConfig({displayName:"TableSettingsstyles__TabRow",componentId:"sc-1brtwba-33"})(["background-color:",";color:",";height:32px;padding-right:14px;margin-left:2px;margin-right:2px;display:flex;align-items:center;font-size:14px;font-weight:500 !important;padding-left:12px;border-bottom:1px solid #858f98;width:100%;justify-content:space-between;cursor:grab;&:active{cursor:grabbing;}"],ky.slateBlue.tint[20],ky.semantic.text.secondary),o9=o.div.withConfig({displayName:"TableSettingsstyles__TabRowWrapper",componentId:"sc-1brtwba-34"})(["position:relative;"]),i9=o.div.withConfig({displayName:"TableSettingsstyles__TabRowContainer",componentId:"sc-1brtwba-35"})(["position:relative;height:32px;margin:0;padding:0;display:flex;align-items:center;font-size:14px;font-weight:500 !important;width:100%;justify-content:space-between;cursor:grab;&:hover{div{&:not(.open){background-color:",";}}}"],ky.slateBlue.tint[30]),a9=o(yp).withConfig({displayName:"TableSettingsstyles__StyledCheckbox",componentId:"sc-1brtwba-36"})(["&.MuiCheckbox-root{color:",";padding:0px;margin-right:16px;&.Mui-checked{color:",";}& svg{width:24px;height:24px;}}"],ky.slateBlue.tint[30],ky.slateBlue.tint[30]),l9=o.span.withConfig({displayName:"TableSettingsstyles__Name",componentId:"sc-1brtwba-37"})(["font-weight:500;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:inherit;margin-top:2px;"]),s9=o(l9).withConfig({displayName:"TableSettingsstyles__TabSettingsName",componentId:"sc-1brtwba-38"})(["width:",";transition:width 0.4s ease-out;"],(function(e){return e.$isOpen?"93px":"194px"})),c9=o(xP).withConfig({displayName:"TableSettingsstyles__TabTextField",componentId:"sc-1brtwba-39"})(["padding:0;margin-top:4px;margin-left:-8px;margin-right:-9px;margin-bottom:3px;input{font-weight:500;font-size:14px;background:#3a444d;}div{div{padding-right:0px;}}"]),u9=o.div.withConfig({displayName:"TableSettingsstyles__OptionListItem",componentId:"sc-1brtwba-40"})(["cursor:pointer;color:",";display:flex;align-items:center;"],ky.semantic.text.secondary),d9=o.div.withConfig({displayName:"TableSettingsstyles__OptionNumberWrapper",componentId:"sc-1brtwba-41"})(["color:",";margin-left:4px;margin-top:2px;"],ky.semantic.text.tertiary),f9=o(jA).withConfig({displayName:"TableSettingsstyles__RadioButton",componentId:"sc-1brtwba-42"})([""]),p9=o.div.withConfig({displayName:"TableSettingsstyles__AdditionalActions",componentId:"sc-1brtwba-43"})(["margin-top:22px;margin-left:8px;font-size:14px;color:",";"],ky.semantic.text.secondary),h9=o.div.withConfig({displayName:"TableSettingsstyles__AddNewTabContainer",componentId:"sc-1brtwba-44"})(["display:flex;cursor:pointer;&:hover{color:",";svg{color:",";}}"],ky.white.base,ky.semantic.interactive.primaryHover),g9=o.span.withConfig({displayName:"TableSettingsstyles__ActionText",componentId:"sc-1brtwba-45"})(["margin-left:6px;"]),m9=o.div.withConfig({displayName:"TableSettingsstyles__DuplicateTabContainer",componentId:"sc-1brtwba-46"})(["display:flex;cursor:pointer;&:hover{color:",";svg{color:",";}}"],ky.white.base,ky.semantic.interactive.primaryHover),v9=o.div.withConfig({displayName:"TableSettingsstyles__RestoreSettingsContainer",componentId:"sc-1brtwba-47"})(["margin-top:20px;display:flex;flex-direction:column;"]),b9=o.div.withConfig({displayName:"TableSettingsstyles__ActionsRow",componentId:"sc-1brtwba-48"})(["display:flex;gap:18px;"]);o.div.withConfig({displayName:"TableSettingsstyles__WarningText",componentId:"sc-1brtwba-49"})(["display:flex;font-size:12px;font-weight:500;color:",";margin-left:24px;margin-right:60px;margin-top:12px;"],ky.semantic.text.tertiary);var y9=o.div.withConfig({displayName:"TableSettingsstyles__RestoreSettingsInnerContainer",componentId:"sc-1brtwba-50"})(["display:flex;cursor:pointer;&:hover{color:",";svg{color:",";}}"],ky.white.base,ky.semantic.interactive.primaryHover),x9={},w9=Sx;Object.defineProperty(x9,"__esModule",{value:!0});var C9=x9.default=void 0,E9=e,T9=(0,w9(Ax()).default)((0,E9.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");C9=x9.default=T9;var k9,S9=function(e){var o=e.tabs,i=e.openTabId,a=e.onOpenTabIdChange,l=b$().filter,s=void 0!==l,c=o.findIndex((function(e){return e.id===i})),u=wx(b(c>=0?c:void 0),2),d=u[0],f=u[1],p=wx(b(void 0),2),h=p[0],g=p[1],m=wx(b({}),2),y=m[0],x=m[1];v((function(){x({})}),[h]),v((function(){return-1!==c&&c!==d?f(c):function(){}}),[c]);var w=function(e){g(h===e?void 0:e)},C=function(e){switch(e.type){case d$.search:return t(Q$,{filterKey:e.key});case d$.checkbox:return t(X$,{filterKey:e.key});case d$.autocomplete:return t(e0,{filterKey:e.key});case d$.date:return t($$,{filterKey:e.key});default:return t(r,{})}};return t(W5,{"data-testid":"FilterSettingsContainer",children:o.map((function(e,i){return n("div",{children:[n(H5,{"data-testid":"FilterSettingsTabListItem-".concat(e.id),onClick:function(){return function(e){f(d===e?void 0:e),c!==e&&a(o[e].id),g(void 0)}(i)},$isOpen:d===i,children:[t(X5,{children:t(C9,{className:"".concat(d===i?"open":"closed")},"".concat(e.id,"-ExpandMore"))},"".concat(e.id,"-ExpandButton")),t(U5,{children:t(Z5,{children:e.name},"".concat(e.id,"-Name"))},"".concat(e.id,"-Text"))]},e.id),t(al,{in:d===i,timeout:"auto",unmountOnExit:!0,children:t(Sg,{component:"div",disablePadding:!0,children:t(r,s?{children:Object.values(l).map((function(e){return n("div",{style:{position:"relative"},children:[n(q5,{onClick:function(){return w(e.key)},$isOpen:h===e.key,children:[t(Q5,{children:t(M5,{name:"arrow_drop_down",className:"".concat(h===e.key?"open":"closed")},"arrow_drop_down")}),t(J5,{$isOpen:h===e.key,children:e.title})]},e.key),t(al,{in:h===e.key,timeout:"auto",unmountOnExit:!0,children:n(K5,{children:[t(Y5,{}),C(e)]})})]},"".concat(e.key,"-WithFilterProvider"))}))}:void 0===d?{}:{children:Object.values(o[d].filters).map((function(e){return n("div",{style:{position:"relative"},children:[n(q5,{onClick:function(){return w(e.key)},$isOpen:h===e.key,children:[t(Q5,{children:t(M5,{name:"arrow_drop_down",className:"".concat(h===e.key?"open":"closed")},"".concat(e.key,"-ArrowDropdown"))},"".concat(e.key,"-ExpandColumnButton")),t(J5,{$isOpen:h===e.key,children:e.title},"".concat(e.key,"-ColumnName"))]},"".concat(e.key,"-FilterListItem")),t(al,{in:h===e.key,timeout:"auto",unmountOnExit:!0,children:n(K5,{children:[t(Y5,{},"".concat(e.key,"-Line")),t(G5,{children:e.type===k9.Checkbox?n(r,{children:[n(u9,{children:[t(a9,{checked:!1},"".concat(e.key,"-CheckBox")),t(l9,{children:"Select all"},"".concat(e.key,"-Name")),t(d9,{children:"(1045)"},"".concat(e.key,"-Number"))]},"".concat(e.key,"-OptionListItem")),e.options.map((function(r){return n(u9,{onClick:function(){return x((function(e){var t=Object.assign({},e);return t[r.id]=!1===e[r.id],t}))},children:[t(a9,{checked:!0===y[r.id]},"".concat(r.id,"-CheckBox")),t(l9,{children:r.title},"".concat(e.key,"-Name")),n(d9,{children:["(",r.result,")"]},"".concat(e.key,"-Number"))]},"".concat(e.key,"-OptionListItem"))}))]}):e.options.map((function(r){return n(u9,{onClick:function(){return x((function(e){var t=Object.assign({},e);return t[r.id]=!1===e[r.id],t}))},children:[t(f9,{name:r.id,"aria-labelledby":r.id,checked:!0===y[r.id]},"".concat(r.id,"-RadioButton")),t(l9,{id:r.id,children:r.title},"".concat(e.key,"-Name")),n(d9,{children:["(",r.result,")"]},"".concat(e.key,"-Number"))]},"".concat(e.key,"-OptionListItem"))}))},"".concat(e.key,"-FilterContent"))]})},"".concat(e.key,"-Collapse"))]},"".concat(e.key,"-FilterContainer"))}))})},"".concat(e.id,"-List"))},"".concat(e.id,"-Collapse"))]},"".concat(e.id,"-tabListItemContainer"))}))},"FilterSettingsContainer")},N9=function(e){var r,o,i=e.tabs,a=e.openTabId,l=e.onOpenTabIdChange,s=e.onColumnOrderChange,c=e.onColumnVisibilityChange,d=i.findIndex((function(e){return e.id===a})),f=wx(b(d>=0?i[d].columnVisibility:{}),2),p=f[0],h=f[1],g=wx(u.useState(d>=0?d:void 0),2),m=g[0],y=g[1],x=wx(b(d>=0?(null!==(o=null===(r=i[d].columnOrder)||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0?i[d].columnOrder:i[d].columns.map((function(e){return e.id})):[]),2),C=x[0],E=x[1];v((function(){return-1!==d&&d!==m?y(d):function(){}}),[d]),v((function(){var e,t;h(d>=0?i[d].columnVisibility:{});var n=d>=0?(null!==(t=null===(e=i[d].columnOrder)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0?i[d].columnOrder:i[d].columns.map((function(e){return e.id})):[];E(n)}),[d]);var T=w(),k=w();v((function(){var e,t;E(void 0!==m?(null!==(t=null===(e=i[m].columnOrder)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0?i[m].columnOrder:i[m].columns.map((function(e){return e.id})):[])}),[m,i]);var S=function(){if(void 0!==T.current&&void 0!==k.current){var e=sx(C),t=e[T.current];e.splice(T.current,1),e.splice(k.current,0,t),T.current=void 0,k.current=void 0,E(e),s(e)}};return t(W5,{"data-testid":"ColumnSettingsContainer",children:i.map((function(e,r){return n("div",{children:[n(H5,{"data-testid":"ColumnSettingsTabListItem-".concat(e.id),onClick:function(){return function(e,t){var n=m;y(n===t?void 0:t),n!==t&&l(e)}(e.id,r)},$isOpen:m===r,children:[t(X5,{children:t(C9,{className:"".concat(m===r?"open":"closed")},"".concat(e.id,"-expandMore"))},"".concat(e.id,"-expandButton")),t(U5,{children:t(Mk,{title:e.name,children:t(Z5,{children:e.name},"".concat(e.id,"-tabName"))},"".concat(e.id,"-tooltip"))},"".concat(e.id,"-tablistItemText"))]},e.id),t(al,{in:m===r,timeout:"auto",unmountOnExit:!0,children:t(Sg,{component:"div",disablePadding:!0,children:void 0!==m&&C.map((function(e,r){var o;return n(e9,{onDragStart:function(e){return function(e,t){T.current=t}(0,r)},onDragEnter:function(e){return function(e,t){k.current=t}(0,r)},onDragEnd:S,"data-testid":"ColumnListItem-".concat(e,"-Tab").concat(i[m].id),draggable:!0,onClick:function(){return function(e){var t=!1;h((function(n){var r=Object.assign({},n);return r[e]=!1===n[e],t=n[e],r})),c(e,!t)}(e)},children:[n("div",{children:[t(a9,{checked:!1!==p[e]},e),t(l9,{children:null===(o=i[m].columns.find((function(t){return t.id===e})))||void 0===o?void 0:o.name})]}),t(I5,{"data-testid":"".concat(e,"-drag_handle"),name:"drag_handle",onClick:function(e){e.stopPropagation(),e.preventDefault()}},"".concat(e,"-drag_handle"))]},"".concat(e,"-columnlistItem"))}))},"".concat(e.id,"-list"))},"".concat(e.id,"-collapse"))]},"".concat(e.id,"-container"))}))})},O9=o(wa).withConfig({displayName:"ConfirmDeleteDialog__Icon",componentId:"sc-2qn4xt-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),A9=function(e){var n=e.handleClose,r=e.handleDeleteTab,o=e.titleText,i=e.contentText,a=e.confirmButtonText,l=e.cancelButtonText;return t(l5,{testId:"ConfirmDeleteDialog",handleClose:n,titleText:o,titleIcon:t(O9,{children:t("path",{d:qx.svgPathData})}),primaryButtonProps:{onClick:function(){r(),n()},children:null!=a?a:"Delete"},secondaryButtonProps:{onClick:n,children:null!=l?l:"Cancel"},children:i})},M9=o(wa).withConfig({displayName:"AddNewTabDialog__Icon",componentId:"sc-cdgrpd-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),I9=function(e){var r=e.dataSources,o=e.dataSourceSelectLabel,i=e.tabName,a=e.dataSource,l=e.existingTabNames,s=e.handleClose,c=e.handleAddTab,u=e.titleText,d=e.confirmButtonText,f=e.cancelButtonText,p=wx(b(i),2),h=p[0],g=p[1],m=wx(b(a),2),y=m[0],x=m[1],w=wx(b(l.some((function(e){return e===h}))),2),C=w[0],E=w[1];v((function(){var e=l.some((function(e){return e===h}));C!==e&&E(e)}),[h]);return n(l5,{testId:"AddNewTabDialog",handleClose:s,titleText:u,titleIcon:t(M9,{children:t("path",{d:Bx.svgPathData})}),primaryButtonProps:{onClick:function(){void 0===h||void 0===y||C||c(h,y),s()},disabled:void 0===h||""===h||void 0===y||C,children:null!=d?d:"Add tab"},secondaryButtonProps:{onClick:s,children:null!=f?f:"Cancel"},children:[t(xP,{handleValueChange:function(e){return g(e)},value:null!=h?h:"",id:"newTabNameTextField","data-testid":"newTabNameTextField",label:"Name",width:"210px",helperText:C?"The name must be unique":void 0,iocVariant:C?"error":"default"}),t(OP,{"data-testid":"newTabDataSourceSelect",label:o,options:r,readOnly:void 0!==a,onOptionsChange:function(e){x(e.selectedItems[0])},initialSelectedOptions:a?[a]:void 0})]})},R9=o(wa).withConfig({displayName:"RestoreSettingsDialog__Icon",componentId:"sc-1odoiok-0"})(["height:24px;width:24px;color:",";"],ky.mossGreen.tint[45]),D9=function(e){var n=e.handleClose,r=e.handleRestoreSettings,o=e.titleText,i=e.contentText,a=e.confirmButtonText,l=e.cancelButtonText;return t(l5,{testId:"RestoreSettingsDialog",handleClose:n,titleText:o,titleIcon:t(R9,{style:{marginRight:2},children:t("path",{d:Hx.svgPathData})}),primaryButtonProps:{onClick:function(){r(),n()},children:null!=a?a:"Restore"},secondaryButtonProps:{onClick:n,children:null!=l?l:"Cancel"},children:i})},_9=function(e){var o,i,a,l=e.tabs,s=e.currentTabId,c=e.dataSources,u=e.showUrlCopyButton,d=e.urlBase,f=e.onOpenTabIdChange,p=e.onTabOrderChange,h=e.onTabVisibilityChange,g=e.onTabNameChange,m=e.onTabDelete,y=e.onTabAdd,x=e.onDeleteSettings,C=wx(b(l),2),E=C[0],T=C[1],k=wx(b(void 0),2),S=k[0],N=k[1];v((function(){T(l)}),[l]);var O=wx(b({isOpen:!1,copyCurrentTab:!1}),2),A=O[0],M=O[1],I=wx(b(!1),2),R=I[0],D=I[1],_=wx(b(void 0),2),P=_[0],L=_[1],F=wx(b(void 0),2),z=F[0],j=F[1],B=wx(b(void 0),2),V=B[0],W=B[1],H=w(),q=w(),U=function(){if(void 0!==H.current&&void 0!==q.current){var e=sx(E),t=e[H.current];e.splice(H.current,1),e.splice(q.current,0,t),H.current=void 0,q.current=void 0,p(e)}};return n(r,{children:[t(Sg,{component:"div",disablePadding:!0,"data-testid":"TabSettingsContainer",children:E.map((function(e,o){return n(o9,{children:[n(i9,{"data-testid":"TabRow-".concat(e.id),onDragStart:function(e){return function(e,t){H.current=t}(0,o)},onDragEnter:function(e){return function(e,t){q.current=t}(0,o)},onDragEnd:U,draggable:!0,children:[t(t9,{children:t(n9,{"data-testid":"TabCheckbox",checked:E[o].isVisible,onClick:function(t){return function(e,t){var n=E.findIndex((function(e){return e.id===t})),r=E[n].isVisible;h(t,!r)}(0,e.id)}},"TabCheckbox-".concat(e.id))},"TabCheckBoxWrapper-".concat(e.id)),t(r9,{children:P===e.id?t(c9,{"data-testid":"TabTextField",width:"208px",autoFocus:!0,handleValueChange:function(t){return function(e,t){var n=sx(E),r=n.findIndex((function(e){return e.id===t}));n[r].name=e,T(n)}(t,e.id)},value:e.name,id:"textfield-text",height:"24px",onBlur:function(){var t,n;t=e.name,n=e.id,g(n,t),setTimeout((function(){L(void 0)}),100)}},"TabTextField-".concat(e.id)):n(r,{children:[t(Mk,{title:e.name,children:t(s9,{$isOpen:S===e.id,children:e.name},"TabSettingsName-".concat(e.id))}),t(I5,{"data-testid":"DragIcon-".concat(e.id),$isLightVersion:!0,name:"drag_handle",onClick:function(e){e.preventDefault(),e.stopPropagation()}},"DragIcon-".concat(e.id))]})},"TabRow-".concat(e.id)),n($5,{$showUrlCopyButton:u&&void 0!==d,"data-testid":"TabActionsContainer",className:"".concat(S===e.id?"open":""," ").concat(P===e.id?"edit":""," ").concat(e.isDefaultTab?"default":""),children:[P!==e.id&&n(r,{children:[u&&void 0!==d&&t(D5,{$isOpen:z===e.id,"data-testid":"ShareLinkButton",onClick:function(t){j(z===e.id?void 0:e.id),t.preventDefault(),t.stopPropagation()},children:t(R5,{name:"share",$isActive:z===e.id},"share")}),!e.isDefaultTab&&t(D5,{"data-testid":"DeleteTabButton",onClick:function(t){W(e.id),t.preventDefault(),t.stopPropagation()},children:t(R5,{name:"delete_to_trash"},"delete_to_trash")})]}),t(D5,{$isOpen:P===e.id,"data-testid":"EditTabButton",onClick:function(t){L((function(t){return t===e.id?void 0:e.id})),t.preventDefault(),t.stopPropagation()},children:t(R5,{name:"edit",$isActive:P===e.id},"edit")})]}),t(_5,{"data-testid":"moreActionsButton",$isOpen:S===e.id&&void 0===P&&void 0===z,onClick:function(t){S!==e.id&&f(e.id),L(void 0),j(void 0),W(void 0),N((function(t){return t===e.id?void 0:e.id})),t.preventDefault(),t.stopPropagation()},children:t(R5,{$isActive:S===e.id,name:"more_vertical"},"more_vertical")})]},e.id),z===e.id&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){j(void 0)}),200)},children:t("div",{style:{position:"absolute",zIndex:1e3},children:t(E5,{url:d+e.id,linkContentText:"Anyone at Equinor with a link can view the content.",handleClose:function(){return j(void 0)},titleText:"Share"})})}),V===e.id&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){W(void 0)}),200)},children:t("div",{style:{position:"absolute",zIndex:1e3},children:t(A9,{contentText:"Are you sure you want to delete this tab?",titleText:"Delete",handleDeleteTab:function(){return m(e.id)},handleClose:function(){return W(void 0)}})})})]},"TabRowWrapper-".concat(e.id))}))}),n(p9,{children:[n(b9,{children:[n(h9,{"data-testid":"AddNewTabButton",onClick:function(){M({isOpen:!!A.copyCurrentTab||!A.isOpen,copyCurrentTab:!1})},children:[t(R5,{name:"add_circle_filled"},"add_circle_filled"),t(g9,{children:"Add new tab"})]}),n(m9,{"data-testid":"DuplicateTabButton",onClick:function(){M({isOpen:!A.copyCurrentTab||!A.isOpen,copyCurrentTab:!0})},children:[t(R5,{name:"copy"},"copy"),t(g9,{children:"Duplicate current tab"})]})]}),t(v9,{"data-testid":"RestoreSettingsButton",onClick:function(){D(!R)},children:n(y9,{children:[t(R5,{name:"restore"},"restore"),t(g9,{children:"Restore table settings to default"})]})}),A.isOpen&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){M({isOpen:!1,copyCurrentTab:!1})}),200)},children:t("div",{children:t(I9,{titleText:"Add tab",tabName:A.copyCurrentTab?function(e){var t=/\((\d+)\)$/,n=e.match(t);if(n){var r=Number(n[1])+1;return e.replace(t,"(".concat(r,")"))}return e+" (2)"}(null!==(i=null===(o=l.find((function(e){return e.id===s})))||void 0===o?void 0:o.name)&&void 0!==i?i:""):void 0,dataSource:A.copyCurrentTab?null===(a=l.find((function(e){return e.id===s})))||void 0===a?void 0:a.dataSource:void 0,existingTabNames:l.map((function(e){return e.name})),handleAddTab:function(e,t){return y(e,t,A.copyCurrentTab?s:void 0)},handleClose:function(){return M({isOpen:!1,copyCurrentTab:!1})},dataSources:c,dataSourceSelectLabel:"Data source"})})}),R&&t(Cs,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){setTimeout((function(){D(!1)}),200)},children:t("div",{children:t(D9,{titleText:"Restore settings",handleRestoreSettings:x,handleClose:function(){return D(!1)},contentText:"Warning! All customization you have done to settings will be\n lost"})})})]})]})};!function(e){e[e.Checkbox=0]="Checkbox",e[e.Radio=1]="Radio",e[e.Autocomplete=2]="Autocomplete",e[e.Search=3]="Search",e[e.SearchAll=4]="SearchAll",e[e.Custom=5]="Custom"}(k9||(k9={}));var P9=function(e){var o=dx(e,[]),i=wx(b(0),2),a=i[0],l=i[1];return t(N5,{"data-testid":"tableSettings",className:o.isSettingsOpen?"open":"",children:n(O5,{$disableStickyContainer:o.disableStickyContainer||!1,children:[n(F5,{children:[t(L5,{children:n(r,{children:[t(A5,{name:"table_chart"},"table_chart"),t(P5,{children:"Settings"})]})}),t(z5,{"data-testid":"settingsCloseButton",onClick:o.onCloseSettings,children:t(j5,{})})]}),n(B5,{variant:"fullWidth",value:a,onChange:function(e,t){return l(t)},TabIndicatorProps:{style:{display:"none"}},children:[t(V5,{$isActive:0===a,"data-testid":"FiltersTab",value:0,label:t("span",{children:"Filter"})},"FiltersTab"),t(V5,{$isActive:1===a,"data-testid":"ColumnTab",value:1,label:t("span",{children:"Column"})},"ColumnTab"),t(V5,{$isActive:2===a,"data-testid":"TabTab",value:2,label:t("span",{children:"Tab"})},"TabTab")]}),0===a&&t(S9,{tabs:o.tabs,openTabId:o.openTabId,onOpenTabIdChange:o.onOpenTabChange}),1===a&&t(N9,{tabs:o.tabs,openTabId:o.openTabId,onOpenTabIdChange:o.onOpenTabChange,onColumnOrderChange:o.onColumnOrderChange,onColumnVisibilityChange:o.onColumnVisibilityChange}),2===a&&t(_9,{tabs:o.tabs,currentTabId:o.openTabId,dataSources:o.dataSources,showUrlCopyButton:o.showUrlCopyButton,urlBase:o.urlBase,onOpenTabIdChange:o.onOpenTabChange,onTabOrderChange:o.onTabOrderChange,onTabVisibilityChange:o.onTabVisibilityChange,onTabNameChange:o.onTabNameChange,onTabDelete:o.onTabDelete,onTabAdd:o.onTabAdd,onDeleteSettings:o.onDeleteSettings})]})})},L9=function(e){var n=e.isLocked,r=e.isNotSaved,o=e.onSaveClick,i=dx(e,["isLocked","isNotSaved","onSaveClick"]);return t(Mk,{title:e.name,children:t(YL,Object.assign({$isLocked:n,$isNotSaved:r,disabled:e.isLocked,"data-testid":"Tab-".concat(e.id),label:t("span",{children:e.name}),icon:r?t(UL,{onClick:function(){null==o||o(e.id)},"data-testid":"FullscreenIcon",children:t(HL,{fontSize:"small",children:t("path",{"data-testid":"SaveTab",d:Vx})})}):void 0,iconPosition:"end"},i),"".concat(e.name,"Tab"))})},F9=function(){var e=G6(),r=e.currentTab,o=e.tabTypes,i=e.changeTab,a=e.tableProps,l=e.tableSettings,s=a.isFullscreenable,c=a.fullscreenProps,u=l.findIndex((function(e){return e.id===(null==r?void 0:r.id)}));return n(WL,{$showFilters:!1,children:[t(KL,{TabIndicatorProps:{style:{display:"none"}},value:u<0?0:u,onChange:function(e,t){i(l[t].id)},children:l.map((function(e,n){var i;return e.isVisible&&t(L9,{value:n,id:e.id,name:e.name,isLocked:null===(i=o.find((function(e){var t;return e.id===(null===(t=l.find((function(e){return e.id===(null==r?void 0:r.id)})))||void 0===t?void 0:t.dataSource)})))||void 0===i?void 0:i.isLocked,isNotSaved:e.isNotSaved,onSaveClick:function(){var t;return null===(t=a.onSaveTabClick)||void 0===t?void 0:t.call(a,e)}},"".concat(n,"-TabWithTooltip"))}))}),s&&t(qL,{onClick:function(){var e;null===(e=null==c?void 0:c.toggleFullscreen)||void 0===e||e.call(c)},"data-testid":"FullscreenIcon",children:t(HL,{fontSize:"small",children:t("path",{"data-testid":(null==c?void 0:c.isFullscreen)?"closeFullscreen":"openFullscreen",d:(null==c?void 0:c.isFullscreen)?Px:Fx})})})]})},z9=function(){var e=G6(),o=e.currentTab,i=e.tabTypes,a=e.tableProps,l=e.tableSettings,s=e.idsSelected,c=i.find((function(e){return e.id===(null==o?void 0:o.dataSource)}));return t(r,{children:a.defaultToolbarProps||(null==c?void 0:c.toolbarProps)&&t(zL,{children:n(r,{children:[t(FL,{children:1===l.length&&l[0].name}),t(Qq,Object.assign({},a.defaultToolbarProps,null==c?void 0:c.toolbarProps,{selectedIds:s}))]})})})},j9=o.div.withConfig({displayName:"TabbedTable__TableWrapper",componentId:"sc-1ugm3gz-0"})(["flex-grow:1;"]),B9=o.div.withConfig({displayName:"TabbedTable__TableAndFilterWrapper",componentId:"sc-1ugm3gz-1"})(["display:flex;flex-direction:row;position:relative;"]),V9=o((function(){var e=G6(),n=e.changeTab,r=e.tableSettings,o=e.currentTab,i=e.tableProps,a=e.onColumnVisibilityChange,l=e.onColumnOrderChange,s=e.isSettingsOpen,c=e.onSettingsVisibilityChange,u=e.onTabDelete,d=e.onTabAdd,f=e.onTabOrderChange,p=e.onTabVisibilityChange,h=e.onTabNameChange,g=e.onDeleteSettings,m=i.tabTypes.map((function(e){return e.id}));return t(P9,{isSettingsOpen:s,tabs:r,openTabId:null==o?void 0:o.id,showUrlCopyButton:i.showUrlCopyButton,urlBase:i.urlBase,onOpenTabChange:function(e){n(e)},onTabOrderChange:f,onTabVisibilityChange:p,onTabNameChange:h,onColumnVisibilityChange:a,onColumnOrderChange:l,onCloseSettings:c,onTabDelete:u,onTabAdd:d,onDeleteSettings:g,dataSources:m})})).withConfig({displayName:"TabbedTable__StyledTableSettings",componentId:"sc-1ugm3gz-2"})(["flex-shrink:1;max-width:320px;min-width:320px;flex-basis:320px;"]),W9=function(){var e=G6(),r=e.data,o=e.filters,i=e.initialSelection,a=e.onSelectionChange;return t(R$,{data:r,filters:o,initialSelection:i,onSelectionChange:a,children:n(B9,{children:[t(j9,{children:t(T5,{})}),t(V9,{})]})})},H9=function(e){return n(k5,{tableProps:e,children:[t(z9,{}),t(F9,{}),t(W9,{})]})},q9=o(yg).withConfig({displayName:"Linkstyles__StyledLink",componentId:"sc-1esxdfu-0"})(["font-size:14px;text-decoration:none;"," &:hover{","}"],(function(e){return e.$isDark?"\n text-decoration-color: ".concat(ky.mossGreen.tint[66],";\n color: ").concat(ky.mossGreen.tint[66],";\n "):"\n text-decoration-color: ".concat(ky.secondary.sinbad,";\n color: ").concat(ky.secondary.sinbad,";\n ")}),(function(e){return e.$isDark?"\n color: ".concat(ky.semantic.text.secondary,";\n text-decoration-color: ").concat(ky.semantic.text.secondary,";\n text-decoration: underline;\n "):""})),U9=o(yg).withConfig({displayName:"Linkstyles__StyledInlineLink",componentId:"sc-1esxdfu-1"})(["color:",";font-weight:bold;&:hover{text-decoration:none;}"],(function(e){return e.$isDark?ky.mossGreen.base:ky.secondary.sinbad})),K9=o.div.withConfig({displayName:"Linkstyles__LinkWithIconContainer",componentId:"sc-1esxdfu-2"})(["display:flex;"]),Y9=o.div.withConfig({displayName:"Linkstyles__IconContainer",componentId:"sc-1esxdfu-3"})(["margin-right:10px;color:",";"],ky.semantic.infographic.primary),G9=function(e){var n=e.href,r=e.linkStyle,o=void 0===r?"light":r,i=e.testid,a=e.children,l=e.target,s=void 0===l?"_blank":l,c=dx(e,["href","linkStyle","testid","children","target"]);return t(q9,Object.assign({"data-testid":i,$isDark:"dark"===o,target:s,underline:"always",href:n},c,{children:a}))},Z9=function(e){var n=e.href,r=e.testid,o=e.linkStyle,i=void 0===o?"light":o,a=e.children,l=e.target,s=void 0===l?"_blank":l,c=dx(e,["href","testid","linkStyle","children","target"]);return t(U9,Object.assign({"data-testid":r,$isDark:"dark"===i,target:s,href:n,underline:"none"},c,{children:a}))},J9=function(e){var r=e.href,o=e.linkStyle,i=void 0===o?"light":o,a=e.testid,l=e.children,s=e.target,c=void 0===s?"_blank":s,u=e.iconData,d=e.iconName,f=e.iconSize,p=dx(e,["href","linkStyle","testid","children","target","iconData","iconName","iconSize"]);return n(K9,{children:[t(Y9,{children:t(Vk,{data:u,name:d,size:f})}),t(q9,Object.assign({"data-testid":a,$isDark:"dark"===i,target:c,underline:"always",href:r},p,{children:l}))]})},X9=o.div.withConfig({displayName:"FooterSectionstyles__StyledFooterSectionHeader",componentId:"sc-1r4vor6-0"})(["font-size:10px;text-transform:uppercase;color:",";margin-bottom:16px;"],ky.semantic.text.tertiary),Q9=o.div.withConfig({displayName:"FooterSectionstyles__StyledFooterSection",componentId:"sc-1r4vor6-1"})(["color:",";border-left:3px solid ",";padding-left:15px;margin-right:42px;"],ky.semantic.text.secondary,ky.mossGreen.base),$9=o.div.withConfig({displayName:"FooterSectionstyles__StyledFooterChild",componentId:"sc-1r4vor6-2"})(["width:100%;"]),e7=function(e){var r=e.header,o=e.children;return n(Q9,{children:[t(X9,{children:r}),null==o?void 0:o.map((function(e){return t($9,{children:e})}))]})},t7=O0,n7=/\s/;var r7=function(e){for(var t=e.length;t--&&n7.test(e.charAt(t)););return t},o7=r7,i7=/^\s+/;var a7=B0,l7=p2;var s7=function(e){return e?e.slice(0,o7(e)+1).replace(i7,""):e},c7=V0,u7=function(e){return"symbol"==typeof e||l7(e)&&"[object Symbol]"==a7(e)},d7=/^[-+]0x[0-9a-f]+$/i,f7=/^0b[01]+$/i,p7=/^0o[0-7]+$/i,h7=parseInt;var g7=V0,m7=function(){return t7.Date.now()},v7=function(e){if("number"==typeof e)return e;if(u7(e))return NaN;if(c7(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c7(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s7(e);var n=f7.test(e);return n||p7.test(e)?h7(e.slice(2),n?2:8):d7.test(e)?NaN:+e},b7=Math.max,y7=Math.min;var x7=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function g(){var e=m7();if(h(e))return m(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?y7(n,i-(e-c)):n}(e))}function m(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=m7(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(g,t),u?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=v7(t)||0,g7(n)&&(u=!!n.leading,i=(d="maxWait"in n)?b7(v7(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:m(m7())},v},w7=K(x7),C7=R7,E7=O7(be),T7=O7(x7),k7=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=N7(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}r.default=e,n&&n.set(e,r);return r}(u),S7=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function N7(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(N7=function(e){return e?n:t})(e)}function O7(e){return e&&e.__esModule?e:{default:e}}function A7(){return A7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A7.apply(this,arguments)}var M7=[],I7={width:"100%",height:"100%"};function R7(e){var t=e.className,n=e.children,r=e.debounceTime,o=void 0===r?300:r,i=e.ignoreDimensions,a=void 0===i?M7:i,l=e.parentSizeStyles,s=void 0===l?I7:l,c=e.enableDebounceLeadingCall,u=void 0===c||c,d=e.resizeObserverPolyfill,f=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,S7),p=(0,k7.useRef)(null),h=(0,k7.useRef)(0),g=(0,k7.useState)({width:0,height:0,top:0,left:0}),m=g[0],v=g[1],b=(0,k7.useMemo)((function(){var e=Array.isArray(a)?a:[a];return(0,T7.default)((function(t){v((function(n){return Object.keys(n).filter((function(e){return n[e]!==t[e]})).every((function(t){return e.includes(t)}))?n:t}))}),o,{leading:u})}),[o,u,a]);return(0,k7.useEffect)((function(){var e=new(d||window.ResizeObserver)((function(e){e.forEach((function(e){var t,n=null!=(t=null==e?void 0:e.contentRect)?t:{},r=n.left,o=n.top,i=n.width,a=n.height;h.current=window.requestAnimationFrame((function(){b({width:i,height:a,top:o,left:r})}))}))}));return p.current&&e.observe(p.current),function(){window.cancelAnimationFrame(h.current),e.disconnect(),b.cancel()}}),[b,d]),k7.default.createElement("div",A7({style:s,ref:p,className:t},f),n(A7({},m,{ref:p.current,resize:b})))}function D7(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _7(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function P7(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=D7,n=(t,n)=>D7(e(t),n),r=(t,n)=>e(t)-n):(t=e===D7||e===_7?e:L7,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function L7(){return 0}R7.propTypes={className:E7.default.string,debounceTime:E7.default.number,enableDebounceLeadingCall:E7.default.bool,ignoreDimensions:E7.default.oneOfType([E7.default.any,E7.default.arrayOf(E7.default.any)]),children:E7.default.func.isRequired};const F7=P7(D7).right;P7((function(e){return null===e?NaN:+e})).center;var z7=F7;class j7 extends Map{constructor(e,t=V7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(B7(this,e))}has(e){return super.has(B7(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function B7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function V7(e){return null!==e&&"object"==typeof e?e.valueOf():e}const W7=Math.sqrt(50),H7=Math.sqrt(10),q7=Math.sqrt(2);function U7(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=W7?10:i>=H7?5:i>=q7?2:1;let l,s,c;return o<0?(c=Math.pow(10,-o)/a,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,o)*a,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?U7(e,t,2*n):[l,s,c]}function K7(e,t,n){return U7(e=+e,t=+t,n=+n)[2]}function Y7(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?K7(t,e,n):K7(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function G7(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}const Z7=Symbol("implicit");function J7(){var e=new j7,t=[],n=[],r=Z7;function o(o){let i=e.get(o);if(void 0===i){if(r!==Z7)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new j7;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return J7(t,n).unknown(r)},G7.apply(o,arguments),o}function X7(){var e,t,n=J7().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=a<i,f=d?a:i,p=d?i:a;e=(p-f)/Math.max(1,n-s+2*c),l&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*u,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return X7(r(),[i,a]).round(l).paddingInner(s).paddingOuter(c).align(u)},G7.apply(d(),arguments)}function Q7(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $7(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function e8(){}var t8=.7,n8=1/t8,r8="\\s*([+-]?\\d+)\\s*",o8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i8="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a8=/^#([0-9a-f]{3,8})$/,l8=new RegExp(`^rgb\\(${r8},${r8},${r8}\\)$`),s8=new RegExp(`^rgb\\(${i8},${i8},${i8}\\)$`),c8=new RegExp(`^rgba\\(${r8},${r8},${r8},${o8}\\)$`),u8=new RegExp(`^rgba\\(${i8},${i8},${i8},${o8}\\)$`),d8=new RegExp(`^hsl\\(${o8},${i8},${i8}\\)$`),f8=new RegExp(`^hsla\\(${o8},${i8},${i8},${o8}\\)$`),p8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function h8(){return this.rgb().formatHex()}function g8(){return this.rgb().formatRgb()}function m8(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=a8.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?v8(t):3===n?new w8(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?b8(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?b8(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=l8.exec(e))?new w8(t[1],t[2],t[3],1):(t=s8.exec(e))?new w8(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c8.exec(e))?b8(t[1],t[2],t[3],t[4]):(t=u8.exec(e))?b8(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d8.exec(e))?N8(t[1],t[2]/100,t[3]/100,1):(t=f8.exec(e))?N8(t[1],t[2]/100,t[3]/100,t[4]):p8.hasOwnProperty(e)?v8(p8[e]):"transparent"===e?new w8(NaN,NaN,NaN,0):null}function v8(e){return new w8(e>>16&255,e>>8&255,255&e,1)}function b8(e,t,n,r){return r<=0&&(e=t=n=NaN),new w8(e,t,n,r)}function y8(e){return e instanceof e8||(e=m8(e)),e?new w8((e=e.rgb()).r,e.g,e.b,e.opacity):new w8}function x8(e,t,n,r){return 1===arguments.length?y8(e):new w8(e,t,n,null==r?1:r)}function w8(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function C8(){return`#${S8(this.r)}${S8(this.g)}${S8(this.b)}`}function E8(){const e=T8(this.opacity);return`${1===e?"rgb(":"rgba("}${k8(this.r)}, ${k8(this.g)}, ${k8(this.b)}${1===e?")":`, ${e})`}`}function T8(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function k8(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function S8(e){return((e=k8(e))<16?"0":"")+e.toString(16)}function N8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M8(e,t,n,r)}function O8(e){if(e instanceof M8)return new M8(e.h,e.s,e.l,e.opacity);if(e instanceof e8||(e=m8(e)),!e)return new M8;if(e instanceof M8)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new M8(a,l,s,e.opacity)}function A8(e,t,n,r){return 1===arguments.length?O8(e):new M8(e,t,n,null==r?1:r)}function M8(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function I8(e){return(e=(e||0)%360)<0?e+360:e}function R8(e){return Math.max(0,Math.min(1,e||0))}function D8(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Q7(e8,m8,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:h8,formatHex:h8,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return O8(this).formatHsl()},formatRgb:g8,toString:g8}),Q7(w8,x8,$7(e8,{brighter(e){return e=null==e?n8:Math.pow(n8,e),new w8(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?t8:Math.pow(t8,e),new w8(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new w8(k8(this.r),k8(this.g),k8(this.b),T8(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C8,formatHex:C8,formatHex8:function(){return`#${S8(this.r)}${S8(this.g)}${S8(this.b)}${S8(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:E8,toString:E8})),Q7(M8,A8,$7(e8,{brighter(e){return e=null==e?n8:Math.pow(n8,e),new M8(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?t8:Math.pow(t8,e),new M8(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new w8(D8(e>=240?e-240:e+120,o,r),D8(e,o,r),D8(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new M8(I8(this.h),R8(this.s),R8(this.l),T8(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=T8(this.opacity);return`${1===e?"hsl(":"hsla("}${I8(this.h)}, ${100*R8(this.s)}%, ${100*R8(this.l)}%${1===e?")":`, ${e})`}`}}));const _8=Math.PI/180,P8=180/Math.PI,L8=.96422,F8=1,z8=.82521,j8=4/29,B8=6/29,V8=3*B8*B8,W8=B8*B8*B8;function H8(e){if(e instanceof U8)return new U8(e.l,e.a,e.b,e.opacity);if(e instanceof X8)return Q8(e);e instanceof w8||(e=y8(e));var t,n,r=Z8(e.r),o=Z8(e.g),i=Z8(e.b),a=K8((.2225045*r+.7168786*o+.0606169*i)/F8);return r===o&&o===i?t=n=a:(t=K8((.4360747*r+.3850649*o+.1430804*i)/L8),n=K8((.0139322*r+.0971045*o+.7141733*i)/z8)),new U8(116*a-16,500*(t-a),200*(a-n),e.opacity)}function q8(e,t,n,r){return 1===arguments.length?H8(e):new U8(e,t,n,null==r?1:r)}function U8(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function K8(e){return e>W8?Math.pow(e,1/3):e/V8+j8}function Y8(e){return e>B8?e*e*e:V8*(e-j8)}function G8(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Z8(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function J8(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof X8)return new X8(e.h,e.c,e.l,e.opacity);if(e instanceof U8||(e=H8(e)),0===e.a&&0===e.b)return new X8(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*P8;return new X8(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new X8(e,t,n,null==r?1:r)}function X8(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Q8(e){if(isNaN(e.h))return new U8(e.l,0,0,e.opacity);var t=e.h*_8;return new U8(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Q7(U8,q8,$7(e8,{brighter(e){return new U8(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new U8(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new w8(G8(3.1338561*(t=L8*Y8(t))-1.6168667*(e=F8*Y8(e))-.4906146*(n=z8*Y8(n))),G8(-.9787684*t+1.9161415*e+.033454*n),G8(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Q7(X8,J8,$7(e8,{brighter(e){return new X8(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new X8(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Q8(this).rgb()}}));var $8=-.14861,eee=1.78277,tee=-.29227,nee=-.90649,ree=1.97294,oee=ree*nee,iee=ree*eee,aee=eee*tee-nee*$8;function lee(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof see)return new see(e.h,e.s,e.l,e.opacity);e instanceof w8||(e=y8(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(aee*r+oee*t-iee*n)/(aee+oee-iee),i=r-o,a=(ree*(n-o)-tee*i)/nee,l=Math.sqrt(a*a+i*i)/(ree*o*(1-o)),s=l?Math.atan2(a,i)*P8-120:NaN;return new see(s<0?s+360:s,l,o,e.opacity)}(e):new see(e,t,n,null==r?1:r)}function see(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Q7(see,lee,$7(e8,{brighter(e){return e=null==e?n8:Math.pow(n8,e),new see(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?t8:Math.pow(t8,e),new see(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*_8,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new w8(255*(t+n*($8*r+eee*o)),255*(t+n*(tee*r+nee*o)),255*(t+n*(ree*r)),this.opacity)}}));var cee=e=>()=>e;function uee(e,t){return function(n){return e+n*t}}function dee(e,t){var n=t-e;return n?uee(e,n>180||n<-180?n-360*Math.round(n/360):n):cee(isNaN(e)?t:e)}function fee(e){return 1==(e=+e)?pee:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):cee(isNaN(t)?n:t)}}function pee(e,t){var n=t-e;return n?uee(e,n):cee(isNaN(e)?t:e)}var hee=function e(t){var n=fee(t);function r(e,t){var r=n((e=x8(e)).r,(t=x8(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=pee(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function gee(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function mee(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Eee(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function vee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bee(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yee(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Eee(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var xee=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wee=new RegExp(xee.source,"g");function Cee(e,t){var n,r,o,i=xee.lastIndex=wee.lastIndex=0,a=-1,l=[],s=[];for(e+="",t+="";(n=xee.exec(e))&&(r=wee.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:bee(n,r)})),i=wee.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function Eee(e,t){var n,r=typeof t;return null==t||"boolean"===r?cee(t):("number"===r?bee:"string"===r?(n=m8(t))?(t=n,hee):Cee:t instanceof m8?hee:t instanceof Date?vee:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?gee:Array.isArray(t)?mee:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?yee:bee)(e,t)}function Tee(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var kee,See=180/Math.PI,Nee={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Oee(e,t,n,r,o,i){var a,l,s;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r<t*n&&(e=-e,t=-t,s=-s,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*See,skewX:Math.atan(s)*See,scaleX:a,scaleY:l}}function Aee(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}return function(i,a){var l=[],s=[];return i=e(i),a=e(a),function(e,r,o,i,a,l){if(e!==o||r!==i){var s=a.push("translate(",null,t,null,n);l.push({i:s-4,x:bee(e,o)},{i:s-2,x:bee(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}(i.translateX,i.translateY,a.translateX,a.translateY,l,s),function(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:bee(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,l,s),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:bee(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,l,s),function(e,t,n,r,i,a){if(e!==n||t!==r){var l=i.push(o(i)+"scale(",null,",",null,")");a.push({i:l-4,x:bee(e,n)},{i:l-2,x:bee(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,l,s),i=a=null,function(e){for(var t,n=-1,r=s.length;++n<r;)l[(t=s[n]).i]=t.x(e);return l.join("")}}}var Mee=Aee((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Nee:Oee(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),Iee=Aee((function(e){return null==e?Nee:(kee||(kee=document.createElementNS("http://www.w3.org/2000/svg","g")),kee.setAttribute("transform",e),(e=kee.transform.baseVal.consolidate())?Oee((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Nee)}),", ",")",")");function Ree(e){return((e=Math.exp(e))+1/e)/2}var Dee=function e(t,n,r){function o(e,o){var i,a,l=e[0],s=e[1],c=e[2],u=o[0],d=o[1],f=o[2],p=u-l,h=d-s,g=p*p+h*h;if(g<1e-12)a=Math.log(f/c)/t,i=function(e){return[l+e*p,s+e*h,c*Math.exp(t*e*a)]};else{var m=Math.sqrt(g),v=(f*f-c*c+r*g)/(2*c*n*m),b=(f*f-c*c-r*g)/(2*f*n*m),y=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(b*b+1)-b);a=(x-y)/t,i=function(e){var r=e*a,o=Ree(y),i=c/(n*m)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+y)-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[l+i*p,s+i*h,c*o/Ree(t*r+y)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4);function _ee(e){return function(t,n){var r=e((t=A8(t)).h,(n=A8(n)).h),o=pee(t.s,n.s),i=pee(t.l,n.l),a=pee(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=o(e),t.l=i(e),t.opacity=a(e),t+""}}}var Pee=_ee(dee),Lee=_ee(pee);function Fee(e){return function(t,n){var r=e((t=J8(t)).h,(n=J8(n)).h),o=pee(t.c,n.c),i=pee(t.l,n.l),a=pee(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=o(e),t.l=i(e),t.opacity=a(e),t+""}}}var zee=Fee(dee),jee=Fee(pee);function Bee(e){return function t(n){function r(t,r){var o=e((t=lee(t)).h,(r=lee(r)).h),i=pee(t.s,r.s),a=pee(t.l,r.l),l=pee(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var Vee=Bee(dee),Wee=Bee(pee);function Hee(e){return+e}var qee=[0,1];function Uee(e){return e}function Kee(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Yee(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Kee(o,r),i=n(a,i)):(r=Kee(r,o),i=n(i,a)),function(e){return i(r(e))}}function Gee(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Kee(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=z7(e,t,1,r)-1;return i[n](o[n](t))}}function Zee(){var e,t,n,r,o,i,a=qee,l=qee,s=Eee,c=Uee;function u(){var e=Math.min(a.length,l.length);return c!==Uee&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Gee:Yee,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(l,a.map(e),bee)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Hee),u()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=Tee,u()},d.clamp=function(e){return arguments.length?(c=!!e||Uee,u()):c!==Uee},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}const Jee=new Date,Xee=new Date;function Qee(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let l;do{a.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return a},o.filter=n=>Qee((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(Jee.setTime(+t),Xee.setTime(+r),e(Jee),e(Xee),Math.floor(n(Jee,Xee))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const $ee=Qee((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));$ee.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Qee((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):$ee:null),$ee.range;const ete=1e3,tte=6e4,nte=36e5,rte=864e5,ote=6048e5,ite=2592e6,ate=31536e6,lte=Qee((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*ete)}),((e,t)=>(t-e)/ete),(e=>e.getUTCSeconds()));lte.range;const ste=Qee((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ete)}),((e,t)=>{e.setTime(+e+t*tte)}),((e,t)=>(t-e)/tte),(e=>e.getMinutes()));ste.range;const cte=Qee((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*tte)}),((e,t)=>(t-e)/tte),(e=>e.getUTCMinutes()));cte.range;const ute=Qee((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ete-e.getMinutes()*tte)}),((e,t)=>{e.setTime(+e+t*nte)}),((e,t)=>(t-e)/nte),(e=>e.getHours()));ute.range;const dte=Qee((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*nte)}),((e,t)=>(t-e)/nte),(e=>e.getUTCHours()));dte.range;const fte=Qee((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tte)/rte),(e=>e.getDate()-1));fte.range;const pte=Qee((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/rte),(e=>e.getUTCDate()-1));pte.range;const hte=Qee((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/rte),(e=>Math.floor(e/rte)));function gte(e){return Qee((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tte)/ote))}hte.range;const mte=gte(0),vte=gte(1),bte=gte(2),yte=gte(3),xte=gte(4),wte=gte(5),Cte=gte(6);function Ete(e){return Qee((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ote))}mte.range,vte.range,bte.range,yte.range,xte.range,wte.range,Cte.range;const Tte=Ete(0),kte=Ete(1),Ste=Ete(2),Nte=Ete(3),Ote=Ete(4),Ate=Ete(5),Mte=Ete(6);Tte.range,kte.range,Ste.range,Nte.range,Ote.range,Ate.range,Mte.range;const Ite=Qee((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Ite.range;const Rte=Qee((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));Rte.range;const Dte=Qee((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));Dte.every=e=>isFinite(e=Math.floor(e))&&e>0?Qee((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,Dte.range;const _te=Qee((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));_te.every=e=>isFinite(e=Math.floor(e))&&e>0?Qee((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,_te.range;const[Pte,Lte]=function(e,t,n,r,o,i){const a=[[lte,1,ete],[lte,5,5e3],[lte,15,15e3],[lte,30,3e4],[i,1,tte],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,nte],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,rte],[r,2,1728e5],[n,1,ote],[t,1,ite],[t,3,7776e6],[e,1,ate]];function l(t,n,r){const o=Math.abs(n-t)/r,i=P7((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Y7(t/ate,n/ate,r));if(0===i)return $ee.every(Math.max(Y7(t,n,r),1));const[l,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}(Dte,Ite,mte,fte,ute,ste);function Fte(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zte(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jte(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Bte,Vte,Wte={"-":"",_:" ",0:"0"},Hte=/^\s*\d+/,qte=/^%/,Ute=/[\\^$*+?|[\]().{}]/g;function Kte(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Yte(e){return e.replace(Ute,"\\$&")}function Gte(e){return new RegExp("^(?:"+e.map(Yte).join("|")+")","i")}function Zte(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Jte(e,t,n){var r=Hte.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xte(e,t,n){var r=Hte.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qte(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $te(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ene(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tne(e,t,n){var r=Hte.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nne(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function rne(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function one(e,t,n){var r=Hte.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function ine(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ane(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lne(e,t,n){var r=Hte.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sne(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cne(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function une(e,t,n){var r=Hte.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dne(e,t,n){var r=Hte.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fne(e,t,n){var r=Hte.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pne(e,t,n){var r=qte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hne(e,t,n){var r=Hte.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function gne(e,t,n){var r=Hte.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mne(e,t){return Kte(e.getDate(),t,2)}function vne(e,t){return Kte(e.getHours(),t,2)}function bne(e,t){return Kte(e.getHours()%12||12,t,2)}function yne(e,t){return Kte(1+fte.count(Dte(e),e),t,3)}function xne(e,t){return Kte(e.getMilliseconds(),t,3)}function wne(e,t){return xne(e,t)+"000"}function Cne(e,t){return Kte(e.getMonth()+1,t,2)}function Ene(e,t){return Kte(e.getMinutes(),t,2)}function Tne(e,t){return Kte(e.getSeconds(),t,2)}function kne(e){var t=e.getDay();return 0===t?7:t}function Sne(e,t){return Kte(mte.count(Dte(e)-1,e),t,2)}function Nne(e){var t=e.getDay();return t>=4||0===t?xte(e):xte.ceil(e)}function One(e,t){return e=Nne(e),Kte(xte.count(Dte(e),e)+(4===Dte(e).getDay()),t,2)}function Ane(e){return e.getDay()}function Mne(e,t){return Kte(vte.count(Dte(e)-1,e),t,2)}function Ine(e,t){return Kte(e.getFullYear()%100,t,2)}function Rne(e,t){return Kte((e=Nne(e)).getFullYear()%100,t,2)}function Dne(e,t){return Kte(e.getFullYear()%1e4,t,4)}function _ne(e,t){var n=e.getDay();return Kte((e=n>=4||0===n?xte(e):xte.ceil(e)).getFullYear()%1e4,t,4)}function Pne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Kte(t/60|0,"0",2)+Kte(t%60,"0",2)}function Lne(e,t){return Kte(e.getUTCDate(),t,2)}function Fne(e,t){return Kte(e.getUTCHours(),t,2)}function zne(e,t){return Kte(e.getUTCHours()%12||12,t,2)}function jne(e,t){return Kte(1+pte.count(_te(e),e),t,3)}function Bne(e,t){return Kte(e.getUTCMilliseconds(),t,3)}function Vne(e,t){return Bne(e,t)+"000"}function Wne(e,t){return Kte(e.getUTCMonth()+1,t,2)}function Hne(e,t){return Kte(e.getUTCMinutes(),t,2)}function qne(e,t){return Kte(e.getUTCSeconds(),t,2)}function Une(e){var t=e.getUTCDay();return 0===t?7:t}function Kne(e,t){return Kte(Tte.count(_te(e)-1,e),t,2)}function Yne(e){var t=e.getUTCDay();return t>=4||0===t?Ote(e):Ote.ceil(e)}function Gne(e,t){return e=Yne(e),Kte(Ote.count(_te(e),e)+(4===_te(e).getUTCDay()),t,2)}function Zne(e){return e.getUTCDay()}function Jne(e,t){return Kte(kte.count(_te(e)-1,e),t,2)}function Xne(e,t){return Kte(e.getUTCFullYear()%100,t,2)}function Qne(e,t){return Kte((e=Yne(e)).getUTCFullYear()%100,t,2)}function $ne(e,t){return Kte(e.getUTCFullYear()%1e4,t,4)}function ere(e,t){var n=e.getUTCDay();return Kte((e=n>=4||0===n?Ote(e):Ote.ceil(e)).getUTCFullYear()%1e4,t,4)}function tre(){return"+0000"}function nre(){return"%"}function rre(e){return+e}function ore(e){return Math.floor(+e/1e3)}function ire(e){return new Date(e)}function are(e){return e instanceof Date?+e:+new Date(+e)}function lre(e,t,n,r,o,i,a,l,s,c){var u=Zee()(Uee,Uee),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),b=c("%b %d"),y=c("%B"),x=c("%Y");function w(e){return(s(e)<e?p:l(e)<e?h:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:b:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,are)):f().map(ire)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):u},u.copy=function(){return d=u,lre(e,t,n,r,o,i,a,l,s,c).domain(d.domain()).range(d.range()).interpolate(d.interpolate()).clamp(d.clamp()).unknown(d.unknown());var d},u}Bte=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,c=Gte(o),u=Zte(o),d=Gte(i),f=Zte(i),p=Gte(a),h=Zte(a),g=Gte(l),m=Zte(l),v=Gte(s),b=Zte(s),y={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:mne,e:mne,f:wne,g:Rne,G:_ne,H:vne,I:bne,j:yne,L:xne,m:Cne,M:Ene,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:rre,s:ore,S:Tne,u:kne,U:Sne,V:One,w:Ane,W:Mne,x:null,X:null,y:Ine,Y:Dne,Z:Pne,"%":nre},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Lne,e:Lne,f:Vne,g:Qne,G:ere,H:Fne,I:zne,j:jne,L:Bne,m:Wne,M:Hne,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:rre,s:ore,S:qne,u:Une,U:Kne,V:Gne,w:Zne,W:Jne,x:null,X:null,y:Xne,Y:$ne,Z:tre,"%":nre},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:ane,e:ane,f:fne,g:nne,G:tne,H:sne,I:sne,j:lne,L:dne,m:ine,M:cne,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:one,Q:hne,s:gne,S:une,u:Xte,U:Qte,V:$te,w:Jte,W:ene,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:nne,Y:tne,Z:rne,"%":pne};function C(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l<c;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(o=Wte[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function E(e,t){return function(n){var r,o,i=jte(1900,void 0,1);if(T(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=zte(jte(i.y,0,1))).getUTCDay(),r=o>4||0===o?kte.ceil(r):kte(r),r=pte.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Fte(jte(i.y,0,1))).getDay(),r=o>4||0===o?vte.ceil(r):vte(r),r=fte.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?zte(jte(i.y,0,1)).getUTCDay():Fte(jte(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,zte(i)):Fte(i)}}function T(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Wte?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Vte=Bte.format,Bte.parse,Bte.utcFormat,Bte.utcParse;var sre={lab:function(e,t){var n=pee((e=q8(e)).l,(t=q8(t)).l),r=pee(e.a,t.a),o=pee(e.b,t.b),i=pee(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=o(t),e.opacity=i(t),e+""}},hcl:zee,"hcl-long":jee,hsl:Pee,"hsl-long":Lee,cubehelix:Vee,"cubehelix-long":Wee,rgb:hee};var cre=new Date(Date.UTC(2020,1,2,3,4,5)),ure="%Y-%m-%d %H:%M";var dre={day:fte,hour:ute,minute:ste,month:Ite,second:lte,week:mte,year:Dte},fre={day:pte,hour:dte,minute:cte,month:Rte,second:lte,week:Tte,year:_te};var pre=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],hre={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=e,o=function(e){return"2020-02-02 03:04"===e.tickFormat(1,ure)(cre)}(r);if("string"==typeof n)r.nice(o?fre[n]:dre[n]);else{var i=n.interval,a=n.step,l=(o?fre[i]:dre[i]).every(a);null!=l&&r.nice(l)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],o=n[1],i=o<r,a=i?[o,r]:[r,o],l=a[0],s=a[1],c=[Math.min(0,l),Math.max(0,s)];e.domain(i?c.reverse():c)}},interpolate:function(e,t){if("interpolate"in t&&"interpolate"in e&&void 0!==t.interpolate){var n=function(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return sre[e]}var t=e.type,n=e.gamma,r=sre[t];return void 0===n?r:r.gamma(n)}(t.interpolate);e.interpolate(n)}},round:function(e,t){"round"in t&&void 0!==t.round&&(t.round&&"interpolate"in t&&void 0!==t.interpolate?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(Tee))},align:function(e,t){"align"in e&&"align"in t&&void 0!==t.align&&e.align(t.align)},base:function(e,t){"base"in e&&"base"in t&&void 0!==t.base&&e.base(t.base)},clamp:function(e,t){"clamp"in e&&"clamp"in t&&void 0!==t.clamp&&e.clamp(t.clamp)},constant:function(e,t){"constant"in e&&"constant"in t&&void 0!==t.constant&&e.constant(t.constant)},exponent:function(e,t){"exponent"in e&&"exponent"in t&&void 0!==t.exponent&&e.exponent(t.exponent)},padding:function(e,t){"padding"in e&&"padding"in t&&void 0!==t.padding&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&void 0!==t.paddingInner&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&void 0!==t.paddingOuter&&e.paddingOuter(t.paddingOuter)},range:function(e,t){t.range&&e.range(t.range)},reverse:function(e,t){if(t.reverse){var n=e.range().slice().reverse();e.range(n)}},unknown:function(e,t){"unknown"in e&&"unknown"in t&&void 0!==t.unknown&&e.unknown(t.unknown)}};function gre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),o=pre.filter((function(e){return r.has(e)}));return function(e,t){return void 0!==t&&o.forEach((function(n){hre[n](e,t)})),e}}var mre=gre("domain","range","reverse","align","padding","round");function vre(e){return mre(X7(),e)}var bre=gre("domain","range","reverse","clamp","interpolate","nice","round");function yre(e){return bre(function(){return G7.apply(lre(Pte,Lte,Dte,Ite,mte,fte,ute,ste,lte,Vte).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}(),e)}var xre=gre("domain","range","reverse","unknown");var wre={value:()=>{}};function Cre(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new Ere(r)}function Ere(e){this._=e}function Tre(e,t){for(var n,r=0,o=e.length;r<o;++r)if((n=e[r]).name===t)return n.value}function kre(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=wre,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}Ere.prototype=Cre.prototype={constructor:Ere,on:function(e,t){var n,r,o=this._,i=(r=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}}))),a=-1,l=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<l;)if(n=(e=i[a]).type)o[n]=kre(o[n],e.name,t);else if(null==t)for(n in o)o[n]=kre(o[n],e.name,null);return this}for(;++a<l;)if((n=(e=i[a]).type)&&(n=Tre(o[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Ere(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,o=new Array(n),i=0;i<n;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=0,n=(r=this._[e]).length;i<n;++i)r[i].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};var Sre="http://www.w3.org/1999/xhtml",Nre={svg:"http://www.w3.org/2000/svg",xhtml:Sre,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ore(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Nre.hasOwnProperty(t)?{space:Nre[t],local:e}:e}function Are(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Sre&&t.documentElement.namespaceURI===Sre?t.createElement(e):t.createElementNS(n,e)}}function Mre(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ire(e){var t=Ore(e);return(t.local?Mre:Are)(t)}function Rre(){}function Dre(e){return null==e?Rre:function(){return this.querySelector(e)}}function _re(){return[]}function Pre(e){return null==e?_re:function(){return this.querySelectorAll(e)}}function Lre(e){return function(){return function(e){return null==e?[]:Array.isArray(e)?e:Array.from(e)}(e.apply(this,arguments))}}function Fre(e){return function(){return this.matches(e)}}function zre(e){return function(t){return t.matches(e)}}var jre=Array.prototype.find;function Bre(){return this.firstElementChild}var Vre=Array.prototype.filter;function Wre(){return Array.from(this.children)}function Hre(e){return new Array(e.length)}function qre(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Ure(e,t,n,r,o,i){for(var a,l=0,s=t.length,c=i.length;l<c;++l)(a=t[l])?(a.__data__=i[l],r[l]=a):n[l]=new qre(e,i[l]);for(;l<s;++l)(a=t[l])&&(o[l]=a)}function Kre(e,t,n,r,o,i,a){var l,s,c,u=new Map,d=t.length,f=i.length,p=new Array(d);for(l=0;l<d;++l)(s=t[l])&&(p[l]=c=a.call(s,s.__data__,l,t)+"",u.has(c)?o[l]=s:u.set(c,s));for(l=0;l<f;++l)c=a.call(e,i[l],l,i)+"",(s=u.get(c))?(r[l]=s,s.__data__=i[l],u.delete(c)):n[l]=new qre(e,i[l]);for(l=0;l<d;++l)(s=t[l])&&u.get(p[l])===s&&(o[l]=s)}function Yre(e){return e.__data__}function Gre(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Zre(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jre(e){return function(){this.removeAttribute(e)}}function Xre(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qre(e,t){return function(){this.setAttribute(e,t)}}function $re(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function eoe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function toe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function noe(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function roe(e){return function(){this.style.removeProperty(e)}}function ooe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ioe(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function aoe(e,t){return e.style.getPropertyValue(t)||noe(e).getComputedStyle(e,null).getPropertyValue(t)}function loe(e){return function(){delete this[e]}}function soe(e,t){return function(){this[e]=t}}function coe(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function uoe(e){return e.trim().split(/^|\s+/)}function doe(e){return e.classList||new foe(e)}function foe(e){this._node=e,this._names=uoe(e.getAttribute("class")||"")}function poe(e,t){for(var n=doe(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function hoe(e,t){for(var n=doe(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function goe(e){return function(){poe(this,e)}}function moe(e){return function(){hoe(this,e)}}function voe(e,t){return function(){(t.apply(this,arguments)?poe:hoe)(this,e)}}function boe(){this.textContent=""}function yoe(e){return function(){this.textContent=e}}function xoe(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function woe(){this.innerHTML=""}function Coe(e){return function(){this.innerHTML=e}}function Eoe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Toe(){this.nextSibling&&this.parentNode.appendChild(this)}function koe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Soe(){return null}function Noe(){var e=this.parentNode;e&&e.removeChild(this)}function Ooe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Aoe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Moe(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Ioe(e,t,n){return function(){var r,o=this.__on,i=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(o)for(var a=0,l=o.length;a<l;++a)if((r=o[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),void(r.value=t);this.addEventListener(e.type,i,n),r={type:e.type,name:e.name,value:t,listener:i,options:n},o?o.push(r):this.__on=[r]}}function Roe(e,t,n){var r=noe(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Doe(e,t){return function(){return Roe(this,e,t)}}function _oe(e,t){return function(){return Roe(this,e,t.apply(this,arguments))}}qre.prototype={constructor:qre,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},foe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Poe=[null];function Loe(e,t){this._groups=e,this._parents=t}function Foe(){return new Loe([[document.documentElement]],Poe)}function zoe(e){return"string"==typeof e?new Loe([[document.querySelector(e)]],[document.documentElement]):new Loe([[e]],Poe)}function joe(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Loe.prototype=Foe.prototype={constructor:Loe,select:function(e){"function"!=typeof e&&(e=Dre(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,l=t[o],s=l.length,c=r[o]=new Array(s),u=0;u<s;++u)(i=l[u])&&(a=e.call(i,i.__data__,u,l))&&("__data__"in i&&(a.__data__=i.__data__),c[u]=a);return new Loe(r,this._parents)},selectAll:function(e){e="function"==typeof e?Lre(e):Pre(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,l=t[i],s=l.length,c=0;c<s;++c)(a=l[c])&&(r.push(e.call(a,a.__data__,c,l)),o.push(a));return new Loe(r,o)},selectChild:function(e){return this.select(null==e?Bre:function(e){return function(){return jre.call(this.children,e)}}("function"==typeof e?e:zre(e)))},selectChildren:function(e){return this.selectAll(null==e?Wre:function(e){return function(){return Vre.call(this.children,e)}}("function"==typeof e?e:zre(e)))},filter:function(e){"function"!=typeof e&&(e=Fre(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],l=a.length,s=r[o]=[],c=0;c<l;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&s.push(i);return new Loe(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,Yre);var n=t?Kre:Ure,r=this._parents,o=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var i=o.length,a=new Array(i),l=new Array(i),s=new Array(i),c=0;c<i;++c){var u=r[c],d=o[c],f=d.length,p=Gre(e.call(u,u&&u.__data__,c,r)),h=p.length,g=l[c]=new Array(h),m=a[c]=new Array(h);n(u,d,g,m,s[c]=new Array(f),p,t);for(var v,b,y=0,x=0;y<h;++y)if(v=g[y]){for(y>=x&&(x=y+1);!(b=m[x])&&++x<h;);v._next=b||null}}return(a=new Loe(a,r))._enter=l,a._exit=s,a},enter:function(){return new Loe(this._enter||this._groups.map(Hre),this._parents)},exit:function(){return new Loe(this._exit||this._groups.map(Hre),this._parents)},join:function(e,t,n){var r=this.enter(),o=this,i=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?i.remove():n(i),r&&o?r.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,a=Math.min(o,i),l=new Array(o),s=0;s<a;++s)for(var c,u=n[s],d=r[s],f=u.length,p=l[s]=new Array(f),h=0;h<f;++h)(c=u[h]||d[h])&&(p[h]=c);for(;s<o;++s)l[s]=n[s];return new Loe(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Zre);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,l=n[i],s=l.length,c=o[i]=new Array(s),u=0;u<s;++u)(a=l[u])&&(c[u]=a);c.sort(t)}return new Loe(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var a=r[o];if(a)return a}return null},size:function(){let e=0;for(const t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,i=t[n],a=0,l=i.length;a<l;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=Ore(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Xre:Jre:"function"==typeof t?n.local?toe:eoe:n.local?$re:Qre)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?roe:"function"==typeof t?ioe:ooe)(e,t,null==n?"":n)):aoe(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?loe:"function"==typeof t?coe:soe)(e,t)):this.node()[e]},classed:function(e,t){var n=uoe(e+"");if(arguments.length<2){for(var r=doe(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?voe:t?goe:moe)(n,t))},text:function(e){return arguments.length?this.each(null==e?boe:("function"==typeof e?xoe:yoe)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?woe:("function"==typeof e?Eoe:Coe)(e)):this.node().innerHTML},raise:function(){return this.each(Toe)},lower:function(){return this.each(koe)},append:function(e){var t="function"==typeof e?e:Ire(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ire(e),r=null==t?Soe:"function"==typeof t?t:Dre(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Noe)},clone:function(e){return this.select(e?Aoe:Ooe)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(l=t?Ioe:Moe,r=0;r<a;++r)this.each(l(i[r],t,n));return this}var l=this.node().__on;if(l)for(var s,c=0,u=l.length;c<u;++c)for(r=0,s=l[c];r<a;++r)if((o=i[r]).type===s.type&&o.name===s.name)return s.value},dispatch:function(e,t){return this.each(("function"==typeof t?_oe:Doe)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,o=e[t],i=0,a=o.length;i<a;++i)(r=o[i])&&(yield r)}};const Boe={capture:!0,passive:!1};function Voe(e){e.preventDefault(),e.stopImmediatePropagation()}var Woe,Hoe,qoe=0,Uoe=0,Koe=0,Yoe=1e3,Goe=0,Zoe=0,Joe=0,Xoe="object"==typeof performance&&performance.now?performance:Date,Qoe="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function $oe(){return Zoe||(Qoe(eie),Zoe=Xoe.now()+Joe)}function eie(){Zoe=0}function tie(){this._call=this._time=this._next=null}function nie(e,t,n){var r=new tie;return r.restart(e,t,n),r}function rie(){Zoe=(Goe=Xoe.now())+Joe,qoe=Uoe=0;try{!function(){$oe(),++qoe;for(var e,t=Woe;t;)(e=Zoe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--qoe}()}finally{qoe=0,function(){var e,t,n=Woe,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Woe=t);Hoe=e,iie(r)}(),Zoe=0}}function oie(){var e=Xoe.now(),t=e-Goe;t>Yoe&&(Joe-=t,Goe=e)}function iie(e){qoe||(Uoe&&(Uoe=clearTimeout(Uoe)),e-Zoe>24?(e<1/0&&(Uoe=setTimeout(rie,e-Xoe.now()-Joe)),Koe&&(Koe=clearInterval(Koe))):(Koe||(Goe=Xoe.now(),Koe=setInterval(oie,Yoe)),qoe=1,Qoe(rie)))}function aie(e,t,n){var r=new tie;return t=null==t?0:+t,r.restart((n=>{r.stop(),e(n+t)}),t,n),r}tie.prototype=nie.prototype={constructor:tie,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?$oe():+n)+(null==t?0:+t),this._next||Hoe===this||(Hoe?Hoe._next=this:Woe=this,Hoe=this),this._call=e,this._time=n,iie()},stop:function(){this._call&&(this._call=null,this._time=1/0,iie())}};var lie=Cre("start","end","cancel","interrupt"),sie=[],cie=0,uie=1,die=2,fie=3,pie=4,hie=5,gie=6;function mie(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(e){n.state=uie,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(i){var c,u,d,f;if(n.state!==uie)return s();for(c in o)if((f=o[c]).name===n.name){if(f.state===fie)return aie(a);f.state===pie?(f.state=gie,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[c]):+c<t&&(f.state=gie,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete o[c])}if(aie((function(){n.state===fie&&(n.state=pie,n.timer.restart(l,n.delay,n.time),l(i))})),n.state=die,n.on.call("start",e,e.__data__,n.index,n.group),n.state===die){for(n.state=fie,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(f=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=f);r.length=u+1}}function l(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=hie,1),i=-1,a=r.length;++i<a;)r[i].call(e,o);n.state===hie&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=gie,n.timer.stop(),delete o[t],o)return;delete e.__transition}o[t]=n,n.timer=nie(i,0,n.time)}(e,n,{name:t,index:r,group:o,on:lie,tween:sie,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:cie})}function vie(e,t){var n=yie(e,t);if(n.state>cie)throw new Error("too late; already scheduled");return n}function bie(e,t){var n=yie(e,t);if(n.state>fie)throw new Error("too late; already running");return n}function yie(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function xie(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>die&&n.state<hie,n.state=gie,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete i[o]):a=!1;a&&delete e.__transition}}function wie(e,t){var n,r;return function(){var o=bie(this,e),i=o.tween;if(i!==n)for(var a=0,l=(r=n=i).length;a<l;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}o.tween=r}}function Cie(e,t,n){var r,o;if("function"!=typeof n)throw new Error;return function(){var i=bie(this,e),a=i.tween;if(a!==r){o=(r=a).slice();for(var l={name:t,value:n},s=0,c=o.length;s<c;++s)if(o[s].name===t){o[s]=l;break}s===c&&o.push(l)}i.tween=o}}function Eie(e,t,n){var r=e._id;return e.each((function(){var e=bie(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return yie(e,r).value[t]}}function Tie(e,t){var n;return("number"==typeof t?bee:t instanceof m8?hee:(n=m8(t))?(t=n,hee):Cee)(e,t)}function kie(e){return function(){this.removeAttribute(e)}}function Sie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nie(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Oie(e,t,n){var r,o,i=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function Aie(e,t,n){var r,o,i;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttribute(e))===(l=s+"")?null:a===r&&l===o?i:(o=l,i=t(r=a,s));this.removeAttribute(e)}}function Mie(e,t,n){var r,o,i;return function(){var a,l,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===(l=s+"")?null:a===r&&l===o?i:(o=l,i=t(r=a,s));this.removeAttributeNS(e.space,e.local)}}function Iie(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Rie(e,t){var n,r;function o(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function Die(e,t){return function(){vie(this,e).delay=+t.apply(this,arguments)}}function _ie(e,t){return t=+t,function(){vie(this,e).delay=t}}function Pie(e,t){return function(){bie(this,e).duration=+t.apply(this,arguments)}}function Lie(e,t){return t=+t,function(){bie(this,e).duration=t}}var Fie=Foe.prototype.constructor;function zie(e){return function(){this.style.removeProperty(e)}}var jie=0;function Bie(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Vie(){return++jie}var Wie=Foe.prototype;function Hie(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}Bie.prototype={constructor:Bie,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Dre(e));for(var r=this._groups,o=r.length,i=new Array(o),a=0;a<o;++a)for(var l,s,c=r[a],u=c.length,d=i[a]=new Array(u),f=0;f<u;++f)(l=c[f])&&(s=e.call(l,l.__data__,f,c))&&("__data__"in l&&(s.__data__=l.__data__),d[f]=s,mie(d[f],t,n,f,d,yie(l,n)));return new Bie(i,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Pre(e));for(var r=this._groups,o=r.length,i=[],a=[],l=0;l<o;++l)for(var s,c=r[l],u=c.length,d=0;d<u;++d)if(s=c[d]){for(var f,p=e.call(s,s.__data__,d,c),h=yie(s,n),g=0,m=p.length;g<m;++g)(f=p[g])&&mie(f,t,n,g,p,h);i.push(p),a.push(s)}return new Bie(i,a,t,n)},selectChild:Wie.selectChild,selectChildren:Wie.selectChildren,filter:function(e){"function"!=typeof e&&(e=Fre(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],l=a.length,s=r[o]=[],c=0;c<l;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&s.push(i);return new Bie(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),l=0;l<i;++l)for(var s,c=t[l],u=n[l],d=c.length,f=a[l]=new Array(d),p=0;p<d;++p)(s=c[p]||u[p])&&(f[p]=s);for(;l<r;++l)a[l]=t[l];return new Bie(a,this._parents,this._name,this._id)},selection:function(){return new Fie(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Vie(),r=this._groups,o=r.length,i=0;i<o;++i)for(var a,l=r[i],s=l.length,c=0;c<s;++c)if(a=l[c]){var u=yie(a,t);mie(a,e,n,c,l,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Bie(r,this._parents,e,n)},call:Wie.call,nodes:Wie.nodes,node:Wie.node,size:Wie.size,empty:Wie.empty,each:Wie.each,on:function(e,t){var n=this._id;return arguments.length<2?yie(this.node(),n).on.on(e):this.each(function(e,t,n){var r,o,i=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?vie:bie;return function(){var a=i(this,e),l=a.on;l!==r&&(o=(r=l).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=Ore(e),r="transform"===n?Iee:Tie;return this.attrTween(e,"function"==typeof t?(n.local?Mie:Aie)(n,r,Eie(this,"attr."+e,t)):null==t?(n.local?Sie:kie)(n):(n.local?Oie:Nie)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Ore(e);return this.tween(n,(r.local?Iie:Rie)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?Mee:Tie;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=aoe(this,e),a=(this.style.removeProperty(e),aoe(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,zie(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,o,i;return function(){var a=aoe(this,e),l=n(this),s=l+"";return null==l&&(this.style.removeProperty(e),s=l=aoe(this,e)),a===s?null:a===r&&s===o?i:(o=s,i=t(r=a,l))}}(e,r,Eie(this,"style."+e,t))).each(function(e,t){var n,r,o,i,a="style."+t,l="end."+a;return function(){var s=bie(this,e),c=s.on,u=null==s.value[a]?i||(i=zie(t)):void 0;c===n&&o===u||(r=(n=c).copy()).on(l,o=u),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,o,i=n+"";return function(){var a=aoe(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,o;function i(){var i=t.apply(this,arguments);return i!==o&&(r=(o=i)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,i,n)),r}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(Eie(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=yie(this.node(),n).tween,i=0,a=o.length;i<a;++i)if((r=o[i]).name===e)return r.value;return null}return this.each((null==t?wie:Cie)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Die:_ie)(t,e)):yie(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Pie:Lie)(t,e)):yie(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){bie(this,e).ease=t}}(t,e)):yie(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;bie(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,o=n.size();return new Promise((function(i,a){var l={value:a},s={value:function(){0==--o&&i()}};n.each((function(){var n=bie(this,r),o=n.on;o!==e&&((t=(e=o).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),n.on=t})),0===o&&i()}))},[Symbol.iterator]:Wie[Symbol.iterator]};var qie={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function Uie(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}Foe.prototype.interrupt=function(e){return this.each((function(){xie(this,e)}))},Foe.prototype.transition=function(e){var t,n;e instanceof Bie?(t=e._id,e=e._name):(t=Vie(),(n=qie).time=$oe(),e=null==e?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var a,l=r[i],s=l.length,c=0;c<s;++c)(a=l[c])&&mie(a,e,t,c,l,n||Uie(a,t));return new Bie(r,this._parents,e,t)};var Kie=e=>()=>e;function Yie(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Gie(e,t,n){this.k=e,this.x=t,this.y=n}Gie.prototype={constructor:Gie,scale:function(e){return 1===e?this:new Gie(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Gie(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Zie,Jie,Xie,Qie,$ie,eae=new Gie(1,0,0);function tae(e){e.stopImmediatePropagation()}function nae(e){e.preventDefault(),e.stopImmediatePropagation()}function rae(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function oae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function iae(){return this.__zoom||eae}function aae(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lae(){return navigator.maxTouchPoints||"ontouchstart"in this}function sae(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a))}function cae(){var e,t,n,r=rae,o=oae,i=sae,a=aae,l=lae,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,d=Dee,f=Cre("start","zoom","end"),p=500,h=150,g=0,m=10;function v(e){e.property("__zoom",iae).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(l).on("touchstart.zoom",N).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",A).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new Gie(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new Gie(e.k,r,o)}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,r){e.on("start.zoom",(function(){C(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){C(this,arguments).event(r).end()})).tween("zoom",(function(){var e=this,i=arguments,a=C(e,i).event(r),l=o.apply(e,i),s=null==n?x(l):"function"==typeof n?n.apply(e,i):n,c=Math.max(l[1][0]-l[0][0],l[1][1]-l[0][1]),u=e.__zoom,f="function"==typeof t?t.apply(e,i):t,p=d(u.invert(s).concat(c/u.k),f.invert(s).concat(c/f.k));return function(e){if(1===e)e=f;else{var t=p(e),n=c/t[2];e=new Gie(n,s[0]-t[0]*n,s[1]-t[1]*n)}a.zoom(null,e)}}))}function C(e,t,n){return!n&&e.__zooming||new E(e,t)}function E(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function T(e,...t){if(r.apply(this,arguments)){var n=C(this,t).event(e),o=this.__zoom,l=Math.max(s[0],Math.min(s[1],o.k*Math.pow(2,a.apply(this,arguments)))),u=joe(e);if(n.wheel)n.mouse[0][0]===u[0]&&n.mouse[0][1]===u[1]||(n.mouse[1]=o.invert(n.mouse[0]=u)),clearTimeout(n.wheel);else{if(o.k===l)return;n.mouse=[u,o.invert(u)],xie(this),n.start()}nae(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),h),n.zoom("mouse",i(y(b(o,l),n.mouse[0],n.mouse[1]),n.extent,c))}}function k(e,...t){if(!n&&r.apply(this,arguments)){var o=e.currentTarget,a=C(this,t,!0).event(e),l=zoe(e.view).on("mousemove.zoom",(function(e){if(nae(e),!a.moved){var t=e.clientX-u,n=e.clientY-d;a.moved=t*t+n*n>g}a.event(e).zoom("mouse",i(y(a.that.__zoom,a.mouse[0]=joe(e,o),a.mouse[1]),a.extent,c))}),!0).on("mouseup.zoom",(function(e){l.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,r=zoe(e).on("dragstart.drag",null);t&&(r.on("click.drag",Voe,Boe),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,a.moved),nae(e),a.event(e).end()}),!0),s=joe(e,o),u=e.clientX,d=e.clientY;!function(e){var t=e.document.documentElement,n=zoe(e).on("dragstart.drag",Voe,Boe);"onselectstart"in t?n.on("selectstart.drag",Voe,Boe):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),tae(e),a.mouse=[s,this.__zoom.invert(s)],xie(this),a.start()}}function S(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,a=joe(e.changedTouches?e.changedTouches[0]:e,this),l=n.invert(a),s=n.k*(e.shiftKey?.5:2),d=i(y(b(n,s),a,l),o.apply(this,t),c);nae(e),u>0?zoe(this).transition().duration(u).call(w,d,a,e):zoe(this).call(v.transform,d,a,e)}}function N(n,...o){if(r.apply(this,arguments)){var i,a,l,s,c=n.touches,u=c.length,d=C(this,o,n.changedTouches.length===u).event(n);for(tae(n),a=0;a<u;++a)s=[s=joe(l=c[a],this),this.__zoom.invert(s),l.identifier],d.touch0?d.touch1||d.touch0[2]===s[2]||(d.touch1=s,d.taps=0):(d.touch0=s,i=!0,d.taps=1+!!e);e&&(e=clearTimeout(e)),i&&(d.taps<2&&(t=s[0],e=setTimeout((function(){e=null}),p)),xie(this),d.start())}}function O(e,...t){if(this.__zooming){var n,r,o,a,l=C(this,t).event(e),s=e.changedTouches,u=s.length;for(nae(e),n=0;n<u;++n)o=joe(r=s[n],this),l.touch0&&l.touch0[2]===r.identifier?l.touch0[0]=o:l.touch1&&l.touch1[2]===r.identifier&&(l.touch1[0]=o);if(r=l.that.__zoom,l.touch1){var d=l.touch0[0],f=l.touch0[1],p=l.touch1[0],h=l.touch1[1],g=(g=p[0]-d[0])*g+(g=p[1]-d[1])*g,m=(m=h[0]-f[0])*m+(m=h[1]-f[1])*m;r=b(r,Math.sqrt(g/m)),o=[(d[0]+p[0])/2,(d[1]+p[1])/2],a=[(f[0]+h[0])/2,(f[1]+h[1])/2]}else{if(!l.touch0)return;o=l.touch0[0],a=l.touch0[1]}l.zoom("touch",i(y(r,o,a),l.extent,c))}}function A(e,...r){if(this.__zooming){var o,i,a=C(this,r).event(e),l=e.changedTouches,s=l.length;for(tae(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<s;++o)i=l[o],a.touch0&&a.touch0[2]===i.identifier?delete a.touch0:a.touch1&&a.touch1[2]===i.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(i=joe(i,this),Math.hypot(t[0]-i[0],t[1]-i[1])<m)){var c=zoe(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,r){var o=e.selection?e.selection():e;o.property("__zoom",iae),e!==o?w(e,t,n,r):o.interrupt().each((function(){C(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,r){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,r)},v.scaleTo=function(e,t,n,r){v.transform(e,(function(){var e=o.apply(this,arguments),r=this.__zoom,a=null==n?x(e):"function"==typeof n?n.apply(this,arguments):n,l=r.invert(a),s="function"==typeof t?t.apply(this,arguments):t;return i(y(b(r,s),a,l),e,c)}),n,r)},v.translateBy=function(e,t,n,r){v.transform(e,(function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,r)},v.translateTo=function(e,t,n,r,a){v.transform(e,(function(){var e=o.apply(this,arguments),a=this.__zoom,l=null==r?x(e):"function"==typeof r?r.apply(this,arguments):r;return i(eae.translate(l[0],l[1]).scale(a.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),r,a)},E.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=zoe(this.that).datum();f.call(e,this.that,new Yie(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:f}),t)}},v.wheelDelta=function(e){return arguments.length?(a="function"==typeof e?e:Kie(+e),v):a},v.filter=function(e){return arguments.length?(r="function"==typeof e?e:Kie(!!e),v):r},v.touchable=function(e){return arguments.length?(l="function"==typeof e?e:Kie(!!e),v):l},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:Kie([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],v):[s[0],s[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(i=e,v):i},v.duration=function(e){return arguments.length?(u=+e,v):u},v.interpolate=function(e){return arguments.length?(d=e,v):d},v.on=function(){var e=f.on.apply(f,arguments);return e===f?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}Gie.prototype;var uae,dae=o.svg.withConfig({displayName:"Timelinestyles__TimelineContainer",componentId:"sc-zxjw6a-0"})(["width:100%;height:auto;text{fill:",";}"],ky.white.base),fae=o.rect.withConfig({displayName:"Timelinestyles__TimelineInnerBorder",componentId:"sc-zxjw6a-1"})(["stroke:",";stroke-width:1px;",""],ky.slateBlue.base,(function(e){return e.$grabbable&&i(Zie||(Zie=lD(["\n cursor: grab;\n "])))})),pae=o.line.withConfig({displayName:"Timelinestyles__HorizontalTick",componentId:"sc-zxjw6a-2"})(["stroke:",";stroke-width:1px;fill:none;"],ky.slateBlue.base),hae=o.line.withConfig({displayName:"Timelinestyles__TickLine",componentId:"sc-zxjw6a-3"})(["stroke:",";"],ky.white.base),gae=o.text.withConfig({displayName:"Timelinestyles__TickText",componentId:"sc-zxjw6a-4"})(["font-size:0.75em;"]),mae=o.g.withConfig({displayName:"Timelinestyles__TimelineItemContainer",componentId:"sc-zxjw6a-5"})(["svg{cursor:pointer;}",""],(function(e){var t=e.$active;return i(void 0===t?Jie||(Jie=lD(["\n opacity: 1;\n "])):!0===t?Xie||(Xie=lD(["\n opacity: 1;\n "])):Qie||(Qie=lD(["\n opacity: 0.3;\n :hover {\n opacity: 0.7;\n }\n "])))})),vae=o.line.withConfig({displayName:"Timelinestyles__TimelineItemLine",componentId:"sc-zxjw6a-6"})(["stroke:",";stroke-width:1.5px;stroke-dasharray:4;fill:none;",""],ky.secondary.sinbad,(function(e){return!0===e.$active&&i($ie||($ie=lD(["\n stroke-width: 2px;\n stroke: ",";\n "])),ky.secondary.java)})),bae=o.circle.withConfig({displayName:"Timelinestyles__TimelineClusterIconCircle",componentId:"sc-zxjw6a-7"})(["fill:",";"],(function(e){return e.color})),yae={position:"absolute",padding:"8px 8px",background:"#121212",color:"#ffffff",border:"1px solid #808080",borderRadius:"8px",fontWeight:"400",fontSize:"1em"},xae=o.div.withConfig({displayName:"Timelinestyles__ClusteredTimelineItemTooltipContainer",componentId:"sc-zxjw6a-8"})(["display:grid;grid-template-columns:1fr;justify-items:start;align-content:center;> span{display:grid;grid-template-columns:1fr 1fr;column-gap:0.4em;align-items:center;}"]),wae=function(e,t,n){for(var r=!0,o=function(){var o=[];r=!1,e.forEach((function(i){var a=function(e,t,n,r){return e.find((function(e){var o=null==n?void 0:n(e.date),i=null==n?void 0:n(t.date),a=Math.abs(o-i);return e.id!==t.id&&a<=r}))}(e,i,t,n);void 0===a||r?o.some((function(e){var t,n;return null===(n=null===(t=null==e?void 0:e.clusteredItems)||void 0===t?void 0:t.some)||void 0===n?void 0:n.call(t,(function(e){return e.id===i.id}))}))||o.push(i):(r=!0,o.push(function(e,t){var n;return{id:"".concat(e.id,"-").concat(t.id),icon:e.icon,type:e.type,date:pV(null!==(n=[e.date,t.date].sort(mV)[0])&&void 0!==n?n:e.date,Math.abs(e.date.valueOf()-t.date.valueOf())/2),clusteredItems:[].concat(sx(void 0===e.clusteredItems?[e]:e.clusteredItems),sx(void 0===t.clusteredItems?[t]:t.clusteredItems)),original:[].concat(sx(Array.isArray(e.original)?e.original:[e.original]),sx(Array.isArray(t.original)?t.original:[t.original]))}}(i,a)))})),e=o};r;)o();return e},Cae=function(e){return function(t){return e.name===AW.name?1===CW(t)&&0===NW(t):e.name===w$.name?AW(t)%10==0:e.name===CW.name?1===CW(t):0===e(t)}},Eae=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return 0===r||1===r?n(e,t):n(e,t)*Math.abs(r)},Tae=function(e,t){var n;if(0!==e.length){var r="first"===t?IW:MW;return null!==(n=e.reduce((function(e,t){return!e||r(t.date,e)?t.date:e}),null))&&void 0!==n?n:void 0}},kae=100,Sae=1440,Nae={top:0,right:16,bottom:24,left:32},Oae={errorStateButtonWidth:80,errorStateDescriptionWidth:200,errorStateLeftMargin:15},Aae=s(uae||(uae=lD(["\n 0% {\n opacity: 1;\n }\n 85% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n"]))),Mae=o.div.withConfig({displayName:"TimelineRowLoadingStatesstyles__TimelineErrorDescriptionContainer",componentId:"sc-1kvj1en-0"})(["transition:all 0.2s;background:",";border-radius:4px;padding:2px 2px 2px 12px;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.custom.colors.semantic.interactive.danger})),Iae=o.div.withConfig({displayName:"TimelineRowLoadingStatesstyles__TimelineErrorDescription",componentId:"sc-1kvj1en-1"})(["background:",";height:","px;padding:0 8px;"],(function(e){return e.theme.custom.colors.bigStone.base}),(function(e){return e.$height-4})),Rae=o.g.withConfig({displayName:"TimelineRowLoadingStatesstyles__TimelineErrorRetryButton",componentId:"sc-1kvj1en-2"})(["transition:all 0.2s;rect{fill:",";cursor:pointer;}text{cursor:pointer;}"],(function(e){return e.theme.custom.colors.semantic.interactive.danger})),Dae=o(Uq).withConfig({displayName:"TimelineRowLoadingStatesstyles__ErrorIcon",componentId:"sc-1kvj1en-3"})(["fill:",";"],(function(e){return e.theme.custom.colors.semantic.interactive.danger})),_ae=o(Wq).withConfig({displayName:"TimelineRowLoadingStatesstyles__DoneIcon",componentId:"sc-1kvj1en-4"})(["fill:",";animation:"," 4s linear;animation-fill-mode:forwards;"],(function(e){return e.theme.custom.colors.secondary.sinbad}),Aae),Pae=o.line.withConfig({displayName:"TimelineRowLoadingStatesstyles__DoneLine",componentId:"sc-1kvj1en-5"})(["stroke:",";stroke-width:2px;animation:"," 4s linear;animation-fill-mode:forwards;"],(function(e){return e.theme.custom.colors.secondary.sinbad}),Aae),Lae={margins:Nae,width:Sae,height:kae,customBrushIconRadius:6,innerWidth:Sae-Nae.left-Nae.right,innerHeight:kae-Nae.top-Nae.bottom,iconHeight:24,tickOffset:5,timelineRowOptions:Oae,rowHeight:kae,xScale:yre({domain:[new Date,new Date],range:[0,Math.abs(Sae-Nae.left-Nae.right)],nice:!0}),yScale:vre({domain:sx(Array(1).keys()),range:[0,kae-Nae.top-Nae.bottom]})},Fae=x(Lae);Fae.displayName="TimelineOptionsContext";var zae=function(){return f(Fae)},jae=function(e){var n=e.timelineOptions,r=e.xScale,o=e.yScale,i=e.children,a=Object.assign(Object.assign(Object.assign({},Lae),n),{xScale:r,yScale:o});return t(Fae.Provider,{value:a,children:i})},Bae=function(e){var r,o=e.dataRow,i=void 0===o?[]:o,a=zae(),l=a.innerHeight,s=a.yScale,c=a.timelineRowOptions,u=c.errorStateButtonWidth,d=c.errorStateDescriptionWidth,f=c.errorStateLeftMargin,p=l-(null!==(r=s(i.length-1))&&void 0!==r?r:0)-1,h=p/2;return t("g",{name:"timeline-error",children:i.map((function(e,r){var o,i,a,l,c=(null!==(o=s(r))&&void 0!==o?o:1)+p/2-h/2;return"Error"!==e.loadingState?null:n("g",{"data-testid":"timeline-error-".concat(r),transform:"translate(".concat(f,", ").concat(c,")"),children:[t("g",{name:"errorDescription",children:t("foreignObject",{width:d,height:h,children:t(Mae,{children:t(Iae,{$height:h,children:null===(i=e.errorHandling)||void 0===i?void 0:i.errorDescription})})})}),n(Rae,{name:"retryButton","data-testid":"timeline-error-".concat(r,"-retryButton"),transform:"translate(".concat(d+5,", 0)"),onClick:null===(a=e.errorHandling)||void 0===a?void 0:a.onRetry,children:[t("rect",{rx:4,height:h,width:u}),t("text",{x:u/2,y:h/2+5,textAnchor:"middle",children:null===(l=e.errorHandling)||void 0===l?void 0:l.retryText})]})]},r)}))})},Vae=function(e){var r=e.dataRow,o=zae(),i=o.innerWidth,a=o.innerHeight,l=o.yScale,s=C((function(){var e;return a-(null!==(e=l(0))&&void 0!==e?e:0)-1}),[a,l]);return C((function(){return null==r?void 0:r.some((function(e){return e.loadingState}))}),[r])?n("g",{name:"timeline-loading-skeleton",children:[t("rect",{width:i,height:a,fill:"url(#timelineSkeletonGradient)",clipPath:"url(#timelineSkeletonClipPath)"}),n("defs",{children:[t("clipPath",{id:"timelineSkeletonClipPath",children:null==r?void 0:r.map((function(e,n){var r,o=(null!==(r=l(n))&&void 0!==r?r:0)+1;return"Loading"!==e.loadingState?null:t("rect",{"data-testid":"timeline-skeleton-".concat(n),y:o,width:i,height:s},n)}))}),n("linearGradient",{id:"timelineSkeletonGradient",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[t("stop",{offset:"0%",style:{stopColor:ky.white.transparent[92],stopOpacity:0},children:t("animate",{attributeName:"offset",values:"-2; -2; 1",keyTimes:"0; 0.25; 1",dur:"1.5s",repeatCount:"indefinite"})}),t("stop",{offset:"50%",style:{stopColor:ky.white.transparent[92],stopOpacity:1},children:t("animate",{attributeName:"offset",values:"-1; -1; 2",keyTimes:"0; 0.25; 1",dur:"1.5s",repeatCount:"indefinite"})}),t("stop",{offset:"100%",style:{stopColor:ky.white.transparent[92],stopOpacity:0},children:t("animate",{attributeName:"offset",values:"0; 0; 3",keyTimes:"0; 0.25; 1",dur:"1.5s",repeatCount:"indefinite"})})]})]})]}):null},Wae=function(e){var o=e.bandStates;return n(r,{children:[t(Vae,{dataRow:o}),t(Bae,{dataRow:o})]})},Hae=function(e){return t("span",{children:"".concat(wW(e.date,"dd.MM.yyyy")," - ").concat(e.id)})},qae=function(e){var r,o=e.clusteredItems,i=void 0===o?[]:o,a=null!==(r=null==i?void 0:i.reduce((function(e,t){var n=e.findIndex((function(e){return e.timelineItem.type===t.type}));return n<0?e.push({timelineItem:t,total:1}):e[n].total=e[n].total+1,e}),[]))&&void 0!==r?r:[];return t(xae,{children:a.map((function(e){var t=e.timelineItem,r=e.total;return n("span",{children:[t.icon.icon,r]},t.type)}))})},Uae=function(e){var n,o,i,a,l,s,c=e.timelineItem,u=c.clusteredItems,d=void 0===u?[]:u,f=c.renderTooltip,p=null===(n=d.find((function(e){return void 0!==e.date})))||void 0===n?void 0:n.date,h=void 0!==p&&d.every((function(e){return e.date.getTime()===p.getTime()}));return d.length>0?t(r,h?{children:null!==(l=null!==(o=null==f?void 0:f(c))&&void 0!==o?o:null===(a=null===(i=d.find((function(e){return void 0!==e.renderTooltip})))||void 0===i?void 0:i.renderTooltip)||void 0===a?void 0:a.call(i,c))&&void 0!==l?l:Hae(c)}:{children:qae(c)}):t(r,{children:null!==(s=null==f?void 0:f(c))&&void 0!==s?s:Hae(c)})},Kae={exports:{}};
|
|
246
246
|
/*!
|
|
247
247
|
Copyright (c) 2018 Jed Watson.
|
|
248
248
|
Licensed under the MIT License (MIT), see
|
|
249
249
|
http://jedwatson.github.io/classnames
|
|
250
250
|
*/
|
|
251
|
-
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Kae);var Yae=Kae.exports,Gae=K(Yae),Zae=["top","left","transform","className","children","innerRef"];function Jae(){return Jae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jae.apply(this,arguments)}function Xae(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.transform,a=e.className,l=e.children,s=e.innerRef,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Zae);return u.createElement("g",Jae({ref:s,className:Gae("visx-group",a),transform:i||"translate("+o+", "+n+")"},c),l)}Xae.propTypes={top:ye.number,left:ye.number,transform:ye.string,className:ye.string,children:ye.node,innerRef:ye.oneOfType([ye.string,ye.func,ye.object])};var Qae=Y(Object.freeze({__proto__:null,Group:Xae})),$ae={},ele=Math.PI,tle=2*ele,nle=1e-6,rle=tle-nle;function ole(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ile(){return new ole}function ale(e){return function(){return e}}ole.prototype=ile.prototype={constructor:ole,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,l=n-e,s=r-t,c=i-e,u=a-t,d=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>nle)if(Math.abs(u*l-s*c)>nle&&o){var f=n-i,p=r-a,h=l*l+s*s,g=f*f+p*p,m=Math.sqrt(h),v=Math.sqrt(d),b=o*Math.tan((ele-Math.acos((h+d-g)/(2*m*v)))/2),y=b/v,x=b/m;Math.abs(y-1)>nle&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+o+","+o+",0,0,"+ +(u*f>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),l=n*Math.sin(r),s=e+a,c=t+l,u=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>nle||Math.abs(this._y1-c)>nle)&&(this._+="L"+s+","+c),n&&(d<0&&(d=d%tle+tle),d>rle?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-l)+"A"+n+","+n+",0,1,"+u+","+(this._x1=s)+","+(this._y1=c):d>nle&&(this._+="A"+n+","+n+",0,"+ +(d>=ele)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var lle=Math.abs,sle=Math.atan2,cle=Math.cos,ule=Math.max,dle=Math.min,fle=Math.sin,ple=Math.sqrt,hle=1e-12,gle=Math.PI,mle=gle/2,vle=2*gle;function ble(e){return e>=1?mle:e<=-1?-mle:Math.asin(e)}function yle(e){return e.innerRadius}function xle(e){return e.outerRadius}function wle(e){return e.startAngle}function Cle(e){return e.endAngle}function Ele(e){return e&&e.padAngle}function Tle(e,t,n,r,o,i,a){var l=e-n,s=t-r,c=(a?i:-i)/ple(l*l+s*s),u=c*s,d=-c*l,f=e+u,p=t+d,h=n+u,g=r+d,m=(f+h)/2,v=(p+g)/2,b=h-f,y=g-p,x=b*b+y*y,w=o-i,C=f*g-h*p,E=(y<0?-1:1)*ple(ule(0,w*w*x-C*C)),T=(C*y-b*E)/x,k=(-C*b-y*E)/x,S=(C*y+b*E)/x,N=(-C*b+y*E)/x,O=T-m,A=k-v,M=S-m,I=N-v;return O*O+A*A>M*M+I*I&&(T=S,k=N),{cx:T,cy:k,x01:-u,y01:-d,x11:T*(o/w-1),y11:k*(o/w-1)}}function kle(e){this._context=e}function Sle(e){return new kle(e)}function Nle(e){return e[0]}function Ole(e){return e[1]}function Ale(){var e=Nle,t=Ole,n=ale(!0),r=null,o=Sle,i=null;function a(a){var l,s,c,u=a.length,d=!1;for(null==r&&(i=o(c=ile())),l=0;l<=u;++l)!(l<u&&n(s=a[l],l,a))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(s,l,a),+t(s,l,a));if(c)return i=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:ale(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:ale(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}function Mle(){var e=Nle,t=null,n=ale(0),r=Ole,o=ale(!0),i=null,a=Sle,l=null;function s(s){var c,u,d,f,p,h=s.length,g=!1,m=new Array(h),v=new Array(h);for(null==i&&(l=a(p=ile())),c=0;c<=h;++c){if(!(c<h&&o(f=s[c],c,s))===g)if(g=!g)u=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),d=c-1;d>=u;--d)l.point(m[d],v[d]);l.lineEnd(),l.areaEnd()}g&&(m[c]=+e(f,c,s),v[c]=+n(f,c,s),l.point(t?+t(f,c,s):m[c],r?+r(f,c,s):v[c]))}if(p)return l=null,p+""||null}function c(){return Ale().defined(o).curve(a).context(i)}return s.x=function(n){return arguments.length?(e="function"==typeof n?n:ale(+n),t=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),s):e},s.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:ale(+e),s):t},s.y=function(e){return arguments.length?(n="function"==typeof e?e:ale(+e),r=null,s):n},s.y0=function(e){return arguments.length?(n="function"==typeof e?e:ale(+e),s):n},s.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ale(+e),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(n)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(t).y(n)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:ale(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}function Ile(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Rle(e){return e}kle.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Dle=Ple(Sle);function _le(e){this._curve=e}function Ple(e){function t(t){return new _le(e(t))}return t._curve=e,t}function Lle(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Ple(e)):t()._curve},e}function Fle(){return Lle(Ale().curve(Dle))}function zle(){var e=Mle().curve(Dle),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Lle(n())},delete e.lineX0,e.lineEndAngle=function(){return Lle(r())},delete e.lineX1,e.lineInnerRadius=function(){return Lle(o())},delete e.lineY0,e.lineOuterRadius=function(){return Lle(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Ple(e)):t()._curve},e}function jle(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}_le.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ble=Array.prototype.slice;function Vle(e){return e.source}function Wle(e){return e.target}function Hle(e){var t=Vle,n=Wle,r=Nle,o=Ole,i=null;function a(){var a,l=Ble.call(arguments),s=t.apply(this,l),c=n.apply(this,l);if(i||(i=a=ile()),e(i,+r.apply(this,(l[0]=s,l)),+o.apply(this,l),+r.apply(this,(l[0]=c,l)),+o.apply(this,l)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:ale(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:ale(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function qle(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function Ule(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function Kle(e,t,n,r,o){var i=jle(t,n),a=jle(t,n=(n+o)/2),l=jle(r,n),s=jle(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],s[0],s[1])}var Yle={draw:function(e,t){var n=Math.sqrt(t/gle);e.moveTo(n,0),e.arc(0,0,n,0,vle)}},Gle={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Zle=Math.sqrt(1/3),Jle=2*Zle,Xle={draw:function(e,t){var n=Math.sqrt(t/Jle),r=n*Zle;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Qle=Math.sin(gle/10)/Math.sin(7*gle/10),$le=Math.sin(vle/10)*Qle,ese=-Math.cos(vle/10)*Qle,tse={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=$le*n,o=ese*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=vle*i/5,l=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*o,s*r+l*o)}e.closePath()}},nse={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},rse=Math.sqrt(3),ose={draw:function(e,t){var n=-Math.sqrt(t/(3*rse));e.moveTo(0,2*n),e.lineTo(-rse*n,-n),e.lineTo(rse*n,-n),e.closePath()}},ise=-.5,ase=Math.sqrt(3)/2,lse=1/Math.sqrt(12),sse=3*(lse/2+1),cse={draw:function(e,t){var n=Math.sqrt(t/sse),r=n/2,o=n*lse,i=r,a=n*lse+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(ise*r-ase*o,ase*r+ise*o),e.lineTo(ise*i-ase*a,ase*i+ise*a),e.lineTo(ise*l-ase*s,ase*l+ise*s),e.lineTo(ise*r+ase*o,ise*o-ase*r),e.lineTo(ise*i+ase*a,ise*a-ase*i),e.lineTo(ise*l+ase*s,ise*s-ase*l),e.closePath()}},use=[Yle,Gle,Xle,nse,tse,ose,cse];function dse(){}function fse(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function pse(e){this._context=e}function hse(e){this._context=e}function gse(e){this._context=e}function mse(e,t){this._basis=new pse(e),this._beta=t}pse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:fse(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:fse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},hse.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:fse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:fse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},mse.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,l=t[n]-i,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(o+r*a),this._beta*t[s]+(1-this._beta)*(i+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var vse=function e(t){function n(e){return 1===t?new pse(e):new mse(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function bse(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function yse(e,t){this._context=e,this._k=(1-t)/6}yse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bse(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bse(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xse=function e(t){function n(e){return new yse(e,t)}return n.tension=function(t){return e(+t)},n}(0);function wse(e,t){this._context=e,this._k=(1-t)/6}wse.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bse(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Cse=function e(t){function n(e){return new wse(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ese(e,t){this._context=e,this._k=(1-t)/6}Ese.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bse(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Tse=function e(t){function n(e){return new Ese(e,t)}return n.tension=function(t){return e(+t)},n}(0);function kse(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>hle){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>hle){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Sse(e,t){this._context=e,this._alpha=t}Sse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:kse(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Nse=function e(t){function n(e){return t?new Sse(e,t):new yse(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ose(e,t){this._context=e,this._alpha=t}Ose.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:kse(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ase=function e(t){function n(e){return t?new Ose(e,t):new wse(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Mse(e,t){this._context=e,this._alpha=t}Mse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kse(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ise=function e(t){function n(e){return t?new Mse(e,t):new Ese(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Rse(e){this._context=e}function Dse(e){return e<0?-1:1}function _se(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(Dse(i)+Dse(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function Pse(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lse(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function Fse(e){this._context=e}function zse(e){this._context=new jse(e)}function jse(e){this._context=e}function Bse(e){this._context=e}function Vse(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Wse(e,t){this._context=e,this._t=t}function Hse(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function qse(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Use(e,t){return e[t]}function Kse(e){var t=e.map(Yse);return qse(e).sort((function(e,n){return t[e]-t[n]}))}function Yse(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function Gse(e){var t=e.map(Zse);return qse(e).sort((function(e,n){return t[e]-t[n]}))}function Zse(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}Rse.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Fse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Lse(this,this._t0,Pse(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Lse(this,Pse(this,n=_se(this,e,t)),n);break;default:Lse(this,this._t0,n=_se(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(zse.prototype=Object.create(Fse.prototype)).point=function(e,t){Fse.prototype.point.call(this,t,e)},jse.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},Bse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Vse(e),o=Vse(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Wse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Jse=Object.freeze({__proto__:null,arc:function(){var e=yle,t=xle,n=ale(0),r=null,o=wle,i=Cle,a=Ele,l=null;function s(){var s,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),f=o.apply(this,arguments)-mle,p=i.apply(this,arguments)-mle,h=lle(p-f),g=p>f;if(l||(l=s=ile()),d<u&&(c=d,d=u,u=c),d>hle)if(h>vle-hle)l.moveTo(d*cle(f),d*fle(f)),l.arc(0,0,d,f,p,!g),u>hle&&(l.moveTo(u*cle(p),u*fle(p)),l.arc(0,0,u,p,f,g));else{var m,v,b=f,y=p,x=f,w=p,C=h,E=h,T=a.apply(this,arguments)/2,k=T>hle&&(r?+r.apply(this,arguments):ple(u*u+d*d)),S=dle(lle(d-u)/2,+n.apply(this,arguments)),N=S,O=S;if(k>hle){var A=ble(k/u*fle(T)),M=ble(k/d*fle(T));(C-=2*A)>hle?(x+=A*=g?1:-1,w-=A):(C=0,x=w=(f+p)/2),(E-=2*M)>hle?(b+=M*=g?1:-1,y-=M):(E=0,b=y=(f+p)/2)}var I=d*cle(b),R=d*fle(b),D=u*cle(w),_=u*fle(w);if(S>hle){var P,L=d*cle(y),F=d*fle(y),z=u*cle(x),j=u*fle(x);if(h<gle&&(P=function(e,t,n,r,o,i,a,l){var s=n-e,c=r-t,u=a-o,d=l-i,f=d*s-u*c;if(!(f*f<hle))return[e+(f=(u*(t-i)-d*(e-o))/f)*s,t+f*c]}(I,R,z,j,L,F,D,_))){var B=I-P[0],V=R-P[1],W=L-P[0],H=F-P[1],q=1/fle(function(e){return e>1?0:e<-1?gle:Math.acos(e)}((B*W+V*H)/(ple(B*B+V*V)*ple(W*W+H*H)))/2),U=ple(P[0]*P[0]+P[1]*P[1]);N=dle(S,(u-U)/(q-1)),O=dle(S,(d-U)/(q+1))}}E>hle?O>hle?(m=Tle(z,j,I,R,d,O,g),v=Tle(L,F,D,_,d,O,g),l.moveTo(m.cx+m.x01,m.cy+m.y01),O<S?l.arc(m.cx,m.cy,O,sle(m.y01,m.x01),sle(v.y01,v.x01),!g):(l.arc(m.cx,m.cy,O,sle(m.y01,m.x01),sle(m.y11,m.x11),!g),l.arc(0,0,d,sle(m.cy+m.y11,m.cx+m.x11),sle(v.cy+v.y11,v.cx+v.x11),!g),l.arc(v.cx,v.cy,O,sle(v.y11,v.x11),sle(v.y01,v.x01),!g))):(l.moveTo(I,R),l.arc(0,0,d,b,y,!g)):l.moveTo(I,R),u>hle&&C>hle?N>hle?(m=Tle(D,_,L,F,u,-N,g),v=Tle(I,R,z,j,u,-N,g),l.lineTo(m.cx+m.x01,m.cy+m.y01),N<S?l.arc(m.cx,m.cy,N,sle(m.y01,m.x01),sle(v.y01,v.x01),!g):(l.arc(m.cx,m.cy,N,sle(m.y01,m.x01),sle(m.y11,m.x11),!g),l.arc(0,0,u,sle(m.cy+m.y11,m.cx+m.x11),sle(v.cy+v.y11,v.cx+v.x11),g),l.arc(v.cx,v.cy,N,sle(v.y11,v.x11),sle(v.y01,v.x01),!g))):l.arc(0,0,u,w,x,g):l.lineTo(D,_)}else l.moveTo(0,0);if(l.closePath(),s)return l=null,s+""||null}return s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-gle/2;return[cle(r)*n,fle(r)*n]},s.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),s):e},s.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ale(+e),s):t},s.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ale(+e),s):n},s.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ale(+e),s):r},s.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:ale(+e),s):o},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ale(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:ale(+e),s):a},s.context=function(e){return arguments.length?(l=null==e?null:e,s):l},s},area:Mle,areaRadial:zle,curveBasis:function(e){return new pse(e)},curveBasisClosed:function(e){return new hse(e)},curveBasisOpen:function(e){return new gse(e)},curveBundle:vse,curveCardinal:xse,curveCardinalClosed:Cse,curveCardinalOpen:Tse,curveCatmullRom:Nse,curveCatmullRomClosed:Ase,curveCatmullRomOpen:Ise,curveLinear:Sle,curveLinearClosed:function(e){return new Rse(e)},curveMonotoneX:function(e){return new Fse(e)},curveMonotoneY:function(e){return new zse(e)},curveNatural:function(e){return new Bse(e)},curveStep:function(e){return new Wse(e,.5)},curveStepAfter:function(e){return new Wse(e,1)},curveStepBefore:function(e){return new Wse(e,0)},line:Ale,lineRadial:Fle,linkHorizontal:function(){return Hle(qle)},linkRadial:function(){var e=Hle(Kle);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},linkVertical:function(){return Hle(Ule)},pie:function(){var e=Rle,t=Ile,n=null,r=ale(0),o=ale(vle),i=ale(0);function a(a){var l,s,c,u,d,f=a.length,p=0,h=new Array(f),g=new Array(f),m=+r.apply(this,arguments),v=Math.min(vle,Math.max(-vle,o.apply(this,arguments)-m)),b=Math.min(Math.abs(v)/f,i.apply(this,arguments)),y=b*(v<0?-1:1);for(l=0;l<f;++l)(d=g[h[l]=l]=+e(a[l],l,a))>0&&(p+=d);for(null!=t?h.sort((function(e,n){return t(g[e],g[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),l=0,c=p?(v-f*y)/p:0;l<f;++l,m=u)s=h[l],u=m+((d=g[s])>0?d*c:0)+y,g[s]={data:a[s],index:l,value:d,startAngle:m,endAngle:u,padAngle:b};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ale(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:ale(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:ale(+e),a):i},a},pointRadial:jle,radialArea:zle,radialLine:Fle,stack:function(){var e=ale([]),t=qse,n=Hse,r=Use;function o(o){var i,a,l=e.apply(this,arguments),s=o.length,c=l.length,u=new Array(c);for(i=0;i<c;++i){for(var d,f=l[i],p=u[i]=new Array(s),h=0;h<s;++h)p[h]=d=[0,+r(o[h],f,h,o)],d.data=o[h];p.key=f}for(i=0,a=t(u);i<c;++i)u[a[i]].index=i;return n(u,a),u}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:ale(Ble.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ale(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?qse:"function"==typeof e?e:ale(Ble.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Hse:e,o):n},o},stackOffsetDiverging:function(e,t){if((l=e.length)>0)for(var n,r,o,i,a,l,s=0,c=e[t[0]].length;s<c;++s)for(i=a=0,n=0;n<l;++n)(o=(r=e[t[n]][s])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)},stackOffsetExpand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Hse(e,t)}},stackOffsetNone:Hse,stackOffsetSilhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}Hse(e,t)}},stackOffsetWiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,s=0,c=0;l<o;++l){for(var u=e[t[l]],d=u[a][1]||0,f=(d-(u[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[a][1]||0)-(h[a-1][1]||0)}s+=d,c+=f*d}n[a-1][1]+=n[a-1][0]=i,s&&(i-=c/s)}n[a-1][1]+=n[a-1][0]=i,Hse(e,t)}},stackOrderAppearance:Kse,stackOrderAscending:Gse,stackOrderDescending:function(e){return Gse(e).reverse()},stackOrderInsideOut:function(e){var t,n,r=e.length,o=e.map(Zse),i=Kse(e),a=0,l=0,s=[],c=[];for(t=0;t<r;++t)n=i[t],a<l?(a+=o[n],s.push(n)):(l+=o[n],c.push(n));return c.reverse().concat(s)},stackOrderNone:qse,stackOrderReverse:function(e){return qse(e).reverse()},symbol:function(){var e=ale(Yle),t=ale(64),n=null;function r(){var r;if(n||(n=r=ile()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:ale(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:ale(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},symbolCircle:Yle,symbolCross:Gle,symbolDiamond:Xle,symbolSquare:nse,symbolStar:tse,symbolTriangle:ose,symbolWye:cse,symbols:use}),Xse=Y(Jse),Qse={};Qse.__esModule=!0,Qse.default=function(e,t){e(t)};var $se={__esModule:!0};$se.STACK_ORDER_NAMES=$se.STACK_ORDERS=void 0,$se.default=function(e){return e&&tce[e]||tce.none};var ece=Xse,tce={ascending:ece.stackOrderAscending,descending:ece.stackOrderDescending,insideout:ece.stackOrderInsideOut,none:ece.stackOrderNone,reverse:ece.stackOrderReverse};$se.STACK_ORDERS=tce;var nce=Object.keys(tce);$se.STACK_ORDER_NAMES=nce;var rce={__esModule:!0};rce.STACK_OFFSET_NAMES=rce.STACK_OFFSETS=void 0,rce.default=function(e){return e&&ice[e]||ice.none};var oce=Xse,ice={expand:oce.stackOffsetExpand,diverging:oce.stackOffsetDiverging,none:oce.stackOffsetNone,silhouette:oce.stackOffsetSilhouette,wiggle:oce.stackOffsetWiggle};rce.STACK_OFFSETS=ice;var ace=Object.keys(ice);rce.STACK_OFFSET_NAMES=ace,$ae.__esModule=!0,$ae.arc=function(e){var t=void 0===e?{}:e,n=t.innerRadius,r=t.outerRadius,o=t.cornerRadius,i=t.startAngle,a=t.endAngle,l=t.padAngle,s=t.padRadius,c=(0,lce.arc)();null!=n&&(0,sce.default)(c.innerRadius,n);null!=r&&(0,sce.default)(c.outerRadius,r);null!=o&&(0,sce.default)(c.cornerRadius,o);null!=i&&(0,sce.default)(c.startAngle,i);null!=a&&(0,sce.default)(c.endAngle,a);null!=l&&(0,sce.default)(c.padAngle,l);null!=s&&(0,sce.default)(c.padRadius,s);return c},$ae.area=function(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,i=t.y,a=t.y0,l=t.y1,s=t.defined,c=t.curve,u=(0,lce.area)();n&&(0,sce.default)(u.x,n);r&&(0,sce.default)(u.x0,r);o&&(0,sce.default)(u.x1,o);i&&(0,sce.default)(u.y,i);a&&(0,sce.default)(u.y0,a);l&&(0,sce.default)(u.y1,l);s&&u.defined(s);c&&u.curve(c);return u},$ae.line=function(e){var t=void 0===e?{}:e,n=t.x,r=t.y,o=t.defined,i=t.curve,a=(0,lce.line)();n&&(0,sce.default)(a.x,n);r&&(0,sce.default)(a.y,r);o&&a.defined(o);i&&a.curve(i);return a},$ae.pie=function(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,o=t.padAngle,i=t.value,a=t.sort,l=t.sortValues,s=(0,lce.pie)();(null===a||null!=a)&&s.sort(a);(null===l||null!=l)&&s.sortValues(l);null!=i&&s.value(i);null!=o&&(0,sce.default)(s.padAngle,o);null!=n&&(0,sce.default)(s.startAngle,n);null!=r&&(0,sce.default)(s.endAngle,r);return s},$ae.radialLine=function(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,o=t.defined,i=t.curve,a=(0,lce.radialLine)();n&&(0,sce.default)(a.angle,n);r&&(0,sce.default)(a.radius,r);o&&a.defined(o);i&&a.curve(i);return a},$ae.stack=function(e){var t=e.keys,n=e.value,r=e.order,o=e.offset,i=(0,lce.stack)();t&&i.keys(t);n&&(0,sce.default)(i.value,n);r&&i.order((0,cce.default)(r));o&&i.offset((0,uce.default)(o));return i};var lce=Xse,sce=dce(Qse),cce=dce($se),uce=dce(rce);function dce(e){return e&&e.__esModule?e:{default:e}}var fce=function(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,a=e.centroid,l=e.innerRadius,s=void 0===l?0:l,c=e.outerRadius,u=e.cornerRadius,d=e.startAngle,f=e.endAngle,p=e.padAngle,h=e.padRadius,g=e.pieSort,m=e.pieSortValues,v=e.pieValue,b=e.children,y=e.fill,x=void 0===y?"":y,w=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,vce),C=(0,mce.arc)({innerRadius:s,outerRadius:c,cornerRadius:u,padRadius:h}),E=(0,mce.pie)({startAngle:d,endAngle:f,padAngle:p,value:v,sort:g,sortValues:m}),T=E(i);return b?pce.default.createElement(pce.default.Fragment,null,b({arcs:T,path:C,pie:E})):pce.default.createElement(gce.Group,{className:"visx-pie-arcs-group",top:n,left:r},T.map((function(e,n){return pce.default.createElement("g",{key:"pie-arc-"+n},pce.default.createElement("path",yce({className:(0,hce.default)("visx-pie-arc",t),d:C(e)||"",fill:null==x||"string"==typeof x?x:x(e)},w)),null==a?void 0:a(C.centroid(e),e))})))},pce=bce(u),hce=bce(Yae),gce=Qae,mce=$ae,vce=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function bce(e){return e&&e.__esModule?e:{default:e}}function yce(){return yce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yce.apply(this,arguments)}function xce(e){var n=e.arcs,o=e.path,i=e.getColor,a=e.getKey;return t(r,{children:n.map((function(e){var n;return t("path",{d:null!==(n=o(e))&&void 0!==n?n:"",fill:i(e)},a(e))}))})}var wce=function(e){var n,r,o=e.timelineItemId,i=e.clusteredItems,a=e.outerRadius,l=e.innerRadius,s=e.xCoordinates,c=void 0===s?0:s,u=e.yCoordinates,d=void 0===u?0:u,f=null!==(n=null==i?void 0:i.map((function(e){return{type:e,total:1}})).sort((function(e,t){return e.type.type>t.type.type?-1:1})))&&void 0!==n?n:[],p=null!==(r=null==i?void 0:i.reduce((function(e,t){return e.findIndex((function(e){return e.type===t.type}))<0&&e.push({type:t.type,color:t.icon.color}),e}),[]))&&void 0!==r?r:[],h=function(e){return xre(J7(),e)}({domain:p.map((function(e){return e.type})),range:p.map((function(e){return e.color}))});return t("g",{name:"timelineItem-clusteredItem-donut","data-testid":"timelineItem-".concat(o,"-clusteredItem-donut"),transform:"translate(".concat(c,", ").concat(d,")"),children:t(fce,{data:f,pieValue:function(e){return e.total},outerRadius:a,innerRadius:l,cornerRadius:2,padAngle:.008,children:function(e){return t(xce,Object.assign({},e,{getColor:function(e){return h(e.data.type.type)},getKey:function(e){return e.data.type.id}}))}})})},Cce=function(e){var o=e.timelineItemId,i=e.clusteredItems,a=e.iconHeight,l=e.dimmed,s=e.onClick,c=e.clusteredIconBorderSize,u=e.onMouseEnter,d=e.onMouseLeave,f=dx(e,["timelineItemId","clusteredItems","iconHeight","dimmed","onClick","clusteredIconBorderSize","onMouseEnter","onMouseLeave"]),p=(a+6)/2;return t("g",Object.assign({},f,{transform:"translate(".concat(0,", ",-6,")"),name:"TimelineClusterIcon","data-testid":"TimelineClusterIcon-".concat(o),onClick:s,opacity:l?.5:1,onMouseEnter:u,onMouseLeave:d,style:{cursor:"pointer"},children:n(r,{children:[t(wce,{timelineItemId:o,clusteredItems:i,outerRadius:p,innerRadius:p-c,yCoordinates:p}),t(bae,{r:p-c-1,cy:p,color:ky.slateBlue.base})]})}))},Ece=function(e){return{size:e,width:e,height:e,x:"-".concat(e/2)}},Tce=function(e){var n,r,o,i=e.timelineItem,a=e.onTimelineItemClusterClick,l=e.onMouseEnter,s=e.onMouseLeave,c=e.active,u=e.props,d=zae().iconHeight;return(null!==(r=null===(n=i.clusteredItems)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0?t(Cce,Object.assign({iconHeight:d,timelineItemId:i.id,clusteredItems:null!==(o=i.clusteredItems)&&void 0!==o?o:[],clusteredIconBorderSize:5,onMouseEnter:!1===c||void 0===l?void 0:l(i.id),onMouseLeave:s},u,{onClick:function(){return null==a?void 0:a(i.clusteredItems)}})):t("g",{transform:"translate(".concat(Ece(d).x,", 0)"),onMouseEnter:!1===c||void 0===l?void 0:l(i.id),onMouseLeave:s,onClick:function(){var e;return null===(e=i.onClick)||void 0===e?void 0:e.call(i,i)},children:i.icon.icon})},kce=function(e){var r=e.row,o=e.timelineItem,i=e.onTimelineItemClusterClick,a=e.onMouseEnter,l=e.onMouseLeave,s=e.hover,c=e.TooltipInPortal,u=zae(),d=u.xScale,f=u.yScale,p=u.innerHeight,h=u.iconHeight,g=p<=kae?p/1.8-h:kae/1.8-h,m=C((function(){return d(o.date)}),[o.date,d]),v=C((function(){return function(e,t){var n;return null!==(n=e(t))&&void 0!==n?n:0}(f,r)+g}),[r,g,f]);return n(mae,{transform:"translate(".concat(m,", ").concat(v,")"),"data-testid":"timelineItem-".concat(o.id),children:[t(vae,{y1:h,y2:p-(null!=v?v:0)}),t(Tce,{onTimelineItemClusterClick:i,timelineItem:o,onMouseEnter:a,onMouseLeave:l,props:{onClick:function(){var e;return null===(e=o.onClick)||void 0===e?void 0:e.call(o,o)},onMouseEnter:a(o.id),onMouseLeave:l}}),s===o.id&&t(c,{applyPositionStyle:!0,top:v,left:m+h+5,offsetLeft:h+5,detectBounds:!0,style:yae,children:t("div",{"data-testid":"timelineItem-".concat(o.id,"-tooltip"),onMouseEnter:a(o.id),onMouseLeave:l,children:t(Uae,{timelineItem:o})})})]})},Sce=function(e){var o=e.xScale,i=e.options,a=i.innerHeight,l=i.tickOffset,s=C((function(){var e,t,n;return null!==(n=null===(t=null===(e=null==o?void 0:o.domain)||void 0===e?void 0:e.call(o))||void 0===t?void 0:t[0])&&void 0!==n?n:new Date}),[o]),c=C((function(){var e,t,n;return null!==(n=null===(t=null===(e=null==o?void 0:o.domain)||void 0===e?void 0:e.call(o))||void 0===t?void 0:t[1])&&void 0!==n?n:new Date}),[o]),u=C((function(){return function(e,t){var n,r,o,i;if(t.valueOf()===e.valueOf()&&(null===(n=null==e?void 0:e.setHours)||void 0===n||n.call(e,0),null===(r=null==e?void 0:e.setMinutes)||void 0===r||r.call(e,0),null===(o=null==t?void 0:t.setHours)||void 0===o||o.call(t,23),null===(i=null==t?void 0:t.setMinutes)||void 0===i||i.call(t,59)),IV(t,e)<1){var a=RV;return RV(t,e)>=30?a=function(e,t){return Eae(e,t,RV,2)}:RV(t,e)>=4?a=function(e,t){return Eae(e,t,RV,4)}:RV(t,e)<4&&(a=function(e,t){return Eae(e,t,RV,8)}),{diffFunction:a,isLargeTick:Cae(OW),largeTickDateFormat:"HH:mm",isLargeTickFirstInDate:Cae(SW),largeTickFirstInDateFormat:"HH:mm"}}if(NV(t,e)<1){var l=IV;return IV(t,e)>=5&&IV(t,e)<20?l=function(e,t){return Eae(e,t,IV,4)}:IV(t,e)<5&&(l=function(e,t){return Eae(e,t,IV,8)}),{diffFunction:l,isLargeTick:Cae(SW),largeTickDateFormat:"HH:mm",isLargeTickFirstInDate:Cae(kW),largeTickFirstInDateFormat:"do"}}if(xV(t,e)<1){var s=NV;return NV(t,e)>=3?s=function(e,t){return Eae(e,t,NV,4)}:NV(t,e)<3&&(s=function(e,t){return Eae(e,t,NV,8)}),{diffFunction:s,isLargeTick:Cae(kW),largeTickDateFormat:"do",isLargeTickFirstInDate:Cae(CW),largeTickFirstInDateFormat:"MMMM do"}}return vV(t,e)<1?{diffFunction:NV,isLargeTick:Cae(CW),largeTickDateFormat:"MMMM",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"MMM yyyy"}:vV(t,e)<3?{diffFunction:NV,isLargeTick:Cae(CW),largeTickDateFormat:"MMM",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"yyyy"}:vV(t,e)<30?{diffFunction:xV,isLargeTick:Cae(NW),largeTickDateFormat:"yyyy",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"yyyy"}:vV(t,e)>=30?{diffFunction:vV,isLargeTick:Cae(w$),largeTickDateFormat:"yyyy",isLargeTickFirstInDate:Cae(w$),largeTickFirstInDateFormat:"yyyy"}:{diffFunction:NV,isLargeTick:Cae(CW),largeTickDateFormat:"MMMM",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"MMM yyyy"}}(s,c)}),[c,s]),d=u.diffFunction,f=u.isLargeTick,p=u.isLargeTickFirstInDate,h=u.largeTickDateFormat,g=u.largeTickFirstInDateFormat,m=C((function(){return d(c,s)}),[d,c,s]),v=o.ticks(m);return t("g",{children:v.map((function(e,i){return t("g",{transform:"translate(".concat(o(e),",").concat(a,")"),children:f(e)?n(r,{children:[t(hae,{y2:-24}),t(gae,{style:{textAnchor:0===i?"start":i===v.length-1?"end":"middle"},dy:".71em",y:l,children:p(e)?wW(e,g):wW(e,h)})]}):t(hae,{y2:-8})},e.valueOf())}))})},Nce=o.div.withConfig({displayName:"TimelineZoomstyles__ZoomButtonsContainer",componentId:"sc-1mazirk-0"})(["display:flex;flex-direction:column;gap:8px;padding:","px;"],(function(e){return e.$containerpadding})),Oce=o(tp).withConfig({displayName:"TimelineZoomstyles__ZoomButtonStyled",componentId:"sc-1mazirk-1"})(["width:","px;height:","px;min-width:unset;min-height:unset;background:",";border:1px solid rgb(59,91,116);padding:unset;&:hover{background:#3b5b74;svg{fill:white;}}svg{padding:2.5px;width:inherit;height:inherit;fill:",";}"],(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.theme.custom.colors.bigStone.base}),(function(e){return e.theme.custom.colors.semantic.infographic.primary})),Ace=function(e){var r=e.zoomOut,o=e.zoomIn,i=e.resetZoom,a=e.height,l=e.width,s=dx(e,["zoomOut","zoomIn","resetZoom","height","width"]);return t("foreignObject",Object.assign({},s,{width:46,height:a,x:l-30-16,children:n(Nce,{$containerpadding:8,children:[t(Oce,{"data-testid":"timelineZoom-resetZoom-btn",width:30,height:20,onClick:i,children:t(qq,{})}),t(Oce,{"data-testid":"timelineZoom-zoomIn-btn",width:30,height:20,onClick:o,children:t(Bq,{})}),t(Oce,{"data-testid":"timelineZoom-zoomOut-btn",width:30,height:20,onClick:r,children:t(Hq,{})})]})}))},Mce=d((function(e,o){var i=e.width,a=e.height,l=e.zoomIn,s=e.zoomOut,c=e.resetZoom;return n(r,{children:[t(fae,{ref:o,width:i,height:a,fill:"transparent",$grabbable:!0,"data-testid":"timeline-zoom-container"}),t(Ace,{height:a,width:i,resetZoom:c,zoomIn:l,zoomOut:s})]})}));function Ice(e,t,n){var r,o,i,a,l;function s(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(i,o),i=o=null),l};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(l=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}Mce.displayName="TimelineZoom",Ice.debounce=Ice;var Rce=K(Ice);function Dce(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const i=r||("undefined"==typeof window?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,l]=b({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=w({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),c=t?"number"==typeof t?t:t.scroll:null,u=t?"number"==typeof t?t:t.resize:null,d=w(!1);v((()=>(d.current=!0,()=>{d.current=!1})));const[f,p,h]=C((()=>{const e=()=>{if(!s.current.element)return;const{left:e,top:t,width:n,height:r,bottom:i,right:a,x:c,y:u}=s.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:r,bottom:i,right:a,x:c,y:u};s.current.element instanceof HTMLElement&&o&&(f.height=s.current.element.offsetHeight,f.width=s.current.element.offsetWidth),Object.freeze(f),d.current&&!Lce(s.current.lastBounds,f)&&l(s.current.lastBounds=f)};return[e,u?Rce(e,u):e,c?Rce(e,c):e]}),[l,o,c,u]);function g(){s.current.scrollContainers&&(s.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",h,!0))),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null)}function m(){s.current.element&&(s.current.resizeObserver=new i(h),s.current.resizeObserver.observe(s.current.element),n&&s.current.scrollContainers&&s.current.scrollContainers.forEach((e=>e.addEventListener("scroll",h,{capture:!0,passive:!0}))))}var y,x,E;return y=h,x=Boolean(n),v((()=>{if(x){const e=y;return window.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",e,!0)}}}),[y,x]),v((()=>{const e=E;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[E=p]),v((()=>{g(),m()}),[n,h,p]),v((()=>g),[]),[e=>{e&&e!==s.current.element&&(g(),s.current.element=e,s.current.scrollContainers=_ce(e),m())},a,f]}function _ce(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,..._ce(e.parentElement)]}const Pce=["x","y","top","bottom","left","right","width","height"],Lce=(e,t)=>Pce.every((n=>e[n]===t[n]));function Fce(e,t){return Fce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fce(e,t)}var zce=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Fce(t,n);var o=r.prototype;return o.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},o.render=function(){return this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?M.createPortal(this.props.children,this.node):null},r}(u.PureComponent);zce.propTypes={zIndex:ye.oneOfType([ye.number,ye.string])};var jce=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Bce(){return Bce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bce.apply(this,arguments)}var Vce={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Wce=u.forwardRef((function(e,t){var n=e.className,r=e.top,o=e.left,i=e.offsetLeft,a=void 0===i?10:i,l=e.offsetTop,s=void 0===l?10:l,c=e.style,d=void 0===c?Vce:c,f=e.children,p=e.unstyled,h=void 0!==p&&p,g=e.applyPositionStyle,m=void 0!==g&&g,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,jce);return u.createElement("div",Bce({ref:t,className:Gae("visx-tooltip",n),style:Bce({top:null==r||null==s?r:r+s,left:null==o||null==a?o:o+a},m&&{position:"absolute"},!h&&d)},v),f)}));Wce.propTypes={children:ye.node,className:ye.string,left:ye.number,offsetLeft:ye.number,offsetTop:ye.number,top:ye.number,applyPositionStyle:ye.bool,unstyled:ye.bool},Wce.displayName="Tooltip";var Hce=Wce;function qce(){return qce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qce.apply(this,arguments)}function Uce(e,t){return Uce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uce(e,t)}var Kce={top:0,right:0,bottom:0,left:0,width:0,height:0};var Yce=x({isFlippedVertically:!1,isFlippedHorizontally:!1}),Gce=Yce.Provider;Yce.Consumer;var Zce=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Jce(){return Jce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jce.apply(this,arguments)}function Xce(e){var t=e.children;e.getRects;var n,r=e.left,o=void 0===r?0:r,i=e.offsetLeft,a=void 0===i?10:i,l=e.offsetTop,s=void 0===l?10:l,c=e.parentRect,d=e.rect,f=e.style,p=void 0===f?Vce:f,h=e.top,g=void 0===h?0:h,m=e.unstyled,v=void 0!==m&&m,b=e.nodeRef,y=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Zce),x=!1,w=!1;if(d&&c){var C=o,E=g;if(c.width){var T=C+a+d.width-c.width,k=d.width-C-a;x=T>0&&T>k}else{var S=C+a+d.width-window.innerWidth,N=d.width-C-a;x=S>0&&S>N}if(c.height){var O=E+s+d.height-c.height,A=d.height-E-s;w=O>0&&O>A}else w=E+s+d.height>window.innerHeight;C=x?C-d.width-a:C+a,E=w?E-d.height-s:E+s,n="translate("+(C=Math.round(C))+"px, "+(E=Math.round(E))+"px)"}return u.createElement(Hce,Jce({ref:b,style:Jce({left:0,top:0,transform:n},!v&&p)},y),u.createElement(Gce,{value:{isFlippedVertically:!w,isFlippedHorizontally:!x}},t))}Xce.propTypes={nodeRef:ye.oneOfType([ye.string,ye.func,ye.object])};var Qce,$ce,eue=(Qce=Xce,$ce=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=u.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Uce(t,n);var o=r.prototype;return o.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:M.findDOMNode(this),this.setState((function(){return t.getRects()}))},o.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():Kce,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():Kce}},o.render=function(){return u.createElement(Qce,qce({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(u.PureComponent),$ce.displayName="withBoundingRects("+(Qce.displayName||"")+")",$ce),tue=["detectBounds","zIndex"],nue=["left","top","detectBounds","zIndex"];function rue(){return rue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rue.apply(this,arguments)}function oue(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var iue,aue,lue,sue,cue=function(e){var r,o,i,a=e.dataRow,l=e.rowIndex,s=e.rowHeight,c=zae(),u=c.yScale,d=c.iconHeight,f=(null!==(r=u(l))&&void 0!==r?r:1)+s/2-d/2,p={x:0,y:f,height:d,width:d};switch(a.loadingState){case"Error":return t(Dae,Object.assign({},p),null===(o=a.data)||void 0===o?void 0:o.reduce((function(e,t){return"".concat(e,"-").concat(t.id)}),"error-".concat(l,"-")));case"NotLoading":return n("g",{children:[t(_ae,Object.assign({},p)),t(Pae,Object.assign({},p,{x1:4,x2:d-4,y1:f+d,y2:f+d}))]},null===(i=a.data)||void 0===i?void 0:i.reduce((function(e,t){return"".concat(e,"-").concat(t.id)}),"NotLoading-".concat(l,"-")));default:return null}},uue=function(e){var n,r=e.dataRow,o=void 0===r?[]:r,i=zae(),a=i.yScale,l=i.innerHeight-(null!==(n=a(o.length-1))&&void 0!==n?n:0)-1;return t("g",{name:"loadingState-icons","data-testid":"loadingState-icons",children:null==o?void 0:o.map((function(e,n){return t(cue,{dataRow:e,rowHeight:l,rowIndex:n},"timelineLoadingStateIcons-".concat(n))}))})},due=function(e){var r=e.startDate,o=void 0===r?new Date:r,i=e.endDate,a=void 0===i?new Date:i,l=e.dataRow,s=void 0===l?[]:l,c=e.timelineOptions,d=e.height,f=e.width,p=e.className,h=d-Nae.top-Nae.bottom,g=f-Nae.left-Nae.right,m=wx(b(eae),2),x=m[0],E=m[1],T=w(null),k=yre({domain:[o,a],range:[0,Math.abs(g)],nice:!0}),S=vre({domain:sx(Array(s.length).keys()),range:[0,h]}),N=y((function(e){var t=e.transform;E(t)}),[E]),O=C((function(){return cae().scaleExtent([1,1/0]).translateExtent([[0,0],[f,d]]).on("zoom",N)}),[N,d,f]);if(x){var A=x.rescaleX(k);A.domain()[0]!==k.domain()[0]&&A.domain()[0]!==k.domain()[0]&&k.domain(A.domain())}var M=C((function(){return Object.assign(Object.assign({margins:Nae,iconHeight:24,timelineRowOptions:Oae,customBrushIconRadius:6,tickOffset:5,rowHeight:kae},c),{innerHeight:h,innerWidth:g,xScale:k,yScale:S})}),[h,g,c,k,S]),I=wx(b(),2),R=I[0],D=I[1],_=w7((function(){return D(void 0)}),1e3),P=function(e){var t=void 0===e?{}:e,n=t.detectBounds,r=void 0===n||n,o=t.zIndex,i=Dce(oue(t,tue)),a=i[0],l=i[1],s=i[2],c=b(!1),d=c[0],f=c[1];v((function(){f(!1)}),[]);var p=C((function(){return function(e){var t=e.left,n=void 0===t?0:t,i=e.top,a=void 0===i?0:i,s=e.detectBounds,c=e.zIndex,f=oue(e,nue),p=null==c?o:c,h=(null==s?r:s)?eue:Hce,g=d?0:window.scrollX,m=d?0:window.scrollY,v=n+(l.left||0)+g,b=a+(l.top||0)+m;return u.createElement(zce,{zIndex:p},u.createElement(h,rue({left:v,top:b},f)))}}),[r,o,l.left,l.top,d]);return{containerRef:a,containerBounds:l,forceRefreshBounds:s,TooltipInPortal:p}}({scroll:!1,detectBounds:!0,debounce:1e3}),L=P.containerRef,F=P.TooltipInPortal;v((function(){O.scaleTo(zoe(null==T?void 0:T.current).transition().duration(500).ease(Hie),1)}),[o,a]),v((function(){zoe(T.current).call(O)}),[N,d,f,O]);var z=y((function(e){return function(){_.cancel(),D(e)}}),[_,D]),j=y((function(e){var t,n,r=yre({domain:[o,a],range:[0,Math.abs(g)],nice:!0}),i=Tae(e,"first"),l=Tae(e,"last");if(i&&l){var s=Math.abs(MV(i,l)),c=0!==s?s:3e6,u=pV(i,-c/8),d=pV(l,c/8),f=Math.abs(r(d)-r(u)),p=0===f?3e3:g/f,h=-r(u),m=eae.scale(p).translate(h,0);O.transform(zoe(T.current).transition().duration(500).ease(Hie),m),0===s&&(null===(n=null===(t=e[0])||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e[0]))}}),[a,g,o,O]);return t(jae,{timelineOptions:M,xScale:k,yScale:S,children:n(dae,{className:p,"data-testid":"timeline",height:d,width:f,ref:L,children:[C((function(){return t(uue,{dataRow:s})}),[s]),n("g",{transform:"translate(".concat(M.margins.left,",").concat(M.margins.top,")"),children:[t("g",{name:"timeline-horizontal-lines",children:M.yScale.domain().map((function(e){return t(pae,{x2:M.innerWidth,y1:M.yScale(e),y2:M.yScale(e)},e)}))}),t(Mce,{width:g,height:h,zoomIn:function(){O.scaleBy(zoe(null==T?void 0:T.current).transition().duration(200),1.2)},zoomOut:function(){O.scaleBy(zoe(null==T?void 0:T.current).transition().duration(200),.8)},resetZoom:function(){O.scaleTo(zoe(null==T?void 0:T.current).transition().duration(500).ease(Hie),1)},ref:T}),t(Wae,{bandStates:s}),t(Sce,{xScale:k,options:M}),t("g",{"data-testid":"timeline-items",id:"timeline-items",children:s.map((function(e,n){var r;return"Error"===e.loadingState?null:wae(null!==(r=null==e?void 0:e.data)&&void 0!==r?r:[],k,M.iconHeight+6).map((function(e,r){return t(kce,{row:n,timelineItem:e,onTimelineItemClusterClick:j,hover:R,onMouseEnter:z,onMouseLeave:_,TooltipInPortal:F},"timelineItem-".concat(e.date.valueOf(),"-").concat(r))}))}))})]})]})})},fue=function(e){var n,r=e.width,o=e.height,i=e.dataRow,a=e.timelineOptions,l=dx(e,["width","height","dataRow","timelineOptions"]),s=null!==(n=null==a?void 0:a.rowHeight)&&void 0!==n?n:kae,c=C((function(){return i.length*s+Nae.top+Nae.bottom}),[i.length,s]);return t(C7,{children:function(e){var n=e.width;return t(due,Object.assign({},l,{dataRow:i,timelineOptions:a,width:(null!=r?r:n>0)?n:Sae,height:null!=o?o:c}))}})},pue=o.div.withConfig({displayName:"FavoriteStar__StarWrapper",componentId:"sc-14uyqb4-0"})(["display:flex;padding:0;margin:0;"]),hue=function(e){var n=dx(e,[]);return t(pue,{"data-testid":"favoritestar",children:t(yp,Object.assign({},n,{icon:t(O_,{isChecked:!1,size:20}),checkedIcon:t(O_,{isChecked:!0,size:20})}))})},gue=o(jp).withConfig({displayName:"ConfirmationDialogstyles__StyledDialog",componentId:"sc-drp53p-0"})(["width:500px;left:50% !important;top:10% !important;.MuiDialog-container{.MuiPaper-root{background:",";color:",";border-radius:4px;margin:0;}.MuiDialogContentText-root{color:",";}}"],ky.slateBlue.base,ky.white.base,ky.white.base),mue=o.div.withConfig({displayName:"ConfirmationDialogstyles__DialogWrapper",componentId:"sc-drp53p-1"})((function(e){var t=e.theme;return i(iue||(iue=lD(["\n border-radius: ",";\n background: ",";\n "])),t.spacing(.5),ky.slateBlue.base)})),vue=o.div.withConfig({displayName:"ConfirmationDialogstyles__StyledDialogTitle",componentId:"sc-drp53p-2"})((function(e){var t=e.theme;return i(aue||(aue=lD(["\n display: flex;\n justify-content: space-between;\n color: ",";\n padding: ",";\n height: ",";\n align-items: center;\n font-size: 18px;\n border-bottom: 1px "," solid;\n "])),t.palette.text.primary,t.spacing(0,3),t.spacing(8),t.custom.colors.white.transparent[84])})),bue=o.div.withConfig({displayName:"ConfirmationDialogstyles__StyledModalContent",componentId:"sc-drp53p-3"})((function(e){var t=e.theme;return i(lue||(lue=lD(["\n display: flex;\n flex-direction: column;\n padding: ",";\n align-items: flex-start;\n align-content: space-between;\n "])),t.spacing(3,3,0,3))})),yue=o.div.withConfig({displayName:"ConfirmationDialogstyles__StyledModalActions",componentId:"sc-drp53p-4"})((function(e){var t=e.theme;return i(sue||(sue=lD(["\n width: 438px;\n padding-bottom: ",";\n padding-right: ",";\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n text-align: end;\n "])),t.spacing(3),t.spacing(3))})),xue=o(is).withConfig({displayName:"ConfirmationDialogstyles__StyledIconButton",componentId:"sc-drp53p-5"})(["padding:0px;margin-right:-15px;min-height:0;min-width:0;height:48px;width:48px;color:",";:hover{background:",";color:",";}svg{height:24px;width:24px;}"],ky.mossGreen.tint[45],ky.white.transparent[84],ky.mossGreen.tint[45]),wue=o.div.withConfig({displayName:"ConfirmationDialogstyles__ContentContainer",componentId:"sc-drp53p-6"})(["width:335px;margin-bottom:90px;color:",";font-size:16px;"],ky.semantic.text.secondary),Cue=o.label.withConfig({displayName:"ConfirmationDialogstyles__SubmitText",componentId:"sc-drp53p-7"})(["text-transform:capitalize;"]),Eue=function(e){var r=e.value,o=e.title,i=e.open,a=e.onSubmit,l=e.onClose,s=e.confirmtext,c=e.confirmButtonType,u=e.cancelText,d=dx(e,["value","title","open","onSubmit","onClose","confirmtext","confirmButtonType","cancelText"]);return t(gue,Object.assign({},d,{open:i,"data-testid":"ConfirmationDialog",onClick:l,children:n(mue,{children:[n(vue,{children:[o,t(xue,{"data-testid":"ConfirmCloseButton",onClick:l,children:t(Ix,{})})]}),t(bue,{children:t(wue,{children:s})}),n(yue,{children:[t(xw,{height:"24px",buttonstyle:"outlined","data-testid":"ConfirmCancelButton",onClick:l,autoFocus:!0,variant:"outlined",children:u}),t(xw,{height:"24px","data-testid":"ConfirmSubmitButton",buttonstyle:"delete"===c?"danger":"primary",onClick:function(e){a(r)},variant:"contained",children:t(Cue,{children:c})})]})]})}))};export{A_ as AddToMeetingIcon,m_ as AnnotationArchiveIcon,u_ as AnnotationErrorIcon,T_ as AnnotationIcon,qD as AnnotationInProgressIcon,QD as AnnotationNoteIcon,o_ as AnnotationOnWatchIcon,eP as AppVersion,hP as AttachmentUpload,e0 as AutocompleteFilter,OD as AutocompleteSelect,px as BasicHeaderContent,xw as Button,X$ as CheckboxFilter,Eue as ConfirmationDialog,vx as ContextNavButton,RD as CriticalStatusIcon,$$ as DateFilter,Jq as DatePicker,Xq as DateRangePicker,C_ as DispIcon,f$ as Editor,OP as EdsSelect,E_ as EnqIcon,_w as ErrorBox,xD as ErrorMessage,hue as FavoriteStar,Q_ as Feedback,X6 as FilterBar,R$ as FilterProvider,d$ as FilterTypes,e7 as FooterSection,Ky as GlobalStyles,cx as GlobalStylesProvider,H_ as HeaderMenu,_D as InProgressStatusIcon,Sw as InfoBox,Z9 as InlineLink,nP as Language,G9 as Link,J9 as LinkWithIcon,rP as LogOut,UD as M2Icon,KD as M3Icon,oD as MeatballMenuButton,PD as NotInScopeStatusIcon,LD as NotReadyStatusIcon,MD as OkStatusIcon,zD as OpportunityStatusIcon,v_ as PeprIcon,_$ as RadioButton,p$ as ReadWriteContext,h$ as ReadWriteProvider,$_ as ReportBug,b_ as RitmIcon,Q$ as SearchFilter,NP as Select,B_ as Snackbar,O_ as StarIcon,iP as Switch,k_ as SynergiIcon,H9 as TabbedTable,k5 as TabbedTableProvider,rU as Table,P9 as TableSettings,xP as TextField,fue as Timeline,w_ as TrashOutlinedIcon,FD as UnavailableStatusIcon,g$ as UserCanReadOnly,m$ as UserCanWrite,X_ as UserGuide,tP as UserName,y_ as WOIcon,ID as WarningStatusIcon,Sy as baseSpacingUnit,ky as colors,Hy as edsHeadings,Wy as fontFamily,N$ as getDateFromPeriodString,Uy as globalTheme,S$ as isTimeSpanTense,E$ as isTimeSpanUnit,Ey as primaryPalette,Oy as sizes,b$ as useFilterContext};
|
|
251
|
+
!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Kae);var Yae=Kae.exports,Gae=K(Yae),Zae=["top","left","transform","className","children","innerRef"];function Jae(){return Jae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jae.apply(this,arguments)}function Xae(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.transform,a=e.className,l=e.children,s=e.innerRef,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Zae);return u.createElement("g",Jae({ref:s,className:Gae("visx-group",a),transform:i||"translate("+o+", "+n+")"},c),l)}Xae.propTypes={top:ye.number,left:ye.number,transform:ye.string,className:ye.string,children:ye.node,innerRef:ye.oneOfType([ye.string,ye.func,ye.object])};var Qae=Y(Object.freeze({__proto__:null,Group:Xae})),$ae={},ele=Math.PI,tle=2*ele,nle=1e-6,rle=tle-nle;function ole(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ile(){return new ole}function ale(e){return function(){return e}}ole.prototype=ile.prototype={constructor:ole,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,l=n-e,s=r-t,c=i-e,u=a-t,d=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>nle)if(Math.abs(u*l-s*c)>nle&&o){var f=n-i,p=r-a,h=l*l+s*s,g=f*f+p*p,m=Math.sqrt(h),v=Math.sqrt(d),b=o*Math.tan((ele-Math.acos((h+d-g)/(2*m*v)))/2),y=b/v,x=b/m;Math.abs(y-1)>nle&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+o+","+o+",0,0,"+ +(u*f>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),l=n*Math.sin(r),s=e+a,c=t+l,u=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+s+","+c:(Math.abs(this._x1-s)>nle||Math.abs(this._y1-c)>nle)&&(this._+="L"+s+","+c),n&&(d<0&&(d=d%tle+tle),d>rle?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-l)+"A"+n+","+n+",0,1,"+u+","+(this._x1=s)+","+(this._y1=c):d>nle&&(this._+="A"+n+","+n+",0,"+ +(d>=ele)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var lle=Math.abs,sle=Math.atan2,cle=Math.cos,ule=Math.max,dle=Math.min,fle=Math.sin,ple=Math.sqrt,hle=1e-12,gle=Math.PI,mle=gle/2,vle=2*gle;function ble(e){return e>=1?mle:e<=-1?-mle:Math.asin(e)}function yle(e){return e.innerRadius}function xle(e){return e.outerRadius}function wle(e){return e.startAngle}function Cle(e){return e.endAngle}function Ele(e){return e&&e.padAngle}function Tle(e,t,n,r,o,i,a){var l=e-n,s=t-r,c=(a?i:-i)/ple(l*l+s*s),u=c*s,d=-c*l,f=e+u,p=t+d,h=n+u,g=r+d,m=(f+h)/2,v=(p+g)/2,b=h-f,y=g-p,x=b*b+y*y,w=o-i,C=f*g-h*p,E=(y<0?-1:1)*ple(ule(0,w*w*x-C*C)),T=(C*y-b*E)/x,k=(-C*b-y*E)/x,S=(C*y+b*E)/x,N=(-C*b+y*E)/x,O=T-m,A=k-v,M=S-m,I=N-v;return O*O+A*A>M*M+I*I&&(T=S,k=N),{cx:T,cy:k,x01:-u,y01:-d,x11:T*(o/w-1),y11:k*(o/w-1)}}function kle(e){this._context=e}function Sle(e){return new kle(e)}function Nle(e){return e[0]}function Ole(e){return e[1]}function Ale(){var e=Nle,t=Ole,n=ale(!0),r=null,o=Sle,i=null;function a(a){var l,s,c,u=a.length,d=!1;for(null==r&&(i=o(c=ile())),l=0;l<=u;++l)!(l<u&&n(s=a[l],l,a))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(s,l,a),+t(s,l,a));if(c)return i=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:ale(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:ale(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}function Mle(){var e=Nle,t=null,n=ale(0),r=Ole,o=ale(!0),i=null,a=Sle,l=null;function s(s){var c,u,d,f,p,h=s.length,g=!1,m=new Array(h),v=new Array(h);for(null==i&&(l=a(p=ile())),c=0;c<=h;++c){if(!(c<h&&o(f=s[c],c,s))===g)if(g=!g)u=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),d=c-1;d>=u;--d)l.point(m[d],v[d]);l.lineEnd(),l.areaEnd()}g&&(m[c]=+e(f,c,s),v[c]=+n(f,c,s),l.point(t?+t(f,c,s):m[c],r?+r(f,c,s):v[c]))}if(p)return l=null,p+""||null}function c(){return Ale().defined(o).curve(a).context(i)}return s.x=function(n){return arguments.length?(e="function"==typeof n?n:ale(+n),t=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),s):e},s.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:ale(+e),s):t},s.y=function(e){return arguments.length?(n="function"==typeof e?e:ale(+e),r=null,s):n},s.y0=function(e){return arguments.length?(n="function"==typeof e?e:ale(+e),s):n},s.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ale(+e),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(n)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(t).y(n)},s.defined=function(e){return arguments.length?(o="function"==typeof e?e:ale(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}function Ile(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Rle(e){return e}kle.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Dle=Ple(Sle);function _le(e){this._curve=e}function Ple(e){function t(t){return new _le(e(t))}return t._curve=e,t}function Lle(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Ple(e)):t()._curve},e}function Fle(){return Lle(Ale().curve(Dle))}function zle(){var e=Mle().curve(Dle),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Lle(n())},delete e.lineX0,e.lineEndAngle=function(){return Lle(r())},delete e.lineX1,e.lineInnerRadius=function(){return Lle(o())},delete e.lineY0,e.lineOuterRadius=function(){return Lle(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Ple(e)):t()._curve},e}function jle(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}_le.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ble=Array.prototype.slice;function Vle(e){return e.source}function Wle(e){return e.target}function Hle(e){var t=Vle,n=Wle,r=Nle,o=Ole,i=null;function a(){var a,l=Ble.call(arguments),s=t.apply(this,l),c=n.apply(this,l);if(i||(i=a=ile()),e(i,+r.apply(this,(l[0]=s,l)),+o.apply(this,l),+r.apply(this,(l[0]=c,l)),+o.apply(this,l)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:ale(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:ale(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function qle(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function Ule(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function Kle(e,t,n,r,o){var i=jle(t,n),a=jle(t,n=(n+o)/2),l=jle(r,n),s=jle(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],s[0],s[1])}var Yle={draw:function(e,t){var n=Math.sqrt(t/gle);e.moveTo(n,0),e.arc(0,0,n,0,vle)}},Gle={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Zle=Math.sqrt(1/3),Jle=2*Zle,Xle={draw:function(e,t){var n=Math.sqrt(t/Jle),r=n*Zle;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Qle=Math.sin(gle/10)/Math.sin(7*gle/10),$le=Math.sin(vle/10)*Qle,ese=-Math.cos(vle/10)*Qle,tse={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=$le*n,o=ese*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=vle*i/5,l=Math.cos(a),s=Math.sin(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*o,s*r+l*o)}e.closePath()}},nse={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},rse=Math.sqrt(3),ose={draw:function(e,t){var n=-Math.sqrt(t/(3*rse));e.moveTo(0,2*n),e.lineTo(-rse*n,-n),e.lineTo(rse*n,-n),e.closePath()}},ise=-.5,ase=Math.sqrt(3)/2,lse=1/Math.sqrt(12),sse=3*(lse/2+1),cse={draw:function(e,t){var n=Math.sqrt(t/sse),r=n/2,o=n*lse,i=r,a=n*lse+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(ise*r-ase*o,ase*r+ise*o),e.lineTo(ise*i-ase*a,ase*i+ise*a),e.lineTo(ise*l-ase*s,ase*l+ise*s),e.lineTo(ise*r+ase*o,ise*o-ase*r),e.lineTo(ise*i+ase*a,ise*a-ase*i),e.lineTo(ise*l+ase*s,ise*s-ase*l),e.closePath()}},use=[Yle,Gle,Xle,nse,tse,ose,cse];function dse(){}function fse(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function pse(e){this._context=e}function hse(e){this._context=e}function gse(e){this._context=e}function mse(e,t){this._basis=new pse(e),this._beta=t}pse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:fse(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:fse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},hse.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:fse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},gse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:fse(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},mse.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,l=t[n]-i,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(o+r*a),this._beta*t[s]+(1-this._beta)*(i+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var vse=function e(t){function n(e){return 1===t?new pse(e):new mse(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function bse(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function yse(e,t){this._context=e,this._k=(1-t)/6}yse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bse(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:bse(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xse=function e(t){function n(e){return new yse(e,t)}return n.tension=function(t){return e(+t)},n}(0);function wse(e,t){this._context=e,this._k=(1-t)/6}wse.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:bse(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Cse=function e(t){function n(e){return new wse(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ese(e,t){this._context=e,this._k=(1-t)/6}Ese.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bse(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Tse=function e(t){function n(e){return new Ese(e,t)}return n.tension=function(t){return e(+t)},n}(0);function kse(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>hle){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>hle){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Sse(e,t){this._context=e,this._alpha=t}Sse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:kse(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Nse=function e(t){function n(e){return t?new Sse(e,t):new yse(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ose(e,t){this._context=e,this._alpha=t}Ose.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:kse(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ase=function e(t){function n(e){return t?new Ose(e,t):new wse(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Mse(e,t){this._context=e,this._alpha=t}Mse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:kse(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ise=function e(t){function n(e){return t?new Mse(e,t):new Ese(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Rse(e){this._context=e}function Dse(e){return e<0?-1:1}function _se(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(Dse(i)+Dse(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function Pse(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lse(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function Fse(e){this._context=e}function zse(e){this._context=new jse(e)}function jse(e){this._context=e}function Bse(e){this._context=e}function Vse(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Wse(e,t){this._context=e,this._t=t}function Hse(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function qse(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Use(e,t){return e[t]}function Kse(e){var t=e.map(Yse);return qse(e).sort((function(e,n){return t[e]-t[n]}))}function Yse(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function Gse(e){var t=e.map(Zse);return qse(e).sort((function(e,n){return t[e]-t[n]}))}function Zse(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}Rse.prototype={areaStart:dse,areaEnd:dse,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Fse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Lse(this,this._t0,Pse(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Lse(this,Pse(this,n=_se(this,e,t)),n);break;default:Lse(this,this._t0,n=_se(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(zse.prototype=Object.create(Fse.prototype)).point=function(e,t){Fse.prototype.point.call(this,t,e)},jse.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},Bse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Vse(e),o=Vse(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Wse.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Jse=Object.freeze({__proto__:null,arc:function(){var e=yle,t=xle,n=ale(0),r=null,o=wle,i=Cle,a=Ele,l=null;function s(){var s,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),f=o.apply(this,arguments)-mle,p=i.apply(this,arguments)-mle,h=lle(p-f),g=p>f;if(l||(l=s=ile()),d<u&&(c=d,d=u,u=c),d>hle)if(h>vle-hle)l.moveTo(d*cle(f),d*fle(f)),l.arc(0,0,d,f,p,!g),u>hle&&(l.moveTo(u*cle(p),u*fle(p)),l.arc(0,0,u,p,f,g));else{var m,v,b=f,y=p,x=f,w=p,C=h,E=h,T=a.apply(this,arguments)/2,k=T>hle&&(r?+r.apply(this,arguments):ple(u*u+d*d)),S=dle(lle(d-u)/2,+n.apply(this,arguments)),N=S,O=S;if(k>hle){var A=ble(k/u*fle(T)),M=ble(k/d*fle(T));(C-=2*A)>hle?(x+=A*=g?1:-1,w-=A):(C=0,x=w=(f+p)/2),(E-=2*M)>hle?(b+=M*=g?1:-1,y-=M):(E=0,b=y=(f+p)/2)}var I=d*cle(b),R=d*fle(b),D=u*cle(w),_=u*fle(w);if(S>hle){var P,L=d*cle(y),F=d*fle(y),z=u*cle(x),j=u*fle(x);if(h<gle&&(P=function(e,t,n,r,o,i,a,l){var s=n-e,c=r-t,u=a-o,d=l-i,f=d*s-u*c;if(!(f*f<hle))return[e+(f=(u*(t-i)-d*(e-o))/f)*s,t+f*c]}(I,R,z,j,L,F,D,_))){var B=I-P[0],V=R-P[1],W=L-P[0],H=F-P[1],q=1/fle(function(e){return e>1?0:e<-1?gle:Math.acos(e)}((B*W+V*H)/(ple(B*B+V*V)*ple(W*W+H*H)))/2),U=ple(P[0]*P[0]+P[1]*P[1]);N=dle(S,(u-U)/(q-1)),O=dle(S,(d-U)/(q+1))}}E>hle?O>hle?(m=Tle(z,j,I,R,d,O,g),v=Tle(L,F,D,_,d,O,g),l.moveTo(m.cx+m.x01,m.cy+m.y01),O<S?l.arc(m.cx,m.cy,O,sle(m.y01,m.x01),sle(v.y01,v.x01),!g):(l.arc(m.cx,m.cy,O,sle(m.y01,m.x01),sle(m.y11,m.x11),!g),l.arc(0,0,d,sle(m.cy+m.y11,m.cx+m.x11),sle(v.cy+v.y11,v.cx+v.x11),!g),l.arc(v.cx,v.cy,O,sle(v.y11,v.x11),sle(v.y01,v.x01),!g))):(l.moveTo(I,R),l.arc(0,0,d,b,y,!g)):l.moveTo(I,R),u>hle&&C>hle?N>hle?(m=Tle(D,_,L,F,u,-N,g),v=Tle(I,R,z,j,u,-N,g),l.lineTo(m.cx+m.x01,m.cy+m.y01),N<S?l.arc(m.cx,m.cy,N,sle(m.y01,m.x01),sle(v.y01,v.x01),!g):(l.arc(m.cx,m.cy,N,sle(m.y01,m.x01),sle(m.y11,m.x11),!g),l.arc(0,0,u,sle(m.cy+m.y11,m.cx+m.x11),sle(v.cy+v.y11,v.cx+v.x11),g),l.arc(v.cx,v.cy,N,sle(v.y11,v.x11),sle(v.y01,v.x01),!g))):l.arc(0,0,u,w,x,g):l.lineTo(D,_)}else l.moveTo(0,0);if(l.closePath(),s)return l=null,s+""||null}return s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-gle/2;return[cle(r)*n,fle(r)*n]},s.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),s):e},s.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:ale(+e),s):t},s.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:ale(+e),s):n},s.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:ale(+e),s):r},s.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:ale(+e),s):o},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:ale(+e),s):i},s.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:ale(+e),s):a},s.context=function(e){return arguments.length?(l=null==e?null:e,s):l},s},area:Mle,areaRadial:zle,curveBasis:function(e){return new pse(e)},curveBasisClosed:function(e){return new hse(e)},curveBasisOpen:function(e){return new gse(e)},curveBundle:vse,curveCardinal:xse,curveCardinalClosed:Cse,curveCardinalOpen:Tse,curveCatmullRom:Nse,curveCatmullRomClosed:Ase,curveCatmullRomOpen:Ise,curveLinear:Sle,curveLinearClosed:function(e){return new Rse(e)},curveMonotoneX:function(e){return new Fse(e)},curveMonotoneY:function(e){return new zse(e)},curveNatural:function(e){return new Bse(e)},curveStep:function(e){return new Wse(e,.5)},curveStepAfter:function(e){return new Wse(e,1)},curveStepBefore:function(e){return new Wse(e,0)},line:Ale,lineRadial:Fle,linkHorizontal:function(){return Hle(qle)},linkRadial:function(){var e=Hle(Kle);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},linkVertical:function(){return Hle(Ule)},pie:function(){var e=Rle,t=Ile,n=null,r=ale(0),o=ale(vle),i=ale(0);function a(a){var l,s,c,u,d,f=a.length,p=0,h=new Array(f),g=new Array(f),m=+r.apply(this,arguments),v=Math.min(vle,Math.max(-vle,o.apply(this,arguments)-m)),b=Math.min(Math.abs(v)/f,i.apply(this,arguments)),y=b*(v<0?-1:1);for(l=0;l<f;++l)(d=g[h[l]=l]=+e(a[l],l,a))>0&&(p+=d);for(null!=t?h.sort((function(e,n){return t(g[e],g[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),l=0,c=p?(v-f*y)/p:0;l<f;++l,m=u)s=h[l],u=m+((d=g[s])>0?d*c:0)+y,g[s]={data:a[s],index:l,value:d,startAngle:m,endAngle:u,padAngle:b};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:ale(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:ale(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:ale(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:ale(+e),a):i},a},pointRadial:jle,radialArea:zle,radialLine:Fle,stack:function(){var e=ale([]),t=qse,n=Hse,r=Use;function o(o){var i,a,l=e.apply(this,arguments),s=o.length,c=l.length,u=new Array(c);for(i=0;i<c;++i){for(var d,f=l[i],p=u[i]=new Array(s),h=0;h<s;++h)p[h]=d=[0,+r(o[h],f,h,o)],d.data=o[h];p.key=f}for(i=0,a=t(u);i<c;++i)u[a[i]].index=i;return n(u,a),u}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:ale(Ble.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:ale(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?qse:"function"==typeof e?e:ale(Ble.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Hse:e,o):n},o},stackOffsetDiverging:function(e,t){if((l=e.length)>0)for(var n,r,o,i,a,l,s=0,c=e[t[0]].length;s<c;++s)for(i=a=0,n=0;n<l;++n)(o=(r=e[t[n]][s])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)},stackOffsetExpand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Hse(e,t)}},stackOffsetNone:Hse,stackOffsetSilhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}Hse(e,t)}},stackOffsetWiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,s=0,c=0;l<o;++l){for(var u=e[t[l]],d=u[a][1]||0,f=(d-(u[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[a][1]||0)-(h[a-1][1]||0)}s+=d,c+=f*d}n[a-1][1]+=n[a-1][0]=i,s&&(i-=c/s)}n[a-1][1]+=n[a-1][0]=i,Hse(e,t)}},stackOrderAppearance:Kse,stackOrderAscending:Gse,stackOrderDescending:function(e){return Gse(e).reverse()},stackOrderInsideOut:function(e){var t,n,r=e.length,o=e.map(Zse),i=Kse(e),a=0,l=0,s=[],c=[];for(t=0;t<r;++t)n=i[t],a<l?(a+=o[n],s.push(n)):(l+=o[n],c.push(n));return c.reverse().concat(s)},stackOrderNone:qse,stackOrderReverse:function(e){return qse(e).reverse()},symbol:function(){var e=ale(Yle),t=ale(64),n=null;function r(){var r;if(n||(n=r=ile()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:ale(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:ale(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},symbolCircle:Yle,symbolCross:Gle,symbolDiamond:Xle,symbolSquare:nse,symbolStar:tse,symbolTriangle:ose,symbolWye:cse,symbols:use}),Xse=Y(Jse),Qse={};Qse.__esModule=!0,Qse.default=function(e,t){e(t)};var $se={__esModule:!0};$se.STACK_ORDER_NAMES=$se.STACK_ORDERS=void 0,$se.default=function(e){return e&&tce[e]||tce.none};var ece=Xse,tce={ascending:ece.stackOrderAscending,descending:ece.stackOrderDescending,insideout:ece.stackOrderInsideOut,none:ece.stackOrderNone,reverse:ece.stackOrderReverse};$se.STACK_ORDERS=tce;var nce=Object.keys(tce);$se.STACK_ORDER_NAMES=nce;var rce={__esModule:!0};rce.STACK_OFFSET_NAMES=rce.STACK_OFFSETS=void 0,rce.default=function(e){return e&&ice[e]||ice.none};var oce=Xse,ice={expand:oce.stackOffsetExpand,diverging:oce.stackOffsetDiverging,none:oce.stackOffsetNone,silhouette:oce.stackOffsetSilhouette,wiggle:oce.stackOffsetWiggle};rce.STACK_OFFSETS=ice;var ace=Object.keys(ice);rce.STACK_OFFSET_NAMES=ace,$ae.__esModule=!0,$ae.arc=function(e){var t=void 0===e?{}:e,n=t.innerRadius,r=t.outerRadius,o=t.cornerRadius,i=t.startAngle,a=t.endAngle,l=t.padAngle,s=t.padRadius,c=(0,lce.arc)();null!=n&&(0,sce.default)(c.innerRadius,n);null!=r&&(0,sce.default)(c.outerRadius,r);null!=o&&(0,sce.default)(c.cornerRadius,o);null!=i&&(0,sce.default)(c.startAngle,i);null!=a&&(0,sce.default)(c.endAngle,a);null!=l&&(0,sce.default)(c.padAngle,l);null!=s&&(0,sce.default)(c.padRadius,s);return c},$ae.area=function(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,i=t.y,a=t.y0,l=t.y1,s=t.defined,c=t.curve,u=(0,lce.area)();n&&(0,sce.default)(u.x,n);r&&(0,sce.default)(u.x0,r);o&&(0,sce.default)(u.x1,o);i&&(0,sce.default)(u.y,i);a&&(0,sce.default)(u.y0,a);l&&(0,sce.default)(u.y1,l);s&&u.defined(s);c&&u.curve(c);return u},$ae.line=function(e){var t=void 0===e?{}:e,n=t.x,r=t.y,o=t.defined,i=t.curve,a=(0,lce.line)();n&&(0,sce.default)(a.x,n);r&&(0,sce.default)(a.y,r);o&&a.defined(o);i&&a.curve(i);return a},$ae.pie=function(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,o=t.padAngle,i=t.value,a=t.sort,l=t.sortValues,s=(0,lce.pie)();(null===a||null!=a)&&s.sort(a);(null===l||null!=l)&&s.sortValues(l);null!=i&&s.value(i);null!=o&&(0,sce.default)(s.padAngle,o);null!=n&&(0,sce.default)(s.startAngle,n);null!=r&&(0,sce.default)(s.endAngle,r);return s},$ae.radialLine=function(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,o=t.defined,i=t.curve,a=(0,lce.radialLine)();n&&(0,sce.default)(a.angle,n);r&&(0,sce.default)(a.radius,r);o&&a.defined(o);i&&a.curve(i);return a},$ae.stack=function(e){var t=e.keys,n=e.value,r=e.order,o=e.offset,i=(0,lce.stack)();t&&i.keys(t);n&&(0,sce.default)(i.value,n);r&&i.order((0,cce.default)(r));o&&i.offset((0,uce.default)(o));return i};var lce=Xse,sce=dce(Qse),cce=dce($se),uce=dce(rce);function dce(e){return e&&e.__esModule?e:{default:e}}var fce=function(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,a=e.centroid,l=e.innerRadius,s=void 0===l?0:l,c=e.outerRadius,u=e.cornerRadius,d=e.startAngle,f=e.endAngle,p=e.padAngle,h=e.padRadius,g=e.pieSort,m=e.pieSortValues,v=e.pieValue,b=e.children,y=e.fill,x=void 0===y?"":y,w=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,vce),C=(0,mce.arc)({innerRadius:s,outerRadius:c,cornerRadius:u,padRadius:h}),E=(0,mce.pie)({startAngle:d,endAngle:f,padAngle:p,value:v,sort:g,sortValues:m}),T=E(i);return b?pce.default.createElement(pce.default.Fragment,null,b({arcs:T,path:C,pie:E})):pce.default.createElement(gce.Group,{className:"visx-pie-arcs-group",top:n,left:r},T.map((function(e,n){return pce.default.createElement("g",{key:"pie-arc-"+n},pce.default.createElement("path",yce({className:(0,hce.default)("visx-pie-arc",t),d:C(e)||"",fill:null==x||"string"==typeof x?x:x(e)},w)),null==a?void 0:a(C.centroid(e),e))})))},pce=bce(u),hce=bce(Yae),gce=Qae,mce=$ae,vce=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function bce(e){return e&&e.__esModule?e:{default:e}}function yce(){return yce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yce.apply(this,arguments)}function xce(e){var n=e.arcs,o=e.path,i=e.getColor,a=e.getKey;return t(r,{children:n.map((function(e){var n;return t("path",{d:null!==(n=o(e))&&void 0!==n?n:"",fill:i(e)},a(e))}))})}var wce=function(e){var n,r,o=e.timelineItemId,i=e.clusteredItems,a=e.outerRadius,l=e.innerRadius,s=e.xCoordinates,c=void 0===s?0:s,u=e.yCoordinates,d=void 0===u?0:u,f=null!==(n=null==i?void 0:i.map((function(e){return{type:e,total:1}})).sort((function(e,t){return e.type.type>t.type.type?-1:1})))&&void 0!==n?n:[],p=null!==(r=null==i?void 0:i.reduce((function(e,t){return e.findIndex((function(e){return e.type===t.type}))<0&&e.push({type:t.type,color:t.icon.color}),e}),[]))&&void 0!==r?r:[],h=function(e){return xre(J7(),e)}({domain:p.map((function(e){return e.type})),range:p.map((function(e){return e.color}))});return t("g",{name:"timelineItem-clusteredItem-donut","data-testid":"timelineItem-".concat(o,"-clusteredItem-donut"),transform:"translate(".concat(c,", ").concat(d,")"),children:t(fce,{data:f,pieValue:function(e){return e.total},outerRadius:a,innerRadius:l,cornerRadius:2,padAngle:.008,children:function(e){return t(xce,Object.assign({},e,{getColor:function(e){return h(e.data.type.type)},getKey:function(e){return e.data.type.id}}))}})})},Cce=function(e){var o=e.timelineItemId,i=e.clusteredItems,a=e.iconHeight,l=e.dimmed,s=e.onClick,c=e.clusteredIconBorderSize,u=e.onMouseEnter,d=e.onMouseLeave,f=dx(e,["timelineItemId","clusteredItems","iconHeight","dimmed","onClick","clusteredIconBorderSize","onMouseEnter","onMouseLeave"]),p=(a+6)/2;return t("g",Object.assign({},f,{transform:"translate(".concat(0,", ",-6,")"),name:"TimelineClusterIcon","data-testid":"TimelineClusterIcon-".concat(o),onClick:s,opacity:l?.5:1,onMouseEnter:u,onMouseLeave:d,style:{cursor:"pointer"},children:n(r,{children:[t(wce,{timelineItemId:o,clusteredItems:i,outerRadius:p,innerRadius:p-c,yCoordinates:p}),t(bae,{r:p-c-1,cy:p,color:ky.slateBlue.base})]})}))},Ece=function(e){return{size:e,width:e,height:e,x:"-".concat(e/2)}},Tce=function(e){var n,r,o,i=e.timelineItem,a=e.onTimelineItemClusterClick,l=e.onMouseEnter,s=e.onMouseLeave,c=e.active,u=e.props,d=zae().iconHeight;return(null!==(r=null===(n=i.clusteredItems)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0?t(Cce,Object.assign({iconHeight:d,timelineItemId:i.id,clusteredItems:null!==(o=i.clusteredItems)&&void 0!==o?o:[],clusteredIconBorderSize:5,onMouseEnter:!1===c||void 0===l?void 0:l(i.id),onMouseLeave:s},u,{onClick:function(){return null==a?void 0:a(i.clusteredItems)}})):t("g",{transform:"translate(".concat(Ece(d).x,", 0)"),onMouseEnter:!1===c||void 0===l?void 0:l(i.id),onMouseLeave:s,onClick:function(){var e;return null===(e=i.onClick)||void 0===e?void 0:e.call(i,i)},children:i.icon.icon})},kce=function(e){var r=e.row,o=e.timelineItem,i=e.onTimelineItemClusterClick,a=e.onMouseEnter,l=e.onMouseLeave,s=e.hover,c=e.TooltipInPortal,u=zae(),d=u.xScale,f=u.yScale,p=u.innerHeight,h=u.iconHeight,g=p<=kae?p/1.8-h:kae/1.8-h,m=C((function(){return d(o.date)}),[o.date,d]),v=C((function(){return function(e,t){var n;return null!==(n=e(t))&&void 0!==n?n:0}(f,r)+g}),[r,g,f]);return n(mae,{transform:"translate(".concat(m,", ").concat(v,")"),"data-testid":"timelineItem-".concat(o.id),children:[t(vae,{y1:h,y2:p-(null!=v?v:0)}),t(Tce,{onTimelineItemClusterClick:i,timelineItem:o,onMouseEnter:a,onMouseLeave:l,props:{onClick:function(){var e;return null===(e=o.onClick)||void 0===e?void 0:e.call(o,o)},onMouseEnter:a(o.id),onMouseLeave:l}}),s===o.id&&t(c,{applyPositionStyle:!0,top:v,left:m+h+5,offsetLeft:h+5,detectBounds:!0,style:yae,children:t("div",{"data-testid":"timelineItem-".concat(o.id,"-tooltip"),onMouseEnter:a(o.id),onMouseLeave:l,children:t(Uae,{timelineItem:o})})})]})},Sce=function(e){var o=e.xScale,i=e.options,a=i.innerHeight,l=i.tickOffset,s=C((function(){var e,t,n;return null!==(n=null===(t=null===(e=null==o?void 0:o.domain)||void 0===e?void 0:e.call(o))||void 0===t?void 0:t[0])&&void 0!==n?n:new Date}),[o]),c=C((function(){var e,t,n;return null!==(n=null===(t=null===(e=null==o?void 0:o.domain)||void 0===e?void 0:e.call(o))||void 0===t?void 0:t[1])&&void 0!==n?n:new Date}),[o]),u=C((function(){return function(e,t){var n,r,o,i;if(t.valueOf()===e.valueOf()&&(null===(n=null==e?void 0:e.setHours)||void 0===n||n.call(e,0),null===(r=null==e?void 0:e.setMinutes)||void 0===r||r.call(e,0),null===(o=null==t?void 0:t.setHours)||void 0===o||o.call(t,23),null===(i=null==t?void 0:t.setMinutes)||void 0===i||i.call(t,59)),IV(t,e)<1){var a=RV;return RV(t,e)>=30?a=function(e,t){return Eae(e,t,RV,2)}:RV(t,e)>=4?a=function(e,t){return Eae(e,t,RV,4)}:RV(t,e)<4&&(a=function(e,t){return Eae(e,t,RV,8)}),{diffFunction:a,isLargeTick:Cae(OW),largeTickDateFormat:"HH:mm",isLargeTickFirstInDate:Cae(SW),largeTickFirstInDateFormat:"HH:mm"}}if(NV(t,e)<1){var l=IV;return IV(t,e)>=5&&IV(t,e)<20?l=function(e,t){return Eae(e,t,IV,4)}:IV(t,e)<5&&(l=function(e,t){return Eae(e,t,IV,8)}),{diffFunction:l,isLargeTick:Cae(SW),largeTickDateFormat:"HH:mm",isLargeTickFirstInDate:Cae(kW),largeTickFirstInDateFormat:"do"}}if(xV(t,e)<1){var s=NV;return NV(t,e)>=3?s=function(e,t){return Eae(e,t,NV,4)}:NV(t,e)<3&&(s=function(e,t){return Eae(e,t,NV,8)}),{diffFunction:s,isLargeTick:Cae(kW),largeTickDateFormat:"do",isLargeTickFirstInDate:Cae(CW),largeTickFirstInDateFormat:"MMMM do"}}return vV(t,e)<1?{diffFunction:NV,isLargeTick:Cae(CW),largeTickDateFormat:"MMMM",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"MMM yyyy"}:vV(t,e)<3?{diffFunction:NV,isLargeTick:Cae(CW),largeTickDateFormat:"MMM",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"yyyy"}:vV(t,e)<30?{diffFunction:xV,isLargeTick:Cae(NW),largeTickDateFormat:"yyyy",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"yyyy"}:vV(t,e)>=30?{diffFunction:vV,isLargeTick:Cae(w$),largeTickDateFormat:"yyyy",isLargeTickFirstInDate:Cae(w$),largeTickFirstInDateFormat:"yyyy"}:{diffFunction:NV,isLargeTick:Cae(CW),largeTickDateFormat:"MMMM",isLargeTickFirstInDate:Cae(AW),largeTickFirstInDateFormat:"MMM yyyy"}}(s,c)}),[c,s]),d=u.diffFunction,f=u.isLargeTick,p=u.isLargeTickFirstInDate,h=u.largeTickDateFormat,g=u.largeTickFirstInDateFormat,m=C((function(){return d(c,s)}),[d,c,s]),v=o.ticks(m);return t("g",{children:v.map((function(e,i){return t("g",{transform:"translate(".concat(o(e),",").concat(a,")"),children:f(e)?n(r,{children:[t(hae,{y2:-24}),t(gae,{style:{textAnchor:0===i?"start":i===v.length-1?"end":"middle"},dy:".71em",y:l,children:p(e)?wW(e,g):wW(e,h)})]}):t(hae,{y2:-8})},e.valueOf())}))})},Nce=o.div.withConfig({displayName:"TimelineZoomstyles__ZoomButtonsContainer",componentId:"sc-1mazirk-0"})(["display:flex;flex-direction:column;gap:8px;padding:","px;"],(function(e){return e.$containerpadding})),Oce=o(tp).withConfig({displayName:"TimelineZoomstyles__ZoomButtonStyled",componentId:"sc-1mazirk-1"})(["width:","px;height:","px;min-width:unset;min-height:unset;background:",";border:1px solid rgb(59,91,116);padding:unset;&:hover{background:#3b5b74;svg{fill:white;}}svg{padding:2.5px;width:inherit;height:inherit;fill:",";}"],(function(e){return e.width}),(function(e){return e.height}),(function(e){return e.theme.custom.colors.bigStone.base}),(function(e){return e.theme.custom.colors.semantic.infographic.primary})),Ace=function(e){var r=e.zoomOut,o=e.zoomIn,i=e.resetZoom,a=e.height,l=e.width,s=dx(e,["zoomOut","zoomIn","resetZoom","height","width"]);return t("foreignObject",Object.assign({},s,{width:46,height:a,x:l-30-16,children:n(Nce,{$containerpadding:8,children:[t(Oce,{"data-testid":"timelineZoom-resetZoom-btn",width:30,height:20,onClick:i,children:t(qq,{})}),t(Oce,{"data-testid":"timelineZoom-zoomIn-btn",width:30,height:20,onClick:o,children:t(Bq,{})}),t(Oce,{"data-testid":"timelineZoom-zoomOut-btn",width:30,height:20,onClick:r,children:t(Hq,{})})]})}))},Mce=d((function(e,o){var i=e.width,a=e.height,l=e.zoomIn,s=e.zoomOut,c=e.resetZoom;return n(r,{children:[t(fae,{ref:o,width:i,height:a,fill:"transparent",$grabbable:!0,"data-testid":"timeline-zoom-container"}),t(Ace,{height:a,width:i,resetZoom:c,zoomIn:l,zoomOut:s})]})}));function Ice(e,t,n){var r,o,i,a,l;function s(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(i,o),i=o=null),l};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(l=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}Mce.displayName="TimelineZoom",Ice.debounce=Ice;var Rce=K(Ice);function Dce(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=void 0===e?{debounce:0,scroll:!1,offsetSize:!1}:e;const i=r||("undefined"==typeof window?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,l]=b({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),s=w({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),c=t?"number"==typeof t?t:t.scroll:null,u=t?"number"==typeof t?t:t.resize:null,d=w(!1);v((()=>(d.current=!0,()=>{d.current=!1})));const[f,p,h]=C((()=>{const e=()=>{if(!s.current.element)return;const{left:e,top:t,width:n,height:r,bottom:i,right:a,x:c,y:u}=s.current.element.getBoundingClientRect(),f={left:e,top:t,width:n,height:r,bottom:i,right:a,x:c,y:u};s.current.element instanceof HTMLElement&&o&&(f.height=s.current.element.offsetHeight,f.width=s.current.element.offsetWidth),Object.freeze(f),d.current&&!Lce(s.current.lastBounds,f)&&l(s.current.lastBounds=f)};return[e,u?Rce(e,u):e,c?Rce(e,c):e]}),[l,o,c,u]);function g(){s.current.scrollContainers&&(s.current.scrollContainers.forEach((e=>e.removeEventListener("scroll",h,!0))),s.current.scrollContainers=null),s.current.resizeObserver&&(s.current.resizeObserver.disconnect(),s.current.resizeObserver=null)}function m(){s.current.element&&(s.current.resizeObserver=new i(h),s.current.resizeObserver.observe(s.current.element),n&&s.current.scrollContainers&&s.current.scrollContainers.forEach((e=>e.addEventListener("scroll",h,{capture:!0,passive:!0}))))}var y,x,E;return y=h,x=Boolean(n),v((()=>{if(x){const e=y;return window.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>{window.removeEventListener("scroll",e,!0)}}}),[y,x]),v((()=>{const e=E;return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[E=p]),v((()=>{g(),m()}),[n,h,p]),v((()=>g),[]),[e=>{e&&e!==s.current.element&&(g(),s.current.element=e,s.current.scrollContainers=_ce(e),m())},a,f]}function _ce(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some((e=>"auto"===e||"scroll"===e))&&t.push(e),[...t,..._ce(e.parentElement)]}const Pce=["x","y","top","bottom","left","right","width","height"],Lce=(e,t)=>Pce.every((n=>e[n]===t[n]));function Fce(e,t){return Fce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fce(e,t)}var zce=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Fce(t,n);var o=r.prototype;return o.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},o.render=function(){return this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?M.createPortal(this.props.children,this.node):null},r}(u.PureComponent);zce.propTypes={zIndex:ye.oneOfType([ye.number,ye.string])};var jce=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Bce(){return Bce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bce.apply(this,arguments)}var Vce={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Wce=u.forwardRef((function(e,t){var n=e.className,r=e.top,o=e.left,i=e.offsetLeft,a=void 0===i?10:i,l=e.offsetTop,s=void 0===l?10:l,c=e.style,d=void 0===c?Vce:c,f=e.children,p=e.unstyled,h=void 0!==p&&p,g=e.applyPositionStyle,m=void 0!==g&&g,v=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,jce);return u.createElement("div",Bce({ref:t,className:Gae("visx-tooltip",n),style:Bce({top:null==r||null==s?r:r+s,left:null==o||null==a?o:o+a},m&&{position:"absolute"},!h&&d)},v),f)}));Wce.propTypes={children:ye.node,className:ye.string,left:ye.number,offsetLeft:ye.number,offsetTop:ye.number,top:ye.number,applyPositionStyle:ye.bool,unstyled:ye.bool},Wce.displayName="Tooltip";var Hce=Wce;function qce(){return qce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qce.apply(this,arguments)}function Uce(e,t){return Uce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uce(e,t)}var Kce={top:0,right:0,bottom:0,left:0,width:0,height:0};var Yce=x({isFlippedVertically:!1,isFlippedHorizontally:!1}),Gce=Yce.Provider;Yce.Consumer;var Zce=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Jce(){return Jce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jce.apply(this,arguments)}function Xce(e){var t=e.children;e.getRects;var n,r=e.left,o=void 0===r?0:r,i=e.offsetLeft,a=void 0===i?10:i,l=e.offsetTop,s=void 0===l?10:l,c=e.parentRect,d=e.rect,f=e.style,p=void 0===f?Vce:f,h=e.top,g=void 0===h?0:h,m=e.unstyled,v=void 0!==m&&m,b=e.nodeRef,y=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Zce),x=!1,w=!1;if(d&&c){var C=o,E=g;if(c.width){var T=C+a+d.width-c.width,k=d.width-C-a;x=T>0&&T>k}else{var S=C+a+d.width-window.innerWidth,N=d.width-C-a;x=S>0&&S>N}if(c.height){var O=E+s+d.height-c.height,A=d.height-E-s;w=O>0&&O>A}else w=E+s+d.height>window.innerHeight;C=x?C-d.width-a:C+a,E=w?E-d.height-s:E+s,n="translate("+(C=Math.round(C))+"px, "+(E=Math.round(E))+"px)"}return u.createElement(Hce,Jce({ref:b,style:Jce({left:0,top:0,transform:n},!v&&p)},y),u.createElement(Gce,{value:{isFlippedVertically:!w,isFlippedHorizontally:!x}},t))}Xce.propTypes={nodeRef:ye.oneOfType([ye.string,ye.func,ye.object])};var Qce,$ce,eue=(Qce=Xce,$ce=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=u.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Uce(t,n);var o=r.prototype;return o.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:M.findDOMNode(this),this.setState((function(){return t.getRects()}))},o.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():Kce,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():Kce}},o.render=function(){return u.createElement(Qce,qce({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(u.PureComponent),$ce.displayName="withBoundingRects("+(Qce.displayName||"")+")",$ce),tue=["detectBounds","zIndex"],nue=["left","top","detectBounds","zIndex"];function rue(){return rue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rue.apply(this,arguments)}function oue(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var iue,aue,lue,sue,cue=function(e){var r,o,i,a=e.dataRow,l=e.rowIndex,s=e.rowHeight,c=zae(),u=c.yScale,d=c.iconHeight,f=(null!==(r=u(l))&&void 0!==r?r:1)+s/2-d/2,p={x:0,y:f,height:d,width:d};switch(a.loadingState){case"Error":return t(Dae,Object.assign({},p),null===(o=a.data)||void 0===o?void 0:o.reduce((function(e,t){return"".concat(e,"-").concat(t.id)}),"error-".concat(l,"-")));case"NotLoading":return n("g",{children:[t(_ae,Object.assign({},p)),t(Pae,Object.assign({},p,{x1:4,x2:d-4,y1:f+d,y2:f+d}))]},null===(i=a.data)||void 0===i?void 0:i.reduce((function(e,t){return"".concat(e,"-").concat(t.id)}),"NotLoading-".concat(l,"-")));default:return null}},uue=function(e){var n,r=e.dataRow,o=void 0===r?[]:r,i=zae(),a=i.yScale,l=i.innerHeight-(null!==(n=a(o.length-1))&&void 0!==n?n:0)-1;return t("g",{name:"loadingState-icons","data-testid":"loadingState-icons",children:null==o?void 0:o.map((function(e,n){return t(cue,{dataRow:e,rowHeight:l,rowIndex:n},"timelineLoadingStateIcons-".concat(n))}))})},due=function(e){var r=e.startDate,o=void 0===r?new Date:r,i=e.endDate,a=void 0===i?new Date:i,l=e.dataRow,s=void 0===l?[]:l,c=e.timelineOptions,d=e.height,f=e.width,p=e.className,h=d-Nae.top-Nae.bottom,g=f-Nae.left-Nae.right,m=wx(b(eae),2),x=m[0],E=m[1],T=w(null),k=yre({domain:[o,a],range:[0,Math.abs(g)],nice:!0}),S=vre({domain:sx(Array(s.length).keys()),range:[0,h]}),N=y((function(e){var t=e.transform;E(t)}),[E]),O=C((function(){return cae&&cae().scaleExtent([1,1/0]).translateExtent([[0,0],[f,d]]).on("zoom",N)}),[N,d,f]);if(x){var A=x.rescaleX(k);A.domain()[0]!==k.domain()[0]&&A.domain()[0]!==k.domain()[0]&&k.domain(A.domain())}var M=C((function(){return Object.assign(Object.assign({margins:Nae,iconHeight:24,timelineRowOptions:Oae,customBrushIconRadius:6,tickOffset:5,rowHeight:kae},c),{innerHeight:h,innerWidth:g,xScale:k,yScale:S})}),[h,g,c,k,S]),I=wx(b(),2),R=I[0],D=I[1],_=w7((function(){return D(void 0)}),1e3),P=function(e){var t=void 0===e?{}:e,n=t.detectBounds,r=void 0===n||n,o=t.zIndex,i=Dce(oue(t,tue)),a=i[0],l=i[1],s=i[2],c=b(!1),d=c[0],f=c[1];v((function(){f(!1)}),[]);var p=C((function(){return function(e){var t=e.left,n=void 0===t?0:t,i=e.top,a=void 0===i?0:i,s=e.detectBounds,c=e.zIndex,f=oue(e,nue),p=null==c?o:c,h=(null==s?r:s)?eue:Hce,g=d?0:window.scrollX,m=d?0:window.scrollY,v=n+(l.left||0)+g,b=a+(l.top||0)+m;return u.createElement(zce,{zIndex:p},u.createElement(h,rue({left:v,top:b},f)))}}),[r,o,l.left,l.top,d]);return{containerRef:a,containerBounds:l,forceRefreshBounds:s,TooltipInPortal:p}}({scroll:!1,detectBounds:!0,debounce:1e3}),L=P.containerRef,F=P.TooltipInPortal;v((function(){null==O||O.scaleTo(zoe(null==T?void 0:T.current).transition().duration(500).ease(Hie),1)}),[o,a]),v((function(){var e;null===(e=zoe(T.current))||void 0===e||e.call(O)}),[N,d,f,O]);var z=y((function(e){return function(){_.cancel(),D(e)}}),[_,D]),j=y((function(e){var t,n,r=yre({domain:[o,a],range:[0,Math.abs(g)],nice:!0}),i=Tae(e,"first"),l=Tae(e,"last");if(i&&l){var s=Math.abs(MV(i,l)),c=0!==s?s:3e6,u=pV(i,-c/8),d=pV(l,c/8),f=Math.abs(r(d)-r(u)),p=0===f?3e3:g/f,h=-r(u),m=eae.scale(p).translate(h,0);null==O||O.transform(zoe(T.current).transition().duration(500).ease(Hie),m),0===s&&(null===(n=null===(t=e[0])||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e[0]))}}),[a,g,o,O]);return t(jae,{timelineOptions:M,xScale:k,yScale:S,children:n(dae,{className:p,"data-testid":"timeline",height:d,width:f,ref:L,children:[C((function(){return t(uue,{dataRow:s})}),[s]),n("g",{transform:"translate(".concat(M.margins.left,",").concat(M.margins.top,")"),children:[t("g",{name:"timeline-horizontal-lines",children:M.yScale.domain().map((function(e){return t(pae,{x2:M.innerWidth,y1:M.yScale(e),y2:M.yScale(e)},e)}))}),t(Mce,{width:g,height:h,zoomIn:function(){null==O||O.scaleBy(zoe(null==T?void 0:T.current).transition().duration(200),1.2)},zoomOut:function(){null==O||O.scaleBy(zoe(null==T?void 0:T.current).transition().duration(200),.8)},resetZoom:function(){null==O||O.scaleTo(zoe(null==T?void 0:T.current).transition().duration(500).ease(Hie),1)},ref:T}),t(Wae,{bandStates:s}),t(Sce,{xScale:k,options:M}),t("g",{"data-testid":"timeline-items",id:"timeline-items",children:s.map((function(e,n){var r;return"Error"===e.loadingState?null:wae(null!==(r=null==e?void 0:e.data)&&void 0!==r?r:[],k,M.iconHeight+6).map((function(e,r){return t(kce,{row:n,timelineItem:e,onTimelineItemClusterClick:j,hover:R,onMouseEnter:z,onMouseLeave:_,TooltipInPortal:F},"timelineItem-".concat(e.date.valueOf(),"-").concat(r))}))}))})]})]})})},fue=function(e){var n,r=e.width,o=e.height,i=e.dataRow,a=e.timelineOptions,l=dx(e,["width","height","dataRow","timelineOptions"]),s=null!==(n=null==a?void 0:a.rowHeight)&&void 0!==n?n:kae,c=C((function(){return i.length*s+Nae.top+Nae.bottom}),[i.length,s]);return t(C7,{children:function(e){var n=e.width;return t(due,Object.assign({},l,{dataRow:i,timelineOptions:a,width:(null!=r?r:n>0)?n:Sae,height:null!=o?o:c}))}})},pue=o.div.withConfig({displayName:"FavoriteStar__StarWrapper",componentId:"sc-14uyqb4-0"})(["display:flex;padding:0;margin:0;"]),hue=function(e){var n=dx(e,[]);return t(pue,{"data-testid":"favoritestar",children:t(yp,Object.assign({},n,{icon:t(O_,{isChecked:!1,size:20}),checkedIcon:t(O_,{isChecked:!0,size:20})}))})},gue=o(jp).withConfig({displayName:"ConfirmationDialogstyles__StyledDialog",componentId:"sc-drp53p-0"})(["width:500px;left:50% !important;top:10% !important;.MuiDialog-container{.MuiPaper-root{background:",";color:",";border-radius:4px;margin:0;}.MuiDialogContentText-root{color:",";}}"],ky.slateBlue.base,ky.white.base,ky.white.base),mue=o.div.withConfig({displayName:"ConfirmationDialogstyles__DialogWrapper",componentId:"sc-drp53p-1"})((function(e){var t=e.theme;return i(iue||(iue=lD(["\n border-radius: ",";\n background: ",";\n "])),t.spacing(.5),ky.slateBlue.base)})),vue=o.div.withConfig({displayName:"ConfirmationDialogstyles__StyledDialogTitle",componentId:"sc-drp53p-2"})((function(e){var t=e.theme;return i(aue||(aue=lD(["\n display: flex;\n justify-content: space-between;\n color: ",";\n padding: ",";\n height: ",";\n align-items: center;\n font-size: 18px;\n border-bottom: 1px "," solid;\n "])),t.palette.text.primary,t.spacing(0,3),t.spacing(8),t.custom.colors.white.transparent[84])})),bue=o.div.withConfig({displayName:"ConfirmationDialogstyles__StyledModalContent",componentId:"sc-drp53p-3"})((function(e){var t=e.theme;return i(lue||(lue=lD(["\n display: flex;\n flex-direction: column;\n padding: ",";\n align-items: flex-start;\n align-content: space-between;\n "])),t.spacing(3,3,0,3))})),yue=o.div.withConfig({displayName:"ConfirmationDialogstyles__StyledModalActions",componentId:"sc-drp53p-4"})((function(e){var t=e.theme;return i(sue||(sue=lD(["\n width: 438px;\n padding-bottom: ",";\n padding-right: ",";\n display: flex;\n justify-content: flex-end;\n gap: 10px;\n text-align: end;\n "])),t.spacing(3),t.spacing(3))})),xue=o(is).withConfig({displayName:"ConfirmationDialogstyles__StyledIconButton",componentId:"sc-drp53p-5"})(["padding:0px;margin-right:-15px;min-height:0;min-width:0;height:48px;width:48px;color:",";:hover{background:",";color:",";}svg{height:24px;width:24px;}"],ky.mossGreen.tint[45],ky.white.transparent[84],ky.mossGreen.tint[45]),wue=o.div.withConfig({displayName:"ConfirmationDialogstyles__ContentContainer",componentId:"sc-drp53p-6"})(["width:335px;margin-bottom:90px;color:",";font-size:16px;"],ky.semantic.text.secondary),Cue=o.label.withConfig({displayName:"ConfirmationDialogstyles__SubmitText",componentId:"sc-drp53p-7"})(["text-transform:capitalize;"]),Eue=function(e){var r=e.value,o=e.title,i=e.open,a=e.onSubmit,l=e.onClose,s=e.confirmtext,c=e.confirmButtonType,u=e.cancelText,d=dx(e,["value","title","open","onSubmit","onClose","confirmtext","confirmButtonType","cancelText"]);return t(gue,Object.assign({},d,{open:i,"data-testid":"ConfirmationDialog",onClick:l,children:n(mue,{children:[n(vue,{children:[o,t(xue,{"data-testid":"ConfirmCloseButton",onClick:l,children:t(Ix,{})})]}),t(bue,{children:t(wue,{children:s})}),n(yue,{children:[t(xw,{height:"24px",buttonstyle:"outlined","data-testid":"ConfirmCancelButton",onClick:l,autoFocus:!0,variant:"outlined",children:u}),t(xw,{height:"24px","data-testid":"ConfirmSubmitButton",buttonstyle:"delete"===c?"danger":"primary",onClick:function(e){a(r)},variant:"contained",children:t(Cue,{children:c})})]})]})}))};export{A_ as AddToMeetingIcon,m_ as AnnotationArchiveIcon,u_ as AnnotationErrorIcon,T_ as AnnotationIcon,qD as AnnotationInProgressIcon,QD as AnnotationNoteIcon,o_ as AnnotationOnWatchIcon,eP as AppVersion,hP as AttachmentUpload,e0 as AutocompleteFilter,OD as AutocompleteSelect,px as BasicHeaderContent,xw as Button,X$ as CheckboxFilter,Eue as ConfirmationDialog,vx as ContextNavButton,RD as CriticalStatusIcon,$$ as DateFilter,Jq as DatePicker,Xq as DateRangePicker,C_ as DispIcon,f$ as Editor,OP as EdsSelect,E_ as EnqIcon,_w as ErrorBox,xD as ErrorMessage,hue as FavoriteStar,Q_ as Feedback,X6 as FilterBar,R$ as FilterProvider,d$ as FilterTypes,e7 as FooterSection,Ky as GlobalStyles,cx as GlobalStylesProvider,H_ as HeaderMenu,_D as InProgressStatusIcon,Sw as InfoBox,Z9 as InlineLink,nP as Language,G9 as Link,J9 as LinkWithIcon,rP as LogOut,UD as M2Icon,KD as M3Icon,oD as MeatballMenuButton,PD as NotInScopeStatusIcon,LD as NotReadyStatusIcon,MD as OkStatusIcon,zD as OpportunityStatusIcon,v_ as PeprIcon,_$ as RadioButton,p$ as ReadWriteContext,h$ as ReadWriteProvider,$_ as ReportBug,b_ as RitmIcon,Q$ as SearchFilter,NP as Select,B_ as Snackbar,O_ as StarIcon,iP as Switch,k_ as SynergiIcon,H9 as TabbedTable,k5 as TabbedTableProvider,rU as Table,P9 as TableSettings,xP as TextField,fue as Timeline,w_ as TrashOutlinedIcon,FD as UnavailableStatusIcon,g$ as UserCanReadOnly,m$ as UserCanWrite,X_ as UserGuide,tP as UserName,y_ as WOIcon,ID as WarningStatusIcon,Sy as baseSpacingUnit,ky as colors,Hy as edsHeadings,Wy as fontFamily,N$ as getDateFromPeriodString,Uy as globalTheme,S$ as isTimeSpanTense,E$ as isTimeSpanUnit,Ey as primaryPalette,Oy as sizes,b$ as useFilterContext};
|
|
252
252
|
//# sourceMappingURL=index.esm.js.map
|