file-viewer-demo/public/file-viewer3/assets/PptxRender-3032ddac.js

52 lines
402 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{c as mf,d as _f,r as bf,o as Tf,a as wf,b as $f,_ as Af}from"./index-0fd2d185.js";import{r as Cf}from"./worker-ref-fadf3283.js";var Oa={},Sf={get exports(){return Oa},set exports(t){Oa=t}};/*!
* jQuery JavaScript Library v3.6.4
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-03-08T15:28Z
*/(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return n(i)}})(typeof window<"u"?window:mf,function(e,n){var i=[],r=Object.getPrototypeOf,a=i.slice,o=i.flat?function(c){return i.flat.call(c)}:function(c){return i.concat.apply([],c)},s=i.push,u=i.indexOf,l={},h=l.toString,d=l.hasOwnProperty,v=d.toString,y=v.call(Object),m={},T=function(f){return typeof f=="function"&&typeof f.nodeType!="number"&&typeof f.item!="function"},C=function(f){return f!=null&&f===f.window},A=e.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function D(c,f,p){p=p||A;var x,_,b=p.createElement("script");if(b.text=c,f)for(x in S)_=f[x]||f.getAttribute&&f.getAttribute(x),_&&b.setAttribute(x,_);p.head.appendChild(b).parentNode.removeChild(b)}function L(c){return c==null?c+"":typeof c=="object"||typeof c=="function"?l[h.call(c)]||"object":typeof c}var P="3.6.4",g=function(c,f){return new g.fn.init(c,f)};g.fn=g.prototype={jquery:P,constructor:g,length:0,toArray:function(){return a.call(this)},get:function(c){return c==null?a.call(this):c<0?this[c+this.length]:this[c]},pushStack:function(c){var f=g.merge(this.constructor(),c);return f.prevObject=this,f},each:function(c){return g.each(this,c)},map:function(c){return this.pushStack(g.map(this,function(f,p){return c.call(f,p,f)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(g.grep(this,function(c,f){return(f+1)%2}))},odd:function(){return this.pushStack(g.grep(this,function(c,f){return f%2}))},eq:function(c){var f=this.length,p=+c+(c<0?f:0);return this.pushStack(p>=0&&p<f?[this[p]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},g.extend=g.fn.extend=function(){var c,f,p,x,_,b,w=arguments[0]||{},R=1,k=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[R]||{},R++),typeof w!="object"&&!T(w)&&(w={}),R===k&&(w=this,R--);R<k;R++)if((c=arguments[R])!=null)for(f in c)x=c[f],!(f==="__proto__"||w===x)&&(I&&x&&(g.isPlainObject(x)||(_=Array.isArray(x)))?(p=w[f],_&&!Array.isArray(p)?b=[]:!_&&!g.isPlainObject(p)?b={}:b=p,_=!1,w[f]=g.extend(I,b,x)):x!==void 0&&(w[f]=x));return w},g.extend({expando:"jQuery"+(P+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var f,p;return!c||h.call(c)!=="[object Object]"?!1:(f=r(c),f?(p=d.call(f,"constructor")&&f.constructor,typeof p=="function"&&v.call(p)===y):!0)},isEmptyObject:function(c){var f;for(f in c)return!1;return!0},globalEval:function(c,f,p){D(c,{nonce:f&&f.nonce},p)},each:function(c,f){var p,x=0;if(F(c))for(p=c.length;x<p&&f.call(c[x],x,c[x])!==!1;x++);else for(x in c)if(f.call(c[x],x,c[x])===!1)break;return c},makeArray:function(c,f){var p=f||[];return c!=null&&(F(Object(c))?g.merge(p,typeof c=="string"?[c]:c):s.call(p,c)),p},inArray:function(c,f,p){return f==null?-1:u.call(f,c,p)},merge:function(c,f){for(var p=+f.length,x=0,_=c.length;x<p;x++)c[_++]=f[x];return c.length=_,c},grep:function(c,f,p){for(var x,_=[],b=0,w=c.length,R=!p;b<w;b++)x=!f(c[b],b),x!==R&&_.push(c[b]);return _},map:function(c,f,p){var x,_,b=0,w=[];if(F(c))for(x=c.length;b<x;b++)_=f(c[b],b,p),_!=null&&w.push(_);else for(b in c)_=f(c[b],b,p),_!=null&&w.push(_);return o(w)},guid:1,support:m}),typeof Symbol=="function"&&(g.fn[Symbol.iterator]=i[Symbol.iterator]),g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,f){l["[object "+f+"]"]=f.toLowerCase()});function F(c){var f=!!c&&"length"in c&&c.length,p=L(c);return T(c)||C(c)?!1:p==="array"||f===0||typeof f=="number"&&f>0&&f-1 in c}var H=function(c){var f,p,x,_,b,w,R,k,I,X,j,O,B,rt,ft,it,re,te,Ee,Nt="sizzle"+1*new Date,lt=c.document,we=0,Ct=0,jt=Qi(),vi=Qi(),Gi=Qi(),Re=Qi(),Tn=function($,E){return $===E&&(j=!0),0},wn={}.hasOwnProperty,$e=[],hn=$e.pop,Ne=$e.push,dn=$e.push,_s=$e.slice,$n=function($,E){for(var M=0,z=$.length;M<z;M++)if($[M]===E)return M;return-1},ca="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Lt="[\\x20\\t\\r\\n\\f]",An="(?:\\\\[\\da-fA-F]{1,6}"+Lt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",bs="\\["+Lt+"*("+An+")(?:"+Lt+"*([*^$|!~]?=)"+Lt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+An+"))|)"+Lt+"*\\]",ua=":("+An+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+bs+")*)|.*)\\)|)",af=new RegExp(Lt+"+","g"),Zi=new RegExp("^"+Lt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Lt+"+$","g"),of=new RegExp("^"+Lt+"*,"+Lt+"*"),Ts=new RegExp("^"+Lt+"*([>+~]|"+Lt+")"+Lt+"*"),sf=new RegExp(Lt+"|>"),cf=new RegExp(ua),uf=new RegExp("^"+An+"$"),Ki={ID:new RegExp("^#("+An+")"),CLASS:new RegExp("^\\.("+An+")"),TAG:new RegExp("^("+An+"|[*])"),ATTR:new RegExp("^"+bs),PSEUDO:new RegExp("^"+ua),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Lt+"*(even|odd|(([+-]|)(\\d*)n|)"+Lt+"*(?:([+-]|)"+Lt+"*(\\d+)|))"+Lt+"*\\)|)","i"),bool:new RegExp("^(?:"+ca+")$","i"),needsContext:new RegExp("^"+Lt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Lt+"*((?:-\\d)?\\d*)"+Lt+"*\\)|)(?=[^-]|$)","i")},lf=/HTML$/i,ff=/^(?:input|select|textarea|button)$/i,hf=/^h\d$/i,xi=/^[^{]+\{\s*\[native \w/,df=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,la=/[+~]/,en=new RegExp("\\\\[\\da-fA-F]{1,6}"+Lt+"?|\\\\([^\\r\\n\\f])","g"),nn=function($,E){var M="0x"+$.slice(1)-65536;return E||(M<0?String.fromCharCode(M+65536):String.fromCharCode(M>>10|55296,M&1023|56320))},ws=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,$s=function($,E){return E?$==="\0"?"<22>":$.slice(0,-1)+"\\"+$.charCodeAt($.length-1).toString(16)+" ":"\\"+$},As=function(){O()},gf=tr(function($){return $.disabled===!0&&$.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{dn.apply($e=_s.call(lt.childNodes),lt.childNodes),$e[lt.childNodes.length].nodeType}catch{dn={apply:$e.length?function(E,M){Ne.apply(E,_s.call(M))}:function(E,M){for(var z=E.length,N=0;E[z++]=M[N++];);E.length=z-1}}}function Pt($,E,M,z){var N,Y,q,Q,tt,ot,at,ct=E&&E.ownerDocument,xt=E?E.nodeType:9;if(M=M||[],typeof $!="string"||!$||xt!==1&&xt!==9&&xt!==11)return M;if(!z&&(O(E),E=E||B,ft)){if(xt!==11&&(tt=df.exec($)))if(N=tt[1]){if(xt===9)if(q=E.getElementById(N)){if(q.id===N)return M.push(q),M}else return M;else if(ct&&(q=ct.getElementById(N))&&Ee(E,q)&&q.id===N)return M.push(q),M}else{if(tt[2])return dn.apply(M,E.getElementsByTagName($)),M;if((N=tt[3])&&p.getElementsByClassName&&E.getElementsByClassName)return dn.apply(M,E.getElementsByClassName(N)),M}if(p.qsa&&!Re[$+" "]&&(!it||!it.test($))&&(xt!==1||E.nodeName.toLowerCase()!=="object")){if(at=$,ct=E,xt===1&&(sf.test($)||Ts.test($))){for(ct=la.test($)&&ha(E.parentNode)||E,(ct!==E||!p.scope)&&((Q=E.getAttribute("id"))?Q=Q.replace(ws,$s):E.setAttribute("id",Q=Nt)),ot=w($),Y=ot.length;Y--;)ot[Y]=(Q?"#"+Q:":scope")+" "+Ji(ot[Y]);at=ot.join(",")}try{return dn.apply(M,ct.querySelectorAll(at)),M}catch{Re($,!0)}finally{Q===Nt&&E.removeAttribute("id")}}}return k($.replace(Zi,"$1"),E,M,z)}function Qi(){var $=[];function E(M,z){return $.push(M+" ")>x.cacheLength&&delete E[$.shift()],E[M+" "]=z}return E}function Fe($){return $[Nt]=!0,$}function Ie($){var E=B.createElement("fieldset");try{return!!$(E)}catch{return!1}finally{E.parentNode&&E.parentNode.removeChild(E),E=null}}function fa($,E){for(var M=$.split("|"),z=M.length;z--;)x.attrHandle[M[z]]=E}function Cs($,E){var M=E&&$,z=M&&$.nodeType===1&&E.nodeType===1&&$.sourceIndex-E.sourceIndex;if(z)return z;if(M){for(;M=M.nextSibling;)if(M===E)return-1}return $?1:-1}function pf($){return function(E){var M=E.nodeName.toLowerCase();return M==="input"&&E.type===$}}function vf($){return function(E){var M=E.nodeName.toLowerCase();return(M==="input"||M==="button")&&E.type===$}}function Ss($){return function(E){return"form"in E?E.parentNode&&E.disabled===!1?"label"in E?"label"in E.parentNode?E.parentNode.disabled===$:E.disabled===$:E.isDisabled===$||E.isDisabled!==!$&&gf(E)===$:E.disabled===$:"label"in E?E.disabled===$:!1}}function Cn($){return Fe(function(E){return E=+E,Fe(function(M,z){for(var N,Y=$([],M.length,E),q=Y.length;q--;)M[N=Y[q]]&&(M[N]=!(z[N]=M[N]))})})}function ha($){return $&&typeof $.getElementsByTagName<"u"&&$}p=Pt.support={},b=Pt.isXML=function($){var E=$&&$.namespaceURI,M=$&&($.ownerDocument||$).documentElement;return!lf.test(E||M&&M.nodeName||"HTML")},O=Pt.setDocument=function($){var E,M,z=$?$.ownerDocument||$:lt;return z==B||z.nodeType!==9||!z.documentElement||(B=z,rt=B.documentElement,ft=!b(B),lt!=B&&(M=B.defaultView)&&M.top!==M&&(M.addEventListener?M.addEventListener("unload",As,!1):M.attachEvent&&M.attachEvent("onunload",As)),p.scope=Ie(function(N){return rt.appendChild(N).appendChild(B.createElement("div")),typeof N.querySelectorAll<"u"&&!N.querySelectorAll(":scope fieldset div").length}),p.cssHas=Ie(function(){try{return B.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),p.attributes=Ie(function(N){return N.className="i",!N.getAttribute("className")}),p.getElementsByTagName=Ie(function(N){return N.appendChild(B.createComment("")),!N.getElementsByTagName("*").length}),p.getElementsByClassName=xi.test(B.getElementsByClassName),p.getById=Ie(function(N){return rt.appendChild(N).id=Nt,!B.getElementsByName||!B.getElementsByName(Nt).length}),p.getById?(x.filter.ID=function(N){var Y=N.replace(en,nn);return function(q){return q.getAttribute("id")===Y}},x.find.ID=function(N,Y){if(typeof Y.getElementById<"u"&&ft){var q=Y.getElementById(N);return q?[q]:[]}}):(x.filter.ID=function(N){var Y=N.replace(en,nn);return function(q){var Q=typeof q.getAttributeNode<"u"&&q.getAttributeNode("id");return Q&&Q.value===Y}},x.find.ID=function(N,Y){if(typeof Y.getElementById<"u"&&ft){var q,Q,tt,ot=Y.getElementById(N);if(ot){if(q=ot.getAttributeNode("id"),q&&q.value===N)return[ot];for(tt=Y.getElementsByName(N),Q=0;ot=tt[Q++];)if(q=ot.getAttributeNode("id"),q&&q.value===N)return[ot]}return[]}}),x.find.TAG=p.getElementsByTagName?function(N,Y){if(typeof Y.getElementsByTagName<"u")return Y.getElementsByTagName(N);if(p.qsa)return Y.querySelectorAll(N)}:function(N,Y){var q,Q=[],tt=0,ot=Y.getElementsByTagName(N);if(N==="*"){for(;q=ot[tt++];)q.nodeType===1&&Q.push(q);return Q}return ot},x.find.CLASS=p.getElementsByClassName&&function(N,Y){if(typeof Y.getElementsByClassName<"u"&&ft)return Y.getElementsByClassName(N)},re=[],it=[],(p.qsa=xi.test(B.querySelectorAll))&&(Ie(function(N){var Y;rt.appendChild(N).innerHTML="<a id='"+Nt+"'></a><select id='"+Nt+"-\r\\' msallowcapture=''><option selected=''></option></select>",N.querySelectorAll("[msallowcapture^='']").length&&it.push("[*^$]="+Lt+`*(?:''|"")`),N.querySelectorAll("[selected]").length||it.push("\\["+Lt+"*(?:value|"+ca+")"),N.querySelectorAll("[id~="+Nt+"-]").length||it.push("~="),Y=B.createElement("input"),Y.setAttribute("name",""),N.appendChild(Y),N.querySelectorAll("[name='']").length||it.push("\\["+Lt+"*name"+Lt+"*="+Lt+`*(?:''|"")`),N.querySelectorAll(":checked").length||it.push(":checked"),N.querySelectorAll("a#"+Nt+"+*").length||it.push(".#.+[+~]"),N.querySelectorAll("\\\f"),it.push("[\\r\\n\\f]")}),Ie(function(N){N.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var Y=B.createElement("input");Y.setAttribute("type","hidden"),N.appendChild(Y).setAttribute("name","D"),N.querySelectorAll("[name=d]").length&&it.push("name"+Lt+"*[*^$|!~]?="),N.querySelectorAll(":enabled").length!==2&&it.push(":enabled",":disabled"),rt.appendChild(N).disabled=!0,N.querySelectorAll(":disabled").length!==2&&it.push(":enabled",":disabled"),N.querySelectorAll("*,:x"),it.push(",.*:")})),(p.matchesSelector=xi.test(te=rt.matches||rt.webkitMatchesSelector||rt.mozMatchesSelector||rt.oMatchesSelector||rt.msMatchesSelector))&&Ie(function(N){p.disconnectedMatch=te.call(N,"*"),te.call(N,"[s!='']:x"),re.push("!=",ua)}),p.cssHas||it.push(":has"),it=it.length&&new RegExp(it.join("|")),re=re.length&&new RegExp(re.join("|")),E=xi.test(rt.compareDocumentPosition),Ee=E||xi.test(rt.contains)?function(N,Y){var q=N.nodeType===9&&N.documentElement||N,Q=Y&&Y.parentNode;return N===Q||!!(Q&&Q.nodeType===1&&(q.contains?q.contains(Q):N.compareDocumentPosition&&N.compareDocumentPosition(Q)&16))}:function(N,Y){if(Y){for(;Y=Y.parentNode;)if(Y===N)return!0}return!1},Tn=E?function(N,Y){if(N===Y)return j=!0,0;var q=!N.compareDocumentPosition-!Y.compareDocumentPosition;return q||(q=(N.ownerDocument||N)==(Y.ownerDocument||Y)?N.compareDocumentPosition(Y):1,q&1||!p.sortDetached&&Y.compareDocumentPosition(N)===q?N==B||N.ownerDocument==lt&&Ee(lt,N)?-1:Y==B||Y.ownerDocument==lt&&Ee(lt,Y)?1:X?$n(X,N)-$n(X,Y):0:q&4?-1:1)}:function(N,Y){if(N===Y)return j=!0,0;var q,Q=0,tt=N.parentNode,ot=Y.parentNode,at=[N],ct=[Y];if(!tt||!ot)return N==B?-1:Y==B?1:tt?-1:ot?1:X?$n(X,N)-$n(X,Y):0;if(tt===ot)return Cs(N,Y);for(q=N;q=q.parentNode;)at.unshift(q);for(q=Y;q=q.parentNode;)ct.unshift(q);for(;at[Q]===ct[Q];)Q++;return Q?Cs(at[Q],ct[Q]):at[Q]==lt?-1:ct[Q]==lt?1:0}),B},Pt.matches=function($,E){return Pt($,null,null,E)},Pt.matchesSelector=function($,E){if(O($),p.matchesSelector&&ft&&!Re[E+" "]&&(!re||!re.test(E))&&(!it||!it.test(E)))try{var M=te.call($,E);if(M||p.disconnectedMatch||$.document&&$.document.nodeType!==11)return M}catch{Re(E,!0)}return Pt(E,B,null,[$]).length>0},Pt.contains=function($,E){return($.ownerDocument||$)!=B&&O($),Ee($,E)},Pt.attr=function($,E){($.ownerDocument||$)!=B&&O($);var M=x.attrHandle[E.toLowerCase()],z=M&&wn.call(x.attrHandle,E.toLowerCase())?M($,E,!ft):void 0;return z!==void 0?z:p.attributes||!ft?$.getAttribute(E):(z=$.getAttributeNode(E))&&z.specified?z.value:null},Pt.escape=function($){return($+"").replace(ws,$s)},Pt.error=function($){throw new Error("Syntax error, unrecognized expression: "+$)},Pt.uniqueSort=function($){var E,M=[],z=0,N=0;if(j=!p.detectDuplicates,X=!p.sortStable&&$.slice(0),$.sort(Tn),j){for(;E=$[N++];)E===$[N]&&(z=M.push(N));for(;z--;)$.splice(M[z],1)}return X=null,$},_=Pt.getText=function($){var E,M="",z=0,N=$.nodeType;if(N){if(N===1||N===9||N===11){if(typeof $.textContent=="string")return $.textContent;for($=$.firstChild;$;$=$.nextSibling)M+=_($)}else if(N===3||N===4)return $.nodeValue}else for(;E=$[z++];)M+=_(E);return M},x=Pt.selectors={cacheLength:50,createPseudo:Fe,match:Ki,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function($){return $[1]=$[1].replace(en,nn),$[3]=($[3]||$[4]||$[5]||"").replace(en,nn),$[2]==="~="&&($[3]=" "+$[3]+" "),$.slice(0,4)},CHILD:function($){return $[1]=$[1].toLowerCase(),$[1].slice(0,3)==="nth"?($[3]||Pt.error($[0]),$[4]=+($[4]?$[5]+($[6]||1):2*($[3]==="even"||$[3]==="odd")),$[5]=+($[7]+$[8]||$[3]==="odd")):$[3]&&Pt.error($[0]),$},PSEUDO:function($){var E,M=!$[6]&&$[2];return Ki.CHILD.test($[0])?null:($[3]?$[2]=$[4]||$[5]||"":M&&cf.test(M)&&(E=w(M,!0))&&(E=M.indexOf(")",M.length-E)-M.length)&&($[0]=$[0].slice(0,E),$[2]=M.slice(0,E)),$.slice(0,3))}},filter:{TAG:function($){var E=$.replace(en,nn).toLowerCase();return $==="*"?function(){return!0}:function(M){return M.nodeName&&M.nodeName.toLowerCase()===E}},CLASS:function($){var E=jt[$+" "];return E||(E=new RegExp("(^|"+Lt+")"+$+"("+Lt+"|$)"))&&jt($,function(M){return E.test(typeof M.className=="string"&&M.className||typeof M.getAttribute<"u"&&M.getAttribute("class")||"")})},ATTR:function($,E,M){return function(z){var N=Pt.attr(z,$);return N==null?E==="!=":E?(N+="",E==="="?N===M:E==="!="?N!==M:E==="^="?M&&N.indexOf(M)===0:E==="*="?M&&N.indexOf(M)>-1:E==="$="?M&&N.slice(-M.length)===M:E==="~="?(" "+N.replace(af," ")+" ").indexOf(M)>-1:E==="|="?N===M||N.slice(0,M.length+1)===M+"-":!1):!0}},CHILD:function($,E,M,z,N){var Y=$.slice(0,3)!=="nth",q=$.slice(-4)!=="last",Q=E==="of-type";return z===1&&N===0?function(tt){return!!tt.parentNode}:function(tt,ot,at){var ct,xt,Ot,st,ae,de,Le=Y!==q?"nextSibling":"previousSibling",Wt=tt.parentNode,yi=Q&&tt.nodeName.toLowerCase(),mi=!at&&!Q,Me=!1;if(Wt){if(Y){for(;Le;){for(st=tt;st=st[Le];)if(Q?st.nodeName.toLowerCase()===yi:st.nodeType===1)return!1;de=Le=$==="only"&&!de&&"nextSibling"}return!0}if(de=[q?Wt.firstChild:Wt.lastChild],q&&mi){for(st=Wt,Ot=st[Nt]||(st[Nt]={}),xt=Ot[st.uniqueID]||(Ot[st.uniqueID]={}),ct=xt[$]||[],ae=ct[0]===we&&ct[1],Me=ae&&ct[2],st=ae&&Wt.childNodes[ae];st=++ae&&st&&st[Le]||(Me=ae=0)||de.pop();)if(st.nodeType===1&&++Me&&st===tt){xt[$]=[we,ae,Me];break}}else if(mi&&(st=tt,Ot=st[Nt]||(st[Nt]={}),xt=Ot[st.uniqueID]||(Ot[st.uniqueID]={}),ct=xt[$]||[],ae=ct[0]===we&&ct[1],Me=ae),Me===!1)for(;(st=++ae&&st&&st[Le]||(Me=ae=0)||de.pop())&&!((Q?st.nodeName.toLowerCase()===yi:st.nodeType===1)&&++Me&&(mi&&(Ot=st[Nt]||(st[Nt]={}),xt=Ot[st.uniqueID]||(Ot[st.uniqueID]={}),xt[$]=[we,Me]),st===tt)););return Me-=N,Me===z||Me%z===0&&Me/z>=0}}},PSEUDO:function($,E){var M,z=x.pseudos[$]||x.setFilters[$.toLowerCase()]||Pt.error("unsupported pseudo: "+$);return z[Nt]?z(E):z.length>1?(M=[$,$,"",E],x.setFilters.hasOwnProperty($.toLowerCase())?Fe(function(N,Y){for(var q,Q=z(N,E),tt=Q.length;tt--;)q=$n(N,Q[tt]),N[q]=!(Y[q]=Q[tt])}):function(N){return z(N,0,M)}):z}},pseudos:{not:Fe(function($){var E=[],M=[],z=R($.replace(Zi,"$1"));return z[Nt]?Fe(function(N,Y,q,Q){for(var tt,ot=z(N,null,Q,[]),at=N.length;at--;)(tt=ot[at])&&(N[at]=!(Y[at]=tt))}):function(N,Y,q){return E[0]=N,z(E,null,q,M),E[0]=null,!M.pop()}}),has:Fe(function($){return function(E){return Pt($,E).length>0}}),contains:Fe(function($){return $=$.replace(en,nn),function(E){return(E.textContent||_(E)).indexOf($)>-1}}),lang:Fe(function($){return uf.test($||"")||Pt.error("unsupported lang: "+$),$=$.replace(en,nn).toLowerCase(),function(E){var M;do if(M=ft?E.lang:E.getAttribute("xml:lang")||E.getAttribute("lang"))return M=M.toLowerCase(),M===$||M.indexOf($+"-")===0;while((E=E.parentNode)&&E.nodeType===1);return!1}}),target:function($){var E=c.location&&c.location.hash;return E&&E.slice(1)===$.id},root:function($){return $===rt},focus:function($){return $===B.activeElement&&(!B.hasFocus||B.hasFocus())&&!!($.type||$.href||~$.tabIndex)},enabled:Ss(!1),disabled:Ss(!0),checked:function($){var E=$.nodeName.toLowerCase();return E==="input"&&!!$.checked||E==="option"&&!!$.selected},selected:function($){return $.parentNode&&$.parentNode.selectedIndex,$.selected===!0},empty:function($){for($=$.firstChild;$;$=$.nextSibling)if($.nodeType<6)return!1;return!0},parent:function($){return!x.pseudos.empty($)},header:function($){return hf.test($.nodeName)},input:function($){return ff.test($.nodeName)},button:function($){var E=$.nodeName.toLowerCase();return E==="input"&&$.type==="button"||E==="button"},text:function($){var E;return $.nodeName.toLowerCase()==="input"&&$.type==="text"&&((E=$.getAttribute("type"))==null||E.toLowerCase()==="text")},first:Cn(function(){return[0]}),last:Cn(function($,E){return[E-1]}),eq:Cn(function($,E,M){return[M<0?M+E:M]}),even:Cn(function($,E){for(var M=0;M<E;M+=2)$.push(M);return $}),odd:Cn(function($,E){for(var M=1;M<E;M+=2)$.push(M);return $}),lt:Cn(function($,E,M){for(var z=M<0?M+E:M>E?E:M;--z>=0;)$.push(z);return $}),gt:Cn(function($,E,M){for(var z=M<0?M+E:M;++z<E;)$.push(z);return $})}},x.pseudos.nth=x.pseudos.eq;for(f in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[f]=pf(f);for(f in{submit:!0,reset:!0})x.pseudos[f]=vf(f);function ks(){}ks.prototype=x.filters=x.pseudos,x.setFilters=new ks,w=Pt.tokenize=function($,E){var M,z,N,Y,q,Q,tt,ot=vi[$+" "];if(ot)return E?0:ot.slice(0);for(q=$,Q=[],tt=x.preFilter;q;){(!M||(z=of.exec(q)))&&(z&&(q=q.slice(z[0].length)||q),Q.push(N=[])),M=!1,(z=Ts.exec(q))&&(M=z.shift(),N.push({value:M,type:z[0].replace(Zi," ")}),q=q.slice(M.length));for(Y in x.filter)(z=Ki[Y].exec(q))&&(!tt[Y]||(z=tt[Y](z)))&&(M=z.shift(),N.push({value:M,type:Y,matches:z}),q=q.slice(M.length));if(!M)break}return E?q.length:q?Pt.error($):vi($,Q).slice(0)};function Ji($){for(var E=0,M=$.length,z="";E<M;E++)z+=$[E].value;return z}function tr($,E,M){var z=E.dir,N=E.next,Y=N||z,q=M&&Y==="parentNode",Q=Ct++;return E.first?function(tt,ot,at){for(;tt=tt[z];)if(tt.nodeType===1||q)return $(tt,ot,at);return!1}:function(tt,ot,at){var ct,xt,Ot,st=[we,Q];if(at){for(;tt=tt[z];)if((tt.nodeType===1||q)&&$(tt,ot,at))return!0}else for(;tt=tt[z];)if(tt.nodeType===1||q)if(Ot=tt[Nt]||(tt[Nt]={}),xt=Ot[tt.uniqueID]||(Ot[tt.uniqueID]={}),N&&N===tt.nodeName.toLowerCase())tt=tt[z]||tt;else{if((ct=xt[Y])&&ct[0]===we&&ct[1]===Q)return st[2]=ct[2];if(xt[Y]=st,st[2]=$(tt,ot,at))return!0}return!1}}function da($){return $.length>1?function(E,M,z){for(var N=$.length;N--;)if(!$[N](E,M,z))return!1;return!0}:$[0]}function xf($,E,M){for(var z=0,N=E.length;z<N;z++)Pt($,E[z],M);return M}function er($,E,M,z,N){for(var Y,q=[],Q=0,tt=$.length,ot=E!=null;Q<tt;Q++)(Y=$[Q])&&(!M||M(Y,z,N))&&(q.push(Y),ot&&E.push(Q));return q}function ga($,E,M,z,N,Y){return z&&!z[Nt]&&(z=ga(z)),N&&!N[Nt]&&(N=ga(N,Y)),Fe(function(q,Q,tt,ot){var at,ct,xt,Ot=[],st=[],ae=Q.length,de=q||xf(E||"*",tt.nodeType?[tt]:tt,[]),Le=$&&(q||!E)?er(de,Ot,$,tt,ot):de,Wt=M?N||(q?$:ae||z)?[]:Q:Le;if(M&&M(Le,Wt,tt,ot),z)for(at=er(Wt,st),z(at,[],tt,ot),ct=at.length;ct--;)(xt=at[ct])&&(Wt[st[ct]]=!(Le[st[ct]]=xt));if(q){if(N||$){if(N){for(at=[],ct=Wt.length;ct--;)(xt=Wt[ct])&&at.push(Le[ct]=xt);N(null,Wt=[],at,ot)}for(ct=Wt.length;ct--;)(xt=Wt[ct])&&(at=N?$n(q,xt):Ot[ct])>-1&&(q[at]=!(Q[at]=xt))}}else Wt=er(Wt===Q?Wt.splice(ae,Wt.length):Wt),N?N(null,Q,Wt,ot):dn.apply(Q,Wt)})}function pa($){for(var E,M,z,N=$.length,Y=x.relative[$[0].type],q=Y||x.relative[" "],Q=Y?1:0,tt=tr(function(ct){return ct===E},q,!0),ot=tr(function(ct){return $n(E,ct)>-1},q,!0),at=[function(ct,xt,Ot){var st=!Y&&(Ot||xt!==I)||((E=xt).nodeType?tt(ct,xt,Ot):ot(ct,xt,Ot));return E=null,st}];Q<N;Q++)if(M=x.relative[$[Q].type])at=[tr(da(at),M)];else{if(M=x.filter[$[Q].type].apply(null,$[Q].matches),M[Nt]){for(z=++Q;z<N&&!x.relative[$[z].type];z++);return ga(Q>1&&da(at),Q>1&&Ji($.slice(0,Q-1).concat({value:$[Q-2].type===" "?"*":""})).replace(Zi,"$1"),M,Q<z&&pa($.slice(Q,z)),z<N&&pa($=$.slice(z)),z<N&&Ji($))}at.push(M)}return da(at)}function yf($,E){var M=E.length>0,z=$.length>0,N=function(Y,q,Q,tt,ot){var at,ct,xt,Ot=0,st="0",ae=Y&&[],de=[],Le=I,Wt=Y||z&&x.find.TAG("*",ot),yi=we+=Le==null?1:Math.random()||.1,mi=Wt.length;for(ot&&(I=q==B||q||ot);st!==mi&&(at=Wt[st])!=null;st++){if(z&&at){for(ct=0,!q&&at.ownerDocument!=B&&(O(at),Q=!ft);xt=$[ct++];)if(xt(at,q||B,Q)){tt.push(at);break}ot&&(we=yi)}M&&((at=!xt&&at)&&Ot--,Y&&ae.push(at))}if(Ot+=st,M&&st!==Ot){for(ct=0;xt=E[ct++];)xt(ae,de,q,Q);if(Y){if(Ot>0)for(;st--;)ae[st]||de[st]||(de[st]=hn.call(tt));de=er(de)}dn.apply(tt,de),ot&&!Y&&de.length>0&&Ot+E.length>1&&Pt.uniqueSort(tt)}return ot&&(we=yi,I=Le),ae};return M?Fe(N):N}return R=Pt.compile=function($,E){var M,z=[],N=[],Y=Gi[$+" "];if(!Y){for(E||(E=w($)),M=E.length;M--;)Y=pa(E[M]),Y[Nt]?z.push(Y):N.push(Y);Y=Gi($,yf(N,z)),Y.selector=$}return Y},k=Pt.select=function($,E,M,z){var N,Y,q,Q,tt,ot=typeof $=="function"&&$,at=!z&&w($=ot.selector||$);if(M=M||[],at.length===1){if(Y=at[0]=at[0].slice(0),Y.length>2&&(q=Y[0]).type==="ID"&&E.nodeType===9&&ft&&x.relative[Y[1].type]){if(E=(x.find.ID(q.matches[0].replace(en,nn),E)||[])[0],E)ot&&(E=E.parentNode);else return M;$=$.slice(Y.shift().value.length)}for(N=Ki.needsContext.test($)?0:Y.length;N--&&(q=Y[N],!x.relative[Q=q.type]);)if((tt=x.find[Q])&&(z=tt(q.matches[0].replace(en,nn),la.test(Y[0].type)&&ha(E.parentNode)||E))){if(Y.splice(N,1),$=z.length&&Ji(Y),!$)return dn.apply(M,z),M;break}}return(ot||R($,at))(z,E,!ft,M,!E||la.test($)&&ha(E.parentNode)||E),M},p.sortStable=Nt.split("").sort(Tn).join("")===Nt,p.detectDuplicates=!!j,O(),p.sortDetached=Ie(function($){return $.compareDocumentPosition(B.createElement("fieldset"))&1}),Ie(function($){return $.innerHTML="<a href='#'></a>",$.firstChild.getAttribute("href")==="#"})||fa("type|href|height|width",function($,E,M){if(!M)return $.getAttribute(E,E.toLowerCase()==="type"?1:2)}),(!p.attributes||!Ie(function($){return $.innerHTML="<input/>",$.firstChild.setAttribute("value",""),$.firstChild.getAttribute("value")===""}))&&fa("value",function($,E,M){if(!M&&$.nodeName.toLowerCase()==="input")return $.defaultValue}),Ie(function($){return $.getAttribute("disabled")==null})||fa(ca,function($,E,M){var z;if(!M)return $[E]===!0?E.toLowerCase():(z=$.getAttributeNode(E))&&z.specified?z.value:null}),Pt}(e);g.find=H,g.expr=H.selectors,g.expr[":"]=g.expr.pseudos,g.uniqueSort=g.unique=H.uniqueSort,g.text=H.getText,g.isXMLDoc=H.isXML,g.contains=H.contains,g.escapeSelector=H.escape;var K=function(c,f,p){for(var x=[],_=p!==void 0;(c=c[f])&&c.nodeType!==9;)if(c.nodeType===1){if(_&&g(c).is(p))break;x.push(c)}return x},W=function(c,f){for(var p=[];c;c=c.nextSibling)c.nodeType===1&&c!==f&&p.push(c);return p},V=g.expr.match.needsContext;function nt(c,f){return c.nodeName&&c.nodeName.toLowerCase()===f.toLowerCase()}var U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(c,f,p){return T(f)?g.grep(c,function(x,_){return!!f.call(x,_,x)!==p}):f.nodeType?g.grep(c,function(x){return x===f!==p}):typeof f!="string"?g.grep(c,function(x){return u.call(f,x)>-1!==p}):g.filter(f,c,p)}g.filter=function(c,f,p){var x=f[0];return p&&(c=":not("+c+")"),f.length===1&&x.nodeType===1?g.find.matchesSelector(x,c)?[x]:[]:g.find.matches(c,g.grep(f,function(_){return _.nodeType===1}))},g.fn.extend({find:function(c){var f,p,x=this.length,_=this;if(typeof c!="string")return this.pushStack(g(c).filter(function(){for(f=0;f<x;f++)if(g.contains(_[f],this))return!0}));for(p=this.pushStack([]),f=0;f<x;f++)g.find(c,_[f],p);return x>1?g.uniqueSort(p):p},filter:function(c){return this.pushStack(G(this,c||[],!1))},not:function(c){return this.pushStack(G(this,c||[],!0))},is:function(c){return!!G(this,typeof c=="string"&&V.test(c)?g(c):c||[],!1).length}});var vt,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ut=g.fn.init=function(c,f,p){var x,_;if(!c)return this;if(p=p||vt,typeof c=="string")if(c[0]==="<"&&c[c.length-1]===">"&&c.length>=3?x=[null,c,null]:x=mt.exec(c),x&&(x[1]||!f))if(x[1]){if(f=f instanceof g?f[0]:f,g.merge(this,g.parseHTML(x[1],f&&f.nodeType?f.ownerDocument||f:A,!0)),U.test(x[1])&&g.isPlainObject(f))for(x in f)T(this[x])?this[x](f[x]):this.attr(x,f[x]);return this}else return _=A.getElementById(x[2]),_&&(this[0]=_,this.length=1),this;else return!f||f.jquery?(f||p).find(c):this.constructor(f).find(c);else{if(c.nodeType)return this[0]=c,this.length=1,this;if(T(c))return p.ready!==void 0?p.ready(c):c(g)}return g.makeArray(c,this)};ut.prototype=g.fn,vt=g(A);var Rt=/^(?:parents|prev(?:Until|All))/,gt={children:!0,contents:!0,next:!0,prev:!0};g.fn.extend({has:function(c){var f=g(c,this),p=f.length;return this.filter(function(){for(var x=0;x<p;x++)if(g.contains(this,f[x]))return!0})},closest:function(c,f){var p,x=0,_=this.length,b=[],w=typeof c!="string"&&g(c);if(!V.test(c)){for(;x<_;x++)for(p=this[x];p&&p!==f;p=p.parentNode)if(p.nodeType<11&&(w?w.index(p)>-1:p.nodeType===1&&g.find.matchesSelector(p,c))){b.push(p);break}}return this.pushStack(b.length>1?g.uniqueSort(b):b)},index:function(c){return c?typeof c=="string"?u.call(g(c),this[0]):u.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,f){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(c,f))))},addBack:function(c){return this.add(c==null?this.prevObject:this.prevObject.filter(c))}});function It(c,f){for(;(c=c[f])&&c.nodeType!==1;);return c}g.each({parent:function(c){var f=c.parentNode;return f&&f.nodeType!==11?f:null},parents:function(c){return K(c,"parentNode")},parentsUntil:function(c,f,p){return K(c,"parentNode",p)},next:function(c){return It(c,"nextSibling")},prev:function(c){return It(c,"previousSibling")},nextAll:function(c){return K(c,"nextSibling")},prevAll:function(c){return K(c,"previousSibling")},nextUntil:function(c,f,p){return K(c,"nextSibling",p)},prevUntil:function(c,f,p){return K(c,"previousSibling",p)},siblings:function(c){return W((c.parentNode||{}).firstChild,c)},children:function(c){return W(c.firstChild)},contents:function(c){return c.contentDocument!=null&&r(c.contentDocument)?c.contentDocument:(nt(c,"template")&&(c=c.content||c),g.merge([],c.childNodes))}},function(c,f){g.fn[c]=function(p,x){var _=g.map(this,f,p);return c.slice(-5)!=="Until"&&(x=p),x&&typeof x=="string"&&(_=g.filter(x,_)),this.length>1&&(gt[c]||g.uniqueSort(_),Rt.test(c)&&_.reverse()),this.pushStack(_)}});var Dt=/[^\x20\t\r\n\f]+/g;function fe(c){var f={};return g.each(c.match(Dt)||[],function(p,x){f[x]=!0}),f}g.Callbacks=function(c){c=typeof c=="string"?fe(c):g.extend({},c);var f,p,x,_,b=[],w=[],R=-1,k=function(){for(_=_||c.once,x=f=!0;w.length;R=-1)for(p=w.shift();++R<b.length;)b[R].apply(p[0],p[1])===!1&&c.stopOnFalse&&(R=b.length,p=!1);c.memory||(p=!1),f=!1,_&&(p?b=[]:b="")},I={add:function(){return b&&(p&&!f&&(R=b.length-1,w.push(p)),function X(j){g.each(j,function(O,B){T(B)?(!c.unique||!I.has(B))&&b.push(B):B&&B.length&&L(B)!=="string"&&X(B)})}(arguments),p&&!f&&k()),this},remove:function(){return g.each(arguments,function(X,j){for(var O;(O=g.inArray(j,b,O))>-1;)b.splice(O,1),O<=R&&R--}),this},has:function(X){return X?g.inArray(X,b)>-1:b.length>0},empty:function(){return b&&(b=[]),this},disable:function(){return _=w=[],b=p="",this},disabled:function(){return!b},lock:function(){return _=w=[],!p&&!f&&(b=p=""),this},locked:function(){return!!_},fireWith:function(X,j){return _||(j=j||[],j=[X,j.slice?j.slice():j],w.push(j),f||k()),this},fire:function(){return I.fireWith(this,arguments),this},fired:function(){return!!x}};return I};function ee(c){return c}function bt(c){throw c}function Vt(c,f,p,x){var _;try{c&&T(_=c.promise)?_.call(c).done(f).fail(p):c&&T(_=c.then)?_.call(c,f,p):f.apply(void 0,[c].slice(x))}catch(b){p.apply(void 0,[b])}}g.extend({Deferred:function(c){var f=[["notify","progress",g.Callbacks("memory"),g.Callbacks("memory"),2],["resolve","done",g.Callbacks("once memory"),g.Callbacks("once memory"),0,"resolved"],["reject","fail",g.Callbacks("once memory"),g.Callbacks("once memory"),1,"rejected"]],p="pending",x={state:function(){return p},always:function(){return _.done(arguments).fail(arguments),this},catch:function(b){return x.then(null,b)},pipe:function(){var b=arguments;return g.Deferred(function(w){g.each(f,function(R,k){var I=T(b[k[4]])&&b[k[4]];_[k[1]](function(){var X=I&&I.apply(this,arguments);X&&T(X.promise)?X.promise().progress(w.notify).done(w.resolve).fail(w.reject):w[k[0]+"With"](this,I?[X]:arguments)})}),b=null}).promise()},then:function(b,w,R){var k=0;function I(X,j,O,B){return function(){var rt=this,ft=arguments,it=function(){var te,Ee;if(!(X<k)){if(te=O.apply(rt,ft),te===j.promise())throw new TypeError("Thenable self-resolution");Ee=te&&(typeof te=="object"||typeof te=="function")&&te.then,T(Ee)?B?Ee.call(te,I(k,j,ee,B),I(k,j,bt,B)):(k++,Ee.call(te,I(k,j,ee,B),I(k,j,bt,B),I(k,j,ee,j.notifyWith))):(O!==ee&&(rt=void 0,ft=[te]),(B||j.resolveWith)(rt,ft))}},re=B?it:function(){try{it()}catch(te){g.Deferred.exceptionHook&&g.Deferred.exceptionHook(te,re.stackTrace),X+1>=k&&(O!==bt&&(rt=void 0,ft=[te]),j.rejectWith(rt,ft))}};X?re():(g.Deferred.getStackHook&&(re.stackTrace=g.Deferred.getStackHook()),e.setTimeout(re))}}return g.Deferred(function(X){f[0][3].add(I(0,X,T(R)?R:ee,X.notifyWith)),f[1][3].add(I(0,X,T(b)?b:ee)),f[2][3].add(I(0,X,T(w)?w:bt))}).promise()},promise:function(b){return b!=null?g.extend(b,x):x}},_={};return g.each(f,function(b,w){var R=w[2],k=w[5];x[w[1]]=R.add,k&&R.add(function(){p=k},f[3-b][2].disable,f[3-b][3].disable,f[0][2].lock,f[0][3].lock),R.add(w[3].fire),_[w[0]]=function(){return _[w[0]+"With"](this===_?void 0:this,arguments),this},_[w[0]+"With"]=R.fireWith}),x.promise(_),c&&c.call(_,_),_},when:function(c){var f=arguments.length,p=f,x=Array(p),_=a.call(arguments),b=g.Deferred(),w=function(R){return function(k){x[R]=this,_[R]=arguments.length>1?a.call(arguments):k,--f||b.resolveWith(x,_)}};if(f<=1&&(Vt(c,b.done(w(p)).resolve,b.reject,!f),b.state()==="pending"||T(_[p]&&_[p].then)))return b.then();for(;p--;)Vt(_[p],w(p),b.reject);return b.promise()}});var he=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;g.Deferred.exceptionHook=function(c,f){e.console&&e.console.warn&&c&&he.test(c.name)&&e.console.warn("jQuery.Deferred exception: "+c.message,c.stack,f)},g.readyException=function(c){e.setTimeout(function(){throw c})};var ne=g.Deferred();g.fn.ready=function(c){return ne.then(c).catch(function(f){g.readyException(f)}),this},g.extend({isReady:!1,readyWait:1,ready:function(c){(c===!0?--g.readyWait:g.isReady)||(g.isReady=!0,!(c!==!0&&--g.readyWait>0)&&ne.resolveWith(A,[g]))}}),g.ready.then=ne.then;function ye(){A.removeEventListener("DOMContentLoaded",ye),e.removeEventListener("load",ye),g.ready()}A.readyState==="complete"||A.readyState!=="loading"&&!A.documentElement.doScroll?e.setTimeout(g.ready):(A.addEventListener("DOMContentLoaded",ye),e.addEventListener("load",ye));var J=function(c,f,p,x,_,b,w){var R=0,k=c.length,I=p==null;if(L(p)==="object"){_=!0;for(R in p)J(c,f,R,p[R],!0,b,w)}else if(x!==void 0&&(_=!0,T(x)||(w=!0),I&&(w?(f.call(c,x),f=null):(I=f,f=function(X,j,O){return I.call(g(X),O)})),f))for(;R<k;R++)f(c[R],p,w?x:x.call(c[R],R,f(c[R],p)));return _?c:I?f.call(c):k?f(c[0],p):b},ht=/^-ms-/,_t=/-([a-z])/g;function Z(c,f){return f.toUpperCase()}function Bt(c){return c.replace(ht,"ms-").replace(_t,Z)}var kt=function(c){return c.nodeType===1||c.nodeType===9||!+c.nodeType};function ie(){this.expando=g.expando+ie.uid++}ie.uid=1,ie.prototype={cache:function(c){var f=c[this.expando];return f||(f={},kt(c)&&(c.nodeType?c[this.expando]=f:Object.defineProperty(c,this.expando,{value:f,configurable:!0}))),f},set:function(c,f,p){var x,_=this.cache(c);if(typeof f=="string")_[Bt(f)]=p;else for(x in f)_[Bt(x)]=f[x];return _},get:function(c,f){return f===void 0?this.cache(c):c[this.expando]&&c[this.expando][Bt(f)]},access:function(c,f,p){return f===void 0||f&&typeof f=="string"&&p===void 0?this.get(c,f):(this.set(c,f,p),p!==void 0?p:f)},remove:function(c,f){var p,x=c[this.expando];if(x!==void 0){if(f!==void 0)for(Array.isArray(f)?f=f.map(Bt):(f=Bt(f),f=f in x?[f]:f.match(Dt)||[]),p=f.length;p--;)delete x[f[p]];(f===void 0||g.isEmptyObject(x))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var f=c[this.expando];return f!==void 0&&!g.isEmptyObject(f)}};var et=new ie,Gt=new ie,Yi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xl=/[A-Z]/g;function yl(c){return c==="true"?!0:c==="false"?!1:c==="null"?null:c===+c+""?+c:Yi.test(c)?JSON.parse(c):c}function Ho(c,f,p){var x;if(p===void 0&&c.nodeType===1)if(x="data-"+f.replace(xl,"-$&").toLowerCase(),p=c.getAttribute(x),typeof p=="string"){try{p=yl(p)}catch{}Gt.set(c,f,p)}else p=void 0;return p}g.extend({hasData:function(c){return Gt.hasData(c)||et.hasData(c)},data:function(c,f,p){return Gt.access(c,f,p)},removeData:function(c,f){Gt.remove(c,f)},_data:function(c,f,p){return et.access(c,f,p)},_removeData:function(c,f){et.remove(c,f)}}),g.fn.extend({data:function(c,f){var p,x,_,b=this[0],w=b&&b.attributes;if(c===void 0){if(this.length&&(_=Gt.get(b),b.nodeType===1&&!et.get(b,"hasDataAttrs"))){for(p=w.length;p--;)w[p]&&(x=w[p].name,x.indexOf("data-")===0&&(x=Bt(x.slice(5)),Ho(b,x,_[x])));et.set(b,"hasDataAttrs",!0)}return _}return typeof c=="object"?this.each(function(){Gt.set(this,c)}):J(this,function(R){var k;if(b&&R===void 0)return k=Gt.get(b,c),k!==void 0||(k=Ho(b,c),k!==void 0)?k:void 0;this.each(function(){Gt.set(this,c,R)})},null,f,arguments.length>1,null,!0)},removeData:function(c){return this.each(function(){Gt.remove(this,c)})}}),g.extend({queue:function(c,f,p){var x;if(c)return f=(f||"fx")+"queue",x=et.get(c,f),p&&(!x||Array.isArray(p)?x=et.access(c,f,g.makeArray(p)):x.push(p)),x||[]},dequeue:function(c,f){f=f||"fx";var p=g.queue(c,f),x=p.length,_=p.shift(),b=g._queueHooks(c,f),w=function(){g.dequeue(c,f)};_==="inprogress"&&(_=p.shift(),x--),_&&(f==="fx"&&p.unshift("inprogress"),delete b.stop,_.call(c,w,b)),!x&&b&&b.empty.fire()},_queueHooks:function(c,f){var p=f+"queueHooks";return et.get(c,p)||et.access(c,p,{empty:g.Callbacks("once memory").add(function(){et.remove(c,[f+"queue",p])})})}}),g.fn.extend({queue:function(c,f){var p=2;return typeof c!="string"&&(f=c,c="fx",p--),arguments.length<p?g.queue(this[0],c):f===void 0?this:this.each(function(){var x=g.queue(this,c,f);g._queueHooks(this,c),c==="fx"&&x[0]!=="inprogress"&&g.dequeue(this,c)})},dequeue:function(c){return this.each(function(){g.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,f){var p,x=1,_=g.Deferred(),b=this,w=this.length,R=function(){--x||_.resolveWith(b,[b])};for(typeof c!="string"&&(f=c,c=void 0),c=c||"fx";w--;)p=et.get(b[w],c+"queueHooks"),p&&p.empty&&(x++,p.empty.add(R));return R(),_.promise(f)}});var Yo=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,li=new RegExp("^(?:([+-])=|)("+Yo+")([a-z%]*)$","i"),tn=["Top","Right","Bottom","Left"],mn=A.documentElement,Bn=function(c){return g.contains(c.ownerDocument,c)},ml={composed:!0};mn.getRootNode&&(Bn=function(c){return g.contains(c.ownerDocument,c)||c.getRootNode(ml)===c.ownerDocument});var Ui=function(c,f){return c=f||c,c.style.display==="none"||c.style.display===""&&Bn(c)&&g.css(c,"display")==="none"};function Uo(c,f,p,x){var _,b,w=20,R=x?function(){return x.cur()}:function(){return g.css(c,f,"")},k=R(),I=p&&p[3]||(g.cssNumber[f]?"":"px"),X=c.nodeType&&(g.cssNumber[f]||I!=="px"&&+k)&&li.exec(g.css(c,f));if(X&&X[3]!==I){for(k=k/2,I=I||X[3],X=+k||1;w--;)g.style(c,f,X+I),(1-b)*(1-(b=R()/k||.5))<=0&&(w=0),X=X/b;X=X*2,g.style(c,f,X+I),p=p||[]}return p&&(X=+X||+k||0,_=p[1]?X+(p[1]+1)*p[2]:+p[2],x&&(x.unit=I,x.start=X,x.end=_)),_}var Vo={};function _l(c){var f,p=c.ownerDocument,x=c.nodeName,_=Vo[x];return _||(f=p.body.appendChild(p.createElement(x)),_=g.css(f,"display"),f.parentNode.removeChild(f),_==="none"&&(_="block"),Vo[x]=_,_)}function zn(c,f){for(var p,x,_=[],b=0,w=c.length;b<w;b++)x=c[b],x.style&&(p=x.style.display,f?(p==="none"&&(_[b]=et.get(x,"display")||null,_[b]||(x.style.display="")),x.style.display===""&&Ui(x)&&(_[b]=_l(x))):p!=="none"&&(_[b]="none",et.set(x,"display",p)));for(b=0;b<w;b++)_[b]!=null&&(c[b].style.display=_[b]);return c}g.fn.extend({show:function(){return zn(this,!0)},hide:function(){return zn(this)},toggle:function(c){return typeof c=="boolean"?c?this.show():this.hide():this.each(function(){Ui(this)?g(this).show():g(this).hide()})}});var fi=/^(?:checkbox|radio)$/i,Wo=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,jo=/^$|^module$|\/(?:java|ecma)script/i;(function(){var c=A.createDocumentFragment(),f=c.appendChild(A.createElement("div")),p=A.createElement("input");p.setAttribute("type","radio"),p.setAttribute("checked","checked"),p.setAttribute("name","t"),f.appendChild(p),m.checkClone=f.cloneNode(!0).cloneNode(!0).lastChild.checked,f.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!f.cloneNode(!0).lastChild.defaultValue,f.innerHTML="<option></option>",m.option=!!f.lastChild})();var De={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};De.tbody=De.tfoot=De.colgroup=De.caption=De.thead,De.th=De.td,m.option||(De.optgroup=De.option=[1,"<select multiple='multiple'>","</select>"]);function be(c,f){var p;return typeof c.getElementsByTagName<"u"?p=c.getElementsByTagName(f||"*"):typeof c.querySelectorAll<"u"?p=c.querySelectorAll(f||"*"):p=[],f===void 0||f&&nt(c,f)?g.merge([c],p):p}function qr(c,f){for(var p=0,x=c.length;p<x;p++)et.set(c[p],"globalEval",!f||et.get(f[p],"globalEval"))}var bl=/<|&#?\w+;/;function qo(c,f,p,x,_){for(var b,w,R,k,I,X,j=f.createDocumentFragment(),O=[],B=0,rt=c.length;B<rt;B++)if(b=c[B],b||b===0)if(L(b)==="object")g.merge(O,b.nodeType?[b]:b);else if(!bl.test(b))O.push(f.createTextNode(b));else{for(w=w||j.appendChild(f.createElement("div")),R=(Wo.exec(b)||["",""])[1].toLowerCase(),k=De[R]||De._default,w.innerHTML=k[1]+g.htmlPrefilter(b)+k[2],X=k[0];X--;)w=w.lastChild;g.merge(O,w.childNodes),w=j.firstChild,w.textContent=""}for(j.textContent="",B=0;b=O[B++];){if(x&&g.inArray(b,x)>-1){_&&_.push(b);continue}if(I=Bn(b),w=be(j.appendChild(b),"script"),I&&qr(w),p)for(X=0;b=w[X++];)jo.test(b.type||"")&&p.push(b)}return j}var Go=/^([^.]*)(?:\.(.+)|)/;function Hn(){return!0}function Yn(){return!1}function Tl(c,f){return c===wl()==(f==="focus")}function wl(){try{return A.activeElement}catch{}}function Gr(c,f,p,x,_,b){var w,R;if(typeof f=="object"){typeof p!="string"&&(x=x||p,p=void 0);for(R in f)Gr(c,R,p,x,f[R],b);return c}if(x==null&&_==null?(_=p,x=p=void 0):_==null&&(typeof p=="string"?(_=x,x=void 0):(_=x,x=p,p=void 0)),_===!1)_=Yn;else if(!_)return c;return b===1&&(w=_,_=function(k){return g().off(k),w.apply(this,arguments)},_.guid=w.guid||(w.guid=g.guid++)),c.each(function(){g.event.add(this,f,_,x,p)})}g.event={global:{},add:function(c,f,p,x,_){var b,w,R,k,I,X,j,O,B,rt,ft,it=et.get(c);if(kt(c))for(p.handler&&(b=p,p=b.handler,_=b.selector),_&&g.find.matchesSelector(mn,_),p.guid||(p.guid=g.guid++),(k=it.events)||(k=it.events=Object.create(null)),(w=it.handle)||(w=it.handle=function(re){return typeof g<"u"&&g.event.triggered!==re.type?g.event.dispatch.apply(c,arguments):void 0}),f=(f||"").match(Dt)||[""],I=f.length;I--;)R=Go.exec(f[I])||[],B=ft=R[1],rt=(R[2]||"").split(".").sort(),B&&(j=g.event.special[B]||{},B=(_?j.delegateType:j.bindType)||B,j=g.event.special[B]||{},X=g.extend({type:B,origType:ft,data:x,handler:p,guid:p.guid,selector:_,needsContext:_&&g.expr.match.needsContext.test(_),namespace:rt.join(".")},b),(O=k[B])||(O=k[B]=[],O.delegateCount=0,(!j.setup||j.setup.call(c,x,rt,w)===!1)&&c.addEventListener&&c.addEventListener(B,w)),j.add&&(j.add.call(c,X),X.handler.guid||(X.handler.guid=p.guid)),_?O.splice(O.delegateCount++,0,X):O.push(X),g.event.global[B]=!0)},remove:function(c,f,p,x,_){var b,w,R,k,I,X,j,O,B,rt,ft,it=et.hasData(c)&&et.get(c);if(!(!it||!(k=it.events))){for(f=(f||"").match(Dt)||[""],I=f.length;I--;){if(R=Go.exec(f[I])||[],B=ft=R[1],rt=(R[2]||"").split(".").sort(),!B){for(B in k)g.event.remove(c,B+f[I],p,x,!0);continue}for(j=g.event.special[B]||{},B=(x?j.delegateType:j.bindType)||B,O=k[B]||[],R=R[2]&&new RegExp("(^|\\.)"+rt.join("\\.(?:.*\\.|)")+"(\\.|$)"),w=b=O.length;b--;)X=O[b],(_||ft===X.origType)&&(!p||p.guid===X.guid)&&(!R||R.test(X.namespace))&&(!x||x===X.selector||x==="**"&&X.selector)&&(O.splice(b,1),X.selector&&O.delegateCount--,j.remove&&j.remove.call(c,X));w&&!O.length&&((!j.teardown||j.teardown.call(c,rt,it.handle)===!1)&&g.removeEvent(c,B,it.handle),delete k[B])}g.isEmptyObject(k)&&et.remove(c,"handle events")}},dispatch:function(c){var f,p,x,_,b,w,R=new Array(arguments.length),k=g.event.fix(c),I=(et.get(this,"events")||Object.create(null))[k.type]||[],X=g.event.special[k.type]||{};for(R[0]=k,f=1;f<arguments.length;f++)R[f]=arguments[f];if(k.delegateTarget=this,!(X.preDispatch&&X.preDispatch.call(this,k)===!1)){for(w=g.event.handlers.call(this,k,I),f=0;(_=w[f++])&&!k.isPropagationStopped();)for(k.currentTarget=_.elem,p=0;(b=_.handlers[p++])&&!k.isImmediatePropagationStopped();)(!k.rnamespace||b.namespace===!1||k.rnamespace.test(b.namespace))&&(k.handleObj=b,k.data=b.data,x=((g.event.special[b.origType]||{}).handle||b.handler).apply(_.elem,R),x!==void 0&&(k.result=x)===!1&&(k.preventDefault(),k.stopPropagation()));return X.postDispatch&&X.postDispatch.call(this,k),k.result}},handlers:function(c,f){var p,x,_,b,w,R=[],k=f.delegateCount,I=c.target;if(k&&I.nodeType&&!(c.type==="click"&&c.button>=1)){for(;I!==this;I=I.parentNode||this)if(I.nodeType===1&&!(c.type==="click"&&I.disabled===!0)){for(b=[],w={},p=0;p<k;p++)x=f[p],_=x.selector+" ",w[_]===void 0&&(w[_]=x.needsContext?g(_,this).index(I)>-1:g.find(_,this,null,[I]).length),w[_]&&b.push(x);b.length&&R.push({elem:I,handlers:b})}}return I=this,k<f.length&&R.push({elem:I,handlers:f.slice(k)}),R},addProp:function(c,f){Object.defineProperty(g.Event.prototype,c,{enumerable:!0,configurable:!0,get:T(f)?function(){if(this.originalEvent)return f(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[c]},set:function(p){Object.defineProperty(this,c,{enumerable:!0,configurable:!0,writable:!0,value:p})}})},fix:function(c){return c[g.expando]?c:new g.Event(c)},special:{load:{noBubble:!0},click:{setup:function(c){var f=this||c;return fi.test(f.type)&&f.click&&nt(f,"input")&&Vi(f,"click",Hn),!1},trigger:function(c){var f=this||c;return fi.test(f.type)&&f.click&&nt(f,"input")&&Vi(f,"click"),!0},_default:function(c){var f=c.target;return fi.test(f.type)&&f.click&&nt(f,"input")&&et.get(f,"click")||nt(f,"a")}},beforeunload:{postDispatch:function(c){c.result!==void 0&&c.originalEvent&&(c.originalEvent.returnValue=c.result)}}}};function Vi(c,f,p){if(!p){et.get(c,f)===void 0&&g.event.add(c,f,Hn);return}et.set(c,f,!1),g.event.add(c,f,{namespace:!1,handler:function(x){var _,b,w=et.get(this,f);if(x.isTrigger&1&&this[f]){if(w.length)(g.event.special[f]||{}).delegateType&&x.stopPropagation();else if(w=a.call(arguments),et.set(this,f,w),_=p(this,f),this[f](),b=et.get(this,f),w!==b||_?et.set(this,f,!1):b={},w!==b)return x.stopImmediatePropagation(),x.preventDefault(),b&&b.value}else w.length&&(et.set(this,f,{value:g.event.trigger(g.extend(w[0],g.Event.prototype),w.slice(1),this)}),x.stopImmediatePropagation())}})}g.removeEvent=function(c,f,p){c.removeEventListener&&c.removeEventListener(f,p)},g.Event=function(c,f){if(!(this instanceof g.Event))return new g.Event(c,f);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||c.defaultPrevented===void 0&&c.returnValue===!1?Hn:Yn,this.target=c.target&&c.target.nodeType===3?c.target.parentNode:c.target,this.currentTarget=c.currentTarget,this.relatedTarget=c.relatedTarget):this.type=c,f&&g.extend(this,f),this.timeStamp=c&&c.timeStamp||Date.now(),this[g.expando]=!0},g.Event.prototype={constructor:g.Event,isDefaultPrevented:Yn,isPropagationStopped:Yn,isImmediatePropagationStopped:Yn,isSimulated:!1,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=Hn,c&&!this.isSimulated&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=Hn,c&&!this.isSimulated&&c.stopPropagation()},stopImmediatePropagation:function(){var c=this.originalEvent;this.isImmediatePropagationStopped=Hn,c&&!this.isSimulated&&c.stopImmediatePropagation(),this.stopPropagation()}},g.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},g.event.addProp),g.each({focus:"focusin",blur:"focusout"},function(c,f){g.event.special[c]={setup:function(){return Vi(this,c,Tl),!1},trigger:function(){return Vi(this,c),!0},_default:function(p){return et.get(p.target,c)},delegateType:f}}),g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,f){g.event.special[c]={delegateType:f,bindType:f,handle:function(p){var x,_=this,b=p.relatedTarget,w=p.handleObj;return(!b||b!==_&&!g.contains(_,b))&&(p.type=w.origType,x=w.handler.apply(this,arguments),p.type=f),x}}}),g.fn.extend({on:function(c,f,p,x){return Gr(this,c,f,p,x)},one:function(c,f,p,x){return Gr(this,c,f,p,x,1)},off:function(c,f,p){var x,_;if(c&&c.preventDefault&&c.handleObj)return x=c.handleObj,g(c.delegateTarget).off(x.namespace?x.origType+"."+x.namespace:x.origType,x.selector,x.handler),this;if(typeof c=="object"){for(_ in c)this.off(_,f,c[_]);return this}return(f===!1||typeof f=="function")&&(p=f,f=void 0),p===!1&&(p=Yn),this.each(function(){g.event.remove(this,c,p,f)})}});var $l=/<script|<style|<link/i,Al=/checked\s*(?:[^=]|=\s*.checked.)/i,Cl=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Zo(c,f){return nt(c,"table")&&nt(f.nodeType!==11?f:f.firstChild,"tr")&&g(c).children("tbody")[0]||c}function Sl(c){return c.type=(c.getAttribute("type")!==null)+"/"+c.type,c}function kl(c){return(c.type||"").slice(0,5)==="true/"?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Ko(c,f){var p,x,_,b,w,R,k;if(f.nodeType===1){if(et.hasData(c)&&(b=et.get(c),k=b.events,k)){et.remove(f,"handle events");for(_ in k)for(p=0,x=k[_].length;p<x;p++)g.event.add(f,_,k[_][p])}Gt.hasData(c)&&(w=Gt.access(c),R=g.extend({},w),Gt.set(f,R))}}function El(c,f){var p=f.nodeName.toLowerCase();p==="input"&&fi.test(c.type)?f.checked=c.checked:(p==="input"||p==="textarea")&&(f.defaultValue=c.defaultValue)}function Un(c,f,p,x){f=o(f);var _,b,w,R,k,I,X=0,j=c.length,O=j-1,B=f[0],rt=T(B);if(rt||j>1&&typeof B=="string"&&!m.checkClone&&Al.test(B))return c.each(function(ft){var it=c.eq(ft);rt&&(f[0]=B.call(this,ft,it.html())),Un(it,f,p,x)});if(j&&(_=qo(f,c[0].ownerDocument,!1,c,x),b=_.firstChild,_.childNodes.length===1&&(_=b),b||x)){for(w=g.map(be(_,"script"),Sl),R=w.length;X<j;X++)k=_,X!==O&&(k=g.clone(k,!0,!0),R&&g.merge(w,be(k,"script"))),p.call(c[X],k,X);if(R)for(I=w[w.length-1].ownerDocument,g.map(w,kl),X=0;X<R;X++)k=w[X],jo.test(k.type||"")&&!et.access(k,"globalEval")&&g.contains(I,k)&&(k.src&&(k.type||"").toLowerCase()!=="module"?g._evalUrl&&!k.noModule&&g._evalUrl(k.src,{nonce:k.nonce||k.getAttribute("nonce")},I):D(k.textContent.replace(Cl,""),k,I))}return c}function Qo(c,f,p){for(var x,_=f?g.filter(f,c):c,b=0;(x=_[b])!=null;b++)!p&&x.nodeType===1&&g.cleanData(be(x)),x.parentNode&&(p&&Bn(x)&&qr(be(x,"script")),x.parentNode.removeChild(x));return c}g.extend({htmlPrefilter:function(c){return c},clone:function(c,f,p){var x,_,b,w,R=c.cloneNode(!0),k=Bn(c);if(!m.noCloneChecked&&(c.nodeType===1||c.nodeType===11)&&!g.isXMLDoc(c))for(w=be(R),b=be(c),x=0,_=b.length;x<_;x++)El(b[x],w[x]);if(f)if(p)for(b=b||be(c),w=w||be(R),x=0,_=b.length;x<_;x++)Ko(b[x],w[x]);else Ko(c,R);return w=be(R,"script"),w.length>0&&qr(w,!k&&be(c,"script")),R},cleanData:function(c){for(var f,p,x,_=g.event.special,b=0;(p=c[b])!==void 0;b++)if(kt(p)){if(f=p[et.expando]){if(f.events)for(x in f.events)_[x]?g.event.remove(p,x):g.removeEvent(p,x,f.handle);p[et.expando]=void 0}p[Gt.expando]&&(p[Gt.expando]=void 0)}}}),g.fn.extend({detach:function(c){return Qo(this,c,!0)},remove:function(c){return Qo(this,c)},text:function(c){return J(this,function(f){return f===void 0?g.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=f)})},null,c,arguments.length)},append:function(){return Un(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Zo(this,c);f.appendChild(c)}})},prepend:function(){return Un(this,arguments,function(c){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var f=Zo(this,c);f.insertBefore(c,f.firstChild)}})},before:function(){return Un(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return Un(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,f=0;(c=this[f])!=null;f++)c.nodeType===1&&(g.cleanData(be(c,!1)),c.textContent="");return this},clone:function(c,f){return c=c??!1,f=f??c,this.map(function(){return g.clone(this,c,f)})},html:function(c){return J(this,function(f){var p=this[0]||{},x=0,_=this.length;if(f===void 0&&p.nodeType===1)return p.innerHTML;if(typeof f=="string"&&!$l.test(f)&&!De[(Wo.exec(f)||["",""])[1].toLowerCase()]){f=g.htmlPrefilter(f);try{for(;x<_;x++)p=this[x]||{},p.nodeType===1&&(g.cleanData(be(p,!1)),p.innerHTML=f);p=0}catch{}}p&&this.empty().append(f)},null,c,arguments.length)},replaceWith:function(){var c=[];return Un(this,arguments,function(f){var p=this.parentNode;g.inArray(this,c)<0&&(g.cleanData(be(this)),p&&p.replaceChild(f,this))},c)}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,f){g.fn[c]=function(p){for(var x,_=[],b=g(p),w=b.length-1,R=0;R<=w;R++)x=R===w?this:this.clone(!0),g(b[R])[f](x),s.apply(_,x.get());return this.pushStack(_)}});var Zr=new RegExp("^("+Yo+")(?!px)[a-z%]+$","i"),Kr=/^--/,Wi=function(c){var f=c.ownerDocument.defaultView;return(!f||!f.opener)&&(f=e),f.getComputedStyle(c)},Jo=function(c,f,p){var x,_,b={};for(_ in f)b[_]=c.style[_],c.style[_]=f[_];x=p.call(c);for(_ in f)c.style[_]=b[_];return x},Rl=new RegExp(tn.join("|"),"i"),ts="[\\x20\\t\\r\\n\\f]",Ll=new RegExp("^"+ts+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ts+"+$","g");(function(){function c(){if(I){k.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",I.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mn.appendChild(k).appendChild(I);var X=e.getComputedStyle(I);p=X.top!=="1%",R=f(X.marginLeft)===12,I.style.right="60%",b=f(X.right)===36,x=f(X.width)===36,I.style.position="absolute",_=f(I.offsetWidth/3)===12,mn.removeChild(k),I=null}}function f(X){return Math.round(parseFloat(X))}var p,x,_,b,w,R,k=A.createElement("div"),I=A.createElement("div");I.style&&(I.style.backgroundClip="content-box",I.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle=I.style.backgroundClip==="content-box",g.extend(m,{boxSizingReliable:function(){return c(),x},pixelBoxStyles:function(){return c(),b},pixelPosition:function(){return c(),p},reliableMarginLeft:function(){return c(),R},scrollboxSize:function(){return c(),_},reliableTrDimensions:function(){var X,j,O,B;return w==null&&(X=A.createElement("table"),j=A.createElement("tr"),O=A.createElement("div"),X.style.cssText="position:absolute;left:-11111px;border-collapse:separate",j.style.cssText="border:1px solid",j.style.height="1px",O.style.height="9px",O.style.display="block",mn.appendChild(X).appendChild(j).appendChild(O),B=e.getComputedStyle(j),w=parseInt(B.height,10)+parseInt(B.borderTopWidth,10)+parseInt(B.borderBottomWidth,10)===j.offsetHeight,mn.removeChild(X)),w}}))})();function hi(c,f,p){var x,_,b,w,R=Kr.test(f),k=c.style;return p=p||Wi(c),p&&(w=p.getPropertyValue(f)||p[f],R&&w&&(w=w.replace(Ll,"$1")||void 0),w===""&&!Bn(c)&&(w=g.style(c,f)),!m.pixelBoxStyles()&&Zr.test(w)&&Rl.test(f)&&(x=k.width,_=k.minWidth,b=k.maxWidth,k.minWidth=k.maxWidth=k.width=w,w=p.width,k.width=x,k.minWidth=_,k.maxWidth=b)),w!==void 0?w+"":w}function es(c,f){return{get:function(){if(c()){delete this.get;return}return(this.get=f).apply(this,arguments)}}}var ns=["Webkit","Moz","ms"],is=A.createElement("div").style,rs={};function Ml(c){for(var f=c[0].toUpperCase()+c.slice(1),p=ns.length;p--;)if(c=ns[p]+f,c in is)return c}function Qr(c){var f=g.cssProps[c]||rs[c];return f||(c in is?c:rs[c]=Ml(c)||c)}var Dl=/^(none|table(?!-c[ea]).+)/,Nl={position:"absolute",visibility:"hidden",display:"block"},as={letterSpacing:"0",fontWeight:"400"};function os(c,f,p){var x=li.exec(f);return x?Math.max(0,x[2]-(p||0))+(x[3]||"px"):f}function Jr(c,f,p,x,_,b){var w=f==="width"?1:0,R=0,k=0;if(p===(x?"border":"content"))return 0;for(;w<4;w+=2)p==="margin"&&(k+=g.css(c,p+tn[w],!0,_)),x?(p==="content"&&(k-=g.css(c,"padding"+tn[w],!0,_)),p!=="margin"&&(k-=g.css(c,"border"+tn[w]+"Width",!0,_))):(k+=g.css(c,"padding"+tn[w],!0,_),p!=="padding"?k+=g.css(c,"border"+tn[w]+"Width",!0,_):R+=g.css(c,"border"+tn[w]+"Width",!0,_));return!x&&b>=0&&(k+=Math.max(0,Math.ceil(c["offset"+f[0].toUpperCase()+f.slice(1)]-b-k-R-.5))||0),k}function ss(c,f,p){var x=Wi(c),_=!m.boxSizingReliable()||p,b=_&&g.css(c,"boxSizing",!1,x)==="border-box",w=b,R=hi(c,f,x),k="offset"+f[0].toUpperCase()+f.slice(1);if(Zr.test(R)){if(!p)return R;R="auto"}return(!m.boxSizingReliable()&&b||!m.reliableTrDimensions()&&nt(c,"tr")||R==="auto"||!parseFloat(R)&&g.css(c,"display",!1,x)==="inline")&&c.getClientRects().length&&(b=g.css(c,"boxSizing",!1,x)==="border-box",w=k in c,w&&(R=c[k])),R=parseFloat(R)||0,R+Jr(c,f,p||(b?"border":"content"),w,x,R)+"px"}g.extend({cssHooks:{opacity:{get:function(c,f){if(f){var p=hi(c,"opacity");return p===""?"1":p}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(c,f,p,x){if(!(!c||c.nodeType===3||c.nodeType===8||!c.style)){var _,b,w,R=Bt(f),k=Kr.test(f),I=c.style;if(k||(f=Qr(R)),w=g.cssHooks[f]||g.cssHooks[R],p!==void 0){if(b=typeof p,b==="string"&&(_=li.exec(p))&&_[1]&&(p=Uo(c,f,_),b="number"),p==null||p!==p)return;b==="number"&&!k&&(p+=_&&_[3]||(g.cssNumber[R]?"":"px")),!m.clearCloneStyle&&p===""&&f.indexOf("background")===0&&(I[f]="inherit"),(!w||!("set"in w)||(p=w.set(c,p,x))!==void 0)&&(k?I.setProperty(f,p):I[f]=p)}else return w&&"get"in w&&(_=w.get(c,!1,x))!==void 0?_:I[f]}},css:function(c,f,p,x){var _,b,w,R=Bt(f),k=Kr.test(f);return k||(f=Qr(R)),w=g.cssHooks[f]||g.cssHooks[R],w&&"get"in w&&(_=w.get(c,!0,p)),_===void 0&&(_=hi(c,f,x)),_==="normal"&&f in as&&(_=as[f]),p===""||p?(b=parseFloat(_),p===!0||isFinite(b)?b||0:_):_}}),g.each(["height","width"],function(c,f){g.cssHooks[f]={get:function(p,x,_){if(x)return Dl.test(g.css(p,"display"))&&(!p.getClientRects().length||!p.getBoundingClientRect().width)?Jo(p,Nl,function(){return ss(p,f,_)}):ss(p,f,_)},set:function(p,x,_){var b,w=Wi(p),R=!m.scrollboxSize()&&w.position==="absolute",k=R||_,I=k&&g.css(p,"boxSizing",!1,w)==="border-box",X=_?Jr(p,f,_,I,w):0;return I&&R&&(X-=Math.ceil(p["offset"+f[0].toUpperCase()+f.slice(1)]-parseFloat(w[f])-Jr(p,f,"border",!1,w)-.5)),X&&(b=li.exec(x))&&(b[3]||"px")!=="px"&&(p.style[f]=x,x=g.css(p,f)),os(p,x,X)}}}),g.cssHooks.marginLeft=es(m.reliableMarginLeft,function(c,f){if(f)return(parseFloat(hi(c,"marginLeft"))||c.getBoundingClientRect().left-Jo(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),g.each({margin:"",padding:"",border:"Width"},function(c,f){g.cssHooks[c+f]={expand:function(p){for(var x=0,_={},b=typeof p=="string"?p.split(" "):[p];x<4;x++)_[c+tn[x]+f]=b[x]||b[x-2]||b[0];return _}},c!=="margin"&&(g.cssHooks[c+f].set=os)}),g.fn.extend({css:function(c,f){return J(this,function(p,x,_){var b,w,R={},k=0;if(Array.isArray(x)){for(b=Wi(p),w=x.length;k<w;k++)R[x[k]]=g.css(p,x[k],!1,b);return R}return _!==void 0?g.style(p,x,_):g.css(p,x)},c,f,arguments.length>1)}});function Te(c,f,p,x,_){return new Te.prototype.init(c,f,p,x,_)}g.Tween=Te,Te.prototype={constructor:Te,init:function(c,f,p,x,_,b){this.elem=c,this.prop=p,this.easing=_||g.easing._default,this.options=f,this.start=this.now=this.cur(),this.end=x,this.unit=b||(g.cssNumber[p]?"":"px")},cur:function(){var c=Te.propHooks[this.prop];return c&&c.get?c.get(this):Te.propHooks._default.get(this)},run:function(c){var f,p=Te.propHooks[this.prop];return this.options.duration?this.pos=f=g.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):this.pos=f=c,this.now=(this.end-this.start)*f+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),p&&p.set?p.set(this):Te.propHooks._default.set(this),this}},Te.prototype.init.prototype=Te.prototype,Te.propHooks={_default:{get:function(c){var f;return c.elem.nodeType!==1||c.elem[c.prop]!=null&&c.elem.style[c.prop]==null?c.elem[c.prop]:(f=g.css(c.elem,c.prop,""),!f||f==="auto"?0:f)},set:function(c){g.fx.step[c.prop]?g.fx.step[c.prop](c):c.elem.nodeType===1&&(g.cssHooks[c.prop]||c.elem.style[Qr(c.prop)]!=null)?g.style(c.elem,c.prop,c.now+c.unit):c.elem[c.prop]=c.now}}},Te.propHooks.scrollTop=Te.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},g.easing={linear:function(c){return c},swing:function(c){return .5-Math.cos(c*Math.PI)/2},_default:"swing"},g.fx=Te.prototype.init,g.fx.step={};var Vn,ji,Il=/^(?:toggle|show|hide)$/,Pl=/queueHooks$/;function ta(){ji&&(A.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(ta):e.setTimeout(ta,g.fx.interval),g.fx.tick())}function cs(){return e.setTimeout(function(){Vn=void 0}),Vn=Date.now()}function qi(c,f){var p,x=0,_={height:c};for(f=f?1:0;x<4;x+=2-f)p=tn[x],_["margin"+p]=_["padding"+p]=c;return f&&(_.opacity=_.width=c),_}function us(c,f,p){for(var x,_=(Oe.tweeners[f]||[]).concat(Oe.tweeners["*"]),b=0,w=_.length;b<w;b++)if(x=_[b].call(p,f,c))return x}function Ol(c,f,p){var x,_,b,w,R,k,I,X,j="width"in f||"height"in f,O=this,B={},rt=c.style,ft=c.nodeType&&Ui(c),it=et.get(c,"fxshow");p.queue||(w=g._queueHooks(c,"fx"),w.unqueued==null&&(w.unqueued=0,R=w.empty.fire,w.empty.fire=function(){w.unqueued||R()}),w.unqueued++,O.always(function(){O.always(function(){w.unqueued--,g.queue(c,"fx").length||w.empty.fire()})}));for(x in f)if(_=f[x],Il.test(_)){if(delete f[x],b=b||_==="toggle",_===(ft?"hide":"show"))if(_==="show"&&it&&it[x]!==void 0)ft=!0;else continue;B[x]=it&&it[x]||g.style(c,x)}if(k=!g.isEmptyObject(f),!(!k&&g.isEmptyObject(B))){j&&c.nodeType===1&&(p.overflow=[rt.overflow,rt.overflowX,rt.overflowY],I=it&&it.display,I==null&&(I=et.get(c,"display")),X=g.css(c,"display"),X==="none"&&(I?X=I:(zn([c],!0),I=c.style.display||I,X=g.css(c,"display"),zn([c]))),(X==="inline"||X==="inline-block"&&I!=null)&&g.css(c,"float")==="none"&&(k||(O.done(function(){rt.display=I}),I==null&&(X=rt.display,I=X==="none"?"":X)),rt.display="inline-block")),p.overflow&&(rt.overflow="hidden",O.always(function(){rt.overflow=p.overflow[0],rt.overflowX=p.overflow[1],rt.overflowY=p.overflow[2]})),k=!1;for(x in B)k||(it?"hidden"in it&&(ft=it.hidden):it=et.access(c,"fxshow",{display:I}),b&&(it.hidden=!ft),ft&&zn([c],!0),O.done(function(){ft||zn([c]),et.remove(c,"fxshow");for(x in B)g.style(c,x,B[x])})),k=us(ft?it[x]:0,x,O),x in it||(it[x]=k.start,ft&&(k.end=k.start,k.start=0))}}function Fl(c,f){var p,x,_,b,w;for(p in c)if(x=Bt(p),_=f[x],b=c[p],Array.isArray(b)&&(_=b[1],b=c[p]=b[0]),p!==x&&(c[x]=b,delete c[p]),w=g.cssHooks[x],w&&"expand"in w){b=w.expand(b),delete c[x];for(p in b)p in c||(c[p]=b[p],f[p]=_)}else f[x]=_}function Oe(c,f,p){var x,_,b=0,w=Oe.prefilters.length,R=g.Deferred().always(function(){delete k.elem}),k=function(){if(_)return!1;for(var j=Vn||cs(),O=Math.max(0,I.startTime+I.duration-j),B=O/I.duration||0,rt=1-B,ft=0,it=I.tweens.length;ft<it;ft++)I.tweens[ft].run(rt);return R.notifyWith(c,[I,rt,O]),rt<1&&it?O:(it||R.notifyWith(c,[I,1,0]),R.resolveWith(c,[I]),!1)},I=R.promise({elem:c,props:g.extend({},f),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},p),originalProperties:f,originalOptions:p,startTime:Vn||cs(),duration:p.duration,tweens:[],createTween:function(j,O){var B=g.Tween(c,I.opts,j,O,I.opts.specialEasing[j]||I.opts.easing);return I.tweens.push(B),B},stop:function(j){var O=0,B=j?I.tweens.length:0;if(_)return this;for(_=!0;O<B;O++)I.tweens[O].run(1);return j?(R.notifyWith(c,[I,1,0]),R.resolveWith(c,[I,j])):R.rejectWith(c,[I,j]),this}}),X=I.props;for(Fl(X,I.opts.specialEasing);b<w;b++)if(x=Oe.prefilters[b].call(I,c,X,I.opts),x)return T(x.stop)&&(g._queueHooks(I.elem,I.opts.queue).stop=x.stop.bind(x)),x;return g.map(X,us,I),T(I.opts.start)&&I.opts.start.call(c,I),I.progress(I.opts.progress).done(I.opts.done,I.opts.complete).fail(I.opts.fail).always(I.opts.always),g.fx.timer(g.extend(k,{elem:c,anim:I,queue:I.opts.queue})),I}g.Animation=g.extend(Oe,{tweeners:{"*":[function(c,f){var p=this.createTween(c,f);return Uo(p.elem,c,li.exec(f),p),p}]},tweener:function(c,f){T(c)?(f=c,c=["*"]):c=c.match(Dt);for(var p,x=0,_=c.length;x<_;x++)p=c[x],Oe.tweeners[p]=Oe.tweeners[p]||[],Oe.tweeners[p].unshift(f)},prefilters:[Ol],prefilter:function(c,f){f?Oe.prefilters.unshift(c):Oe.prefilters.push(c)}}),g.speed=function(c,f,p){var x=c&&typeof c=="object"?g.extend({},c):{complete:p||!p&&f||T(c)&&c,duration:c,easing:p&&f||f&&!T(f)&&f};return g.fx.off?x.duration=0:typeof x.duration!="number"&&(x.duration in g.fx.speeds?x.duration=g.fx.speeds[x.duration]:x.duration=g.fx.speeds._default),(x.queue==null||x.queue===!0)&&(x.queue="fx"),x.old=x.complete,x.complete=function(){T(x.old)&&x.old.call(this),x.queue&&g.dequeue(this,x.queue)},x},g.fn.extend({fadeTo:function(c,f,p,x){return this.filter(Ui).css("opacity",0).show().end().animate({opacity:f},c,p,x)},animate:function(c,f,p,x){var _=g.isEmptyObject(c),b=g.speed(f,p,x),w=function(){var R=Oe(this,g.extend({},c),b);(_||et.get(this,"finish"))&&R.stop(!0)};return w.finish=w,_||b.queue===!1?this.each(w):this.queue(b.queue,w)},stop:function(c,f,p){var x=function(_){var b=_.stop;delete _.stop,b(p)};return typeof c!="string"&&(p=f,f=c,c=void 0),f&&this.queue(c||"fx",[]),this.each(function(){var _=!0,b=c!=null&&c+"queueHooks",w=g.timers,R=et.get(this);if(b)R[b]&&R[b].stop&&x(R[b]);else for(b in R)R[b]&&R[b].stop&&Pl.test(b)&&x(R[b]);for(b=w.length;b--;)w[b].elem===this&&(c==null||w[b].queue===c)&&(w[b].anim.stop(p),_=!1,w.splice(b,1));(_||!p)&&g.dequeue(this,c)})},finish:function(c){return c!==!1&&(c=c||"fx"),this.each(function(){var f,p=et.get(this),x=p[c+"queue"],_=p[c+"queueHooks"],b=g.timers,w=x?x.length:0;for(p.finish=!0,g.queue(this,c,[]),_&&_.stop&&_.stop.call(this,!0),f=b.length;f--;)b[f].elem===this&&b[f].queue===c&&(b[f].anim.stop(!0),b.splice(f,1));for(f=0;f<w;f++)x[f]&&x[f].finish&&x[f].finish.call(this);delete p.finish})}}),g.each(["toggle","show","hide"],function(c,f){var p=g.fn[f];g.fn[f]=function(x,_,b){return x==null||typeof x=="boolean"?p.apply(this,arguments):this.animate(qi(f,!0),x,_,b)}}),g.each({slideDown:qi("show"),slideUp:qi("hide"),slideToggle:qi("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,f){g.fn[c]=function(p,x,_){return this.animate(f,p,x,_)}}),g.timers=[],g.fx.tick=function(){var c,f=0,p=g.timers;for(Vn=Date.now();f<p.length;f++)c=p[f],!c()&&p[f]===c&&p.splice(f--,1);p.length||g.fx.stop(),Vn=void 0},g.fx.timer=function(c){g.timers.push(c),g.fx.start()},g.fx.interval=13,g.fx.start=function(){ji||(ji=!0,ta())},g.fx.stop=function(){ji=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(c,f){return c=g.fx&&g.fx.speeds[c]||c,f=f||"fx",this.queue(f,function(p,x){var _=e.setTimeout(p,c);x.stop=function(){e.clearTimeout(_)}})},function(){var c=A.createElement("input"),f=A.createElement("select"),p=f.appendChild(A.createElement("option"));c.type="checkbox",m.checkOn=c.value!=="",m.optSelected=p.selected,c=A.createElement("input"),c.value="t",c.type="radio",m.radioValue=c.value==="t"}();var ls,di=g.expr.attrHandle;g.fn.extend({attr:function(c,f){return J(this,g.attr,c,f,arguments.length>1)},removeAttr:function(c){return this.each(function(){g.removeAttr(this,c)})}}),g.extend({attr:function(c,f,p){var x,_,b=c.nodeType;if(!(b===3||b===8||b===2)){if(typeof c.getAttribute>"u")return g.prop(c,f,p);if((b!==1||!g.isXMLDoc(c))&&(_=g.attrHooks[f.toLowerCase()]||(g.expr.match.bool.test(f)?ls:void 0)),p!==void 0){if(p===null){g.removeAttr(c,f);return}return _&&"set"in _&&(x=_.set(c,p,f))!==void 0?x:(c.setAttribute(f,p+""),p)}return _&&"get"in _&&(x=_.get(c,f))!==null?x:(x=g.find.attr(c,f),x??void 0)}},attrHooks:{type:{set:function(c,f){if(!m.radioValue&&f==="radio"&&nt(c,"input")){var p=c.value;return c.setAttribute("type",f),p&&(c.value=p),f}}}},removeAttr:function(c,f){var p,x=0,_=f&&f.match(Dt);if(_&&c.nodeType===1)for(;p=_[x++];)c.removeAttribute(p)}}),ls={set:function(c,f,p){return f===!1?g.removeAttr(c,p):c.setAttribute(p,p),p}},g.each(g.expr.match.bool.source.match(/\w+/g),function(c,f){var p=di[f]||g.find.attr;di[f]=function(x,_,b){var w,R,k=_.toLowerCase();return b||(R=di[k],di[k]=w,w=p(x,_,b)!=null?k:null,di[k]=R),w}});var Xl=/^(?:input|select|textarea|button)$/i,Bl=/^(?:a|area)$/i;g.fn.extend({prop:function(c,f){return J(this,g.prop,c,f,arguments.length>1)},removeProp:function(c){return this.each(function(){delete this[g.propFix[c]||c]})}}),g.extend({prop:function(c,f,p){var x,_,b=c.nodeType;if(!(b===3||b===8||b===2))return(b!==1||!g.isXMLDoc(c))&&(f=g.propFix[f]||f,_=g.propHooks[f]),p!==void 0?_&&"set"in _&&(x=_.set(c,p,f))!==void 0?x:c[f]=p:_&&"get"in _&&(x=_.get(c,f))!==null?x:c[f]},propHooks:{tabIndex:{get:function(c){var f=g.find.attr(c,"tabindex");return f?parseInt(f,10):Xl.test(c.nodeName)||Bl.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(g.propHooks.selected={get:function(c){var f=c.parentNode;return f&&f.parentNode&&f.parentNode.selectedIndex,null},set:function(c){var f=c.parentNode;f&&(f.selectedIndex,f.parentNode&&f.parentNode.selectedIndex)}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){g.propFix[this.toLowerCase()]=this});function _n(c){var f=c.match(Dt)||[];return f.join(" ")}function bn(c){return c.getAttribute&&c.getAttribute("class")||""}function ea(c){return Array.isArray(c)?c:typeof c=="string"?c.match(Dt)||[]:[]}g.fn.extend({addClass:function(c){var f,p,x,_,b,w;return T(c)?this.each(function(R){g(this).addClass(c.call(this,R,bn(this)))}):(f=ea(c),f.length?this.each(function(){if(x=bn(this),p=this.nodeType===1&&" "+_n(x)+" ",p){for(b=0;b<f.length;b++)_=f[b],p.indexOf(" "+_+" ")<0&&(p+=_+" ");w=_n(p),x!==w&&this.setAttribute("class",w)}}):this)},removeClass:function(c){var f,p,x,_,b,w;return T(c)?this.each(function(R){g(this).removeClass(c.call(this,R,bn(this)))}):arguments.length?(f=ea(c),f.length?this.each(function(){if(x=bn(this),p=this.nodeType===1&&" "+_n(x)+" ",p){for(b=0;b<f.length;b++)for(_=f[b];p.indexOf(" "+_+" ")>-1;)p=p.replace(" "+_+" "," ");w=_n(p),x!==w&&this.setAttribute("class",w)}}):this):this.attr("class","")},toggleClass:function(c,f){var p,x,_,b,w=typeof c,R=w==="string"||Array.isArray(c);return T(c)?this.each(function(k){g(this).toggleClass(c.call(this,k,bn(this),f),f)}):typeof f=="boolean"&&R?f?this.addClass(c):this.removeClass(c):(p=ea(c),this.each(function(){if(R)for(b=g(this),_=0;_<p.length;_++)x=p[_],b.hasClass(x)?b.removeClass(x):b.addClass(x);else(c===void 0||w==="boolean")&&(x=bn(this),x&&et.set(this,"__className__",x),this.setAttribute&&this.setAttribute("class",x||c===!1?"":et.get(this,"__className__")||""))}))},hasClass:function(c){var f,p,x=0;for(f=" "+c+" ";p=this[x++];)if(p.nodeType===1&&(" "+_n(bn(p))+" ").indexOf(f)>-1)return!0;return!1}});var zl=/\r/g;g.fn.extend({val:function(c){var f,p,x,_=this[0];return arguments.length?(x=T(c),this.each(function(b){var w;this.nodeType===1&&(x?w=c.call(this,b,g(this).val()):w=c,w==null?w="":typeof w=="number"?w+="":Array.isArray(w)&&(w=g.map(w,function(R){return R==null?"":R+""})),f=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],(!f||!("set"in f)||f.set(this,w,"value")===void 0)&&(this.value=w))})):_?(f=g.valHooks[_.type]||g.valHooks[_.nodeName.toLowerCase()],f&&"get"in f&&(p=f.get(_,"value"))!==void 0?p:(p=_.value,typeof p=="string"?p.replace(zl,""):p??"")):void 0}}),g.extend({valHooks:{option:{get:function(c){var f=g.find.attr(c,"value");return f??_n(g.text(c))}},select:{get:function(c){var f,p,x,_=c.options,b=c.selectedIndex,w=c.type==="select-one",R=w?null:[],k=w?b+1:_.length;for(b<0?x=k:x=w?b:0;x<k;x++)if(p=_[x],(p.selected||x===b)&&!p.disabled&&(!p.parentNode.disabled||!nt(p.parentNode,"optgroup"))){if(f=g(p).val(),w)return f;R.push(f)}return R},set:function(c,f){for(var p,x,_=c.options,b=g.makeArray(f),w=_.length;w--;)x=_[w],(x.selected=g.inArray(g.valHooks.option.get(x),b)>-1)&&(p=!0);return p||(c.selectedIndex=-1),b}}}}),g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(c,f){if(Array.isArray(f))return c.checked=g.inArray(g(c).val(),f)>-1}},m.checkOn||(g.valHooks[this].get=function(c){return c.getAttribute("value")===null?"on":c.value})}),m.focusin="onfocusin"in e;var fs=/^(?:focusinfocus|focusoutblur)$/,hs=function(c){c.stopPropagation()};g.extend(g.event,{trigger:function(c,f,p,x){var _,b,w,R,k,I,X,j,O=[p||A],B=d.call(c,"type")?c.type:c,rt=d.call(c,"namespace")?c.namespace.split("."):[];if(b=j=w=p=p||A,!(p.nodeType===3||p.nodeType===8)&&!fs.test(B+g.event.triggered)&&(B.indexOf(".")>-1&&(rt=B.split("."),B=rt.shift(),rt.sort()),k=B.indexOf(":")<0&&"on"+B,c=c[g.expando]?c:new g.Event(B,typeof c=="object"&&c),c.isTrigger=x?2:3,c.namespace=rt.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+rt.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=p),f=f==null?[c]:g.makeArray(f,[c]),X=g.event.special[B]||{},!(!x&&X.trigger&&X.trigger.apply(p,f)===!1))){if(!x&&!X.noBubble&&!C(p)){for(R=X.delegateType||B,fs.test(R+B)||(b=b.parentNode);b;b=b.parentNode)O.push(b),w=b;w===(p.ownerDocument||A)&&O.push(w.defaultView||w.parentWindow||e)}for(_=0;(b=O[_++])&&!c.isPropagationStopped();)j=b,c.type=_>1?R:X.bindType||B,I=(et.get(b,"events")||Object.create(null))[c.type]&&et.get(b,"handle"),I&&I.apply(b,f),I=k&&b[k],I&&I.apply&&kt(b)&&(c.result=I.apply(b,f),c.result===!1&&c.preventDefault());return c.type=B,!x&&!c.isDefaultPrevented()&&(!X._default||X._default.apply(O.pop(),f)===!1)&&kt(p)&&k&&T(p[B])&&!C(p)&&(w=p[k],w&&(p[k]=null),g.event.triggered=B,c.isPropagationStopped()&&j.addEventListener(B,hs),p[B](),c.isPropagationStopped()&&j.removeEventListener(B,hs),g.event.triggered=void 0,w&&(p[k]=w)),c.result}},simulate:function(c,f,p){var x=g.extend(new g.Event,p,{type:c,isSimulated:!0});g.event.trigger(x,null,f)}}),g.fn.extend({trigger:function(c,f){return this.each(function(){g.event.trigger(c,f,this)})},triggerHandler:function(c,f){var p=this[0];if(p)return g.event.trigger(c,f,p,!0)}}),m.focusin||g.each({focus:"focusin",blur:"focusout"},function(c,f){var p=function(x){g.event.simulate(f,x.target,g.event.fix(x))};g.event.special[f]={setup:function(){var x=this.ownerDocument||this.document||this,_=et.access(x,f);_||x.addEventListener(c,p,!0),et.access(x,f,(_||0)+1)},teardown:function(){var x=this.ownerDocument||this.document||this,_=et.access(x,f)-1;_?et.access(x,f,_):(x.removeEventListener(c,p,!0),et.remove(x,f))}}});var gi=e.location,ds={guid:Date.now()},na=/\?/;g.parseXML=function(c){var f,p;if(!c||typeof c!="string")return null;try{f=new e.DOMParser().parseFromString(c,"text/xml")}catch{}return p=f&&f.getElementsByTagName("parsererror")[0],(!f||p)&&g.error("Invalid XML: "+(p?g.map(p.childNodes,function(x){return x.textContent}).join(`
`):c)),f};var Hl=/\[\]$/,gs=/\r?\n/g,Yl=/^(?:submit|button|image|reset|file)$/i,Ul=/^(?:input|select|textarea|keygen)/i;function ia(c,f,p,x){var _;if(Array.isArray(f))g.each(f,function(b,w){p||Hl.test(c)?x(c,w):ia(c+"["+(typeof w=="object"&&w!=null?b:"")+"]",w,p,x)});else if(!p&&L(f)==="object")for(_ in f)ia(c+"["+_+"]",f[_],p,x);else x(c,f)}g.param=function(c,f){var p,x=[],_=function(b,w){var R=T(w)?w():w;x[x.length]=encodeURIComponent(b)+"="+encodeURIComponent(R??"")};if(c==null)return"";if(Array.isArray(c)||c.jquery&&!g.isPlainObject(c))g.each(c,function(){_(this.name,this.value)});else for(p in c)ia(p,c[p],f,_);return x.join("&")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=g.prop(this,"elements");return c?g.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!g(this).is(":disabled")&&Ul.test(this.nodeName)&&!Yl.test(c)&&(this.checked||!fi.test(c))}).map(function(c,f){var p=g(this).val();return p==null?null:Array.isArray(p)?g.map(p,function(x){return{name:f.name,value:x.replace(gs,`\r
`)}}):{name:f.name,value:p.replace(gs,`\r
`)}}).get()}});var Vl=/%20/g,Wl=/#.*$/,jl=/([?&])_=[^&]*/,ql=/^(.*?):[ \t]*([^\r\n]*)$/mg,Gl=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zl=/^(?:GET|HEAD)$/,Kl=/^\/\//,ps={},ra={},vs="*/".concat("*"),aa=A.createElement("a");aa.href=gi.href;function xs(c){return function(f,p){typeof f!="string"&&(p=f,f="*");var x,_=0,b=f.toLowerCase().match(Dt)||[];if(T(p))for(;x=b[_++];)x[0]==="+"?(x=x.slice(1)||"*",(c[x]=c[x]||[]).unshift(p)):(c[x]=c[x]||[]).push(p)}}function ys(c,f,p,x){var _={},b=c===ra;function w(R){var k;return _[R]=!0,g.each(c[R]||[],function(I,X){var j=X(f,p,x);if(typeof j=="string"&&!b&&!_[j])return f.dataTypes.unshift(j),w(j),!1;if(b)return!(k=j)}),k}return w(f.dataTypes[0])||!_["*"]&&w("*")}function oa(c,f){var p,x,_=g.ajaxSettings.flatOptions||{};for(p in f)f[p]!==void 0&&((_[p]?c:x||(x={}))[p]=f[p]);return x&&g.extend(!0,c,x),c}function Ql(c,f,p){for(var x,_,b,w,R=c.contents,k=c.dataTypes;k[0]==="*";)k.shift(),x===void 0&&(x=c.mimeType||f.getResponseHeader("Content-Type"));if(x){for(_ in R)if(R[_]&&R[_].test(x)){k.unshift(_);break}}if(k[0]in p)b=k[0];else{for(_ in p){if(!k[0]||c.converters[_+" "+k[0]]){b=_;break}w||(w=_)}b=b||w}if(b)return b!==k[0]&&k.unshift(b),p[b]}function Jl(c,f,p,x){var _,b,w,R,k,I={},X=c.dataTypes.slice();if(X[1])for(w in c.converters)I[w.toLowerCase()]=c.converters[w];for(b=X.shift();b;)if(c.responseFields[b]&&(p[c.responseFields[b]]=f),!k&&x&&c.dataFilter&&(f=c.dataFilter(f,c.dataType)),k=b,b=X.shift(),b){if(b==="*")b=k;else if(k!=="*"&&k!==b){if(w=I[k+" "+b]||I["* "+b],!w){for(_ in I)if(R=_.split(" "),R[1]===b&&(w=I[k+" "+R[0]]||I["* "+R[0]],w)){w===!0?w=I[_]:I[_]!==!0&&(b=R[0],X.unshift(R[1]));break}}if(w!==!0)if(w&&c.throws)f=w(f);else try{f=w(f)}catch(j){return{state:"parsererror",error:w?j:"No conversion from "+k+" to "+b}}}}return{state:"success",data:f}}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gi.href,type:"GET",isLocal:Gl.test(gi.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vs,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,f){return f?oa(oa(c,g.ajaxSettings),f):oa(g.ajaxSettings,c)},ajaxPrefilter:xs(ps),ajaxTransport:xs(ra),ajax:function(c,f){typeof c=="object"&&(f=c,c=void 0),f=f||{};var p,x,_,b,w,R,k,I,X,j,O=g.ajaxSetup({},f),B=O.context||O,rt=O.context&&(B.nodeType||B.jquery)?g(B):g.event,ft=g.Deferred(),it=g.Callbacks("once memory"),re=O.statusCode||{},te={},Ee={},Nt="canceled",lt={readyState:0,getResponseHeader:function(Ct){var jt;if(k){if(!b)for(b={};jt=ql.exec(_);)b[jt[1].toLowerCase()+" "]=(b[jt[1].toLowerCase()+" "]||[]).concat(jt[2]);jt=b[Ct.toLowerCase()+" "]}return jt==null?null:jt.join(", ")},getAllResponseHeaders:function(){return k?_:null},setRequestHeader:function(Ct,jt){return k==null&&(Ct=Ee[Ct.toLowerCase()]=Ee[Ct.toLowerCase()]||Ct,te[Ct]=jt),this},overrideMimeType:function(Ct){return k==null&&(O.mimeType=Ct),this},statusCode:function(Ct){var jt;if(Ct)if(k)lt.always(Ct[lt.status]);else for(jt in Ct)re[jt]=[re[jt],Ct[jt]];return this},abort:function(Ct){var jt=Ct||Nt;return p&&p.abort(jt),we(0,jt),this}};if(ft.promise(lt),O.url=((c||O.url||gi.href)+"").replace(Kl,gi.protocol+"//"),O.type=f.method||f.type||O.method||O.type,O.dataTypes=(O.dataType||"*").toLowerCase().match(Dt)||[""],O.crossDomain==null){R=A.createElement("a");try{R.href=O.url,R.href=R.href,O.crossDomain=aa.protocol+"//"+aa.host!=R.protocol+"//"+R.host}catch{O.crossDomain=!0}}if(O.data&&O.processData&&typeof O.data!="string"&&(O.data=g.param(O.data,O.traditional)),ys(ps,O,f,lt),k)return lt;I=g.event&&O.global,I&&g.active++===0&&g.event.trigger("ajaxStart"),O.type=O.type.toUpperCase(),O.hasContent=!Zl.test(O.type),x=O.url.replace(Wl,""),O.hasContent?O.data&&O.processData&&(O.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(O.data=O.data.replace(Vl,"+")):(j=O.url.slice(x.length),O.data&&(O.processData||typeof O.data=="string")&&(x+=(na.test(x)?"&":"?")+O.data,delete O.data),O.cache===!1&&(x=x.replace(jl,"$1"),j=(na.test(x)?"&":"?")+"_="+ds.guid+++j),O.url=x+j),O.ifModified&&(g.lastModified[x]&&lt.setRequestHeader("If-Modified-Since",g.lastModified[x]),g.etag[x]&&lt.setRequestHeader("If-None-Match",g.etag[x])),(O.data&&O.hasContent&&O.contentType!==!1||f.contentType)&&lt.setRequestHeader("Content-Type",O.contentType),lt.setRequestHeader("Accept",O.dataTypes[0]&&O.accepts[O.dataTypes[0]]?O.accepts[O.dataTypes[0]]+(O.dataTypes[0]!=="*"?", "+vs+"; q=0.01":""):O.accepts["*"]);for(X in O.headers)lt.setRequestHeader(X,O.headers[X]);if(O.beforeSend&&(O.beforeSend.call(B,lt,O)===!1||k))return lt.abort();if(Nt="abort",it.add(O.complete),lt.done(O.success),lt.fail(O.error),p=ys(ra,O,f,lt),!p)we(-1,"No Transport");else{if(lt.readyState=1,I&&rt.trigger("ajaxSend",[lt,O]),k)return lt;O.async&&O.timeout>0&&(w=e.setTimeout(function(){lt.abort("timeout")},O.timeout));try{k=!1,p.send(te,we)}catch(Ct){if(k)throw Ct;we(-1,Ct)}}function we(Ct,jt,vi,Gi){var Re,Tn,wn,$e,hn,Ne=jt;k||(k=!0,w&&e.clearTimeout(w),p=void 0,_=Gi||"",lt.readyState=Ct>0?4:0,Re=Ct>=200&&Ct<300||Ct===304,vi&&($e=Ql(O,lt,vi)),!Re&&g.inArray("script",O.dataTypes)>-1&&g.inArray("json",O.dataTypes)<0&&(O.converters["text script"]=function(){}),$e=Jl(O,$e,lt,Re),Re?(O.ifModified&&(hn=lt.getResponseHeader("Last-Modified"),hn&&(g.lastModified[x]=hn),hn=lt.getResponseHeader("etag"),hn&&(g.etag[x]=hn)),Ct===204||O.type==="HEAD"?Ne="nocontent":Ct===304?Ne="notmodified":(Ne=$e.state,Tn=$e.data,wn=$e.error,Re=!wn)):(wn=Ne,(Ct||!Ne)&&(Ne="error",Ct<0&&(Ct=0))),lt.status=Ct,lt.statusText=(jt||Ne)+"",Re?ft.resolveWith(B,[Tn,Ne,lt]):ft.rejectWith(B,[lt,Ne,wn]),lt.statusCode(re),re=void 0,I&&rt.trigger(Re?"ajaxSuccess":"ajaxError",[lt,O,Re?Tn:wn]),it.fireWith(B,[lt,Ne]),I&&(rt.trigger("ajaxComplete",[lt,O]),--g.active||g.event.trigger("ajaxStop")))}return lt},getJSON:function(c,f,p){return g.get(c,f,p,"json")},getScript:function(c,f){return g.get(c,void 0,f,"script")}}),g.each(["get","post"],function(c,f){g[f]=function(p,x,_,b){return T(x)&&(b=b||_,_=x,x=void 0),g.ajax(g.extend({url:p,type:f,dataType:b,data:x,success:_},g.isPlainObject(p)&&p))}}),g.ajaxPrefilter(function(c){var f;for(f in c.headers)f.toLowerCase()==="content-type"&&(c.contentType=c.headers[f]||"")}),g._evalUrl=function(c,f,p){return g.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(x){g.globalEval(x,f,p)}})},g.fn.extend({wrapAll:function(c){var f;return this[0]&&(T(c)&&(c=c.call(this[0])),f=g(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&f.insertBefore(this[0]),f.map(function(){for(var p=this;p.firstElementChild;)p=p.firstElementChild;return p}).append(this)),this},wrapInner:function(c){return T(c)?this.each(function(f){g(this).wrapInner(c.call(this,f))}):this.each(function(){var f=g(this),p=f.contents();p.length?p.wrapAll(c):f.append(c)})},wrap:function(c){var f=T(c);return this.each(function(p){g(this).wrapAll(f?c.call(this,p):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){g(this).replaceWith(this.childNodes)}),this}}),g.expr.pseudos.hidden=function(c){return!g.expr.pseudos.visible(c)},g.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},g.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var tf={0:200,1223:204},pi=g.ajaxSettings.xhr();m.cors=!!pi&&"withCredentials"in pi,m.ajax=pi=!!pi,g.ajaxTransport(function(c){var f,p;if(m.cors||pi&&!c.crossDomain)return{send:function(x,_){var b,w=c.xhr();if(w.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(b in c.xhrFields)w[b]=c.xhrFields[b];c.mimeType&&w.overrideMimeType&&w.overrideMimeType(c.mimeType),!c.crossDomain&&!x["X-Requested-With"]&&(x["X-Requested-With"]="XMLHttpRequest");for(b in x)w.setRequestHeader(b,x[b]);f=function(R){return function(){f&&(f=p=w.onload=w.onerror=w.onabort=w.ontimeout=w.onreadystatechange=null,R==="abort"?w.abort():R==="error"?typeof w.status!="number"?_(0,"error"):_(w.status,w.statusText):_(tf[w.status]||w.status,w.statusText,(w.responseType||"text")!=="text"||typeof w.responseText!="string"?{binary:w.response}:{text:w.responseText},w.getAllResponseHeaders()))}},w.onload=f(),p=w.onerror=w.ontimeout=f("error"),w.onabort!==void 0?w.onabort=p:w.onreadystatechange=function(){w.readyState===4&&e.setTimeout(function(){f&&p()})},f=f("abort");try{w.send(c.hasContent&&c.data||null)}catch(R){if(f)throw R}},abort:function(){f&&f()}}}),g.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return g.globalEval(c),c}}}),g.ajaxPrefilter("script",function(c){c.cache===void 0&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),g.ajaxTransport("script",function(c){if(c.crossDomain||c.scriptAttrs){var f,p;return{send:function(x,_){f=g("<script>").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",p=function(b){f.remove(),p=null,b&&_(b.type==="error"?404:200,b.type)}),A.head.appendChild(f[0])},abort:function(){p&&p()}}}});var ms=[],sa=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=ms.pop()||g.expando+"_"+ds.guid++;return this[c]=!0,c}}),g.ajaxPrefilter("json jsonp",function(c,f,p){var x,_,b,w=c.jsonp!==!1&&(sa.test(c.url)?"url":typeof c.data=="string"&&(c.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&sa.test(c.data)&&"data");if(w||c.dataTypes[0]==="jsonp")return x=c.jsonpCallback=T(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,w?c[w]=c[w].replace(sa,"$1"+x):c.jsonp!==!1&&(c.url+=(na.test(c.url)?"&":"?")+c.jsonp+"="+x),c.converters["script json"]=function(){return b||g.error(x+" was not called"),b[0]},c.dataTypes[0]="json",_=e[x],e[x]=function(){b=arguments},p.always(function(){_===void 0?g(e).removeProp(x):e[x]=_,c[x]&&(c.jsonpCallback=f.jsonpCallback,ms.push(x)),b&&T(_)&&_(b[0]),b=_=void 0}),"script"}),m.createHTMLDocument=function(){var c=A.implementation.createHTMLDocument("").body;return c.innerHTML="<form></form><form></form>",c.childNodes.length===2}(),g.parseHTML=function(c,f,p){if(typeof c!="string")return[];typeof f=="boolean"&&(p=f,f=!1);var x,_,b;return f||(m.createHTMLDocument?(f=A.implementation.createHTMLDocument(""),x=f.createElement("base"),x.href=A.location.href,f.head.appendChild(x)):f=A),_=U.exec(c),b=!p&&[],_?[f.createElement(_[1])]:(_=qo([c],f,b),b&&b.length&&g(b).remove(),g.merge([],_.childNodes))},g.fn.load=function(c,f,p){var x,_,b,w=this,R=c.indexOf(" ");return R>-1&&(x=_n(c.slice(R)),c=c.slice(0,R)),T(f)?(p=f,f=void 0):f&&typeof f=="object"&&(_="POST"),w.length>0&&g.ajax({url:c,type:_||"GET",dataType:"html",data:f}).done(function(k){b=arguments,w.html(x?g("<div>").append(g.parseHTML(k)).find(x):k)}).always(p&&function(k,I){w.each(function(){p.apply(this,b||[k.responseText,I,k])})}),this},g.expr.pseudos.animated=function(c){return g.grep(g.timers,function(f){return c===f.elem}).length},g.offset={setOffset:function(c,f,p){var x,_,b,w,R,k,I,X=g.css(c,"position"),j=g(c),O={};X==="static"&&(c.style.position="relative"),R=j.offset(),b=g.css(c,"top"),k=g.css(c,"left"),I=(X==="absolute"||X==="fixed")&&(b+k).indexOf("auto")>-1,I?(x=j.position(),w=x.top,_=x.left):(w=parseFloat(b)||0,_=parseFloat(k)||0),T(f)&&(f=f.call(c,p,g.extend({},R))),f.top!=null&&(O.top=f.top-R.top+w),f.left!=null&&(O.left=f.left-R.left+_),"using"in f?f.using.call(c,O):j.css(O)}},g.fn.extend({offset:function(c){if(arguments.length)return c===void 0?this:this.each(function(_){g.offset.setOffset(this,c,_)});var f,p,x=this[0];if(x)return x.getClientRects().length?(f=x.getBoundingClientRect(),p=x.ownerDocument.defaultView,{top:f.top+p.pageYOffset,left:f.left+p.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var c,f,p,x=this[0],_={top:0,left:0};if(g.css(x,"position")==="fixed")f=x.getBoundingClientRect();else{for(f=this.offset(),p=x.ownerDocument,c=x.offsetParent||p.documentElement;c&&(c===p.body||c===p.documentElement)&&g.css(c,"position")==="static";)c=c.parentNode;c&&c!==x&&c.nodeType===1&&(_=g(c).offset(),_.top+=g.css(c,"borderTopWidth",!0),_.left+=g.css(c,"borderLeftWidth",!0))}return{top:f.top-_.top-g.css(x,"marginTop",!0),left:f.left-_.left-g.css(x,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent;c&&g.css(c,"position")==="static";)c=c.offsetParent;return c||mn})}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,f){var p=f==="pageYOffset";g.fn[c]=function(x){return J(this,function(_,b,w){var R;if(C(_)?R=_:_.nodeType===9&&(R=_.defaultView),w===void 0)return R?R[f]:_[b];R?R.scrollTo(p?R.pageXOffset:w,p?w:R.pageYOffset):_[b]=w},c,x,arguments.length)}}),g.each(["top","left"],function(c,f){g.cssHooks[f]=es(m.pixelPosition,function(p,x){if(x)return x=hi(p,f),Zr.test(x)?g(p).position()[f]+"px":x})}),g.each({Height:"height",Width:"width"},function(c,f){g.each({padding:"inner"+c,content:f,"":"outer"+c},function(p,x){g.fn[x]=function(_,b){var w=arguments.length&&(p||typeof _!="boolean"),R=p||(_===!0||b===!0?"margin":"border");return J(this,function(k,I,X){var j;return C(k)?x.indexOf("outer")===0?k["inner"+c]:k.document.documentElement["client"+c]:k.nodeType===9?(j=k.documentElement,Math.max(k.body["scroll"+c],j["scroll"+c],k.body["offset"+c],j["offset"+c],j["client"+c])):X===void 0?g.css(k,I,R):g.style(k,I,X,R)},f,w?_:void 0,w)}})}),g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,f){g.fn[f]=function(p){return this.on(f,p)}}),g.fn.extend({bind:function(c,f,p){return this.on(c,null,f,p)},unbind:function(c,f){return this.off(c,null,f)},delegate:function(c,f,p,x){return this.on(f,c,p,x)},undelegate:function(c,f,p){return arguments.length===1?this.off(c,"**"):this.off(f,c||"**",p)},hover:function(c,f){return this.mouseenter(c).mouseleave(f||c)}}),g.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(c,f){g.fn[f]=function(p,x){return arguments.length>0?this.on(f,null,p,x):this.trigger(f)}});var ef=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;g.proxy=function(c,f){var p,x,_;if(typeof f=="string"&&(p=c[f],f=c,c=p),!!T(c))return x=a.call(arguments,2),_=function(){return c.apply(f||this,x.concat(a.call(arguments)))},_.guid=c.guid=c.guid||g.guid++,_},g.holdReady=function(c){c?g.readyWait++:g.ready(!0)},g.isArray=Array.isArray,g.parseJSON=JSON.parse,g.nodeName=nt,g.isFunction=T,g.isWindow=C,g.camelCase=Bt,g.type=L,g.now=Date.now,g.isNumeric=function(c){var f=g.type(c);return(f==="number"||f==="string")&&!isNaN(c-parseFloat(c))},g.trim=function(c){return c==null?"":(c+"").replace(ef,"$1")};var nf=e.jQuery,rf=e.$;return g.noConflict=function(c){return e.$===g&&(e.$=rf),c&&e.jQuery===g&&(e.jQuery=nf),g},typeof n>"u"&&(e.jQuery=e.$=g),g})})(Sf);const je=Oa,kf=()=>({slidesScale:"",slideMode:!1,slideType:"divs2slidesjs",revealjsPath:"",keyBoardShortCut:!1,mediaProcess:!0,jsZipV2:!1,themeProcess:!0,incSlide:{width:0,height:0},slideModeConfig:{first:1,nav:!0,navTxtColor:"black",keyBoardShortCut:!0,showSlideNum:!0,showTotalSlideNum:!0,autoSlide:!0,randomAutoSlide:!1,loop:!1,background:!1,transition:"default",transitionTime:1},revealjsConfig:{}});function lr(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ef(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function co(t){let e,n,i;t.length!==2?(e=lr,n=(s,u)=>lr(t(s),u),i=(s,u)=>t(s)-u):(e=t===lr||t===Ef?t:Rf,n=t,i=t);function r(s,u,l=0,h=s.length){if(l<h){if(e(u,u)!==0)return h;do{const d=l+h>>>1;n(s[d],u)<0?l=d+1:h=d}while(l<h)}return l}function a(s,u,l=0,h=s.length){if(l<h){if(e(u,u)!==0)return h;do{const d=l+h>>>1;n(s[d],u)<=0?l=d+1:h=d}while(l<h)}return l}function o(s,u,l=0,h=s.length){const d=r(s,u,l,h-1);return d>l&&i(s[d-1],u)>-i(s[d],u)?d-1:d}return{left:r,center:o,right:a}}function Rf(){return 0}function Lf(t){return t===null?NaN:+t}const Mf=co(lr),Df=Mf.right;co(Lf).center;const Nf=Df;class Es extends Map{constructor(e,n=Of){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(Rs(this,e))}has(e){return super.has(Rs(this,e))}set(e,n){return super.set(If(this,e),n)}delete(e){return super.delete(Pf(this,e))}}function Rs({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function If({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Pf({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Of(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Ff=Math.sqrt(50),Xf=Math.sqrt(10),Bf=Math.sqrt(2);function yr(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=Ff?10:a>=Xf?5:a>=Bf?2:1;let s,u,l;return r<0?(l=Math.pow(10,-r)/o,s=Math.round(t*l),u=Math.round(e*l),s/l<t&&++s,u/l>e&&--u,l=-l):(l=Math.pow(10,r)*o,s=Math.round(t/l),u=Math.round(e/l),s*l<t&&++s,u*l>e&&--u),u<s&&.5<=n&&n<2?yr(t,e,n*2):[s,u,l]}function Fa(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,a,o]=i?yr(e,t,n):yr(t,e,n);if(!(a>=r))return[];const s=a-r+1,u=new Array(s);if(i)if(o<0)for(let l=0;l<s;++l)u[l]=(a-l)/-o;else for(let l=0;l<s;++l)u[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)u[l]=(r+l)/-o;else for(let l=0;l<s;++l)u[l]=(r+l)*o;return u}function Xa(t,e,n){return e=+e,t=+t,n=+n,yr(t,e,n)[2]}function Ba(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Xa(e,t,n):Xa(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function zf(t){return t}var fr=1,hr=2,za=3,Si=4,Ls=1e-6;function Hf(t){return"translate("+t+",0)"}function Yf(t){return"translate(0,"+t+")"}function Uf(t){return e=>+t(e)}function Vf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Wf(){return!this.__axis}function Pr(t,e){var n=[],i=null,r=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=t===fr||t===Si?-1:1,h=t===Si||t===hr?"x":"y",d=t===fr||t===za?Hf:Yf;function v(y){var m=i??(e.ticks?e.ticks.apply(e,n):e.domain()),T=r??(e.tickFormat?e.tickFormat.apply(e,n):zf),C=Math.max(a,0)+s,A=e.range(),S=+A[0]+u,D=+A[A.length-1]+u,L=(e.bandwidth?Vf:Uf)(e.copy(),u),P=y.selection?y.selection():y,g=P.selectAll(".domain").data([null]),F=P.selectAll(".tick").data(m,e).order(),H=F.exit(),K=F.enter().append("g").attr("class","tick"),W=F.select("line"),V=F.select("text");g=g.merge(g.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge(K),W=W.merge(K.append("line").attr("stroke","currentColor").attr(h+"2",l*a)),V=V.merge(K.append("text").attr("fill","currentColor").attr(h,l*C).attr("dy",t===fr?"0em":t===za?"0.71em":"0.32em")),y!==P&&(g=g.transition(y),F=F.transition(y),W=W.transition(y),V=V.transition(y),H=H.transition(y).attr("opacity",Ls).attr("transform",function(nt){return isFinite(nt=L(nt))?d(nt+u):this.getAttribute("transform")}),K.attr("opacity",Ls).attr("transform",function(nt){var U=this.parentNode.__axis;return d((U&&isFinite(U=U(nt))?U:L(nt))+u)})),H.remove(),g.attr("d",t===Si||t===hr?o?"M"+l*o+","+S+"H"+u+"V"+D+"H"+l*o:"M"+u+","+S+"V"+D:o?"M"+S+","+l*o+"V"+u+"H"+D+"V"+l*o:"M"+S+","+u+"H"+D),F.attr("opacity",1).attr("transform",function(nt){return d(L(nt)+u)}),W.attr(h+"2",l*a),V.attr(h,l*C).text(T),P.filter(Wf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===hr?"start":t===Si?"end":"middle"),P.each(function(){this.__axis=L})}return v.scale=function(y){return arguments.length?(e=y,v):e},v.ticks=function(){return n=Array.from(arguments),v},v.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),v):n.slice()},v.tickValues=function(y){return arguments.length?(i=y==null?null:Array.from(y),v):i&&i.slice()},v.tickFormat=function(y){return arguments.length?(r=y,v):r},v.tickSize=function(y){return arguments.length?(a=o=+y,v):a},v.tickSizeInner=function(y){return arguments.length?(a=+y,v):a},v.tickSizeOuter=function(y){return arguments.length?(o=+y,v):o},v.tickPadding=function(y){return arguments.length?(s=+y,v):s},v.offset=function(y){return arguments.length?(u=+y,v):u},v}function jf(t){return Pr(fr,t)}function qf(t){return Pr(hr,t)}function Ms(t){return Pr(za,t)}function Ds(t){return Pr(Si,t)}var Gf={value:()=>{}};function uo(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new dr(n)}function dr(t){this._=t}function Zf(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}dr.prototype=uo.prototype={constructor:dr,on:function(t,e){var n=this._,i=Zf(t+"",n),r,a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((r=(t=i[a]).type)&&(r=Kf(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<o;)if(r=(t=i[a]).type)n[r]=Ns(n[r],t.name,e);else if(e==null)for(r in n)n[r]=Ns(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new dr(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,a;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],i=0,r=a.length;i<r;++i)a[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,a=i.length;r<a;++r)i[r].value.apply(e,n)}};function Kf(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function Ns(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Gf,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var Ha="http://www.w3.org/1999/xhtml";const Jn={svg:"http://www.w3.org/2000/svg",xhtml:Ha,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Or(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Jn.hasOwnProperty(e)?{space:Jn[e],local:t}:t}function Qf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ha&&e.documentElement.namespaceURI===Ha?e.createElement(t):e.createElementNS(n,t)}}function Jf(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Hc(t){var e=Or(t);return(e.local?Jf:Qf)(e)}function th(){}function lo(t){return t==null?th:function(){return this.querySelector(t)}}function eh(t){typeof t!="function"&&(t=lo(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a=e[r],o=a.length,s=i[r]=new Array(o),u,l,h=0;h<o;++h)(u=a[h])&&(l=t.call(u,u.__data__,h,a))&&("__data__"in u&&(l.__data__=u.__data__),s[h]=l);return new _e(i,this._parents)}function Yc(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function nh(){return[]}function Uc(t){return t==null?nh:function(){return this.querySelectorAll(t)}}function ih(t){return function(){return Yc(t.apply(this,arguments))}}function rh(t){typeof t=="function"?t=ih(t):t=Uc(t);for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a)for(var o=e[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&(i.push(t.call(u,u.__data__,l,o)),r.push(u));return new _e(i,r)}function Vc(t){return function(){return this.matches(t)}}function Wc(t){return function(e){return e.matches(t)}}var ah=Array.prototype.find;function oh(t){return function(){return ah.call(this.children,t)}}function sh(){return this.firstElementChild}function ch(t){return this.select(t==null?sh:oh(typeof t=="function"?t:Wc(t)))}var uh=Array.prototype.filter;function lh(){return Array.from(this.children)}function fh(t){return function(){return uh.call(this.children,t)}}function hh(t){return this.selectAll(t==null?lh:fh(typeof t=="function"?t:Wc(t)))}function dh(t){typeof t!="function"&&(t=Vc(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a=e[r],o=a.length,s=i[r]=[],u,l=0;l<o;++l)(u=a[l])&&t.call(u,u.__data__,l,a)&&s.push(u);return new _e(i,this._parents)}function jc(t){return new Array(t.length)}function gh(){return new _e(this._enter||this._groups.map(jc),this._parents)}function mr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}mr.prototype={constructor:mr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function ph(t){return function(){return t}}function vh(t,e,n,i,r,a){for(var o=0,s,u=e.length,l=a.length;o<l;++o)(s=e[o])?(s.__data__=a[o],i[o]=s):n[o]=new mr(t,a[o]);for(;o<u;++o)(s=e[o])&&(r[o]=s)}function xh(t,e,n,i,r,a,o){var s,u,l=new Map,h=e.length,d=a.length,v=new Array(h),y;for(s=0;s<h;++s)(u=e[s])&&(v[s]=y=o.call(u,u.__data__,s,e)+"",l.has(y)?r[s]=u:l.set(y,u));for(s=0;s<d;++s)y=o.call(t,a[s],s,a)+"",(u=l.get(y))?(i[s]=u,u.__data__=a[s],l.delete(y)):n[s]=new mr(t,a[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(v[s])===u&&(r[s]=u)}function yh(t){return t.__data__}function mh(t,e){if(!arguments.length)return Array.from(this,yh);var n=e?xh:vh,i=this._parents,r=this._groups;typeof t!="function"&&(t=ph(t));for(var a=r.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var h=i[l],d=r[l],v=d.length,y=_h(t.call(h,h&&h.__data__,l,i)),m=y.length,T=s[l]=new Array(m),C=o[l]=new Array(m),A=u[l]=new Array(v);n(h,d,T,C,A,y,e);for(var S=0,D=0,L,P;S<m;++S)if(L=T[S]){for(S>=D&&(D=S+1);!(P=C[D])&&++D<m;);L._next=P||null}}return o=new _e(o,i),o._enter=s,o._exit=u,o}function _h(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function bh(){return new _e(this._exit||this._groups.map(jc),this._parents)}function Th(t,e,n){var i=this.enter(),r=this,a=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?a.remove():n(a),i&&r?i.merge(r).order():r}function wh(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,a=i.length,o=Math.min(r,a),s=new Array(r),u=0;u<o;++u)for(var l=n[u],h=i[u],d=l.length,v=s[u]=new Array(d),y,m=0;m<d;++m)(y=l[m]||h[m])&&(v[m]=y);for(;u<r;++u)s[u]=n[u];return new _e(s,this._parents)}function $h(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,a=i[r],o;--r>=0;)(o=i[r])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ah(t){t||(t=Ch);function e(d,v){return d&&v?t(d.__data__,v.__data__):!d-!v}for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var o=n[a],s=o.length,u=r[a]=new Array(s),l,h=0;h<s;++h)(l=o[h])&&(u[h]=l);u.sort(e)}return new _e(r,this._parents).order()}function Ch(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Sh(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function kh(){return Array.from(this)}function Eh(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}return null}function Rh(){let t=0;for(const e of this)++t;return t}function Lh(){return!this.node()}function Mh(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],a=0,o=r.length,s;a<o;++a)(s=r[a])&&t.call(s,s.__data__,a,r);return this}function Dh(t){return function(){this.removeAttribute(t)}}function Nh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ih(t,e){return function(){this.setAttribute(t,e)}}function Ph(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Oh(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Fh(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Xh(t,e){var n=Or(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?Nh:Dh:typeof e=="function"?n.local?Fh:Oh:n.local?Ph:Ih)(n,e))}function qc(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Bh(t){return function(){this.style.removeProperty(t)}}function zh(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Hh(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Yh(t,e,n){return arguments.length>1?this.each((e==null?Bh:typeof e=="function"?Hh:zh)(t,e,n??"")):ti(this.node(),t)}function ti(t,e){return t.style.getPropertyValue(e)||qc(t).getComputedStyle(t,null).getPropertyValue(e)}function Uh(t){return function(){delete this[t]}}function Vh(t,e){return function(){this[t]=e}}function Wh(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function jh(t,e){return arguments.length>1?this.each((e==null?Uh:typeof e=="function"?Wh:Vh)(t,e)):this.node()[t]}function Gc(t){return t.trim().split(/^|\s+/)}function fo(t){return t.classList||new Zc(t)}function Zc(t){this._node=t,this._names=Gc(t.getAttribute("class")||"")}Zc.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Kc(t,e){for(var n=fo(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Qc(t,e){for(var n=fo(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function qh(t){return function(){Kc(this,t)}}function Gh(t){return function(){Qc(this,t)}}function Zh(t,e){return function(){(e.apply(this,arguments)?Kc:Qc)(this,t)}}function Kh(t,e){var n=Gc(t+"");if(arguments.length<2){for(var i=fo(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Zh:e?qh:Gh)(n,e))}function Qh(){this.textContent=""}function Jh(t){return function(){this.textContent=t}}function td(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ed(t){return arguments.length?this.each(t==null?Qh:(typeof t=="function"?td:Jh)(t)):this.node().textContent}function nd(){this.innerHTML=""}function id(t){return function(){this.innerHTML=t}}function rd(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ad(t){return arguments.length?this.each(t==null?nd:(typeof t=="function"?rd:id)(t)):this.node().innerHTML}function od(){this.nextSibling&&this.parentNode.appendChild(this)}function sd(){return this.each(od)}function cd(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ud(){return this.each(cd)}function ld(t){var e=typeof t=="function"?t:Hc(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function fd(){return null}function hd(t,e){var n=typeof t=="function"?t:Hc(t),i=e==null?fd:typeof e=="function"?e:lo(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function dd(){var t=this.parentNode;t&&t.removeChild(this)}function gd(){return this.each(dd)}function pd(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function vd(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xd(t){return this.select(t?vd:pd)}function yd(t){return arguments.length?this.property("__data__",t):this.node().__data__}function md(t){return function(e){t.call(this,e,this.__data__)}}function _d(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function bd(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,a;n<r;++n)a=e[n],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++i]=a;++i?e.length=i:delete this.__on}}}function Td(t,e,n){return function(){var i=this.__on,r,a=md(e);if(i){for(var o=0,s=i.length;o<s;++o)if((r=i[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=e;return}}this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function wd(t,e,n){var i=_d(t+""),r,a=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,h;u<l;++u)for(r=0,h=s[u];r<a;++r)if((o=i[r]).type===h.type&&o.name===h.name)return h.value}return}for(s=e?Td:bd,r=0;r<a;++r)this.each(s(i[r],e,n));return this}function Jc(t,e,n){var i=qc(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function $d(t,e){return function(){return Jc(this,t,e)}}function Ad(t,e){return function(){return Jc(this,t,e.apply(this,arguments))}}function Cd(t,e){return this.each((typeof e=="function"?Ad:$d)(t,e))}function*Sd(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,a=i.length,o;r<a;++r)(o=i[r])&&(yield o)}var ho=[null];function _e(t,e){this._groups=t,this._parents=e}function si(){return new _e([[document.documentElement]],ho)}function kd(){return this}_e.prototype=si.prototype={constructor:_e,select:eh,selectAll:rh,selectChild:ch,selectChildren:hh,filter:dh,data:mh,enter:gh,exit:bh,join:Th,merge:wh,selection:kd,order:$h,sort:Ah,call:Sh,nodes:kh,node:Eh,size:Rh,empty:Lh,each:Mh,attr:Xh,style:Yh,property:jh,classed:Kh,text:ed,html:ad,raise:sd,lower:ud,append:ld,insert:hd,remove:gd,clone:xd,datum:yd,on:wd,dispatch:Cd,[Symbol.iterator]:Sd};function dt(t){return typeof t=="string"?new _e([[document.querySelector(t)]],[document.documentElement]):new _e([[t]],ho)}function Ed(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ya(t,e){if(t=Ed(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}function tu(t){return typeof t=="string"?new _e([document.querySelectorAll(t)],[document.documentElement]):new _e([Yc(t)],ho)}const Rd={passive:!1},Mi={capture:!0,passive:!1};function va(t){t.stopImmediatePropagation()}function Kn(t){t.preventDefault(),t.stopImmediatePropagation()}function Ld(t){var e=t.document.documentElement,n=dt(t).on("dragstart.drag",Kn,Mi);"onselectstart"in e?n.on("selectstart.drag",Kn,Mi):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Md(t,e){var n=t.document.documentElement,i=dt(t).on("dragstart.drag",null);e&&(i.on("click.drag",Kn,Mi),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const nr=t=>()=>t;function Ua(t,{sourceEvent:e,subject:n,target:i,identifier:r,active:a,x:o,y:s,dx:u,dy:l,dispatch:h}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}Ua.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Dd(t){return!t.ctrlKey&&!t.button}function Nd(){return this.parentNode}function Id(t,e){return e??{x:t.x,y:t.y}}function Pd(){return navigator.maxTouchPoints||"ontouchstart"in this}function Od(){var t=Dd,e=Nd,n=Id,i=Pd,r={},a=uo("start","drag","end"),o=0,s,u,l,h,d=0;function v(L){L.on("mousedown.drag",y).filter(i).on("touchstart.drag",C).on("touchmove.drag",A,Rd).on("touchend.drag touchcancel.drag",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(L,P){if(!(h||!t.call(this,L,P))){var g=D(this,e.call(this,L,P),L,P,"mouse");g&&(dt(L.view).on("mousemove.drag",m,Mi).on("mouseup.drag",T,Mi),Ld(L.view),va(L),l=!1,s=L.clientX,u=L.clientY,g("start",L))}}function m(L){if(Kn(L),!l){var P=L.clientX-s,g=L.clientY-u;l=P*P+g*g>d}r.mouse("drag",L)}function T(L){dt(L.view).on("mousemove.drag mouseup.drag",null),Md(L.view,l),Kn(L),r.mouse("end",L)}function C(L,P){if(t.call(this,L,P)){var g=L.changedTouches,F=e.call(this,L,P),H=g.length,K,W;for(K=0;K<H;++K)(W=D(this,F,L,P,g[K].identifier,g[K]))&&(va(L),W("start",L,g[K]))}}function A(L){var P=L.changedTouches,g=P.length,F,H;for(F=0;F<g;++F)(H=r[P[F].identifier])&&(Kn(L),H("drag",L,P[F]))}function S(L){var P=L.changedTouches,g=P.length,F,H;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),F=0;F<g;++F)(H=r[P[F].identifier])&&(va(L),H("end",L,P[F]))}function D(L,P,g,F,H,K){var W=a.copy(),V=Ya(K||g,P),nt,U,G;if((G=n.call(L,new Ua("beforestart",{sourceEvent:g,target:v,identifier:H,active:o,x:V[0],y:V[1],dx:0,dy:0,dispatch:W}),F))!=null)return nt=G.x-V[0]||0,U=G.y-V[1]||0,function vt(mt,ut,Rt){var gt=V,It;switch(mt){case"start":r[H]=vt,It=o++;break;case"end":delete r[H],--o;case"drag":V=Ya(Rt||ut,P),It=o;break}W.call(mt,L,new Ua(mt,{sourceEvent:ut,subject:G,target:v,identifier:H,active:It,x:V[0]+nt,y:V[1]+U,dx:V[0]-gt[0],dy:V[1]-gt[1],dispatch:W}),F)}}return v.filter=function(L){return arguments.length?(t=typeof L=="function"?L:nr(!!L),v):t},v.container=function(L){return arguments.length?(e=typeof L=="function"?L:nr(L),v):e},v.subject=function(L){return arguments.length?(n=typeof L=="function"?L:nr(L),v):n},v.touchable=function(L){return arguments.length?(i=typeof L=="function"?L:nr(!!L),v):i},v.on=function(){var L=a.on.apply(a,arguments);return L===a?v:L},v.clickDistance=function(L){return arguments.length?(d=(L=+L)*L,v):Math.sqrt(d)},v}function go(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function eu(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Bi(){}var Di=.7,_r=1/Di,Qn="\\s*([+-]?\\d+)\\s*",Ni="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fd=/^#([0-9a-f]{3,8})$/,Xd=new RegExp(`^rgb\\(${Qn},${Qn},${Qn}\\)$`),Bd=new RegExp(`^rgb\\(${Ge},${Ge},${Ge}\\)$`),zd=new RegExp(`^rgba\\(${Qn},${Qn},${Qn},${Ni}\\)$`),Hd=new RegExp(`^rgba\\(${Ge},${Ge},${Ge},${Ni}\\)$`),Yd=new RegExp(`^hsl\\(${Ni},${Ge},${Ge}\\)$`),Ud=new RegExp(`^hsla\\(${Ni},${Ge},${Ge},${Ni}\\)$`),Is={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};go(Bi,Dn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ps,formatHex:Ps,formatHex8:Vd,formatHsl:Wd,formatRgb:Os,toString:Os});function Ps(){return this.rgb().formatHex()}function Vd(){return this.rgb().formatHex8()}function Wd(){return nu(this).formatHsl()}function Os(){return this.rgb().formatRgb()}function Dn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Fd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Fs(e):n===3?new Se(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ir(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ir(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Xd.exec(t))?new Se(e[1],e[2],e[3],1):(e=Bd.exec(t))?new Se(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=zd.exec(t))?ir(e[1],e[2],e[3],e[4]):(e=Hd.exec(t))?ir(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Yd.exec(t))?zs(e[1],e[2]/100,e[3]/100,1):(e=Ud.exec(t))?zs(e[1],e[2]/100,e[3]/100,e[4]):Is.hasOwnProperty(t)?Fs(Is[t]):t==="transparent"?new Se(NaN,NaN,NaN,0):null}function Fs(t){return new Se(t>>16&255,t>>8&255,t&255,1)}function ir(t,e,n,i){return i<=0&&(t=e=n=NaN),new Se(t,e,n,i)}function jd(t){return t instanceof Bi||(t=Dn(t)),t?(t=t.rgb(),new Se(t.r,t.g,t.b,t.opacity)):new Se}function Va(t,e,n,i){return arguments.length===1?jd(t):new Se(t,e,n,i??1)}function Se(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}go(Se,Va,eu(Bi,{brighter(t){return t=t==null?_r:Math.pow(_r,t),new Se(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Di:Math.pow(Di,t),new Se(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Se(Mn(this.r),Mn(this.g),Mn(this.b),br(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:Xs,formatHex:Xs,formatHex8:qd,formatRgb:Bs,toString:Bs}));function Xs(){return`#${Rn(this.r)}${Rn(this.g)}${Rn(this.b)}`}function qd(){return`#${Rn(this.r)}${Rn(this.g)}${Rn(this.b)}${Rn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bs(){const t=br(this.opacity);return`${t===1?"rgb(":"rgba("}${Mn(this.r)}, ${Mn(this.g)}, ${Mn(this.b)}${t===1?")":`, ${t})`}`}function br(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Mn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Rn(t){return t=Mn(t),(t<16?"0":"")+t.toString(16)}function zs(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new He(t,e,n,i)}function nu(t){if(t instanceof He)return new He(t.h,t.s,t.l,t.opacity);if(t instanceof Bi||(t=Dn(t)),!t)return new He;if(t instanceof He)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,u=(a+r)/2;return s?(e===a?o=(n-i)/s+(n<i)*6:n===a?o=(i-e)/s+2:o=(e-n)/s+4,s/=u<.5?a+r:2-a-r,o*=60):s=u>0&&u<1?0:o,new He(o,s,u,t.opacity)}function Gd(t,e,n,i){return arguments.length===1?nu(t):new He(t,e,n,i??1)}function He(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}go(He,Gd,eu(Bi,{brighter(t){return t=t==null?_r:Math.pow(_r,t),new He(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Di:Math.pow(Di,t),new He(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Se(xa(t>=240?t-240:t+120,r,i),xa(t,r,i),xa(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new He(Hs(this.h),rr(this.s),rr(this.l),br(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 t=br(this.opacity);return`${t===1?"hsl(":"hsla("}${Hs(this.h)}, ${rr(this.s)*100}%, ${rr(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Hs(t){return t=(t||0)%360,t<0?t+360:t}function rr(t){return Math.max(0,Math.min(1,t||0))}function xa(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const po=t=>()=>t;function Zd(t,e){return function(n){return t+n*e}}function Kd(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function Qd(t){return(t=+t)==1?iu:function(e,n){return n-e?Kd(e,n,t):po(isNaN(e)?n:e)}}function iu(t,e){var n=e-t;return n?Zd(t,n):po(isNaN(t)?e:t)}const Tr=function t(e){var n=Qd(e);function i(r,a){var o=n((r=Va(r)).r,(a=Va(a)).r),s=n(r.g,a.g),u=n(r.b,a.b),l=iu(r.opacity,a.opacity);return function(h){return r.r=o(h),r.g=s(h),r.b=u(h),r.opacity=l(h),r+""}}return i.gamma=t,i}(1);function Jd(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function tg(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function eg(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),a=new Array(n),o;for(o=0;o<i;++o)r[o]=zi(t[o],e[o]);for(;o<n;++o)a[o]=e[o];return function(s){for(o=0;o<i;++o)a[o]=r[o](s);return a}}function ng(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function ze(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ig(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=zi(t[r],e[r]):i[r]=e[r];return function(a){for(r in n)i[r]=n[r](a);return i}}var Wa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ya=new RegExp(Wa.source,"g");function rg(t){return function(){return t}}function ag(t){return function(e){return t(e)+""}}function ru(t,e){var n=Wa.lastIndex=ya.lastIndex=0,i,r,a,o=-1,s=[],u=[];for(t=t+"",e=e+"";(i=Wa.exec(t))&&(r=ya.exec(e));)(a=r.index)>n&&(a=e.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:ze(i,r)})),n=ya.lastIndex;return n<e.length&&(a=e.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?ag(u[0].x):rg(e):(e=u.length,function(l){for(var h=0,d;h<e;++h)s[(d=u[h]).i]=d.x(l);return s.join("")})}function zi(t,e){var n=typeof e,i;return e==null||n==="boolean"?po(e):(n==="number"?ze:n==="string"?(i=Dn(e))?(e=i,Tr):ru:e instanceof Dn?Tr:e instanceof Date?ng:tg(e)?Jd:Array.isArray(e)?eg:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?ig:ze)(t,e)}function og(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Ys=180/Math.PI,ja={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function au(t,e,n,i,r,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,u/=s),t*i<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,t)*Ys,skewX:Math.atan(u)*Ys,scaleX:o,scaleY:s}}var ar;function sg(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?ja:au(e.a,e.b,e.c,e.d,e.e,e.f)}function cg(t){return t==null||(ar||(ar=document.createElementNS("http://www.w3.org/2000/svg","g")),ar.setAttribute("transform",t),!(t=ar.transform.baseVal.consolidate()))?ja:(t=t.matrix,au(t.a,t.b,t.c,t.d,t.e,t.f))}function ou(t,e,n,i){function r(l){return l.length?l.pop()+" ":""}function a(l,h,d,v,y,m){if(l!==d||h!==v){var T=y.push("translate(",null,e,null,n);m.push({i:T-4,x:ze(l,d)},{i:T-2,x:ze(h,v)})}else(d||v)&&y.push("translate("+d+e+v+n)}function o(l,h,d,v){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),v.push({i:d.push(r(d)+"rotate(",null,i)-2,x:ze(l,h)})):h&&d.push(r(d)+"rotate("+h+i)}function s(l,h,d,v){l!==h?v.push({i:d.push(r(d)+"skewX(",null,i)-2,x:ze(l,h)}):h&&d.push(r(d)+"skewX("+h+i)}function u(l,h,d,v,y,m){if(l!==d||h!==v){var T=y.push(r(y)+"scale(",null,",",null,")");m.push({i:T-4,x:ze(l,d)},{i:T-2,x:ze(h,v)})}else(d!==1||v!==1)&&y.push(r(y)+"scale("+d+","+v+")")}return function(l,h){var d=[],v=[];return l=t(l),h=t(h),a(l.translateX,l.translateY,h.translateX,h.translateY,d,v),o(l.rotate,h.rotate,d,v),s(l.skewX,h.skewX,d,v),u(l.scaleX,l.scaleY,h.scaleX,h.scaleY,d,v),l=h=null,function(y){for(var m=-1,T=v.length,C;++m<T;)d[(C=v[m]).i]=C.x(y);return d.join("")}}}var ug=ou(sg,"px, ","px)","deg)"),lg=ou(cg,", ",")",")"),ei=0,ki=0,_i=0,su=1e3,wr,Ei,$r=0,Nn=0,Fr=0,Ii=typeof performance=="object"&&performance.now?performance:Date,cu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function vo(){return Nn||(cu(fg),Nn=Ii.now()+Fr)}function fg(){Nn=0}function Ar(){this._call=this._time=this._next=null}Ar.prototype=uu.prototype={constructor:Ar,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?vo():+n)+(e==null?0:+e),!this._next&&Ei!==this&&(Ei?Ei._next=this:wr=this,Ei=this),this._call=t,this._time=n,qa()},stop:function(){this._call&&(this._call=null,this._time=1/0,qa())}};function uu(t,e,n){var i=new Ar;return i.restart(t,e,n),i}function hg(){vo(),++ei;for(var t=wr,e;t;)(e=Nn-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ei}function Us(){Nn=($r=Ii.now())+Fr,ei=ki=0;try{hg()}finally{ei=0,gg(),Nn=0}}function dg(){var t=Ii.now(),e=t-$r;e>su&&(Fr-=e,$r=t)}function gg(){for(var t,e=wr,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:wr=n);Ei=t,qa(i)}function qa(t){if(!ei){ki&&(ki=clearTimeout(ki));var e=t-Nn;e>24?(t<1/0&&(ki=setTimeout(Us,t-Ii.now()-Fr)),_i&&(_i=clearInterval(_i))):(_i||($r=Ii.now(),_i=setInterval(dg,su)),ei=1,cu(Us))}}function Vs(t,e,n){var i=new Ar;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var pg=uo("start","end","cancel","interrupt"),vg=[],lu=0,Ws=1,Ga=2,gr=3,js=4,Za=5,pr=6;function Xr(t,e,n,i,r,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;xg(t,n,{name:e,index:i,group:r,on:pg,tween:vg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:lu})}function xo(t,e){var n=Ue(t,e);if(n.state>lu)throw new Error("too late; already scheduled");return n}function Je(t,e){var n=Ue(t,e);if(n.state>gr)throw new Error("too late; already running");return n}function Ue(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function xg(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=uu(a,0,n.time);function a(l){n.state=Ws,n.timer.restart(o,n.delay,n.time),n.delay<=l&&o(l-n.delay)}function o(l){var h,d,v,y;if(n.state!==Ws)return u();for(h in i)if(y=i[h],y.name===n.name){if(y.state===gr)return Vs(o);y.state===js?(y.state=pr,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete i[h]):+h<e&&(y.state=pr,y.timer.stop(),y.on.call("cancel",t,t.__data__,y.index,y.group),delete i[h])}if(Vs(function(){n.state===gr&&(n.state=js,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=Ga,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ga){for(n.state=gr,r=new Array(v=n.tween.length),h=0,d=-1;h<v;++h)(y=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(r[++d]=y);r.length=d+1}}function s(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=Za,1),d=-1,v=r.length;++d<v;)r[d].call(t,h);n.state===Za&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){n.state=pr,n.timer.stop(),delete i[e];for(var l in i)return;delete t.__transition}}function yg(t,e){var n=t.__transition,i,r,a=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((i=n[o]).name!==e){a=!1;continue}r=i.state>Ga&&i.state<Za,i.state=pr,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[o]}a&&delete t.__transition}}function mg(t){return this.each(function(){yg(this,t)})}function _g(t,e){var n,i;return function(){var r=Je(this,t),a=r.tween;if(a!==n){i=n=a;for(var o=0,s=i.length;o<s;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}r.tween=i}}function bg(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var a=Je(this,t),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:e,value:n},u=0,l=r.length;u<l;++u)if(r[u].name===e){r[u]=s;break}u===l&&r.push(s)}a.tween=r}}function Tg(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=Ue(this.node(),n).tween,r=0,a=i.length,o;r<a;++r)if((o=i[r]).name===t)return o.value;return null}return this.each((e==null?_g:bg)(n,t,e))}function yo(t,e,n){var i=t._id;return t.each(function(){var r=Je(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return Ue(r,i).value[e]}}function fu(t,e){var n;return(typeof e=="number"?ze:e instanceof Dn?Tr:(n=Dn(e))?(e=n,Tr):ru)(t,e)}function wg(t){return function(){this.removeAttribute(t)}}function $g(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ag(t,e,n){var i,r=n+"",a;return function(){var o=this.getAttribute(t);return o===r?null:o===i?a:a=e(i=o,n)}}function Cg(t,e,n){var i,r=n+"",a;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===i?a:a=e(i=o,n)}}function Sg(t,e,n){var i,r,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(t):(o=this.getAttribute(t),u=s+"",o===u?null:o===i&&u===r?a:(r=u,a=e(i=o,s)))}}function kg(t,e,n){var i,r,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),u=s+"",o===u?null:o===i&&u===r?a:(r=u,a=e(i=o,s)))}}function Eg(t,e){var n=Or(t),i=n==="transform"?lg:fu;return this.attrTween(t,typeof e=="function"?(n.local?kg:Sg)(n,i,yo(this,"attr."+t,e)):e==null?(n.local?$g:wg)(n):(n.local?Cg:Ag)(n,i,e))}function Rg(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Lg(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Mg(t,e){var n,i;function r(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&Lg(t,a)),n}return r._value=e,r}function Dg(t,e){var n,i;function r(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&Rg(t,a)),n}return r._value=e,r}function Ng(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=Or(t);return this.tween(n,(i.local?Mg:Dg)(i,e))}function Ig(t,e){return function(){xo(this,t).delay=+e.apply(this,arguments)}}function Pg(t,e){return e=+e,function(){xo(this,t).delay=e}}function Og(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Ig:Pg)(e,t)):Ue(this.node(),e).delay}function Fg(t,e){return function(){Je(this,t).duration=+e.apply(this,arguments)}}function Xg(t,e){return e=+e,function(){Je(this,t).duration=e}}function Bg(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Fg:Xg)(e,t)):Ue(this.node(),e).duration}function zg(t,e){if(typeof e!="function")throw new Error;return function(){Je(this,t).ease=e}}function Hg(t){var e=this._id;return arguments.length?this.each(zg(e,t)):Ue(this.node(),e).ease}function Yg(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Je(this,t).ease=n}}function Ug(t){if(typeof t!="function")throw new Error;return this.each(Yg(this._id,t))}function Vg(t){typeof t!="function"&&(t=Vc(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var a=e[r],o=a.length,s=i[r]=[],u,l=0;l<o;++l)(u=a[l])&&t.call(u,u.__data__,l,a)&&s.push(u);return new sn(i,this._parents,this._name,this._id)}function Wg(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s)for(var u=e[s],l=n[s],h=u.length,d=o[s]=new Array(h),v,y=0;y<h;++y)(v=u[y]||l[y])&&(d[y]=v);for(;s<i;++s)o[s]=e[s];return new sn(o,this._parents,this._name,this._id)}function jg(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function qg(t,e,n){var i,r,a=jg(e)?xo:Je;return function(){var o=a(this,t),s=o.on;s!==i&&(r=(i=s).copy()).on(e,n),o.on=r}}function Gg(t,e){var n=this._id;return arguments.length<2?Ue(this.node(),n).on.on(t):this.each(qg(n,t,e))}function Zg(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Kg(){return this.on("end.remove",Zg(this._id))}function Qg(t){var e=this._name,n=this._id;typeof t!="function"&&(t=lo(t));for(var i=this._groups,r=i.length,a=new Array(r),o=0;o<r;++o)for(var s=i[o],u=s.length,l=a[o]=new Array(u),h,d,v=0;v<u;++v)(h=s[v])&&(d=t.call(h,h.__data__,v,s))&&("__data__"in h&&(d.__data__=h.__data__),l[v]=d,Xr(l[v],e,n,v,l,Ue(h,n)));return new sn(a,this._parents,e,n)}function Jg(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Uc(t));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var u=i[s],l=u.length,h,d=0;d<l;++d)if(h=u[d]){for(var v=t.call(h,h.__data__,d,u),y,m=Ue(h,n),T=0,C=v.length;T<C;++T)(y=v[T])&&Xr(y,e,n,T,v,m);a.push(v),o.push(h)}return new sn(a,o,e,n)}var tp=si.prototype.constructor;function ep(){return new tp(this._groups,this._parents)}function np(t,e){var n,i,r;return function(){var a=ti(this,t),o=(this.style.removeProperty(t),ti(this,t));return a===o?null:a===n&&o===i?r:r=e(n=a,i=o)}}function hu(t){return function(){this.style.removeProperty(t)}}function ip(t,e,n){var i,r=n+"",a;return function(){var o=ti(this,t);return o===r?null:o===i?a:a=e(i=o,n)}}function rp(t,e,n){var i,r,a;return function(){var o=ti(this,t),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(t),ti(this,t))),o===u?null:o===i&&u===r?a:(r=u,a=e(i=o,s))}}function ap(t,e){var n,i,r,a="style."+e,o="end."+a,s;return function(){var u=Je(this,t),l=u.on,h=u.value[a]==null?s||(s=hu(e)):void 0;(l!==n||r!==h)&&(i=(n=l).copy()).on(o,r=h),u.on=i}}function op(t,e,n){var i=(t+="")=="transform"?ug:fu;return e==null?this.styleTween(t,np(t,i)).on("end.style."+t,hu(t)):typeof e=="function"?this.styleTween(t,rp(t,i,yo(this,"style."+t,e))).each(ap(this._id,t)):this.styleTween(t,ip(t,i,e),n).on("end.style."+t,null)}function sp(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function cp(t,e,n){var i,r;function a(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&sp(t,o,n)),i}return a._value=e,a}function up(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,cp(t,e,n??""))}function lp(t){return function(){this.textContent=t}}function fp(t){return function(){var e=t(this);this.textContent=e??""}}function hp(t){return this.tween("text",typeof t=="function"?fp(yo(this,"text",t)):lp(t==null?"":t+""))}function dp(t){return function(e){this.textContent=t.call(this,e)}}function gp(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&dp(r)),e}return i._value=t,i}function pp(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,gp(t))}function vp(){for(var t=this._name,e=this._id,n=gu(),i=this._groups,r=i.length,a=0;a<r;++a)for(var o=i[a],s=o.length,u,l=0;l<s;++l)if(u=o[l]){var h=Ue(u,e);Xr(u,t,n,l,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new sn(i,this._parents,t,n)}function xp(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--r===0&&a()}};n.each(function(){var l=Je(this,i),h=l.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),l.on=e}),r===0&&a()})}var yp=0;function sn(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function du(t){return si().transition(t)}function gu(){return++yp}var rn=si.prototype;sn.prototype=du.prototype={constructor:sn,select:Qg,selectAll:Jg,selectChild:rn.selectChild,selectChildren:rn.selectChildren,filter:Vg,merge:Wg,selection:ep,transition:vp,call:rn.call,nodes:rn.nodes,node:rn.node,size:rn.size,empty:rn.empty,each:rn.each,on:Gg,attr:Eg,attrTween:Ng,style:op,styleTween:up,text:hp,textTween:pp,remove:Kg,tween:Tg,delay:Og,duration:Bg,ease:Hg,easeVarying:Ug,end:xp,[Symbol.iterator]:rn[Symbol.iterator]};const mp=t=>+t;function _p(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var bp={time:null,delay:0,duration:250,ease:_p};function Tp(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function wp(t){var e,n;t instanceof sn?(e=t._id,t=t._name):(e=gu(),(n=bp).time=vo(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o=i[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&Xr(u,t,e,l,o,n||Tp(u,e));return new sn(i,this._parents,t,e)}si.prototype.interrupt=mg;si.prototype.transition=wp;function $p(t){var e=t.__brush;return e?e.dim.output(e.selection):null}const Ka=Math.PI,Qa=2*Ka,kn=1e-6,Ap=Qa-kn;function pu(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function Cp(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return pu;const n=10**e;return function(i){this._+=i[0];for(let r=1,a=i.length;r<a;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class Sp{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?pu:Cp(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,a,o){this._append`C${+e},${+n},${+i},${+r},${this._x1=+a},${this._y1=+o}`}arcTo(e,n,i,r,a){if(e=+e,n=+n,i=+i,r=+r,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=i-e,l=r-n,h=o-e,d=s-n,v=h*h+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(v>kn)if(!(Math.abs(d*u-l*h)>kn)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let y=i-o,m=r-s,T=u*u+l*l,C=y*y+m*m,A=Math.sqrt(T),S=Math.sqrt(v),D=a*Math.tan((Ka-Math.acos((T+v-C)/(2*A*S)))/2),L=D/S,P=D/A;Math.abs(L-1)>kn&&this._append`L${e+L*h},${n+L*d}`,this._append`A${a},${a},0,0,${+(d*y>h*m)},${this._x1=e+P*u},${this._y1=n+P*l}`}}arc(e,n,i,r,a,o){if(e=+e,n=+n,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let s=i*Math.cos(r),u=i*Math.sin(r),l=e+s,h=n+u,d=1^o,v=o?r-a:a-r;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>kn||Math.abs(this._y1-h)>kn)&&this._append`L${l},${h}`,i&&(v<0&&(v=v%Qa+Qa),v>Ap?this._append`A${i},${i},0,1,${d},${e-s},${n-u}A${i},${i},0,1,${d},${this._x1=l},${this._y1=h}`:v>kn&&this._append`A${i},${i},0,${+(v>=Ka)},${d},${this._x1=e+i*Math.cos(a)},${this._y1=n+i*Math.sin(a)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}var qs={},ma={},_a=34,bi=10,ba=13;function vu(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function kp(t,e){var n=vu(t);return function(i,r){return e(n(i),r,t)}}function Gs(t){var e=Object.create(null),n=[];return t.forEach(function(i){for(var r in i)r in e||n.push(e[r]=r)}),n}function Ae(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function Ep(t){return t<0?"-"+Ae(-t,6):t>9999?"+"+Ae(t,6):Ae(t,4)}function Rp(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":Ep(t.getUTCFullYear())+"-"+Ae(t.getUTCMonth()+1,2)+"-"+Ae(t.getUTCDate(),2)+(r?"T"+Ae(e,2)+":"+Ae(n,2)+":"+Ae(i,2)+"."+Ae(r,3)+"Z":i?"T"+Ae(e,2)+":"+Ae(n,2)+":"+Ae(i,2)+"Z":n||e?"T"+Ae(e,2)+":"+Ae(n,2)+"Z":"")}function xu(t){var e=new RegExp('["'+t+`
\r]`),n=t.charCodeAt(0);function i(d,v){var y,m,T=r(d,function(C,A){if(y)return y(C,A-1);m=C,y=v?kp(C,v):vu(C)});return T.columns=m||[],T}function r(d,v){var y=[],m=d.length,T=0,C=0,A,S=m<=0,D=!1;d.charCodeAt(m-1)===bi&&--m,d.charCodeAt(m-1)===ba&&--m;function L(){if(S)return ma;if(D)return D=!1,qs;var g,F=T,H;if(d.charCodeAt(F)===_a){for(;T++<m&&d.charCodeAt(T)!==_a||d.charCodeAt(++T)===_a;);return(g=T)>=m?S=!0:(H=d.charCodeAt(T++))===bi?D=!0:H===ba&&(D=!0,d.charCodeAt(T)===bi&&++T),d.slice(F+1,g-1).replace(/""/g,'"')}for(;T<m;){if((H=d.charCodeAt(g=T++))===bi)D=!0;else if(H===ba)D=!0,d.charCodeAt(T)===bi&&++T;else if(H!==n)continue;return d.slice(F,g)}return S=!0,d.slice(F,m)}for(;(A=L())!==ma;){for(var P=[];A!==qs&&A!==ma;)P.push(A),A=L();v&&(P=v(P,C++))==null||y.push(P)}return y}function a(d,v){return d.map(function(y){return v.map(function(m){return h(y[m])}).join(t)})}function o(d,v){return v==null&&(v=Gs(d)),[v.map(h).join(t)].concat(a(d,v)).join(`
`)}function s(d,v){return v==null&&(v=Gs(d)),a(d,v).join(`
`)}function u(d){return d.map(l).join(`
`)}function l(d){return d.map(h).join(t)}function h(d){return d==null?"":d instanceof Date?Rp(d):e.test(d+="")?'"'+d.replace(/"/g,'""')+'"':d}return{parse:i,parseRows:r,format:o,formatBody:s,formatRows:u,formatRow:l,formatValue:h}}var yu=xu(","),Lp=yu.parse,Mp=yu.parseRows,mu=xu(" "),Dp=mu.parse,Np=mu.parseRows;function Ip(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Cr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function ni(t){return t=Cr(Math.abs(t)),t?t[1]:NaN}function Pp(t,e){return function(n,i){for(var r=n.length,a=[],o=0,s=t[0],u=0;r>0&&s>0&&(u+s+1>i&&(s=Math.max(1,i-u)),a.push(n.substring(r-=s,r+s)),!((u+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function Op(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Fp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pi(t){if(!(e=Fp.exec(t)))throw new Error("invalid format: "+t);var e;return new mo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pi.prototype=mo.prototype;function mo(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}mo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Xp(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var _u;function Bp(t,e){var n=Cr(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(_u=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Cr(t,Math.max(0,e+a-1))[0]}function Zs(t,e){var n=Cr(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Ks={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Ip,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Zs(t*100,e),r:Zs,s:Bp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Qs(t){return t}var Js=Array.prototype.map,tc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zp(t){var e=t.grouping===void 0||t.thousands===void 0?Qs:Pp(Js.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?Qs:Op(Js.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"":t.minus+"",u=t.nan===void 0?"NaN":t.nan+"";function l(d){d=Pi(d);var v=d.fill,y=d.align,m=d.sign,T=d.symbol,C=d.zero,A=d.width,S=d.comma,D=d.precision,L=d.trim,P=d.type;P==="n"?(S=!0,P="g"):Ks[P]||(D===void 0&&(D=12),L=!0,P="g"),(C||v==="0"&&y==="=")&&(C=!0,v="0",y="=");var g=T==="$"?n:T==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",F=T==="$"?i:/[%p]/.test(P)?o:"",H=Ks[P],K=/[defgprs%]/.test(P);D=D===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function W(V){var nt=g,U=F,G,vt,mt;if(P==="c")U=H(V)+U,V="";else{V=+V;var ut=V<0||1/V<0;if(V=isNaN(V)?u:H(Math.abs(V),D),L&&(V=Xp(V)),ut&&+V==0&&m!=="+"&&(ut=!1),nt=(ut?m==="("?m:s:m==="-"||m==="("?"":m)+nt,U=(P==="s"?tc[8+_u/3]:"")+U+(ut&&m==="("?")":""),K){for(G=-1,vt=V.length;++G<vt;)if(mt=V.charCodeAt(G),48>mt||mt>57){U=(mt===46?r+V.slice(G+1):V.slice(G))+U,V=V.slice(0,G);break}}}S&&!C&&(V=e(V,1/0));var Rt=nt.length+V.length+U.length,gt=Rt<A?new Array(A-Rt+1).join(v):"";switch(S&&C&&(V=e(gt+V,gt.length?A-U.length:1/0),gt=""),y){case"<":V=nt+V+U+gt;break;case"=":V=nt+gt+V+U;break;case"^":V=gt.slice(0,Rt=gt.length>>1)+nt+V+U+gt.slice(Rt);break;default:V=gt+nt+V+U;break}return a(V)}return W.toString=function(){return d+""},W}function h(d,v){var y=l((d=Pi(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(ni(v)/3)))*3,T=Math.pow(10,-m),C=tc[8+m/3];return function(A){return y(T*A)+C}}return{format:l,formatPrefix:h}}var or,Oi,bu;Hp({thousands:",",grouping:[3],currency:["$",""]});function Hp(t){return or=zp(t),Oi=or.format,bu=or.formatPrefix,or}function Yp(t){return Math.max(0,-ni(Math.abs(t)))}function Up(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ni(e)/3)))*3-ni(Math.abs(t)))}function Vp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ni(e)-ni(t))+1}function ci(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const ec=Symbol("implicit");function Tu(){var t=new Es,e=[],n=[],i=ec;function r(a){let o=t.get(a);if(o===void 0){if(i!==ec)return i;t.set(a,o=e.push(a)-1)}return n[o%n.length]}return r.domain=function(a){if(!arguments.length)return e.slice();e=[],t=new Es;for(const o of a)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(a){return arguments.length?(n=Array.from(a),r):n.slice()},r.unknown=function(a){return arguments.length?(i=a,r):i},r.copy=function(){return Tu(e,n).unknown(i)},ci.apply(r,arguments),r}function Wp(t){return function(){return t}}function jp(t){return+t}var nc=[0,1];function qn(t){return t}function Ja(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Wp(isNaN(e)?NaN:.5)}function qp(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Gp(t,e,n){var i=t[0],r=t[1],a=e[0],o=e[1];return r<i?(i=Ja(r,i),a=n(o,a)):(i=Ja(i,r),a=n(a,o)),function(s){return a(i(s))}}function Zp(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),a=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=Ja(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(s){var u=Nf(t,s,1,i)-1;return a[u](r[u](s))}}function Br(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function _o(){var t=nc,e=nc,n=zi,i,r,a,o=qn,s,u,l;function h(){var v=Math.min(t.length,e.length);return o!==qn&&(o=qp(t[0],t[v-1])),s=v>2?Zp:Gp,u=l=null,d}function d(v){return v==null||isNaN(v=+v)?a:(u||(u=s(t.map(i),e,n)))(i(o(v)))}return d.invert=function(v){return o(r((l||(l=s(e,t.map(i),ze)))(v)))},d.domain=function(v){return arguments.length?(t=Array.from(v,jp),h()):t.slice()},d.range=function(v){return arguments.length?(e=Array.from(v),h()):e.slice()},d.rangeRound=function(v){return e=Array.from(v),n=og,h()},d.clamp=function(v){return arguments.length?(o=v?!0:qn,h()):o!==qn},d.interpolate=function(v){return arguments.length?(n=v,h()):n},d.unknown=function(v){return arguments.length?(a=v,d):a},function(v,y){return i=v,r=y,h()}}function wu(){return _o()(qn,qn)}function Kp(t,e,n,i){var r=Ba(t,e,n),a;switch(i=Pi(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(a=Up(r,o))&&(i.precision=a),bu(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=Vp(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=Yp(r))&&(i.precision=a-(i.type==="%")*2);break}}return Oi(i)}function $u(t){var e=t.domain;return t.ticks=function(n){var i=e();return Fa(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return Kp(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,a=i.length-1,o=i[r],s=i[a],u,l,h=10;for(s<o&&(l=o,o=s,s=l,l=r,r=a,a=l);h-- >0;){if(l=Xa(o,s,n),l===u)return i[r]=o,i[a]=s,e(i);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return t},t}function Sr(){var t=wu();return t.copy=function(){return Br(t,Sr())},ci.apply(t,arguments),$u(t)}function Au(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],a=t[i],o;return a<r&&(o=n,n=i,i=o,o=r,r=a,a=o),t[n]=e.floor(r),t[i]=e.ceil(a),t}function ic(t){return Math.log(t)}function rc(t){return Math.exp(t)}function Qp(t){return-Math.log(-t)}function Jp(t){return-Math.exp(-t)}function tv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ev(t){return t===10?tv:t===Math.E?Math.exp:e=>Math.pow(t,e)}function nv(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function ac(t){return(e,n)=>-t(-e,n)}function iv(t){const e=t(ic,rc),n=e.domain;let i=10,r,a;function o(){return r=nv(i),a=ev(i),n()[0]<0?(r=ac(r),a=ac(a),t(Qp,Jp)):t(ic,rc),e}return e.base=function(s){return arguments.length?(i=+s,o()):i},e.domain=function(s){return arguments.length?(n(s),o()):n()},e.ticks=s=>{const u=n();let l=u[0],h=u[u.length-1];const d=h<l;d&&([l,h]=[h,l]);let v=r(l),y=r(h),m,T;const C=s==null?10:+s;let A=[];if(!(i%1)&&y-v<C){if(v=Math.floor(v),y=Math.ceil(y),l>0){for(;v<=y;++v)for(m=1;m<i;++m)if(T=v<0?m/a(-v):m*a(v),!(T<l)){if(T>h)break;A.push(T)}}else for(;v<=y;++v)for(m=i-1;m>=1;--m)if(T=v>0?m/a(-v):m*a(v),!(T<l)){if(T>h)break;A.push(T)}A.length*2<C&&(A=Fa(l,h,C))}else A=Fa(v,y,Math.min(y-v,C)).map(a);return d?A.reverse():A},e.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=i===10?"s":","),typeof u!="function"&&(!(i%1)&&(u=Pi(u)).precision==null&&(u.trim=!0),u=Oi(u)),s===1/0)return u;const l=Math.max(1,i*s/e.ticks().length);return h=>{let d=h/a(Math.round(r(h)));return d*i<i-.5&&(d*=i),d<=l?u(h):""}},e.nice=()=>n(Au(n(),{floor:s=>a(Math.floor(r(s))),ceil:s=>a(Math.ceil(r(s)))})),e}function Cu(){const t=iv(_o()).domain([1,10]);return t.copy=()=>Br(t,Cu()).base(t.base()),ci.apply(t,arguments),t}function oc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function sc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function rv(t){var e=1,n=t(oc(e),sc(e));return n.constant=function(i){return arguments.length?t(oc(e=+i),sc(e)):e},$u(n)}function Su(){var t=rv(_o());return t.copy=function(){return Br(t,Su()).constant(t.constant())},ci.apply(t,arguments)}const Ta=new Date,wa=new Date;function se(t,e,n,i){function r(a){return t(a=arguments.length===0?new Date:new Date(+a)),a}return r.floor=a=>(t(a=new Date(+a)),a),r.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),r.round=a=>{const o=r(a),s=r.ceil(a);return a-o<s-a?o:s},r.offset=(a,o)=>(e(a=new Date(+a),o==null?1:Math.floor(o)),a),r.range=(a,o,s)=>{const u=[];if(a=r.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let l;do u.push(l=new Date(+a)),e(a,s),t(a);while(l<a&&a<o);return u},r.filter=a=>se(o=>{if(o>=o)for(;t(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;e(o,-1),!a(o););else for(;--s>=0;)for(;e(o,1),!a(o););}),n&&(r.count=(a,o)=>(Ta.setTime(+a),wa.setTime(+o),t(Ta),t(wa),Math.floor(n(Ta,wa))),r.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?o=>i(o)%a===0:o=>r.count(0,o)%a===0):r)),r}const kr=se(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);kr.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?se(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):kr);kr.range;const an=1e3,Pe=an*60,on=Pe*60,cn=on*24,bo=cn*7,cc=cn*30,$a=cn*365,Ln=se(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*an)},(t,e)=>(e-t)/an,t=>t.getUTCSeconds());Ln.range;const To=se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*an)},(t,e)=>{t.setTime(+t+e*Pe)},(t,e)=>(e-t)/Pe,t=>t.getMinutes());To.range;const wo=se(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Pe)},(t,e)=>(e-t)/Pe,t=>t.getUTCMinutes());wo.range;const $o=se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*an-t.getMinutes()*Pe)},(t,e)=>{t.setTime(+t+e*on)},(t,e)=>(e-t)/on,t=>t.getHours());$o.range;const Ao=se(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*on)},(t,e)=>(e-t)/on,t=>t.getUTCHours());Ao.range;const Hi=se(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Pe)/cn,t=>t.getDate()-1);Hi.range;const zr=se(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/cn,t=>t.getUTCDate()-1);zr.range;const ku=se(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/cn,t=>Math.floor(t/cn));ku.range;function On(t){return se(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Pe)/bo)}const Hr=On(0),Er=On(1),av=On(2),ov=On(3),ii=On(4),sv=On(5),cv=On(6);Hr.range;Er.range;av.range;ov.range;ii.range;sv.range;cv.range;function Fn(t){return se(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/bo)}const Yr=Fn(0),Rr=Fn(1),uv=Fn(2),lv=Fn(3),ri=Fn(4),fv=Fn(5),hv=Fn(6);Yr.range;Rr.range;uv.range;lv.range;ri.range;fv.range;hv.range;const Co=se(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Co.range;const So=se(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());So.range;const un=se(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());un.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:se(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});un.range;const ln=se(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ln.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:se(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});ln.range;function Eu(t,e,n,i,r,a){const o=[[Ln,1,an],[Ln,5,5*an],[Ln,15,15*an],[Ln,30,30*an],[a,1,Pe],[a,5,5*Pe],[a,15,15*Pe],[a,30,30*Pe],[r,1,on],[r,3,3*on],[r,6,6*on],[r,12,12*on],[i,1,cn],[i,2,2*cn],[n,1,bo],[e,1,cc],[e,3,3*cc],[t,1,$a]];function s(l,h,d){const v=h<l;v&&([l,h]=[h,l]);const y=d&&typeof d.range=="function"?d:u(l,h,d),m=y?y.range(l,+h+1):[];return v?m.reverse():m}function u(l,h,d){const v=Math.abs(h-l)/d,y=co(([,,C])=>C).right(o,v);if(y===o.length)return t.every(Ba(l/$a,h/$a,d));if(y===0)return kr.every(Math.max(Ba(l,h,d),1));const[m,T]=o[v/o[y-1][2]<o[y][2]/v?y-1:y];return m.every(T)}return[s,u]}const[dv,gv]=Eu(ln,So,Yr,ku,Ao,wo),[pv,vv]=Eu(un,Co,Hr,Hi,$o,To);function Aa(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ca(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ti(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function xv(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,a=t.days,o=t.shortDays,s=t.months,u=t.shortMonths,l=wi(r),h=$i(r),d=wi(a),v=$i(a),y=wi(o),m=$i(o),T=wi(s),C=$i(s),A=wi(u),S=$i(u),D={a:ut,A:Rt,b:gt,B:It,c:null,d:gc,e:gc,f:Bv,g:Zv,G:Qv,H:Ov,I:Fv,j:Xv,L:Ru,m:zv,M:Hv,p:Dt,q:fe,Q:xc,s:yc,S:Yv,u:Uv,U:Vv,V:Wv,w:jv,W:qv,x:null,X:null,y:Gv,Y:Kv,Z:Jv,"%":vc},L={a:ee,A:bt,b:Vt,B:he,c:null,d:pc,e:pc,f:ix,g:dx,G:px,H:tx,I:ex,j:nx,L:Mu,m:rx,M:ax,p:ne,q:ye,Q:xc,s:yc,S:ox,u:sx,U:cx,V:ux,w:lx,W:fx,x:null,X:null,y:hx,Y:gx,Z:vx,"%":vc},P={a:W,A:V,b:nt,B:U,c:G,d:hc,e:hc,f:Dv,g:fc,G:lc,H:dc,I:dc,j:Ev,L:Mv,m:kv,M:Rv,p:K,q:Sv,Q:Iv,s:Pv,S:Lv,u:Tv,U:wv,V:$v,w:bv,W:Av,x:vt,X:mt,y:fc,Y:lc,Z:Cv,"%":Nv};D.x=g(n,D),D.X=g(i,D),D.c=g(e,D),L.x=g(n,L),L.X=g(i,L),L.c=g(e,L);function g(J,ht){return function(_t){var Z=[],Bt=-1,kt=0,ie=J.length,et,Gt,Yi;for(_t instanceof Date||(_t=new Date(+_t));++Bt<ie;)J.charCodeAt(Bt)===37&&(Z.push(J.slice(kt,Bt)),(Gt=uc[et=J.charAt(++Bt)])!=null?et=J.charAt(++Bt):Gt=et==="e"?" ":"0",(Yi=ht[et])&&(et=Yi(_t,Gt)),Z.push(et),kt=Bt+1);return Z.push(J.slice(kt,Bt)),Z.join("")}}function F(J,ht){return function(_t){var Z=Ti(1900,void 0,1),Bt=H(Z,J,_t+="",0),kt,ie;if(Bt!=_t.length)return null;if("Q"in Z)return new Date(Z.Q);if("s"in Z)return new Date(Z.s*1e3+("L"in Z?Z.L:0));if(ht&&!("Z"in Z)&&(Z.Z=0),"p"in Z&&(Z.H=Z.H%12+Z.p*12),Z.m===void 0&&(Z.m="q"in Z?Z.q:0),"V"in Z){if(Z.V<1||Z.V>53)return null;"w"in Z||(Z.w=1),"Z"in Z?(kt=Ca(Ti(Z.y,0,1)),ie=kt.getUTCDay(),kt=ie>4||ie===0?Rr.ceil(kt):Rr(kt),kt=zr.offset(kt,(Z.V-1)*7),Z.y=kt.getUTCFullYear(),Z.m=kt.getUTCMonth(),Z.d=kt.getUTCDate()+(Z.w+6)%7):(kt=Aa(Ti(Z.y,0,1)),ie=kt.getDay(),kt=ie>4||ie===0?Er.ceil(kt):Er(kt),kt=Hi.offset(kt,(Z.V-1)*7),Z.y=kt.getFullYear(),Z.m=kt.getMonth(),Z.d=kt.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),ie="Z"in Z?Ca(Ti(Z.y,0,1)).getUTCDay():Aa(Ti(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(ie+5)%7:Z.w+Z.U*7-(ie+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,Ca(Z)):Aa(Z)}}function H(J,ht,_t,Z){for(var Bt=0,kt=ht.length,ie=_t.length,et,Gt;Bt<kt;){if(Z>=ie)return-1;if(et=ht.charCodeAt(Bt++),et===37){if(et=ht.charAt(Bt++),Gt=P[et in uc?ht.charAt(Bt++):et],!Gt||(Z=Gt(J,_t,Z))<0)return-1}else if(et!=_t.charCodeAt(Z++))return-1}return Z}function K(J,ht,_t){var Z=l.exec(ht.slice(_t));return Z?(J.p=h.get(Z[0].toLowerCase()),_t+Z[0].length):-1}function W(J,ht,_t){var Z=y.exec(ht.slice(_t));return Z?(J.w=m.get(Z[0].toLowerCase()),_t+Z[0].length):-1}function V(J,ht,_t){var Z=d.exec(ht.slice(_t));return Z?(J.w=v.get(Z[0].toLowerCase()),_t+Z[0].length):-1}function nt(J,ht,_t){var Z=A.exec(ht.slice(_t));return Z?(J.m=S.get(Z[0].toLowerCase()),_t+Z[0].length):-1}function U(J,ht,_t){var Z=T.exec(ht.slice(_t));return Z?(J.m=C.get(Z[0].toLowerCase()),_t+Z[0].length):-1}function G(J,ht,_t){return H(J,e,ht,_t)}function vt(J,ht,_t){return H(J,n,ht,_t)}function mt(J,ht,_t){return H(J,i,ht,_t)}function ut(J){return o[J.getDay()]}function Rt(J){return a[J.getDay()]}function gt(J){return u[J.getMonth()]}function It(J){return s[J.getMonth()]}function Dt(J){return r[+(J.getHours()>=12)]}function fe(J){return 1+~~(J.getMonth()/3)}function ee(J){return o[J.getUTCDay()]}function bt(J){return a[J.getUTCDay()]}function Vt(J){return u[J.getUTCMonth()]}function he(J){return s[J.getUTCMonth()]}function ne(J){return r[+(J.getUTCHours()>=12)]}function ye(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var ht=g(J+="",D);return ht.toString=function(){return J},ht},parse:function(J){var ht=F(J+="",!1);return ht.toString=function(){return J},ht},utcFormat:function(J){var ht=g(J+="",L);return ht.toString=function(){return J},ht},utcParse:function(J){var ht=F(J+="",!0);return ht.toString=function(){return J},ht}}}var uc={"-":"",_:" ",0:"0"},ue=/^\s*\d+/,yv=/^%/,mv=/[\\^$*+?|[\]().{}]/g;function Et(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(e)+r:r)}function _v(t){return t.replace(mv,"\\$&")}function wi(t){return new RegExp("^(?:"+t.map(_v).join("|")+")","i")}function $i(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function bv(t,e,n){var i=ue.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Tv(t,e,n){var i=ue.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function wv(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function $v(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Av(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function lc(t,e,n){var i=ue.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function fc(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Cv(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Sv(t,e,n){var i=ue.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function kv(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function hc(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Ev(t,e,n){var i=ue.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function dc(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Rv(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Lv(t,e,n){var i=ue.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Mv(t,e,n){var i=ue.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Dv(t,e,n){var i=ue.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Nv(t,e,n){var i=yv.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Iv(t,e,n){var i=ue.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Pv(t,e,n){var i=ue.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function gc(t,e){return Et(t.getDate(),e,2)}function Ov(t,e){return Et(t.getHours(),e,2)}function Fv(t,e){return Et(t.getHours()%12||12,e,2)}function Xv(t,e){return Et(1+Hi.count(un(t),t),e,3)}function Ru(t,e){return Et(t.getMilliseconds(),e,3)}function Bv(t,e){return Ru(t,e)+"000"}function zv(t,e){return Et(t.getMonth()+1,e,2)}function Hv(t,e){return Et(t.getMinutes(),e,2)}function Yv(t,e){return Et(t.getSeconds(),e,2)}function Uv(t){var e=t.getDay();return e===0?7:e}function Vv(t,e){return Et(Hr.count(un(t)-1,t),e,2)}function Lu(t){var e=t.getDay();return e>=4||e===0?ii(t):ii.ceil(t)}function Wv(t,e){return t=Lu(t),Et(ii.count(un(t),t)+(un(t).getDay()===4),e,2)}function jv(t){return t.getDay()}function qv(t,e){return Et(Er.count(un(t)-1,t),e,2)}function Gv(t,e){return Et(t.getFullYear()%100,e,2)}function Zv(t,e){return t=Lu(t),Et(t.getFullYear()%100,e,2)}function Kv(t,e){return Et(t.getFullYear()%1e4,e,4)}function Qv(t,e){var n=t.getDay();return t=n>=4||n===0?ii(t):ii.ceil(t),Et(t.getFullYear()%1e4,e,4)}function Jv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Et(e/60|0,"0",2)+Et(e%60,"0",2)}function pc(t,e){return Et(t.getUTCDate(),e,2)}function tx(t,e){return Et(t.getUTCHours(),e,2)}function ex(t,e){return Et(t.getUTCHours()%12||12,e,2)}function nx(t,e){return Et(1+zr.count(ln(t),t),e,3)}function Mu(t,e){return Et(t.getUTCMilliseconds(),e,3)}function ix(t,e){return Mu(t,e)+"000"}function rx(t,e){return Et(t.getUTCMonth()+1,e,2)}function ax(t,e){return Et(t.getUTCMinutes(),e,2)}function ox(t,e){return Et(t.getUTCSeconds(),e,2)}function sx(t){var e=t.getUTCDay();return e===0?7:e}function cx(t,e){return Et(Yr.count(ln(t)-1,t),e,2)}function Du(t){var e=t.getUTCDay();return e>=4||e===0?ri(t):ri.ceil(t)}function ux(t,e){return t=Du(t),Et(ri.count(ln(t),t)+(ln(t).getUTCDay()===4),e,2)}function lx(t){return t.getUTCDay()}function fx(t,e){return Et(Rr.count(ln(t)-1,t),e,2)}function hx(t,e){return Et(t.getUTCFullYear()%100,e,2)}function dx(t,e){return t=Du(t),Et(t.getUTCFullYear()%100,e,2)}function gx(t,e){return Et(t.getUTCFullYear()%1e4,e,4)}function px(t,e){var n=t.getUTCDay();return t=n>=4||n===0?ri(t):ri.ceil(t),Et(t.getUTCFullYear()%1e4,e,4)}function vx(){return"+0000"}function vc(){return"%"}function xc(t){return+t}function yc(t){return Math.floor(+t/1e3)}var Wn,ko,Nu,Eo,Iu;xx({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"]});function xx(t){return Wn=xv(t),ko=Wn.format,Nu=Wn.parse,Eo=Wn.utcFormat,Iu=Wn.utcParse,Wn}function yx(t){return new Date(t)}function mx(t){return t instanceof Date?+t:+new Date(+t)}function Ro(t,e,n,i,r,a,o,s,u,l){var h=wu(),d=h.invert,v=h.domain,y=l(".%L"),m=l(":%S"),T=l("%I:%M"),C=l("%I %p"),A=l("%a %d"),S=l("%b %d"),D=l("%B"),L=l("%Y");function P(g){return(u(g)<g?y:s(g)<g?m:o(g)<g?T:a(g)<g?C:i(g)<g?r(g)<g?A:S:n(g)<g?D:L)(g)}return h.invert=function(g){return new Date(d(g))},h.domain=function(g){return arguments.length?v(Array.from(g,mx)):v().map(yx)},h.ticks=function(g){var F=v();return t(F[0],F[F.length-1],g??10)},h.tickFormat=function(g,F){return F==null?P:l(F)},h.nice=function(g){var F=v();return(!g||typeof g.range!="function")&&(g=e(F[0],F[F.length-1],g??10)),g?v(Au(F,g)):h},h.copy=function(){return Br(h,Ro(t,e,n,i,r,a,o,s,u,l))},h}function _x(){return ci.apply(Ro(pv,vv,un,Co,Hr,Hi,$o,To,Ln,ko).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bx(){return ci.apply(Ro(dv,gv,ln,So,Yr,zr,Ao,wo,Ln,Eo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function St(t){return function(){return t}}const mc=Math.abs,ge=Math.atan2,Sn=Math.cos,Tx=Math.max,Sa=Math.min,Ve=Math.sin,Gn=Math.sqrt,pe=1e-12,Fi=Math.PI,Lr=Fi/2,vr=2*Fi;function wx(t){return t>1?0:t<-1?Fi:Math.acos(t)}function _c(t){return t>=1?Lr:t<=-1?-Lr:Math.asin(t)}function Lo(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new Sp(e)}function $x(t){return t.innerRadius}function Ax(t){return t.outerRadius}function Cx(t){return t.startAngle}function Sx(t){return t.endAngle}function kx(t){return t&&t.padAngle}function Ex(t,e,n,i,r,a,o,s){var u=n-t,l=i-e,h=o-r,d=s-a,v=d*u-h*l;if(!(v*v<pe))return v=(h*(e-a)-d*(t-r))/v,[t+v*u,e+v*l]}function sr(t,e,n,i,r,a,o){var s=t-n,u=e-i,l=(o?a:-a)/Gn(s*s+u*u),h=l*u,d=-l*s,v=t+h,y=e+d,m=n+h,T=i+d,C=(v+m)/2,A=(y+T)/2,S=m-v,D=T-y,L=S*S+D*D,P=r-a,g=v*T-m*y,F=(D<0?-1:1)*Gn(Tx(0,P*P*L-g*g)),H=(g*D-S*F)/L,K=(-g*S-D*F)/L,W=(g*D+S*F)/L,V=(-g*S+D*F)/L,nt=H-C,U=K-A,G=W-C,vt=V-A;return nt*nt+U*U>G*G+vt*vt&&(H=W,K=V),{cx:H,cy:K,x01:-h,y01:-d,x11:H*(r/P-1),y11:K*(r/P-1)}}function bc(){var t=$x,e=Ax,n=St(0),i=null,r=Cx,a=Sx,o=kx,s=null,u=Lo(l);function l(){var h,d,v=+t.apply(this,arguments),y=+e.apply(this,arguments),m=r.apply(this,arguments)-Lr,T=a.apply(this,arguments)-Lr,C=mc(T-m),A=T>m;if(s||(s=h=u()),y<v&&(d=y,y=v,v=d),!(y>pe))s.moveTo(0,0);else if(C>vr-pe)s.moveTo(y*Sn(m),y*Ve(m)),s.arc(0,0,y,m,T,!A),v>pe&&(s.moveTo(v*Sn(T),v*Ve(T)),s.arc(0,0,v,T,m,A));else{var S=m,D=T,L=m,P=T,g=C,F=C,H=o.apply(this,arguments)/2,K=H>pe&&(i?+i.apply(this,arguments):Gn(v*v+y*y)),W=Sa(mc(y-v)/2,+n.apply(this,arguments)),V=W,nt=W,U,G;if(K>pe){var vt=_c(K/v*Ve(H)),mt=_c(K/y*Ve(H));(g-=vt*2)>pe?(vt*=A?1:-1,L+=vt,P-=vt):(g=0,L=P=(m+T)/2),(F-=mt*2)>pe?(mt*=A?1:-1,S+=mt,D-=mt):(F=0,S=D=(m+T)/2)}var ut=y*Sn(S),Rt=y*Ve(S),gt=v*Sn(P),It=v*Ve(P);if(W>pe){var Dt=y*Sn(D),fe=y*Ve(D),ee=v*Sn(L),bt=v*Ve(L),Vt;if(C<Fi)if(Vt=Ex(ut,Rt,ee,bt,Dt,fe,gt,It)){var he=ut-Vt[0],ne=Rt-Vt[1],ye=Dt-Vt[0],J=fe-Vt[1],ht=1/Ve(wx((he*ye+ne*J)/(Gn(he*he+ne*ne)*Gn(ye*ye+J*J)))/2),_t=Gn(Vt[0]*Vt[0]+Vt[1]*Vt[1]);V=Sa(W,(v-_t)/(ht-1)),nt=Sa(W,(y-_t)/(ht+1))}else V=nt=0}F>pe?nt>pe?(U=sr(ee,bt,ut,Rt,y,nt,A),G=sr(Dt,fe,gt,It,y,nt,A),s.moveTo(U.cx+U.x01,U.cy+U.y01),nt<W?s.arc(U.cx,U.cy,nt,ge(U.y01,U.x01),ge(G.y01,G.x01),!A):(s.arc(U.cx,U.cy,nt,ge(U.y01,U.x01),ge(U.y11,U.x11),!A),s.arc(0,0,y,ge(U.cy+U.y11,U.cx+U.x11),ge(G.cy+G.y11,G.cx+G.x11),!A),s.arc(G.cx,G.cy,nt,ge(G.y11,G.x11),ge(G.y01,G.x01),!A))):(s.moveTo(ut,Rt),s.arc(0,0,y,S,D,!A)):s.moveTo(ut,Rt),!(v>pe)||!(g>pe)?s.lineTo(gt,It):V>pe?(U=sr(gt,It,Dt,fe,v,-V,A),G=sr(ut,Rt,ee,bt,v,-V,A),s.lineTo(U.cx+U.x01,U.cy+U.y01),V<W?s.arc(U.cx,U.cy,V,ge(U.y01,U.x01),ge(G.y01,G.x01),!A):(s.arc(U.cx,U.cy,V,ge(U.y01,U.x01),ge(U.y11,U.x11),!A),s.arc(0,0,v,ge(U.cy+U.y11,U.cx+U.x11),ge(G.cy+G.y11,G.cx+G.x11),A),s.arc(G.cx,G.cy,V,ge(G.y11,G.x11),ge(G.y01,G.x01),!A))):s.arc(0,0,v,P,L,A)}if(s.closePath(),h)return s=null,h+""||null}return l.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,d=(+r.apply(this,arguments)+ +a.apply(this,arguments))/2-Fi/2;return[Sn(d)*h,Ve(d)*h]},l.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:St(+h),l):t},l.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:St(+h),l):e},l.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:St(+h),l):n},l.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:St(+h),l):i},l.startAngle=function(h){return arguments.length?(r=typeof h=="function"?h:St(+h),l):r},l.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:St(+h),l):a},l.padAngle=function(h){return arguments.length?(o=typeof h=="function"?h:St(+h),l):o},l.context=function(h){return arguments.length?(s=h??null,l):s},l}function Mo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Pu(t){this._context=t}Pu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Do(t){return new Pu(t)}function Ou(t){return t[0]}function Fu(t){return t[1]}function Xu(t,e){var n=St(!0),i=null,r=Do,a=null,o=Lo(s);t=typeof t=="function"?t:t===void 0?Ou:St(t),e=typeof e=="function"?e:e===void 0?Fu:St(e);function s(u){var l,h=(u=Mo(u)).length,d,v=!1,y;for(i==null&&(a=r(y=o())),l=0;l<=h;++l)!(l<h&&n(d=u[l],l,u))===v&&((v=!v)?a.lineStart():a.lineEnd()),v&&a.point(+t(d,l,u),+e(d,l,u));if(y)return a=null,y+""||null}return s.x=function(u){return arguments.length?(t=typeof u=="function"?u:St(+u),s):t},s.y=function(u){return arguments.length?(e=typeof u=="function"?u:St(+u),s):e},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:St(!!u),s):n},s.curve=function(u){return arguments.length?(r=u,i!=null&&(a=r(i)),s):r},s.context=function(u){return arguments.length?(u==null?i=a=null:a=r(i=u),s):i},s}function Rx(t,e,n){var i=null,r=St(!0),a=null,o=Do,s=null,u=Lo(l);t=typeof t=="function"?t:t===void 0?Ou:St(+t),e=typeof e=="function"?e:St(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?Fu:St(+n);function l(d){var v,y,m,T=(d=Mo(d)).length,C,A=!1,S,D=new Array(T),L=new Array(T);for(a==null&&(s=o(S=u())),v=0;v<=T;++v){if(!(v<T&&r(C=d[v],v,d))===A)if(A=!A)y=v,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=v-1;m>=y;--m)s.point(D[m],L[m]);s.lineEnd(),s.areaEnd()}A&&(D[v]=+t(C,v,d),L[v]=+e(C,v,d),s.point(i?+i(C,v,d):D[v],n?+n(C,v,d):L[v]))}if(S)return s=null,S+""||null}function h(){return Xu().defined(r).curve(o).context(a)}return l.x=function(d){return arguments.length?(t=typeof d=="function"?d:St(+d),i=null,l):t},l.x0=function(d){return arguments.length?(t=typeof d=="function"?d:St(+d),l):t},l.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:St(+d),l):i},l.y=function(d){return arguments.length?(e=typeof d=="function"?d:St(+d),n=null,l):e},l.y0=function(d){return arguments.length?(e=typeof d=="function"?d:St(+d),l):e},l.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:St(+d),l):n},l.lineX0=l.lineY0=function(){return h().x(t).y(e)},l.lineY1=function(){return h().x(t).y(n)},l.lineX1=function(){return h().x(i).y(e)},l.defined=function(d){return arguments.length?(r=typeof d=="function"?d:St(!!d),l):r},l.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),l):o},l.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),l):a},l}function Lx(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Mx(t){return t}function Dx(){var t=Mx,e=Lx,n=null,i=St(0),r=St(vr),a=St(0);function o(s){var u,l=(s=Mo(s)).length,h,d,v=0,y=new Array(l),m=new Array(l),T=+i.apply(this,arguments),C=Math.min(vr,Math.max(-vr,r.apply(this,arguments)-T)),A,S=Math.min(Math.abs(C)/l,a.apply(this,arguments)),D=S*(C<0?-1:1),L;for(u=0;u<l;++u)(L=m[y[u]=u]=+t(s[u],u,s))>0&&(v+=L);for(e!=null?y.sort(function(P,g){return e(m[P],m[g])}):n!=null&&y.sort(function(P,g){return n(s[P],s[g])}),u=0,d=v?(C-l*D)/v:0;u<l;++u,T=A)h=y[u],L=m[h],A=T+(L>0?L*d:0)+D,m[h]={data:s[h],index:u,value:L,startAngle:T,endAngle:A,padAngle:S};return m}return o.value=function(s){return arguments.length?(t=typeof s=="function"?s:St(+s),o):t},o.sortValues=function(s){return arguments.length?(e=s,n=null,o):e},o.sort=function(s){return arguments.length?(n=s,e=null,o):n},o.startAngle=function(s){return arguments.length?(i=typeof s=="function"?s:St(+s),o):i},o.endAngle=function(s){return arguments.length?(r=typeof s=="function"?s:St(+s),o):r},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:St(+s),o):a},o}function yn(){}function Mr(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ur(t){this._context=t}Ur.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:Mr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Mr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Nx(t){return new Ur(t)}function Bu(t){this._context=t}Bu.prototype={areaStart:yn,areaEnd:yn,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Ix(t){return new Bu(t)}function zu(t){this._context=t}zu.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Px(t){return new zu(t)}function Hu(t,e){this._basis=new Ur(t),this._beta=e}Hu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],a=t[n]-i,o=e[n]-r,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(i+u*a),this._beta*e[s]+(1-this._beta)*(r+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Ox=function t(e){function n(i){return e===1?new Ur(i):new Hu(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Dr(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function No(t,e){this._context=t,this._k=(1-e)/6}No.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:Dr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Dr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Fx=function t(e){function n(i){return new No(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Io(t,e){this._context=t,this._k=(1-e)/6}Io.prototype={areaStart:yn,areaEnd:yn,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);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Dr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xx=function t(e){function n(i){return new Io(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Po(t,e){this._context=t,this._k=(1-e)/6}Po.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:Dr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bx=function t(e){function n(i){return new Po(i,e)}return n.tension=function(i){return t(+i)},n}(0);function Oo(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>pe){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>pe){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function Yu(t,e){this._context=t,this._alpha=e}Yu.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);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Oo(this,t,e);break}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const zx=function t(e){function n(i){return e?new Yu(i,e):new No(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Uu(t,e){this._context=t,this._alpha=e}Uu.prototype={areaStart:yn,areaEnd:yn,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);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Oo(this,t,e);break}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Hx=function t(e){function n(i){return e?new Uu(i,e):new Io(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Vu(t,e){this._context=t,this._alpha=e}Vu.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,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:Oo(this,t,e);break}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Yx=function t(e){function n(i){return e?new Vu(i,e):new Po(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Wu(t){this._context=t}Wu.prototype={areaStart:yn,areaEnd:yn,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Ux(t){return new Wu(t)}function Tc(t){return t<0?-1:1}function wc(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(Tc(a)+Tc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function $c(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ka(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function Nr(t){this._context=t}Nr.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:ka(this,this._t0,$c(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ka(this,$c(this,n=wc(this,t,e)),n);break;default:ka(this,this._t0,n=wc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ju(t){this._context=new qu(t)}(ju.prototype=Object.create(Nr.prototype)).point=function(t,e){Nr.prototype.point.call(this,e,t)};function qu(t){this._context=t}qu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,a){this._context.bezierCurveTo(e,t,i,n,a,r)}};function Vx(t){return new Nr(t)}function Wx(t){return new ju(t)}function Gu(t){this._context=t}Gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=Ac(t),r=Ac(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(i[0][a],r[0][a],i[1][a],r[1][a],t[o],e[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Ac(t){var e,n=t.length-1,i,r=new Array(n),a=new Array(n),o=new Array(n);for(r[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/a[e-1],a[e]-=i,o[e]-=i*o[e-1];for(r[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)r[e]=(o[e]-r[e+1])/a[e];for(a[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)a[e]=2*t[e+1]-r[e+1];return[r,a]}function jx(t){return new Gu(t)}function Vr(t,e){this._context=t,this._t=e}Vr.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function qx(t){return new Vr(t,.5)}function Gx(t){return new Vr(t,0)}function Zx(t){return new Vr(t,1)}function Zn(t,e,n){this.k=t,this.x=e,this.y=n}Zn.prototype={constructor:Zn,scale:function(t){return t===1?this:new Zn(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Zn(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Kx=new Zn(1,0,0);Zn.prototype;/*!
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.7.5
*/var At=function(){var t=typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self;return t||Function("return this")()}();At.requestIdleCallback=At.requestIdleCallback||function(t){return setTimeout(t,1)};At.requestAnimationFrame=At.requestAnimationFrame||function(t){return setTimeout(t,1)};var qt=At==null?void 0:At.document,Tt={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ea={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},gn={Area:[Tt.AREA,Tt.AREA_SPLINE,Tt.AREA_SPLINE_RANGE,Tt.AREA_LINE_RANGE,Tt.AREA_STEP],AreaRange:[Tt.AREA_SPLINE_RANGE,Tt.AREA_LINE_RANGE],Arc:[Tt.PIE,Tt.DONUT,Tt.GAUGE,Tt.POLAR,Tt.RADAR],Line:[Tt.LINE,Tt.SPLINE,Tt.AREA,Tt.AREA_SPLINE,Tt.AREA_SPLINE_RANGE,Tt.AREA_LINE_RANGE,Tt.STEP,Tt.AREA_STEP],Step:[Tt.STEP,Tt.AREA_STEP],Spline:[Tt.SPLINE,Tt.AREA_SPLINE,Tt.AREA_SPLINE_RANGE]},wt=function(){return wt=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},wt.apply(this,arguments)};function xe(t,e,n){if(n||arguments.length===2)for(var i=0,r=e.length,a;i<r;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return t.concat(a||Array.prototype.slice.call(e))}var pt=function(t){return t||t===0},$t=function(t){return typeof t=="function"},Qt=function(t){return typeof t=="string"},yt=function(t){return typeof t=="number"},ke=function(t){return typeof t>"u"},Yt=function(t){return typeof t<"u"},Zu=function(t){return typeof t=="boolean"},Ra=function(t){return Math.ceil(t/10)*10},Ai=function(t){return Math.ceil(t)+.5},Li=function(t){return t[1]-t[0]},Ke=function(t){return typeof t=="object"},ui=function(t){return ke(t)||t===null||Qt(t)&&t.length===0||Ke(t)&&!(t instanceof Date)&&Object.keys(t).length===0||yt(t)&&isNaN(t)},Kt=function(t){return!ui(t)},Xt=function(t){return Array.isArray(t)},Ut=function(t){return t&&!(t!=null&&t.nodeType)&&Ke(t)&&!Xt(t)};function xn(t,e,n){return Yt(t[e])?t[e]:n}function Qx(t,e){var n=!1;return Object.keys(t).forEach(function(i){return t[i]===e&&(n=!0)}),n}function Zt(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=$t(t);return r&&t.call.apply(t,xe([e],n,!1)),r}function Fo(t,e){var n=0,i=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];!--n&&e.apply.apply(e,xe([this],r,!1))};"duration"in t?t.each(function(){return++n}).on("end",i):(++n,t.call(i))}function Ci(t){return Qt(t)?t.replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function Ir(t,e,n,i){if(n===void 0&&(n=[-1,1]),i===void 0&&(i=!1),!(!t||!Qt(e)))if(e.indexOf(`
`)===-1)t.text(e);else{var r=[t.text(),e].map(function(s){return s.replace(/[\s\n]/g,"")});if(r[0]!==r[1]){var a=e.split(`
`),o=i?a.length-1:1;t.html(""),a.forEach(function(s,u){t.append("tspan").attr("x",0).attr("dy","".concat(u===0?n[0]*o:n[1],"em")).text(s)})}}}function Ku(t){var e=t.getBBox(),n=e.x,i=e.y,r=e.width,a=e.height;return[{x:n,y:i+a},{x:n,y:i},{x:n+r,y:i},{x:n+r,y:i+a}]}function Jx(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height,r=Ku(t),a=r[0].x,o=Math.min(r[0].y,r[1].y);return{x:a,y:o,width:n,height:i}}function Ze(t,e){var n,i=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)===null||n===void 0?void 0:n[0]),r=Ya(i||t,e);return r.map(function(a){return isNaN(a)?0:a})}function Qu(t){var e=t.event,n=t.$el,i=n.subchart.main||n.main,r;return e&&e.type==="brush"?r=e.selection:i&&(r=i.select(".bb-brush").node())&&(r=$p(r)),r}function Ri(t){var e=!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width");return e?t.rect=t.getBoundingClientRect():t.rect}function Xn(t,e,n){t===void 0&&(t=!0),e===void 0&&(e=0),n===void 0&&(n=1e4);var i=At.crypto||At.msCrypto,r=i?e+i.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(r):r}function to(t,e,n,i,r){if(n>i)return-1;var a=Math.floor((n+i)/2),o=t[a],s=o.x,u=o.w,l=u===void 0?0:u;return r&&(s=t[a].y,l=t[a].h),e>=s&&e<=s+l?a:e<s?to(t,e,n,a-1,r):to(t,e,a+1,i,r)}function ty(t){var e=Qu(t);return e?e[0]===e[1]:!0}function ey(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=function(i){if(Ut(i)&&i.constructor){var r=new i.constructor;for(var a in i)r[a]=n(i[a]);return r}return i};return t.map(function(i){return n(i)}).reduce(function(i,r){return wt(wt({},i),r)})}function Ye(t,e){t===void 0&&(t={}),Xt(e)&&e.forEach(function(i){return Ye(t,i)});for(var n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var fn=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function ny(t,e){return e===void 0&&(e="-"),t.split(e).map(function(n,i){return i?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}).join("")}var In=function(t){return[].slice.call(t)};function iy(t,e,n){var i=t.rootSelctor,r=t.sheet,a=function(s){return s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,".")},o="".concat(i," ").concat(a(e)," {").concat(n.join(";"),"}");return r[r.insertRule?"insertRule":"addRule"](o,r.cssRules.length)}function ry(t){var e=[];return t.forEach(function(n){var i;try{n.cssRules&&n.cssRules.length&&(e=e.concat(In(n.cssRules)))}catch(r){(i=At.console)===null||i===void 0||i.warn("Error while reading rules from ".concat(n.href,": ").concat(r.toString()))}}),e}function Cc(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function eo(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter(function(i,r,a){return a.indexOf(i)===r});return e?n.map(function(i){return new Date(i)}):n}function La(t){return t&&t.length?t.reduce(function(e,n){return e.concat(n)}):[]}function ai(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!e.length||e.length===1&&!e[0])return t;var i=e.shift();return Ut(t)&&Ut(i)&&Object.keys(i).forEach(function(r){var a=i[r];Ut(a)?(!t[r]&&(t[r]={}),t[r]=ai(t[r],a)):t[r]=Xt(a)?a.concat():a}),ai.apply(void 0,xe([t],e,!1))}function oi(t,e){e===void 0&&(e=!0);var n;return t[0]instanceof Date?n=e?function(i,r){return i-r}:function(i,r){return r-i}:e&&!t.every(isNaN)?n=function(i,r){return i-r}:e||(n=function(i,r){return i>r&&-1||i<r&&1||i===r&&0}),t.concat().sort(n)}function pn(t,e){var n=e.filter(function(i){return Kt(i)});return n.length?yt(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=oi(n,t==="min")[0]):n=void 0,n}var ay={mouse:function(){var t=function(){return{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}};try{return new MouseEvent("t"),function(e,n,i){i===void 0&&(i=t()),e.dispatchEvent(new MouseEvent(n,i))}}catch{return function(n,i,r){r===void 0&&(r=t());var a=qt.createEvent("MouseEvent");a.initMouseEvent(i,r.bubbles,r.cancelable,At,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}}}(),touch:function(t,e,n){var i=new Touch(ai({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[i],targetTouches:[],changedTouches:[i]}))}};function no(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{=".concat(i,"}"),"g"),e[i]);return n}function Qe(t){var e,n;if(t instanceof Date)n=t;else if(Qt(t)){var i=this,r=i.config,a=i.format;n=(e=a.dataTime(r.data_xFormat)(t))!==null&&e!==void 0?e:new Date(t)}else yt(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error("Failed to parse x '".concat(t,"' to Date object")),n}function Xo(){return(qt==null?void 0:qt.hidden)===!1||(qt==null?void 0:qt.visibilityState)==="visible"}function oy(t,e){var n=At.DocumentTouch,i=At.matchMedia,r=At.navigator,a=!1;if(e)if(r&&"maxTouchPoints"in r)a=r.maxTouchPoints>0;else if("ontouchmove"in At||n&&qt instanceof n)a=!0;else if(i!=null&&i("(pointer:coarse)").matches)a=!0;else{var o=r.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(o)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(o)}var s=t&&["any-hover:hover","any-pointer:fine"].some(function(u){return i==null?void 0:i("(".concat(u,")")).matches});return s&&"mouse"||a&&"touch"||"mouse"}function Ju(t,e){e()===!1?At.requestAnimationFrame(function(){return Ju(t,e)}):t()}function sy(t){var e=t,n=e.config,i="";if(ui(n.data_type||n.data_types)&&!e[Ea.LINE])i="line";else for(var r in Ea){var a=Tt[r];if(e.hasType(a)&&!e[Ea[r]]){i=a;break}}i&&cy("Please, make sure if %c".concat(ny(i)),"module has been imported and specified correctly.")}function cy(t,e){var n,i="[billboard.js]",r="https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality",a=(n=At.console)===null||n===void 0?void 0:n.error;throw a&&(console.error("❌ ".concat(i," ").concat(t),"background:red;color:white;display:block;font-size:15px",e),console.info("%c","font-size:15px",r)),Error("".concat(i," ").concat(t.replace(/\%c([a-z-]+)/i,"'$1' ")," ").concat(e))}var Mt={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Jt={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"},io={area:"bb-area",areas:"bb-areas"},ce={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"},Be={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},ro={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ve={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},ao={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},En={dragarea:"bb-dragarea",INCLUDED:"_included_"},We={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Ft={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},vn={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Xe={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Ht={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},zt={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},uy={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Xi={region:"bb-region",regions:"bb-regions"},oe={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},me={shape:"bb-shape",shapes:"bb-shapes"},tl={brush:"bb-brush",subchart:"bb-subchart"},Ce={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},xr={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},el={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ly={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"},le=wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt(wt({},Mt),Jt),io),ce),Be),ro),ve),ao),En),We),Ft),vn),Xe),Ht),zt),uy),Xi),oe),me),tl),Ce),xr),el),ly),fy=function(){function t(){var e={chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null};return e}return t}(),hy=function(){function t(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",orgConfig:{},hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}return t}(),Sc={element:fy,state:hy},dy=function(){function t(){var e=this;Object.keys(Sc).forEach(function(n){e[n]=new Sc[n]})}return t.prototype.getStore=function(e){return this[e]},t}(),gy={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},py={boost_useCssRule:!1,boost_useWorker:!1},vy={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},xy={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},yy={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},my={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:"<span style='color:#fff;padding:5px;background-color:{=COLOR}'>{=TITLE}</span>",legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_usePoint:!1},_y={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},by={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null},Wr=function(){function t(){return ey(gy,py,vy,xy,yy,my,_y,by,t.data)}return t.setOptions=function(e){this.data=e.reduce(function(n,i){return wt(wt({},n),i)},this.data)},t.data={},t}(),qe={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"},Ty=function(){function t(){this.cache={}}return t.prototype.add=function(e,n,i){return i===void 0&&(i=!1),this.cache[e]=i?this.cloneTarget(n):n,this.cache[e]},t.prototype.remove=function(e){var n=this;In(e).forEach(function(i){return delete n.cache[i]})},t.prototype.get=function(e,n){if(n===void 0&&(n=!1),n){for(var i=[],r=0,a=void 0;a=e[r];r++)a in this.cache&&i.push(this.cloneTarget(this.cache[a]));return i}else{var o=this.cache[e];return pt(o)?o:null}},t.prototype.reset=function(e){var n=this;for(var i in n.cache)(e||/^\$/.test(i))&&(n.cache[i]=null)},t.prototype.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map(function(n){return{x:n.x,value:n.value,id:n.id}})}},t}(),wy=At.setTimeout,$y=At.clearTimeout;function Ay(t){var e=[],n,i=function(){i.clear(),t===!1&&At.requestIdleCallback?requestIdleCallback(function(){e.forEach(function(r){return r()})},{timeout:200}):n=wy(function(){e.forEach(function(r){return r()})},yt(t)?t:200)};return i.clear=function(){n&&($y(n),n=null)},i.add=function(r){return e.push(r)},i.remove=function(r){return e.splice(e.indexOf(r),1)},i}function nl(){var t=[],e=function(n,i){function r(){for(var a,o=0,s=0,u=void 0;u=t[s];s++){if(u===!0||!((a=u.empty)===null||a===void 0)&&a.call(u)){o++;continue}if(Xo()===!1){o=t.length;break}try{u.transition()}catch{o++}}return o===t.length}Ju(function(){i==null||i()},r)};return e.add=function(n){Xt(n)?t=t.concat(n):t.push(n)},e}var Ma={};function Cy(t,e){var n,i=t.toString(),r=i.replace(/(function|[\s\W\n])/g,"").substring(0,15);return r in Ma||(Ma[r]=new At.Blob(["".concat((n=e==null?void 0:e.map(String).join(";"))!==null&&n!==void 0?n:"",`
self.onmessage=function({data}) {
const result = (`).concat(i,`).apply(null, data);
self.postMessage(result);
};`)],{type:"text/javascript"})),At.URL.createObjectURL(Ma[r])}function Da(t,e,n,i){t===void 0&&(t=!0);var r;if(At.Worker&&t){var a=Cy(e,i),o=new At.Worker(a);r=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];o.postMessage(s),o.onmessage=function(l){return At.URL.revokeObjectURL(a),n(l.data)},o.onerror=function(l){console.error(l)}}}else r=function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var l=e.apply(void 0,s);n(l)};return r}function oo(t){var e=[];return t.forEach(function(n,i){var r=n[0];n.forEach(function(a,o){if(o>0){if(typeof e[o-1]>"u"&&(e[o-1]={}),typeof a>"u")throw new Error("Source data is missing a component at (".concat(i,", ").concat(o,")!"));e[o-1][r]=a}})}),e}function so(t){var e=t[0],n=[];return t.forEach(function(i,r){if(r>0){var a={};i.forEach(function(o,s){if(typeof o>"u")throw new Error("Source data is missing a component at (".concat(r,", ").concat(s,")!"));a[e[s]]=o}),n.push(a)}}),n}function il(t,e){var n=[],i,r;if(Array.isArray(t)){var a=function(o,s){if(o[s]!==void 0)return o[s];var u=s.replace(/\[(\w+)\]/g,".$1"),l=u.replace(/^\./,"").split("."),h=o;return l.some(function(d){return!(h=h&&d in h?h[d]:void 0)}),h};e.x?i=e.value.concat(e.x):i=e.value,n.push(i),t.forEach(function(o){var s=i.map(function(u){var l=a(o,u);return typeof l>"u"&&(l=null),l});n.push(s)}),r=so(n)}else Object.keys(t).forEach(function(o){var s,u=t[o].concat();(s=u.unshift)===null||s===void 0||s.call(u,o),n.push(u)}),r=oo(n);return r}function Sy(t,e,n,i,r){e===void 0&&(e="csv");var a=new XMLHttpRequest,o={csv:ky,tsv:Ey,json:il};a.open("GET",t),n&&Object.keys(n).forEach(function(s){a.setRequestHeader(s,n[s])}),a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200){var s=a.responseText;s&&r.call(this,o[e](e==="json"?JSON.parse(s):s,i))}else throw new Error("".concat(t,": Something went wrong loading!"))},a.send()}function rl(t,e){var n=t.rows(e),i;return n.length===1?(i=[{}],n[0].forEach(function(r){i[0][r]=null})):i=t.parse(e),i}function ky(t){return rl({rows:Mp,parse:Lp},t)}function Ey(t){return rl({rows:Np,parse:Dp},t)}function kc(t,e){var n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Ry={convertData:function(t,e){var n=this.config,i=n.boost_useWorker,r=t;if(t.bindto&&(r={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(function(a){var o="data_".concat(a);o in t&&(r[a]=t[o])})),r.url&&e)Sy(r.url,r.mimeType,r.headers,kc(r.keys,n),e);else if(r.json)Da(i,il,e,[oo,so])(r.json,kc(r.keys,n));else if(r.rows)Da(i,so,e)(r.rows);else if(r.columns)Da(i,oo,e)(r.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets:function(t,e){var n=this,i=this,r=i.axis,a=i.config,o=i.state,s=!1,u=!1,l=!1;r&&(s=r.isCategorized(),u=r.isTimeSeries(),l=r.isCustomX());var h=Object.keys(t[0]||{}),d=h.length?h.filter(i.isNotX,i):[],v=h.length?h.filter(i.isX,i):[],y;d.forEach(function(T){var C=n.getXKey(T);l||u?v.indexOf(C)>=0?y=(e&&i.data.xs[T]||[]).concat(t.map(function(A){return A[C]}).filter(pt).map(function(A,S){return i.generateTargetX(A,T,S)})):a.data_x?y=n.getOtherTargetXs():Kt(a.data_xs)&&(y=i.getXValuesOfXKey(C,i.data.targets)):y=t.map(function(A,S){return S}),y&&(n.data.xs[T]=y)}),d.forEach(function(T){if(!n.data.xs[T])throw new Error('x is not defined for id = "'.concat(T,'".'))});var m=d.map(function(T,C){var A=a.data_idConverter.bind(i.api)(T),S=i.getXKey(T),D=l&&s,L=D&&t.map(function(F){return F.x}).every(function(F){return a.axis_x_categories.indexOf(F)>-1}),P=t.__append__,g=S===null&&P?i.api.data.values(T).length:0;return{id:A,id_org:T,values:t.map(function(F,H){var K=F[S],W=F[T],V;return W=W!==null&&!isNaN(W)&&!Ut(W)?+W:Xt(W)||Ut(W)?W:null,(D||o.hasRadar)&&C===0&&!ke(K)?(!L&&C===0&&H===0&&!P&&(a.axis_x_categories=[]),V=a.axis_x_categories.indexOf(K),V===-1&&(V=a.axis_x_categories.length,a.axis_x_categories.push(K))):V=i.generateTargetX(K,T,g+H),(ke(W)||i.data.xs[T].length<=H)&&(V=void 0),{x:V,value:W,id:A,index:-1}}).filter(function(F){return Yt(F.x)})}});return m.forEach(function(T){var C;a.data_xSort&&(T.values=T.values.sort(function(A,S){var D=A.x||A.x===0?A.x:1/0,L=S.x||S.x===0?S.x:1/0;return D-L})),T.values.forEach(function(A,S){return A.index=S}),(C=i.data.xs[T.id])===null||C===void 0||C.sort(function(A,S){return A-S})}),o.hasNegativeValue=i.hasNegativeValueInTargets(m),o.hasPositiveValue=i.hasPositiveValueInTargets(m),a.data_type&&i.setTargetType(i.mapToIds(m).filter(function(T){return!(T in a.data_types)}),a.data_type),m.forEach(function(T){return i.cache.add(T.id_org,T,!0)}),m}},Ly={isX:function(t){var e=this,n=e.config,i=n.data_x&&t===n.data_x,r=Kt(n.data_xs)&&Qx(n.data_xs,t);return i||r},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!!(t.data_stack_normalize&&t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some(function(n){return n.indexOf(t)>=0&&n.length>1}):e.length>0},getXKey:function(t){var e=this,n=e.config;return n.data_x?n.data_x:Kt(n.data_xs)?n.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n=this,i=e&&Kt(e)?n.mapToIds(e):[],r;return i.forEach(function(a){n.getXKey(a)===t&&(r=n.data.xs[a])}),r},getIndexByX:function(t,e){var n=this;return e?e.indexOf(Qt(t)?t:+t):(n.filterByX(n.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&pt(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this,n=e.config;Object.keys(t).forEach(function(i){n.data_xs[i]=t[i]})},isMultipleX:function(){return Kt(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e=this,n=e.config,i;return t&&(i=n.data_names[t.id],t.name=i!==void 0?i:t.id),t},getAllValuesOnIndex:function(t,e){e===void 0&&(e=!1);var n=this,i=n.filterTargetsToShow(n.data.targets).map(function(r){return n.addName(n.getValueOnIndex(r.values,t))});return e&&(i=i.filter(function(r){return r&&"value"in r&&pt(r.value)})),i},getValueOnIndex:function(t,e){var n=t.filter(function(i){return i.index===e});return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;t.forEach(function(i){i.values.forEach(function(r,a){r.x=n.generateTargetX(e[a],i.id,a)}),n.data.xs[i.id]=e})},updateTargetXs:function(t,e){var n=this;t.forEach(function(i){e[i.id]&&n.updateTargetX([i],e[i.id])})},generateTargetX:function(t,e,n){var i=this,r=i.axis,a=r!=null&&r.isCategorized()?n:t||n;if(r!=null&&r.isTimeSeries()){var o=Qe.bind(i);a=o(t||i.getXValue(e,n))}else r!=null&&r.isCustomX()&&!(r!=null&&r.isCategorized())&&(a=pt(t)?+t:i.getXValue(e,n));return a},updateXs:function(t){t.length&&(this.axis.xs=t.map(function(e){return e.x}))},getPrevX:function(t){var e=this.axis.xs[t-1];return Yt(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Yt(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,i=t.value;return i&&n&&(e.isAreaRangeType(t)?i=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(i=e.getBubbleZData(i,"y"))),i},getMinMaxValue:function(t){var e=this.getBaseValue.bind(this),n,i;return(t||this.data.targets.map(function(r){return r.values})).forEach(function(r,a){var o=r.map(e).filter(yt);n=Math.min.apply(Math,xe([a?n:1/0],o,!1)),i=Math.max.apply(Math,xe([a?i:-1/0],o,!1))}),{min:n,max:i}},getMinMaxData:function(){var t=this,e=qe.dataMinMax,n=t.cache.get(e);if(!n){var i=t.data.targets.map(function(s){return s.values}),r=t.getMinMaxValue(i),a=[],o=[];i.forEach(function(s){var u=t.getFilteredDataByValue(s,r.min),l=t.getFilteredDataByValue(s,r.max);u.length&&(a=a.concat(u)),l.length&&(o=o.concat(l))}),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=qe.dataTotalPerIndex,n=t.cache.get(e);return(t.config.data_groups.length||t.isStackNormalized())&&!n&&(n=[],t.data.targets.forEach(function(i){i.values.forEach(function(r,a){n[a]||(n[a]=0),n[a]+=yt(r.value)?r.value:0})})),n},getTotalDataSum:function(t){var e=this,n=qe.dataTotalSum,i=e.cache.get(n);if(!yt(i)){var r=La(e.data.targets.map(function(a){return a.values})).map(function(a){return a.value});i=r.length?r.reduce(function(a,o){return a+o}):0,e.cache.add(n,i)}return t&&(i-=e.getHiddenTotalDataSum()),i},getHiddenTotalDataSum:function(){var t=this,e=t.api,n=t.state.hiddenTargetIds,i=0;return n.length&&(i=e.data.values.bind(e)(n).reduce(function(r,a){return r+a})),i},getFilteredDataByValue:function(t,e){var n=this;return t.filter(function(i){return n.getBaseValue(i)===e})},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map(function(t){return t.values.length}))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?(t=t.map(function(n){return n.values}).reduce(function(n,i){return n.concat(i)}).map(function(n){return n.x}),t=oi(eo(t)).map(function(n,i){return{x:n,index:i}})):e&&(t=t[0].values.concat()),t},mapToIds:function(t){return t.map(function(e){return e.id})},mapToTargetIds:function(t){var e=this;return t?Xt(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget:function(t,e){for(var n=this.mapToIds(t),i=0,r=void 0;r=n[i];i++)if(r===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter(function(n){return e.isTargetToShow(n.id)})},mapTargetsToUniqueXs:function(t){var e=this,n=e.axis,i=[];return t!=null&&t.length&&(i=eo(La(t.map(function(r){return r.values.map(function(a){return+a.x})}))),i=n!=null&&n.isTimeSeries()?i.map(function(r){return new Date(+r)}):i.map(Number)),oi(i)},addTargetIds:function(t,e){var n=this.state,i=Xt(e)?e:[e];i.forEach(function(r){n[t].indexOf(r)<0&&n[t].push(r)})},removeTargetIds:function(t,e){var n=this.state,i=Xt(e)?e:[e];i.forEach(function(r){var a=n[t].indexOf(r);a>=0&&n[t].splice(a,1)})},addHiddenTargetIds:function(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds:function(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds:function(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds:function(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,i={},r=e.isMultipleX(),a=r?e.mapTargetsToUniqueXs(t).map(function(o){return Qt(o)?o:+o}):null;return t.forEach(function(o){var s=[];o.values.filter(function(u){var l=u.value;return pt(l)||l===null}).forEach(function(u){var l=u.value;l!==null&&e.isCandlestickType(u)&&(l=Xt(l)?l.slice(0,4):[l.open,l.high,l.low,l.close]),Xt(l)?s.push.apply(s,l):Ut(l)&&"high"in l?s.push.apply(s,Object.values(l)):e.isBubbleZType(u)?s.push(n&&e.getBubbleZData(l,"y")):r?s[e.getIndexByX(u.x,a)]=l:s.push(l)}),i[o.id]=s}),i},checkValueInTargets:function(t,e){for(var n=Object.keys(t),i,r=0;r<n.length;r++){i=t[n[r]].values;for(var a=0;a<i.length;a++)if(e(i[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,function(e){return e<0})},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,function(e){return e>0})},orderTargets:function(t){var e=this,n=xe([],t,!0),i=e.getSortCompareFn();return i&&n.sort(i),n},getSortCompareFn:function(t){t===void 0&&(t=!1);var e=this,n=e.config,i=n.data_order,r=/asc/i.test(i),a=/desc/i.test(i),o;if(r||a){var s=function(u,l){return u+Math.abs(l.value)};o=function(u,l){var h="values"in u?u.values.reduce(s,0):u.value,d="values"in l?l.values.reduce(s,0):l.value;return t?r?h-d:d-h:r?d-h:h-d}}else $t(i)&&(o=i.bind(e.api));return o||null},filterByX:function(t,e){return La(t.map(function(n){return n.values})).filter(function(n){return n.x-e===0})},filterRemoveNull:function(t){var e=this;return t.filter(function(n){return pt(e.getBaseValue(n))})},filterByXDomain:function(t,e){return t.map(function(n){return{id:n.id,id_org:n.id_org,values:n.values.filter(function(i){return e[0]<=i.x&&i.x<=e[1]})}})},hasDataLabel:function(){var t=this.config.data_labels;return Zu(t)&&t||Ke(t)&&Kt(t)},getDataIndexFromEvent:function(t){var e=this,n=e.config,i=e.state,r=i.inputType,a=i.eventReceiver,o=a.coords,s=a.rect,u=n.axis_rotated,l=r==="touch"&&t.changedTouches?t.changedTouches[0]:t,h=to(o,u?l.clientY-s.top:l.clientX-s.left,0,o.length-1,u);return h},getDataLabelLength:function(t,e,n){var i=this,r=[0,0],a=1.3;return i.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(function(o){return i.dataLabelFormat(o.id)(o)}).each(function(o,s){r[s]=this.getBoundingClientRect()[n]*a}).remove(),r},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n=t[e].x,i=[],r;for(r=e-1;r>=0&&n===t[r].x;r--)i.push(t[r]);for(r=e;r<t.length&&n===t[r].x;r++)i.push(t[r]);return i},findClosestFromTargets:function(t,e){var n=this,i=t.map(function(r){return n.findClosest(r.values,e)});return n.findClosest(i,e)},findClosest:function(t,e){var n=this,i=n.config,r=n.$el.main,a=t.filter(function(u){return u&&pt(u.value)}),o=i.point_sensitivity,s;return a.filter(function(u){return n.isBarType(u.id)||n.isCandlestickType(u.id)}).forEach(function(u){var l=n.isBarType(u.id)?".".concat(Be.chartBar,".").concat(Mt.target).concat(n.getTargetSelectorSuffix(u.id)," .").concat(Be.bar,"-").concat(u.index):".".concat(ro.chartCandlestick,".").concat(Mt.target).concat(n.getTargetSelectorSuffix(u.id)," .").concat(ro.candlestick,"-").concat(u.index," path");!s&&n.isWithinBar(r.select(l).node())&&(s=u)}),a.filter(function(u){return!n.isBarType(u.id)&&!n.isCandlestickType(u.id)}).forEach(function(u){var l=n.dist(u,e);l<o&&(o=l,s=u)}),s},dist:function(t,e){var n=this,i=n.config.axis_rotated,r=n.scale,a=i?1:0,o=i?0:1,s=n.circleY(t,t.index),u=(r.zoom||r.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this,n=e.axis,i=e.config,r=i.line_step_type,a=n?n.isCategorized():!1,o=Xt(t)?t.concat():[t];if(!(a||/step\-(after|before)/.test(r)))return t;var s=o[0],u=o[o.length-1],l=s.id,h=s.x;return o.unshift({x:--h,value:s.value,id:l}),a&&r==="step-after"&&o.unshift({x:--h,value:s.value,id:l}),h=u.x,o.push({x:++h,value:u.value,id:l}),a&&r==="step-before"&&o.push({x:++h,value:u.value,id:l}),o},convertValuesToRange:function(t){var e=Xt(t)?t.concat():[t],n=[];return e.forEach(function(i){var r=i.x,a=i.id;n.push({x:r,id:a,value:i.value[0]}),n.push({x:r,id:a,value:i.value[2]})}),n},updateDataAttributes:function(t,e){var n=this,i=n.config,r=i["data_".concat(t)];return ke(e)||(Object.keys(e).forEach(function(a){r[a]=e[a]}),n.redraw({withLegend:!0})),r},getRangedData:function(t,e,n){e===void 0&&(e=""),n===void 0&&(n="areaRange");var i=t==null?void 0:t.value;if(Xt(i)){var r={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return r>=0&&i?i[r]:void 0}else if(i)return i[e];return i},setRatioForGroupedData:function(t){var e=this,n=e.config;if(n.data_groups.length&&t.some(function(r){return e.isGrouped(r.id)})){var i=function(r){return e.getRatio("index",r,!0)};t.forEach(function(r){"values"in r?r.values.forEach(i):i(r)})}},getRatio:function(t,e,n){n===void 0&&(n=!1);var i=this,r=i.config,a=i.state,o=i.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,t==="arc")if(i.pie.padAngle()())s=e.value/i.getTotalDataSum(!0);else{var u=r.gauge_fullCircle?i.getArcLength():i.getStartAngle()*-2,l=i.hasType("gauge")?u:Math.PI*2;s=(e.endAngle-e.startAngle)/l}else if(t==="index"){var h=o.data.values.bind(o),d=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var v=h(a.hiddenTargetIds,!1);v.length&&(v=v.reduce(function(C,A){return C.map(function(S,D){return(yt(S)?S:0)+A[D]})}),d=d.map(function(C,A){return C-v[A]}))}var y=d[e.index];e.ratio=yt(e.value)&&d&&y?e.value/y:0,s=e.ratio}else if(t==="radar")s=parseFloat(String(Math.max(e.value,0)))/a.current.dataMax*r.radar_size_ratio;else if(t==="bar"){var m=i.getYScaleById.bind(i)(e.id),T=m.domain().reduce(function(C,A){return A-C});s=T===0?0:Math.abs(e.value)/T}else t==="treemap"&&(s/=i.getTotalDataSum(!0));return n&&s?s*100:s},updateDataIndexByX:function(t){var e=this,n=t.reduce(function(i,r,a){return i[Number(r.x)]=a,i},{});e.data.targets.forEach(function(i){i.values.forEach(function(r,a){var o=n[Number(r.x)];o===void 0&&(o=a),r.index=o})})},isBubbleZType:function(t){var e=this;return e.isBubbleType(t)&&(Ut(t.value)&&("z"in t.value||"y"in t.value)||Xt(t.value)&&t.value.length>=2)},isBarRangeType:function(t){var e=this,n=t.value;return e.isBarType(t)&&Xt(n)&&n.length>=2&&n.every(function(i){return yt(i)})},getDataById:function(t){var e,n=this.cache.get(t)||this.api.data(t);return(e=n==null?void 0:n[0])!==null&&e!==void 0?e:n}},My={load:function(t,e){var n,i=this,r=e.append,a=t;a&&(e.filter&&(a=a.filter(e.filter)),(e.type||e.types)&&a.forEach(function(o){var s,u=((s=e.types)===null||s===void 0?void 0:s[o.id])||e.type;i.setTargetType(o.id,u)}),i.data.targets.forEach(function(o){for(var s=0;s<a.length;s++)if(o.id===a[s].id){o.values=r?o.values.concat(a[s].values):a[s].values,a.splice(s,1);break}}),i.data.targets=i.data.targets.concat(a)),i.updateTargets(i.data.targets),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.updateTypesElements(),(n=e.done)===null||n===void 0||n.call(i.api)},loadFromArgs:function(t){var e=this;e.config&&(e.cache.reset(),e.convertData(t,function(n){var i=t.data||n;t.append&&(i.__append__=!0),i&&e.load(e.convertDataToTargets(i),t)}))},unload:function(t,e){var n=this,i=n.state,r=n.$el,a=n.$T,o=e,s=t;if(n.cache.reset(),o||(o=function(){}),s=s.filter(function(l){return n.hasTarget(n.data.targets,l)}),!s||s.length===0){o();return}var u=r.svg.selectAll(s.map(function(l){return n.selectorTarget(l)}));a(u).style("opacity","0").remove().call(Fo,o),s.forEach(function(l){i.withoutFadeIn[l]=!1,r.legend&&r.legend.selectAll(".".concat(Ft.legendItem).concat(n.getTargetSelectorSuffix(l))).remove(),n.data.targets=n.data.targets.filter(function(h){return h.id!==l})}),i.hasTreemap&&n.updateTargetsForTreemap(n.data.targets),n.updateTypesElements()}},Dy={selectRectForSingle:function(t,e,n){var i,r,a=this,o=a.config,s=a.$el,u=s.main,l=s.circle,h=o.data_selection_enabled,d=o.data_selection_grouped,v=o.data_selection_isselectable,y=o.tooltip_grouped,m=a.getAllValuesOnIndex(n);if(!(y&&(a.showTooltip(m,t),(i=a.showGridFocus)===null||i===void 0||i.call(a,m),!h||d))){!l&&u.selectAll(".".concat(Mt.EXPANDED,":not(.").concat(me.shape,"-").concat(n,")")).classed(Mt.EXPANDED,!1);var T=u.selectAll(".".concat(me.shape,"-").concat(n)).classed(Mt.EXPANDED,!0).style("cursor",v?"pointer":null).filter(function(C){return a.isWithinShape(this,C)});T.empty()&&!y&&((r=a.hideGridFocus)===null||r===void 0||r.call(a),a.hideTooltip(),!d&&a.setExpand(n)),T.call(function(C){var A,S,D=C.data();h&&(d||v!=null&&v.bind(a.api)(D))&&e.style("cursor","pointer"),y||(a.showTooltip(D,t),(A=a.showGridFocus)===null||A===void 0||A.call(a,D),(S=a.unexpandCircles)===null||S===void 0||S.call(a),C.each(function(L){return a.setExpand(n,L.id)}))})}},setExpand:function(t,e,n){var i=this,r=i.config,a=i.$el.circle;a&&r.point_focus_expand_enabled&&i.expandCircles(t,e,n),i.expandBarTypeShapes(!0,t,e,n)},expandBarTypeShapes:function(t,e,n,i){t===void 0&&(t=!0);var r=this;["bar","candlestick"].filter(function(a){return r.$el[a]}).forEach(function(a){i&&r.$el[a].classed(Mt.EXPANDED,!1),r.getShapeByIndex(a,e,n).classed(Mt.EXPANDED,t)})},setOverOut:function(t,e){var n=this,i=n.config,r=n.state,a=r.hasRadar,o=r.hasTreemap,s=n.$el.main,u=Ut(e);if(u||e!==-1){var l=i[t?"data_onover":"data_onout"].bind(n.api);if(i.color_onover&&n.setOverColor(t,e,u),u){var h=o?el.treemap:Jt.arc;l(e,s.select(".".concat(h).concat(n.getTargetSelectorSuffix(e.id))).node())}else if(i.tooltip_grouped)t&&(i.point_focus_only&&a?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&s.selectAll(".".concat(me.shape,"-").concat(e)).each(function(T){l(T,this)});else{var d=n.cache.get(qe.setOverOut)||[],v=s.selectAll(".".concat(me.shape,"-").concat(e)).filter(function(T){return n.isWithinShape(this,T)}),y=v.filter(function(){var T=this;return d.every(function(C){return C!==T})});if(!t||v.empty()||d.length===y.size()&&y.nodes().every(function(T,C){return T!==d[C]}))for(;d.length;){var m=d.pop();i.data_onout.bind(n.api)(dt(m).datum(),m)}y.each(function(){t&&(l(dt(this).datum(),this),d.push(this))}),n.cache.add(qe.setOverOut,d)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(qe.callOverOutForTouch);(Ut(t)&&n?t.id!==n.id:t!==n)&&((n||yt(n))&&e.setOverOut(!1,n),(t||yt(t))&&e.setOverOut(!0,t),e.cache.add(qe.callOverOutForTouch,t))},getDraggableSelection:function(){var t=this,e=t.config,n=t.state;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?Od().on("drag",function(i){n.event=i,t.drag(Ze(i,this))}).on("start",function(i){n.event=i,t.dragstart(Ze(i,this))}).on("end",function(i){n.event=i,t.dragend()}):function(){}},dispatchEvent:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=o.eventReceiver,u=o.hasAxis,l=o.hasRadar,h=o.hasTreemap,d=r.$el,v=d.eventRect,y=d.arcs,m=d.radar,T=d.treemap,C=(i=h&&s.rect||l&&m.axes.select(".".concat(ce.axis,"-").concat(e," text"))||v||(y==null?void 0:y.selectAll(".".concat(Mt.target," path")).filter(function(W,V){return V===e})))===null||i===void 0?void 0:i.node();if(C){var A=r.isMultipleX(),S=C.getBoundingClientRect(),D=S.width,L=S.left,P=S.top;if(u&&!l&&!A){var g=s.coords[e];D=g.w,L+=g.x,P+=g.y}var F=L+(n?n[0]:0)+(A||a.axis_rotated?0:D/2),H=P+(n?n[1]:0),K={screenX:F,screenY:H,clientX:F,clientY:H};ay[/^(mouse|click)/.test(t)?"mouse":"touch"](h?T.node():C,t,K)}},setDragStatus:function(t){this.state.dragging=t},unbindZoomEvent:function(){var t=this,e=t.$el,n=e.eventRect,i=e.zoomResetBtn;n==null||n.on(".zoom wheel.zoom .drag",null),i==null||i.on("click",null).style("display","none")},unbindAllEvents:function(){var t,e=this,n=e.$el,i=n.arcs,r=n.eventRect,a=n.legend,o=n.region,s=n.svg,u=n.treemap,l=e.brush,h=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[s,r,o==null?void 0:o.list,l==null?void 0:l.getSelection(),i==null?void 0:i.selectAll("path"),a==null?void 0:a.selectAll("g"),u].forEach(function(d){return d==null?void 0:d.on(h,null)}),(t=e.unbindZoomEvent)===null||t===void 0||t.call(e)}},Ny={generateClass:function(t,e){return" ".concat(t," ").concat(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,i=/s$/.test(t),r=/^(area|arc|line|treemap)s?$/.test(t),a=i?"id":"index";return function(o){var s=o.data||o,u=(e?n.generateClass(le[i?"shapes":"shape"],s[a]):"")+n.generateClass(le[t],s[r?"id":a]);return u.trim()}},getChartClass:function(t){var e=this;return function(n){return le["chart".concat(t)]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this,e=t.config.line_classes||[],n=[];return function(i){var r,a=i.id||((r=i.data)===null||r===void 0?void 0:r.id)||i;return n.indexOf(a)<0&&n.push(a),e[n.indexOf(a)%e.length]}},classRegion:function(t,e){return"".concat(this.generateClass(le.region,e)," ").concat("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" ".concat(le.target,"-").concat(e)),this.generateClass(le.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" ".concat(this.state.focusedTargetIds.indexOf(t.id)>=0?le.focused:"")},classDefocused:function(t){return" ".concat(this.state.defocusedTargetIds.indexOf(t.id)>=0?le.defocused:"")},getTargetSelectorSuffix:function(t){var e=t||t===0?"-".concat(t):"";return e.replace(/([\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\])/g,"-")},selectorTarget:function(t,e,n){e===void 0&&(e=""),n===void 0&&(n="");var i=this.getTargetSelectorSuffix(t);return"".concat(e,".").concat(le.target+i," ").concat(n,", ").concat(e,".").concat(le.circles+i," ").concat(n)},selectorTargets:function(t,e){var n=this,i=t||[];return i.length?i.map(function(r){return n.selectorTarget(r,e)}):null},selectorLegend:function(t){return".".concat(le.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return t!=null&&t.length?t.map(function(n){return e.selectorLegend(n)}):null}},Iy={categoryName:function(t){var e=this.config.axis_x_categories;return t<(e==null?void 0:e.length)?e[t]:t}},Py=function(t,e,n){var i=dt(t.cloneNode(!0));return i.attr("id",n).insert("rect",":first-child").attr("width",i.attr("width")).attr("height",i.attr("height")).style("fill",e),{id:n,node:i.node()}};function Oy(t){var e=qe.colorPattern,n=qt.body,i=n[e];if(!i){var r=";",a=t.classed(ao.colorPattern,!0).style("background-image");t.classed(ao.colorPattern,!1),a.indexOf(r)>-1&&(i=a.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(r).map(function(o){return o.trim().replace(/[\"'\s]/g,"")}).filter(Boolean),n[e]=i)}return i}var Fy=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Xy={generateColor:function(){var t=this,e=t.$el,n=t.config,i=n.data_colors,r=n.data_color,a=[],o=Kt(n.color_pattern)?n.color_pattern:Tu(Oy(e.chart)||Fy).range(),s=o;if($t(n.color_tiles)){var u=n.color_tiles.bind(t.api)(),l=o.map(function(h,d){var v=h.replace(/[#\(\)\s,]/g,""),y="".concat(t.state.datetimeId,"-pattern-").concat(v,"-").concat(d);return Py(u[d%u.length],h,y)});o=l.map(function(h){return"url(#".concat(h.id,")")}),t.patterns=l}return function(h){var d,v=h.id||((d=h.data)===null||d===void 0?void 0:d.id)||h,y=t.isTypeOf(v,["line","spline","step"])||!n.data_types[v],m;return $t(i[v])?m=i[v].bind(t.api)(h):i[v]?m=i[v]:(a.indexOf(v)<0&&a.push(v),m=y?s[a.indexOf(v)%s.length]:o[a.indexOf(v)%o.length],i[v]=m),$t(r)?r.bind(t.api)(m,h):m}},generateLevelColor:function(){var t=this,e=t.config,n=e.color_pattern,i=e.color_threshold,r=i.unit==="value",a=i.max||100,o=i.values&&i.values.length?i.values:[];return Kt(i)?function(s){for(var u=r?s:s*100/a,l=n[n.length-1],h=0,d=o.length;h<d;h++)if(u<=o[h]){l=n[h];break}return l}:null},generateDataLabelBackgroundColorFilter:function(t){var e=this,n=e.$el,i=e.config,r=e.state,a=t||i.data_labels_backgroundColors;if(a){var o=[];Qt(a)?o.push(""):Ut(a)&&(o=Object.keys(a)),o.forEach(function(s){var u="".concat(r.datetimeId,"-labels-bg").concat(e.getTargetSelectorSuffix(s)).concat(t?e.getTargetSelectorSuffix(t):"");n.defs.append("filter").attr("x","0").attr("y","0").attr("width","1").attr("height","1").attr("id",u).html('<feFlood flood-color="'.concat(s===""?a:a[s],'" /><feComposite in="SourceGraphic"/>'))})}},getGradienColortUrl:function(t){return"url(#".concat(this.state.datetimeId,"-gradient").concat(this.getTargetSelectorSuffix(t),")")},updateLinearGradient:function(){var t=this,e=t.config,n=t.data.targets,i=t.state.datetimeId,r=t.$el.defs;n.forEach(function(a){var o="".concat(i,"-gradient").concat(t.getTargetSelectorSuffix(a.id)),s=t.isAreaType(a)&&"area"||t.isBarType(a)&&"bar",u=e.axis_rotated;if(s&&r.select("#".concat(o)).empty()){var l=t.color(a),h=e["".concat(s,"_linearGradient")],d=h.x,v=d===void 0?u?[1,0]:[0,0]:d,y=h.y,m=y===void 0?u?[0,0]:[0,1]:y,T=h.stops,C=T===void 0?[[0,l,1],[1,l,0]]:T,A=r.append("linearGradient").attr("id","".concat(o)).attr("x1",v[0]).attr("x2",v[1]).attr("y1",m[0]).attr("y2",m[1]);C.forEach(function(S){var D=$t(S[1])?S[1].bind(t.api)(a.id):S[1];A.append("stop").attr("offset",S[0]).attr("stop-color",D||l).attr("stop-opacity",S[2])})}})},setOverColor:function(t,e){var n=this,i=n.config,r=n.$el.main,a=i.color_onover,o=t?a:n.color;Ut(o)?o=function(s){var u=s.id;return u in a?a[u]:n.color(u)}:Qt(o)?o=function(){return a}:$t(a)&&(o=o.bind(n.api)),r.selectAll(Ut(e)?".".concat(Jt.arc).concat(n.getTargetSelectorSuffix(e.id)):".".concat(me.shape,"-").concat(e)).style("fill",o)}},By={getYDomainMinMax:function(t,e){var n=this,i=n.axis,r=n.config,a=e==="min",o=r.data_groups,s=n.mapToIds(t),u=n.getValuesAsIdKeyed(t);if(o.length>0){var l=n["has".concat(a?"Negative":"Positive","ValueInTargets")](t);o.forEach(function(h){var d=h.filter(function(m){return s.indexOf(m)>=0});if(d.length){var v=d[0],y=i.getId(v);l&&u[v]&&(u[v]=u[v].map(function(m){return(a?m<0:m>0)?m:0})),d.filter(function(m,T){return T>0}).forEach(function(m){if(u[m]){var T=i.getId(m);u[m].forEach(function(C,A){var S=+C,D=a?S>0:S<0;T===y&&!(l&&D)&&(u[v][A]+=S)})}})}})}return pn(e,Object.keys(u).map(function(h){return pn(e,u[h])}))},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some(function(n){return e.axis.getId(n)===t})},getYDomain:function(t,e,n){var i=this,r=i.axis,a=i.config,o=i.scale,s="axis_".concat(e);if(i.isStackNormalized())return[0,100];var u=(o==null?void 0:o[e])&&o[e].type==="log",l=t.filter(function(G){return r.getId(G.id)===e}),h=n?i.filterByXDomain(l,n):l;if(h.length===0)return i.isHiddenTargetWithYDomain(e)?o[e].domain():e==="y2"?o.y.domain():i.getYDomain(t,"y2",n);var d=a["".concat(s,"_min")],v=a["".concat(s,"_max")],y=a["".concat(s,"_center")],m=a["".concat(s,"_inverted")],T=i.hasDataLabel()&&a.axis_rotated,C=i.hasDataLabel()&&!a.axis_rotated,A=i.getYDomainMinMax(h,"min"),S=i.getYDomainMinMax(h,"max"),D=xe([Tt.BAR,Tt.BUBBLE,Tt.SCATTER],gn.Line,!0).some(function(G){var vt=G.indexOf("area")>-1?"area":G;return i.hasType(G,h,!0)&&a["".concat(vt,"_zerobased")]});A=pt(d)?d:pt(v)?A<=v?A:v-10:A,S=pt(v)?v:pt(d)?d<=S?S:d+10:S,isNaN(A)&&(A=0),isNaN(S)&&(S=A),A===S&&(A<0?S=0:A=0);var L=A>=0&&S>=0,P=A<=0&&S<=0;(pt(d)&&L||pt(v)&&P)&&(D=!1),D&&(L&&(A=0),P&&(S=0));var g=Math.abs(S-A),F={top:g*.1,bottom:g*.1};if(Yt(y)){var H=Math.max(Math.abs(A),Math.abs(S));S=y+H,A=y-H}if(T){var K=Li(o.y.range()),W=i.getDataLabelLength(A,S,"width").map(function(G){return G/K});["bottom","top"].forEach(function(G,vt){F[G]+=g*(W[vt]/(1-W[0]-W[1]))})}else if(C){var V=i.getDataLabelLength(A,S,"height");["bottom","top"].forEach(function(G,vt){F[G]+=i.convertPixelToScale("y",V[vt],g)})}F=i.getResettedPadding(F);var nt=a["".concat(s,"_padding")];Kt(nt)&&["bottom","top"].forEach(function(G){F[G]=r.getPadding(nt,G,F[G],g)}),D&&(L&&(F.bottom=A),P&&(F.top=-S));var U=u?[A,S].map(function(G){return G<0?0:G}):[A-F.bottom,S+F.top];return m?U.reverse():U},getXDomainMinMax:function(t,e){var n,i=this,r=i.config["axis_x_".concat(e)],a=pn(e,t.map(function(s){return pn(e,s.values.map(function(u){return u.x}))})),o=Ut(r)?r.value:r;return o=Yt(o)&&(!((n=i.axis)===null||n===void 0)&&n.isTimeSeries())?Qe.bind(this)(o):o,Ut(r)&&r.fit&&(e==="min"&&o<a||e==="max"&&o>a)&&(o=void 0),Yt(o)?o:a},getXDomainPadding:function(t,e){var n=this,i=n.axis,r=n.config,a=r.axis_x_padding,o=i.isTimeSeries()&&e,s=Li(t),u;if(i.isCategorized()||o)u=0;else if(n.hasType("bar")){var l=n.getMaxDataCount();u=l>1?s/(l-1)/2:.5}else u=n.getResettedPadding(s*.01);var h=yt(a)?{left:a,right:a}:a,d=h.left,v=d===void 0?u:d,y=h.right,m=y===void 0?u:y;if(a.unit==="px"){var T=Math.abs(s+s*.2);v=i.getPadding(a,"left",u,T),m=i.getPadding(a,"right",u,T)}else{var C=s+v+m;if(o&&C){var A=s/e/C;v=v/C/A,m=m/C/A}}return{left:v,right:m}},getXDomain:function(t){var e=this,n=e.axis,i=e.scale.x,r=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")],a=r[0],o=a===void 0?0:a,s=r[1],u=s===void 0?0:s;if(i.type!=="log"){var l=n.isCategorized(),h=n.isTimeSeries(),d=e.getXDomainPadding(r),v=r[0],y=r[1];v-y===0&&!l&&(h?(v=new Date(v.getTime()*.5),y=new Date(y.getTime()*1.5)):(v=v===0?1:v*.5,y=y===0?-1:y*1.5)),(v||v===0)&&(o=h?new Date(v.getTime()-d.left):v-d.left),(y||y===0)&&(u=h?new Date(y.getTime()+d.right):y+d.right)}return[o,u]},updateXDomain:function(t,e,n,i,r){var a,o=this,s=o.config,u=o.org,l=o.scale,h=l.x,d=l.subX,v=s.zoom_enabled;if(n&&(h.domain(r||oi(o.getXDomain(t))),u.xDomain=h.domain(),v&&o.zoom.updateScaleExtent(),d.domain(h.domain()),(a=o.brush)===null||a===void 0||a.scale(d)),e){var y=r||!o.brush||ty(o)?u.xDomain:Qu(o).map(d.invert);h.domain(y),v&&o.zoom.updateScaleExtent()}return i&&h.domain(o.trimXDomain(h.orgDomain())),h.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],i=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),i<=t[1]&&(t[0]=+t[0]-(t[1]-i),t[1]=i),t},getZoomDomain:function(){var t=this,e=t.config,n=t.org,i=n.xDomain,r=i[0],a=i[1];return Yt(e.zoom_x_min)&&(r=pn("min",[r,e.zoom_x_min])),Yt(e.zoom_x_max)&&(a=pn("max",[a,e.zoom_x_max])),[r,a]},convertPixelToScale:function(t,e,n){var i=this,r=i.config,a=i.state,o=r.axis_rotated,s;return t==="x"?s=o?"height":"width":s=o?"width":"height",n*(e/a[s])}};function Ec(t,e,n){var i=t.config,r="axis_".concat(e,"_tick_format"),a=i[r]?i[r]:t.defaultValueFormat;return a.call(t.api,n)}var zy={yFormat:function(t){return Ec(this,"y",t)},y2Format:function(t){return Ec(this,"y2",t)},getDefaultValueFormat:function(){var t=this,e=t.defaultArcValueFormat,n=t.yFormat,i=t.y2Format,r=t.hasArcType(null,["gauge","polar","radar"]);return function(a,o,s){var u=r?e:t.axis&&t.axis.getId(s)==="y2"?i:n;return u.call(t,a,o)}},defaultValueFormat:function(t){return pt(t)?+t:""},defaultArcValueFormat:function(t,e){return"".concat((e*100).toFixed(1),"%")},defaultPolarValueFormat:function(t){return"".concat(t)},dataLabelFormat:function(t){var e=this,n=e.config.data_labels,i=function(a){return pt(a)?+a:""},r=i;return $t(n.format)?r=n.format:Ke(n.format)&&(n.format[t]?r=n.format[t]===!0?i:n.format[t]:r=function(){return""}),r.bind(e.api)}};function cr(t){var e=this,n=e.getDataById(t),i=e.levelColor?e.levelColor(n.values[0].value):e.color(n);return i}var Hy={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Ft.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=r.scale,u=r.$el,l=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};l.withTransition=xn(l,"withTransition",!0),l.withTransitionForTransform=xn(l,"withTransitionForTransform",!0),a.legend_contents_bindto&&a.legend_contents_template?r.updateLegendTemplate():o.hasTreemap||r.updateLegendElement(t||r.mapToIds(r.data.targets),l,n),(i=u.legend)===null||i===void 0||i.selectAll(".".concat(Ft.legendItem)).classed(Ft.legendItemHidden,function(h){var d=!r.isTargetToShow(h);return d&&(this.style.opacity=null),d}),r.updateScales(!1,!s.zoom),r.updateSvgSize(),r.transformAll(l.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,i=dt(e.legend_contents_bindto),r=e.legend_contents_template;if(!i.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach(function(l){var h=$t(r)?r.bind(t.api)(l,t.color(l),t.api.data(l)[0].values):no(r,{COLOR:t.color(l),TITLE:l});h&&(o.push(l),s+=h)});var u=i.html(s).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(u),n.legend=i}},updateSizeForLegend:function(t){var e=this,n=e.config,i=e.state,r=i.isLegendTop,a=i.isLegendLeft,o=i.isLegendRight,s=i.isLegendInset,u=i.current,l=t.width,h=t.height,d={top:r?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-h-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-l-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?d.top:u.height-h,right:NaN,bottom:0,left:o?u.width-l:s?d.left:0}},transformLegend:function(t){var e=this,n=e.$el.legend,i=e.$T;i(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select(".".concat(Ft.legendItem,"-").concat(t," line")).style("stroke",e)},getLegendWidth:function(){var t=this,e=t.state,n=e.current.width,i=e.isLegendRight,r=e.isLegendInset,a=e.legendItemWidth,o=e.legendStep;return t.config.legend_show?i||r?a*(o+1):n:0},getLegendHeight:function(){var t=this,e=t.state,n=e.current,i=e.isLegendRight,r=e.legendItemHeight,a=e.legendStep;return t.config.legend_show?i?n.height:Math.max(20,r)*(a+1):0},opacityForUnfocusedLegend:function(t){return t.classed(Ft.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,i=n.$el.legend,r=n.$T,a=n.mapToTargetIds(t);i&&r(i.selectAll(".".concat(Ft.legendItem)).filter(function(o){return a.indexOf(o)>=0}).classed(Ht.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,dt(this))})},revertLegend:function(){var t=this,e=t.$el.legend,n=t.$T;e&&n(e.selectAll(".".concat(Ft.legendItem)).classed(Ht.legendItemFocused,!1)).style("opacity",null)},showLegend:function(t){var e=this,n=e.config,i=e.$el,r=e.$T;n.legend_show||(n.legend_show=!0,i.legend?i.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),r(i.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend:function(t){var e=this,n=e.config,i=e.$el.legend;n.legend_show&&ui(t)&&(n.legend_show=!1,i.style("visibility","hidden")),e.addHiddenLegendIds(t),i.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n=this,i=n.cache,r=n.state,a,o=qe.legendItemTextBox;return t&&(a=!r.redrawing&&i.get(o)||{},a[t]||(a[t]=n.getTextRect(e,Ft.legendItem),i.add(o,a)),a=a[t]),a},setLegendItem:function(t){var e=this,n=e.$el,i=e.api,r=e.config,a=e.state,o=a.inputType==="touch",s=e.hasType("gauge"),u=r.boost_useCssRule;t.attr("class",function(l){var h=dt(this),d=!h.empty()&&h.attr("class")||"";return d+e.generateClass(Ft.legendItem,l)}).style("visibility",function(l){return e.isLegendToShow(l)?null:"hidden"}),r.interaction_enabled&&(u&&[[".".concat(Ft.legendItem),"cursor:pointer"],[".".concat(Ft.legendItem," text"),"pointer-events:none"],[".".concat(Ft.legendItemPoint," text"),"pointer-events:none"],[".".concat(Ft.legendItemTile),"pointer-events:none"],[".".concat(Ft.legendItemEvent),"fill-opacity:0"]].forEach(function(l){var h=l[0],d=l[1];e.setCssRule(!1,h,[d])(n.legend)}),t.style("cursor",e.getStylePropValue("pointer")).on("click",function(l,h){Zt(r.legend_item_onclick,i,h)||(l.altKey?(i.hide(),i.show(h)):(i.toggle(h),dt(this).classed(Ht.legendItemFocused,!1))),o&&e.hideTooltip()}),!o&&t.on("mouseout",function(l,h){Zt(r.legend_item_onout,i,h)||(dt(this).classed(Ht.legendItemFocused,!1),s&&e.undoMarkOverlapped(e,".".concat(We.gaugeValue)),e.api.revert())}).on("mouseover",function(l,h){Zt(r.legend_item_onover,i,h)||(dt(this).classed(Ht.legendItemFocused,!0),s&&e.markOverlapped(h,e,".".concat(We.gaugeValue)),!a.transiting&&e.isTargetToShow(h)&&i.focus(h))}))},updateLegendElement:function(t,e){var n=this,i=n.config,r=n.state,a=n.$el.legend,o=n.$T,s=i.legend_item_tile_type,u=s!=="circle",l=i.legend_item_tile_r,h={width:u?i.legend_item_tile_width:l*2,height:u?i.legend_item_tile_height:l*2},d={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:h.width+5,totalLength:0},v={offsets:{},widths:{},heights:{},margins:[0],steps:{}},y,m,T,C=t.filter(function(g){return!Yt(i.data_names[g])||i.data_names[g]!==null}),A=e.withTransition,S=n.getUpdateLegendPositions(C,d,v);r.isLegendInset&&(d.step=i.legend_inset_step?i.legend_inset_step:C.length,n.updateLegendStep(d.step)),r.isLegendRight?(y=function(g){return d.max.width*v.steps[g]},m=function(g){return v.margins[v.steps[g]]+v.offsets[g]}):r.isLegendInset?(y=function(g){return d.max.width*v.steps[g]+10},m=function(g){return v.margins[v.steps[g]]+v.offsets[g]}):(y=function(g){return v.margins[v.steps[g]]+v.offsets[g]},m=function(g){return d.max.height*v.steps[g]});var D={xText:function(g,F){return y(g,F)+4+h.width},xRect:function(g,F){return y(g,F)},x1Tile:function(g,F){return y(g,F)-2},x2Tile:function(g,F){return y(g,F)-2+h.width},yText:function(g,F){return m(g,F)+9},yRect:function(g,F){return m(g,F)-5},yTile:function(g,F){return m(g,F)+4}};n.generateLegendItem(C,h,S,D),T=a.select(".".concat(Ft.legendBackground," rect")),r.isLegendInset&&d.max.width>0&&T.size()===0&&(T=a.insert("g",".".concat(Ft.legendItem)).attr("class",Ft.legendBackground).append("rect"));var L=a.selectAll("text").data(C).text(function(g){return Yt(i.data_names[g])?i.data_names[g]:g}).each(function(g,F){S(this,g,F)});o(L,A).attr("x",D.xText).attr("y",D.yText);var P=a.selectAll("rect.".concat(Ft.legendItemEvent)).data(C);o(P,A).attr("width",function(g){return v.widths[g]}).attr("height",function(g){return v.heights[g]}).attr("x",D.xRect).attr("y",D.yRect),n.updateLegendItemPos(C,A,D),T&&o(T,A).attr("height",n.getLegendHeight()-12).attr("width",d.max.width*(d.step+1)+10),n.updateLegendItemWidth(d.max.width),n.updateLegendItemHeight(d.max.height),n.updateLegendStep(d.step)},getUpdateLegendPositions:function(t,e,n){var i=this,r=i.config,a=i.state,o=a.isLegendRight||a.isLegendInset;return function(s,u,l){var h=l===0,d=l===t.length-1,v=i.getLegendItemTextBox(u,s),y=v.width+e.tileWidth+(d&&!o?0:e.padding.right)+r.legend_padding,m=v.height+e.padding.top,T=o?m:y,C=o?i.getLegendHeight():i.getLegendWidth(),A,S=function(L,P){P||(A=(C-e.totalLength-T)/2,A<e.posMin&&(A=(C-T)/2,e.totalLength=0,e.step++)),n.steps[L]=e.step,n.margins[e.step]=a.isLegendInset?10:A,n.offsets[L]=e.totalLength,e.totalLength+=T};if(h&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),r.legend_show&&!i.isLegendToShow(u)){n.widths[u]=0,n.heights[u]=0,n.steps[u]=0,n.offsets[u]=0;return}n.widths[u]=y,n.heights[u]=m,(!e.max.width||y>=e.max.width)&&(e.max.width=y),(!e.max.height||m>=e.max.height)&&(e.max.height=m);var D=o?e.max.height:e.max.width;r.legend_equally?(Object.keys(n.widths).forEach(function(L){return n.widths[L]=e.max.width}),Object.keys(n.heights).forEach(function(L){return n.heights[L]=e.max.height}),A=(C-D*t.length)/2,A<e.posMin?(e.totalLength=0,e.step=0,t.forEach(function(L){return S(L)})):S(u,!0)):S(u)}},generateLegendItem:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=r.$el.legend,u=a.legend_usePoint,l=a.legend_item_tile_r,h=a.legend_item_tile_type,d=h!=="circle",v=o.isLegendRight||o.isLegendInset,y=-200,m=s.selectAll(".".concat(Ft.legendItem)).data(t).enter().append("g");if(r.setLegendItem(m),m.append("text").text(function(C){return Yt(a.data_names[C])?a.data_names[C]:C}).each(function(C,A){n(this,C,A)}).style("pointer-events",r.getStylePropValue("none")).attr("x",v?i.xText:y).attr("y",v?y:i.yText),m.append("rect").attr("class",Ft.legendItemEvent).style("fill-opacity",r.getStylePropValue("0")).attr("x",v?i.xRect:y).attr("y",v?y:i.yRect),u){var T=[];m.append(function(C){var A=Kt(a.point_pattern)?a.point_pattern:[a.point_type];T.indexOf(C)===-1&&T.push(C);var S=A[T.indexOf(C)%A.length];return S==="rectangle"&&(S="rect"),qt.createElementNS(Jn.svg,"hasValidPointType"in r&&r.hasValidPointType(S)?S:"use")}).attr("class",Ft.legendItemPoint).style("fill",cr.bind(r)).style("pointer-events",r.getStylePropValue("none")).attr("href",function(C,A,S){var D=S[A],L=D.nodeName.toLowerCase(),P=r.getTargetSelectorSuffix(C);return L==="use"?"#".concat(o.datetimeId,"-point").concat(P):void 0})}else m.append(d?"line":h).attr("class",Ft.legendItemTile).style("stroke",cr.bind(r)).style("pointer-events",r.getStylePropValue("none")).call(function(C){h==="circle"?C.attr("r",l).style("fill",cr.bind(r)).attr("cx",v?i.x2Tile:y).attr("cy",v?y:i.yTile):d&&C.attr("stroke-width",e.height).attr("x1",v?i.x1Tile:y).attr("y1",v?y:i.yTile).attr("x2",v?i.x2Tile:y).attr("y2",v?y:i.yTile)})},updateLegendItemPos:function(t,e,n){var i=this,r=i.config,a=i.$el.legend,o=i.$T,s=r.legend_usePoint,u=r.legend_item_tile_type,l=u!=="circle";if(s){var h=a.selectAll(".".concat(Ft.legendItemPoint)).data(t);o(h,e).each(function(){var d=this.nodeName.toLowerCase(),v=r.point_r,y="x",m="y",T=2,C=2.5,A=null,S=null,D=null;if(d==="circle"){var L=v*.2;y="cx",m="cy",A=v+L,T=v*2,C=-L}else if(d==="rect"){var L=v*2.5;S=L,D=L,C=3}dt(this).attr(y,function(P){return n.x1Tile(P)+T}).attr(m,function(P){return n.yTile(P)-C}).attr("r",A).attr("width",S).attr("height",D)})}else{var h=a.selectAll(".".concat(Ft.legendItemTile)).data(t);o(h,e).style("stroke",cr.bind(i)).call(function(v){u==="circle"?v.attr("cx",function(y){var m=n.x2Tile(y);return m-(m-n.x1Tile(y))/2}).attr("cy",n.yTile):l&&v.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)})}}},Yy={redraw:function(t){var e,n,i;t===void 0&&(t={});var r=this,a=r.config,o=r.state,s=r.$el,u=s.main,l=s.treemap;o.redrawing=!0;var h=r.filterTargetsToShow(r.data.targets),d=t.flow,v=t.initializing,y=r.getWithOption(t),m=y.Transition?a.transition_duration:0,T=y.TransitionForExit?m:0,C=y.TransitionForAxis?m:0,A=(e=r.axis)===null||e===void 0?void 0:e.generateTransitions(C);r.updateSizes(v),y.Legend&&a.legend_show?(t.withTransition=!!m,!l&&r.updateLegend(r.mapToIds(r.data.targets),t,A)):y.Dimension&&r.updateDimension(!0),!l&&(!r.hasArcType()||o.hasRadar)&&r.updateCircleY&&(r.circleY=r.updateCircleY()),a.data_empty_label_text&&u.select("text.".concat(Ce.text,".").concat(Mt.empty)).attr("x",o.width/2).attr("y",o.height/2).text(a.data_empty_label_text).style("display",h.length?"none":null),o.hasAxis?(r.axis.redrawAxis(h,y,A,d,v),r.hasGrid()&&r.updateGrid(),a.regions.length&&r.updateRegion(),["bar","candlestick","line","area"].forEach(function(S){var D=fn(S);(/^(line|area)$/.test(S)&&r.hasTypeOf(D)||r.hasType(S))&&r["update".concat(D)](y.TransitionForExit)}),s.text&&u.selectAll(".".concat(oe.selectedCircles)).filter(r.isBarType.bind(r)).selectAll("circle").remove(),a.interaction_enabled&&!d&&y.EventRect&&(r.redrawEventRect(),(n=r.bindZoomEvent)===null||n===void 0||n.call(r))):(s.arcs&&r.redrawArc(m,T,y.Transform),s.radar&&r.redrawRadar(),s.polar&&r.redrawPolar(),l&&r.updateTreemap(T)),!o.resizing&&!l&&(r.hasPointType()||o.hasRadar)&&r.updateCircle(),r.hasDataLabel()&&!r.hasArcType(null,["radar"])&&r.updateText(),(i=r.redrawTitle)===null||i===void 0||i.call(r),v&&r.updateTypesElements(),r.generateRedrawList(h,d,m,y.Subchart),r.callPluginHook("$redraw",t,m)},generateRedrawList:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=r.getDrawShape();o.hasAxis&&a.subchart_show&&r.redrawSubchart(i,n,s);var u=e&&r.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:r.xv.bind(r)}),l=(n||u)&&Xo(),h=r.getRedrawList(s,e,u,l),d=function(){u&&u(),o.redrawing=!1,Zt(a.onrendered,r.api)};if(d)if(l&&h.length){var v=nl();du().duration(n).each(function(){h.reduce(function(y,m){return y.concat(m)},[]).forEach(function(y){return v.add(y)})}).call(v,d)}else o.transiting||d();r.mapToIds(r.data.targets).forEach(function(y){o.withoutFadeIn[y]=!0})},getRedrawList:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=o.hasAxis,u=o.hasRadar,l=o.hasTreemap,h=r.$el.grid,d=t.pos,v=d.cx,y=d.cy,m=d.xForText,T=d.yForText,C=[];return s&&((a.grid_x_lines.length||a.grid_y_lines.length)&&C.push(r.redrawGrid(i)),a.regions.length&&C.push(r.redrawRegion(i)),Object.keys(t.type).forEach(function(A){var S=fn(A),D=t.type[A];(/^(area|line)$/.test(A)&&r.hasTypeOf(S)||r.hasType(A))&&C.push(r["redraw".concat(S)](D,i))}),!e&&h.main&&C.push(r.updateGridFocus())),(!r.hasArcType()||u)&&Kt(a.data_labels)&&a.data_labels!==!1&&C.push(r.redrawText(m,T,e,i)),(r.hasPointType()||u)&&!a.point_focus_only&&r.redrawCircle&&C.push(r.redrawCircle(v,y,i,n)),l&&C.push(r.redrawTreemap(i)),C},updateAndRedraw:function(t){t===void 0&&(t={});var e=this,n=e.config,i=e.state,r;t.withTransition=xn(t,"withTransition",!0),t.withTransform=xn(t,"withTransform",!1),t.withLegend=xn(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=xn(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(i.hasAxis&&(r=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,r)),e.redraw(t,r)},redrawWithoutRescale:function(){this.redraw({withY:!1,withDimension:!1,withLegend:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}};function Pn(t,e,n){t===void 0&&(t="linear"),e===void 0&&(e=0),n===void 0&&(n=1);var i={linear:Sr,log:Su,_log:Cu,time:_x,utc:bx}[t]();return i.type=t,/_?log/.test(t)&&i.clamp(!0),i.range([e,n])}var Uy={getXScale:function(t,e,n,i){var r=this,a=r.scale.zoom||Pn(r.axis.getAxisType("x"),t,e);return r.getCustomizedScale(n?a.domain(n):a,i)},getYScale:function(t,e,n,i){var r=this,a=Pn(r.axis.getAxisType(t),e,n);return i&&a.domain(i),a},getYScaleById:function(t,e){var n;e===void 0&&(e=!1);var i=((n=this.axis)===null||n===void 0?void 0:n.getId(t))==="y2",r=e?i?"subY2":"subY":i?"y2":"y";return this.scale[r]},getCustomizedScale:function(t,e){var n=this,i=e||function(){return n.axis.x.tickOffset()},r=function(o,s){var u=t(o)+i();return s?u:Math.ceil(u)};for(var a in t)r[a]=t[a];return r.orgDomain=function(){return t.domain()},r.orgScale=function(){return t},n.axis.isCategorized()&&(r.domain=function(o){var s=o;return arguments.length?(t.domain(s),r):(s=this.orgDomain(),[s[0],s[1]+1])}),r},updateScales:function(t,e){var n,i;e===void 0&&(e=!0);var r=this,a=r.axis,o=r.config,s=r.format,u=r.org,l=r.scale,h=r.state,d=h.current,v=h.width,y=h.height,m=h.width2,T=h.height2,C=h.hasAxis,A=h.hasTreemap;if(C){var S=o.axis_rotated,D=r.getResettedPadding(1),L={x:S?D:0,y:S?0:y,subX:S?1:0,subY:S?0:T},P={x:S?y:v,y:S?v:D,subX:S?y:v,subY:S?m:1},g=e&&((n=l.x)===null||n===void 0?void 0:n.orgDomain()),F=e&&u.xDomain;l.x=r.getXScale(L.x,P.x,g,function(){return a.x.tickOffset()}),l.subX=r.getXScale(L.x,P.x,F,function(K){var W;return K%1?0:((W=a.subX)!==null&&W!==void 0?W:a.x).tickOffset()}),s.xAxisTick=a.getXAxisTickFormat(),s.subXAxisTick=a.getXAxisTickFormat(!0),a.setAxis("x",l.x,o.axis_x_tick_outer,t),o.subchart_show&&a.setAxis("subX",l.subX,o.axis_x_tick_outer,t),l.y=r.getYScale("y",L.y,P.y,l.y?l.y.domain():o.axis_y_default),l.subY=r.getYScale("y",L.subY,P.subY,l.subY?l.subY.domain():o.axis_y_default),a.setAxis("y",l.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(l.y2=r.getYScale("y2",L.y,P.y,l.y2?l.y2.domain():o.axis_y2_default),l.subY2=r.getYScale("y2",L.subY,P.subY,l.subY2?l.subY2.domain():o.axis_y2_default),a.setAxis("y2",l.y2,o.axis_y2_tick_outer,t))}else if(A){var H=r.getCurrentPadding();l.x=Sr().rangeRound([H.left,d.width-H.right]),l.y=Sr().rangeRound([H.top,d.height-H.bottom])}else(i=r.updateArc)===null||i===void 0||i.call(r)},xx:function(t){var e=this,n=e.config,i=e.scale,r=i.x,a=i.zoom,o=n.zoom_enabled&&a?a:r;return t?o(pt(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,i=e.config,r=e.scale,a=r.x,o=r.zoom,s=i.zoom_enabled&&o?o:a,u=e.getBaseValue(t);return n.isTimeSeries()?u=Qe.call(e,u):n.isCategorized()&&Qt(u)&&(u=i.axis_x_categories.indexOf(u)),Math.ceil(s(u))},yv:function(t){var e=this,n=e.scale,i=n.y,r=n.y2,a=t.axis&&t.axis==="y2"?r:i;return Math.ceil(a(e.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}},Vy={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state,i=n.hasRadar,r=n.hasTreemap,a={type:{},indices:{},pos:{}};if(!r&&["bar","candlestick","line","area"].forEach(function(u){var l=fn(/^(bubble|scatter)$/.test(u)?"line":u);if(t.hasType(u)||t.hasTypeOf(l)||u==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){var h=t.getShapeIndices(t["is".concat(l,"Type")]),d=t["generateDraw".concat(l)];a.indices[u]=h,a.type[u]=d?d.bind(t)(h,!1):void 0}}),!t.hasArcType()||i||r){var o=void 0,s=void 0;r||(o=i?t.radarCircleX:e?t.circleY:t.circleX,s=i?t.radarCircleY:e?t.circleX:t.circleY),a.pos={xForText:t.generateXYForText(a.indices,!0),yForText:t.generateXYForText(a.indices,!1),cx:(o||function(){}).bind(t),cy:(s||function(){}).bind(t)}}return a},getShapeIndices:function(t){var e=this,n=e.config,i=n.data_xs,r=Kt(i),a={},o=r?{}:0;return r&&eo(Object.keys(i).map(function(s){return i[s]})).forEach(function(s){o[s]=0,a[s]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(function(s){for(var u=(s.id in i)?i[s.id]:"",l=u?a[u]:a,h=0,d=void 0;d=n.data_groups[h];h++)if(!(d.indexOf(s.id)<0)){for(var v=0,y=void 0;y=d[v];v++)if(y in l){l[s.id]=l[y];break}}ke(l[s.id])&&(l[s.id]=u?o[u]++:o++,l.__max__=(u?o[u]:o)-1)}),a},getIndices:function(t,e,n){var i=this,r=i.config,a=r.data_xs,o=r.bar_indices_removeNull,s=e.id,u=e.index;if(i.isBarType(s)&&o){var l={};return i.getAllValuesOnIndex(u,!0).forEach(function(h,d){l[h.id]=d,l.__max__=d}),l}return Kt(a)?t[a[s]]:t},getIndicesMax:function(t){return Kt(this.config.data_xs)?Object.keys(t).map(function(e){return t[e].__max__||0}).reduce(function(e,n){return e+n}):t.__max__},getShapeX:function(t,e,n){var i=this,r=i.config,a=i.scale,o=n?a.subX:a.zoom||a.x,s=r.bar_overlap,u=r.bar_padding,l=function(d,v){return d+v},h=Ke(t)&&(t._$total.length?t._$total.reduce(l)/2:0);return function(d){var v=i.getIndices(e,d,"getShapeX"),y=d.id in v?v[d.id]:0,m=(v.__max__||0)+1,T=0;if(Kt(d.x)){var C=o(d.x,!0);if(h){var A=t[d.id]||t._$width;T=s?C-A/2:C-A+t._$total.slice(0,y+1).reduce(l)-h}else T=C-(yt(t)?t:t._$width)*(m/2-(s?1:y))}return t&&T&&m>1&&u&&(y&&(T+=u*y),m>2?T-=(m-1)*u/2:m===2&&(T-=u/2)),T}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(i){var r=i.value;return yt(i)?r=i:n?r=e.getRatio("index",i,!0):e.isBubbleZType(i)?r=e.getBubbleZData(i.value,"y"):e.isBarRangeType(i)&&(r=r[1]),e.getYScaleById(i.id,t)(r)}},getShapeYMin:function(t){var e=this,n=e.axis.getId(t),i=e.scale[n],r=i.domain()[0],a=e.config["axis_".concat(n,"_inverted")];return!e.isGrouped(t)&&!a&&r>0?r:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),i=e.isStackNormalized(),r=n.map(function(o){var s=o.values,u={};e.isStepType(o)&&(s=e.convertValuesToStep(s));var l=s.reduce(function(h,d){var v=Number(d.x);return h[v]=d,u[v]=i?e.getRatio("index",d,!0):d.value,h},{});return{id:o.id,rowValues:s,rowValueMapByXValue:l,values:u}}),a=n.reduce(function(o,s,u){var l=s.id;return o[l]=u,o},{});return{indexMapByTargetId:a,shapeOffsetTargets:r}},getShapeOffset:function(t,e,n){var i=this,r=i.getShapeOffsetData(t),a=r.shapeOffsetTargets,o=r.indexMapByTargetId,s=i.config.data_groupsZeroAs;return function(u,l){var h=u.id,d=u.value,v=u.x,y=i.getIndices(e,u),m=i.getYScaleById(h,n);if(i.isBarRangeType(u))return m(d[0]);var T=Number(v),C=m(s==="zero"?0:i.getShapeYMin(h)),A=C;return a.filter(function(S){return S.id!==h&&y[S.id]===y[h]}).forEach(function(S){var D=S.id,L=S.rowValueMapByXValue,P=S.rowValues,g=S.values;if(o[D]<o[h]){var F=g[T],H=P[l];if((!H||Number(H.x)!==T)&&(H=L[T]),(H==null?void 0:H.value)*d>=0&&yt(F)){var K=d===0?s==="positive"&&F>0||s==="negative"&&F<0:!0;K&&(A+=m(F)-C)}}}),A}},getBarW:function(t,e,n){var i=this,r=i.config,a=i.org,o=i.scale,s=i.getMaxDataCount(),u=t==="bar"&&r.data_groups.length,l="".concat(t,"_width"),h=o.zoom&&!i.axis.isCategorized()?a.xDomain.map(function(y){return o.zoom(y)}).reduce(function(y,m){return Math.abs(y)+m})/s:e.tickInterval(s),d=function(y){var m=y?r[l][y]:r[l],T=y?m.ratio:r["".concat(l,"_ratio")],C=y?m.max:r["".concat(l,"_max")],A=yt(m)?m:n?h*T/n:0;return C&&A>C?C:A},v=d();return!u&&Ke(r[l])&&(v={_$width:v,_$total:[]},i.filterTargetsToShow(i.data.targets).forEach(function(y){r[l][y.id]&&(v[y.id]=d(y.id),v._$total.push(v[y.id]||v._$width))})),v},getShapeByIndex:function(t,e,n){var i=this,r=i.$el,a=pt(e)?"-".concat(e):"",o=r[t];return o&&!o.empty()?o=o.filter(function(s){return n?s.id===n:!0}).filter(function(s){return pt(e)?s.index===e:!0}):o=(n?r.main.selectAll(".".concat(le["".concat(t,"s")]).concat(i.getTargetSelectorSuffix(n))):r.main).selectAll(".".concat(le[t]).concat(a)),o},isWithinShape:function(t,e){var n,i=this,r=dt(t),a;return i.isTargetToShow(e.id)?!((n=i.hasValidPointType)===null||n===void 0)&&n.call(i,t.nodeName)?a=i.isStepType(e)?i.isWithinStep(t,i.getYScaleById(e.id)(e.value)):i.isWithinCircle(t,i.isBubbleType(e)?i.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(a=r.classed(le.bar)?i.isWithinBar(t):!0):a=!1,a},getInterpolate:function(t){var e=this,n=e.getInterpolateType(t);return{basis:Nx,"basis-closed":Ix,"basis-open":Px,bundle:Ox,cardinal:Fx,"cardinal-closed":Xx,"cardinal-open":Bx,"catmull-rom":zx,"catmull-rom-closed":Hx,"catmull-rom-open":Yx,"monotone-x":Vx,"monotone-y":Wx,natural:jx,"linear-closed":Ux,linear:Do,step:qx,"step-after":Zx,"step-before":Gx}[n]},getInterpolateType:function(t){var e=this,n=e.config,i=n.spline_interpolation_type,r=e.isInterpolationType(i)?i:"cardinal";return e.isSplineType(t)?r:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar:function(t){var e=Ze(this.state.event,t),n=Ku(t),i=n[0],r=n[1],a=Math.min(i.x,r.x),o=Math.min(i.y,r.y),s=this.config.bar_sensitivity,u=t.getBBox(),l=u.width,h=u.height,d=a-s,v=a+l+s,y=o+h+s,m=o-s,T=d<e[0]&&e[0]<v&&m<e[1]&&e[1]<y;return T}},Wy={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){var t=this;return t.config.size_width||t.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,i=t.$el,r=n?e.axis_y2_axes.length:0,a=pt(e.padding_top)?e.padding_top:0;return i.title&&i.title.node()&&(a+=t.getTitlePadding()),r&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*r),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,i=e.axis_rotated?"y":"x",r=n?e["axis_".concat(i,"_axes")].length:0,a=pt(e.padding_bottom)?e.padding_bottom:0;return a+(r?t.getHorizontalAxisHeight(i)*r:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,i=e.state.hasAxis,r=n.axis_rotated,a=r?"x":"y",o=i?n["axis_".concat(a,"_axes")].length:0,s=i?e.getAxisWidthByAxisId(a,t):0,u;return pt(n.padding_left)?u=n.padding_left:i&&r?u=n.axis_x_show?Math.max(Ra(s),40):1:i&&(!n.axis_y_show||n.axis_y_inner)?u=e.axis.getAxisLabelPosition("y").isOuter?30:1:u=Ra(s),u+s*o},getCurrentPaddingRight:function(t){t===void 0&&(t=!1);var e=this,n=e.config,i=e.state.hasAxis,r=10,a=e.state.isLegendRight?e.getLegendWidth()+20:0,o=i?n.axis_y2_axes.length:0,s=i?e.getAxisWidthByAxisId("y2"):0,u=t?e.axis.getXAxisTickTextY2Overflow(r):0,l;return pt(n.padding_right)?l=n.padding_right+(i?1:0):e.axis&&n.axis_rotated?l=r+a:e.axis&&(!n.axis_y2_show||n.axis_y2_inner)?l=Math.max(2+a+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),u):l=Math.max(Ra(s)+a,u),l+s*o},getParentRectValue:function(t){for(var e="offset".concat(fn(t)),n=this.$el.chart.node(),i=0;i<30&&n&&n.tagName!=="BODY";){try{i=n.getBoundingClientRect()[t]}catch{e in n&&(i=n[e])}n=n.parentNode}var r=qt.body[e];return i>r&&(i=r),i},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height"),e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft:function(t){var e=this,n=e.config,i=e.$el,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?ce.axisX:ce.axisY,o=i.main.select(".".concat(a)).node(),s=o&&r?o.getBoundingClientRect():{right:0},u=i.chart.node().getBoundingClientRect(),l=e.hasArcType(),h=s.right-u.left-(l?0:e.getCurrentPaddingLeft(t));return h>0?h:0},updateDimension:function(t){var e,n=this,i=n.config,r=n.state.hasAxis,a=n.$el;r&&!t&&n.axis.x&&i.axis_rotated&&((e=n.axis.subX)===null||e===void 0||e.create(a.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,i=e.current,r=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",i.width).attr("height",i.height),r){var u=s.select(".".concat(tl.brush," .overlay")),l={width:0,height:0};u.size()&&(l.width=+u.attr("width"),l.height=+u.attr("height")),s.selectAll(["#".concat(n.id),"#".concat(n.idGrid)]).select("rect").attr("width",a).attr("height",o),s.select("#".concat(n.idXAxis)).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#".concat(n.idYAxis)).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#".concat(n.idSubchart)).select("rect").attr("width",a).attr("height",l.height)}},getCurrentPadding:function(){var t=this;return{top:t.getCurrentPaddingTop(),bottom:t.getCurrentPaddingBottom(),left:t.getCurrentPaddingLeft(),right:t.getCurrentPaddingRight()}},getResettedPadding:function(t){var e=this,n=e.config,i=yt(t),r=i?0:{};return n.padding===!1?!i&&Object.keys(t).forEach(function(a){r[a]=!ui(n.data_labels)&&n.data_labels!==!1&&a==="top"?t[a]:0}):r=t,r},updateSizes:function(t){var e,n,i=this,r=i.config,a=i.state,o=i.$el.legend,s=r.axis_rotated,u=i.hasArcType()||a.hasTreemap;!t&&i.setContainerSize();var l={width:o?i.getLegendWidth():0,height:o?i.getLegendHeight():0};!u&&r.axis_x_show&&r.axis_x_tick_autorotate&&i.updateXAxisTickClip();var h=a.isLegendRight||a.isLegendInset?0:l.height,d=s||u?0:i.getHorizontalAxisHeight("x"),v=r.subchart_axis_x_show&&r.subchart_axis_x_tick_text_show?d:30,y=r.subchart_show&&!u?r.subchart_size_height+v:0,m=i.getCurrentPadding();if(a.margin=!u&&s?{top:i.getHorizontalAxisHeight("y2")+m.top,right:u?0:i.getCurrentPaddingRight(!0),bottom:i.getHorizontalAxisHeight("y")+h+m.bottom,left:y+(u?0:m.left)}:{top:4+m.top,right:u?0:i.getCurrentPaddingRight(!0),bottom:d+y+h+m.bottom,left:u?0:m.left},a.margin=i.getResettedPadding(a.margin),a.margin2=s?{top:a.margin.top,right:NaN,bottom:20+h,left:i.state.rotatedPadding.left}:{top:a.current.height-y-h,right:NaN,bottom:v+h,left:a.margin.left},a.margin3={top:0,right:NaN,bottom:0,left:0},(e=i.updateSizeForLegend)===null||e===void 0||e.call(i,l),a.width=a.current.width-a.margin.left-a.margin.right,a.height=a.current.height-a.margin.top-a.margin.bottom,a.width<0&&(a.width=0),a.height<0&&(a.height=0),a.width2=s?a.margin.left-a.rotatedPadding.left-a.rotatedPadding.right:a.width,a.height2=s?a.height:a.current.height-a.margin2.top-a.margin2.bottom,a.width2<0&&(a.width2=0),a.height2<0&&(a.height2=0),i.hasArcType()){var T=i.hasType("gauge"),C=r.legend_show&&a.isLegendRight;a.arcWidth=a.width-(C?l.width+10:0),a.arcHeight=a.height-(C&&!T?0:10),T&&!r.gauge_fullCircle&&(a.arcHeight+=a.height-i.getPaddingBottomForGauge()),(n=i.updateRadius)===null||n===void 0||n.call(i)}a.isLegendRight&&u&&(a.margin3.left=a.arcWidth/2+a.radiusExpanded*1.1)}},jy={setCssRule:function(t,e,n,i){var r=this,a=r.config,o=r.state,s=o.cssRule,u=o.style;return a.boost_useCssRule?function(l){l.each(function(h){var d=i&&(i==null?void 0:i.call(r,h)),v="".concat(t?".".concat(me.shapes+r.getTargetSelectorSuffix(h.id)):"").concat(e);e in s&&u.sheet.deleteRule(s[v]),r.state.cssRule[v]=iy(u,v,n.filter(Boolean).map(function(y){return Qt(d)&&y.indexOf(":")===-1?"".concat(y,": ").concat(d):y||""}))})}:function(){}},getStylePropValue:function(t){var e=this.config.boost_useCssRule;return e?null:$t(t)?t.bind(this):t}};function qy(t){var e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Gy(t,e,n,i,r){var a,o=this,s=t.value,u=o.isCandlestickType(t),l=yt(s)&&s<0||u&&!(!((a=o.getCandlestickData(t))===null||a===void 0)&&a._isUp),h=e.x,d=e.y,v=4,y=v*2;return i?n==="start"?(h+=l?0:y,d+=v):n==="middle"?(h+=y,d-=y):n==="end"&&(l&&(h-=y),d+=v):(n==="start"?(h+=v,l&&(d+=y*2)):n==="middle"?d-=y:n==="end"&&(h-=v,l&&(d+=y*2)),r&&(d+=l?-17:u?13:7)),{x:h,y:d}}var Zy={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText:function(){var t=this.$el;t.main.select(".".concat(Mt.chart)).append("g").attr("class",Ce.chartTexts).style("pointer-events",t.treemap?"none":null)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),i=e.getClass("texts","id"),r=e.classFocus.bind(e),a=e.$el.main.select(".".concat(Ce.chartTexts)).selectAll(".".concat(Ce.chartText)).data(t).attr("class",function(s){return"".concat(n(s)).concat(r(s)).trim()}),o=a.enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0," .".concat(Ce.text),["fill","pointer-events:none"],e.updateTextColor));o.append("g").attr("class",i)},updateText:function(){var t=this,e=t.$el,n=t.$T,i=t.config,r=t.axis,a=t.getClass("text","index"),o=i.data_labels.centered,s=e.main.selectAll(".".concat(Ce.texts)).selectAll(".".concat(Ce.text)).data(t.labelishData.bind(t));n(s.exit()).style("fill-opacity","0").remove(),e.text=s.enter().append("text").merge(s).attr("class",a).attr("text-anchor",function(u){var l=i["axis_".concat(r==null?void 0:r.getId(u.id),"_inverted")],h=l?u.value>0:u.value<0;if(t.isCandlestickType(u)){var d=t.getCandlestickData(u);h=!(d!=null&&d._isUp)}else if(t.isTreemapType(u))return o?"middle":"start";return i.axis_rotated?h?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(u,l,h){var d=dt(this),v=u.value;if(t.isBubbleZType(u))v=t.getBubbleZData(v,"z");else if(t.isCandlestickType(u)){var y=t.getCandlestickData(u);y&&(v=y.close)}v=t.isTreemapType(u)?t.treemapDataLabelFormat(u)(d):t.dataLabelFormat(u.id)(v,u.id,l,h),yt(v)?this.textContent=v:Ir(d,v)})},updateTextColor:function(t){var e=this,n=e.config,i=n.data_labels_colors,r=e.isArcType(t)&&!e.isRadarType(t)||e.isTreemapType(t)?null:e.color(t),a;if(Qt(i))a=i;else if(Ut(i)){var o=(t.data||t).id;a=i[o]}else $t(i)&&(a=i.bind(e.api)(r,t));if(e.isCandlestickType(t)&&!$t(i)){var s=e.getCandlestickData(t);if(!(s!=null&&s._isUp)){var u=n.candlestick_color_down;a=Ut(u)?u[t.id]:u}}return a||r},updateTextBacgroundColor:function(t){var e=this,n=e.$el,i=e.config,r=i.data_labels_backgroundColors,a="";if(Qt(r)||Ut(r)){var o=Qt(r)?"":e.getTargetSelectorSuffix("id"in t?t.id:t.data.id),s=n.defs.select(["filter[id*='labels-bg","']"].join(o));s.size()&&(a="url(#".concat(s.attr("id"),")"))}return a||null},redrawText:function(t,e,n,i){var r=this,a=r.$T,o=r.axis,s=r.config,u=r.state.hasTreemap,l=Xn(!0),h=s.axis_rotated,d=s.data_labels.rotate,v=qy(d),y=d?"rotate(".concat(d,")"):"";return r.$el.text.style("fill",r.getStylePropValue(r.updateTextColor)).attr("filter",r.updateTextBacgroundColor.bind(r)).style("fill-opacity",n?0:r.opacityForText.bind(r)).each(function(m,T){var C=a(u&&this.childElementCount?this.parentNode:this,!!(i&&this.getAttribute("x")),l),A=s["axis_".concat(o==null?void 0:o.getId(m.id),"_inverted")],S={x:t.bind(this)(m,T),y:e.bind(this)(m,T)};d&&(S=Gy.bind(r)(m,S,v,h,A),C.attr("text-anchor",v)),this.childElementCount||d?C.attr("transform","translate(".concat(S.x," ").concat(S.y,") ").concat(y)):C.attr("x",S.x).attr("y",S.y)}),!0},getTextRect:function(t,e){var n=this,i=t.node?t.node():t;/text/i.test(i.tagName)||(i=i.querySelector("text"));var r=i.textContent,a="".concat(qe.textRect,"-").concat(r.replace(/\W/g,"_")),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",dt(i).style("font")).classed(e,!0).text(r).call(function(s){o=Ri(s.node())}).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,i=n.state,r=i.hasRadar,a=i.hasTreemap,o=Object.keys(t),s={},u=e?n.getXForText:n.getYForText;return r&&o.push("radar"),a&&o.push("treemap"),o.forEach(function(l){s[l]=n["generateGet".concat(fn(l),"Points")](t[l],!1)}),function(l,h){var d=n.isAreaType(l)&&"area"||n.isBarType(l)&&"bar"||n.isCandlestickType(l)&&"candlestick"||n.isRadarType(l)&&"radar"||n.isTreemapType(l)&&"treemap"||"line";return u.call(n,s[d](l,h),l,this)}},getCenteredTextPos:function(t,e,n,i){var r=this,a=r.config,o=a.axis_rotated,s=r.isBarType(t),u=r.isTreemapType(t);if(a.data_labels.centered&&(s||u)){var l=Ri(n);if(s){var h=t.value>=0;if(o){var d=(h?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+l.width/2;return h?-d-3:d+2}else{var v=(h?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+l.height/2;return h?v:-v-2}}else if(u)return i==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+l.height/2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var i,r=this,a=r.config,o=r.state,s=a.axis_rotated,u=r.isTreemapType(e),l=t[0][0];if(r.isCandlestickType(e))s?l=!((i=r.getCandlestickData(e))===null||i===void 0)&&i._isUp?t[2][2]+4:t[2][1]-4:l+=(t[1][0]-l)/2;else if(u)l+=a.data_labels.centered?0:5;else if(s){var h=a["axis_".concat(r.axis.getId(e.id),"_inverted")],d=r.isBarType(e)?4:6,v=e.value;l=t[2][1],h?l-=d*(v>0?1:-1):l+=d*(v<0?-1:1)}else l=r.hasType("bar")?(t[2][0]+t[0][0])/2:l;if(e.value===null)if(l>o.width){var y=Ri(n).width;l=o.width-y}else l<0&&(l=4);return(s||u)&&(l+=r.getCenteredTextPos(e,t,n,"x")),l+r.getTextPos(e.id,"x")},getYForText:function(t,e,n){var i=this,r=i.axis,a=i.config,o=i.state,s=a.axis_rotated,u=a["axis_".concat(r==null?void 0:r.getId(e.id),"_inverted")],l=i.isBarType(e),h=i.isTreemapType(e),d=a.point_r,v=Ri(n),y=e.value,m=3,T;if(i.isCandlestickType(e))y=i.getCandlestickData(e),s?(T=t[0][0],T+=(t[1][0]-T)/2+m):(T=y&&y._isUp?t[2][2]-m:t[2][1]+m*4,u&&(T+=15*(y._isUp?1:-1)));else if(h)T=t[0][1]+(a.data_labels.centered?0:v.height+5);else if(s)T=(t[0][0]+t[2][0]+v.height*.6)/2;else if(T=t[2][1],yt(d)&&d>5&&(i.isLineType(e)||i.isScatterType(e))&&(m+=a.point_r/2.3),y<0||y===0&&!o.hasPositiveValue&&o.hasNegativeValue)T+=u?l?-3:-5:v.height+(l?-m:m);else{var C=-m*2;l?C=-m:i.isBubbleType(e)&&(C=m),u&&(C=l?10:15),T+=C}if(e.value===null&&!s){var A=v.height;T<A?T=A:T>o.height&&(T=o.height-4)}return(!s||h)&&(T+=i.getCenteredTextPos(e,t,n,"y")),T+i.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var i=e.$el.arcs.selectAll(n),r=i.filter(function(u){return u.data.id!==t}),a=i.filter(function(u){return u.data.id===t}),o=Cc(a.node()),s=function(u,l){return Math.sqrt(Math.pow(u,2)+Math.pow(l,2))};a.node()&&r.each(function(){var u=Cc(this),l=dt(this),h=s(o.e,o.f)>s(u.e,u.f)?a:l,d=Math.ceil(Math.abs(o.e-u.e))<Math.ceil(h.node().getComputedTextLength()),v=Math.ceil(Math.abs(o.f-u.f))<parseInt(a.style("font-size"),10);l.classed(Ce.TextOverlapping,d&&v)})},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each(function(){tu([this,this.previousSibling]).classed(Ce.TextOverlapping,!1)})},meetsLabelThreshold:function(t,e){t===void 0&&(t=0);var n=this,i=n.config,r=i["".concat(e,"_label_threshold")]||0;return t>=r}};function Rc(t,e){t===void 0&&(t="left");var n=yt(e),i;return t.indexOf("center")>-1?i=n?e/2:"middle":t.indexOf("right")>-1?i=n?e:"end":i=n?0:"start",i}var Ky={initTitle:function(){var t=this,e=t.config,n=t.$el;if(e.title_text){n.title=n.svg.append("g");var i=n.title.append("text").style("text-anchor",Rc(e.title_position)).attr("class",Ce.title);Ir(i,e.title_text,[.3,1.5])}},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,i=t.$el.title;if(i){var r=t.yForTitle.call(t);/g/i.test(i.node().tagName)?i.attr("transform","translate(".concat(Rc(e.title_position,n.width),", ").concat(r,")")):i.attr("x",t.xForTitle.call(t)).attr("y",r)}},xForTitle:function(){var t=this,e=t.config,n=t.state.current,i=e.title_position||"left",r=t.getTextRect(t.$el.title,Ce.title).width,a;return/(right|center)/.test(i)?(a=n.width-r,i.indexOf("right")>=0?a=n.width-r-e.title_padding.right:i.indexOf("center")>=0&&(a=(n.width-r)/2)):a=e.title_padding.left||0,a},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,Ce.title).height},getTitlePadding:function(){var t=this;return t.yForTitle()+(t.config.title_padding.bottom||0)}},Qy={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=dt(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",xr.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t,e,n=this,i=n.config,r=n.$el,a=n.state,o=a.hasAxis,s=a.hasRadar;if(i.tooltip_init_show){var u=!(o&&s);if(!((t=n.axis)===null||t===void 0)&&t.isTimeSeries()&&Qt(i.tooltip_init_x)){var l=n.data.targets[0],h=void 0,d=void 0;for(i.tooltip_init_x=Qe.call(n,i.tooltip_init_x),h=0;(d=l.values[h])&&d.x-i.tooltip_init_x!==0;h++);i.tooltip_init_x=h}var v=n.data.targets.map(function(y){var m=u?0:i.tooltip_init_x;return n.addName(y.values[m])});u&&(v=[v[i.tooltip_init_x]]),r.tooltip.html(n.getTooltipHTML(v,(e=n.axis)===null||e===void 0?void 0:e.getXAxisTickFormat(),n.getDefaultValueFormat(),n.color)),i.tooltip_contents.bindto||r.tooltip.style("top",i.tooltip_init_position.top).style("left",i.tooltip_init_position.left).style("display",null)}},getTooltipHTML:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this,i=n.api,r=n.config;return $t(r.tooltip_contents)?r.tooltip_contents.bind(i).apply(void 0,t):n.getTooltipContent.apply(n,t)},getTooltipContent:function(t,e,n,i){var r=this,a=r.api,o=r.config,s=r.state,u=r.$el,l=["title","name","value"].map(function(U){var G=o["tooltip_format_".concat(U)];return $t(G)?G.bind(a):G}),h=l[0],d=l[1],v=l[2];h=h||e,d=d||function(U){return U},v=v||(s.hasTreemap||r.isStackNormalized()?function(U,G){return"".concat((G*100).toFixed(2),"%")}:n);var y=o.tooltip_order,m=function(U){return r.axis&&r.isBubbleZType(U)?r.getBubbleZData(U.value,"z"):r.getBaseValue(U)},T=r.levelColor?function(U){return r.levelColor(U.value)}:function(U){return i(U)},C=o.tooltip_contents,A=C.template,S=r.mapToTargetIds();if(y===null&&o.data_groups.length){var D=r.orderTargets(r.data.targets).map(function(U){return U.id}).reverse();t.sort(function(U,G){var vt=U?U.value:null,mt=G?G.value:null;return vt>0&&mt>0&&(vt=U.id?D.indexOf(U.id):null,mt=G.id?D.indexOf(G.id):null),vt-mt})}else if(/^(asc|desc)$/.test(y)){var L=y==="asc";t.sort(function(U,G){var vt=U?m(U):null,mt=G?m(G):null;return L?vt-mt:mt-vt})}else $t(y)&&t.sort(y.bind(a));var P=r.getTooltipContentTemplate(A),g=t.length,F,H,K,W,V,nt=function(){if(H=t[V],!H||!(m(H)||m(H)===0))return"continue";if(ke(F)){var U=(s.hasAxis||s.hasRadar)&&Ci(h?h(H.x):H.x);F=no(P[0],{CLASS_TOOLTIP:xr.tooltip,TITLE:pt(U)?A?U:'<tr><th colspan="2">'.concat(U,"</th></tr>"):""})}if(!H.ratio&&u.arcs&&(K=["arc",r.$el.arcs.select("path.".concat(Jt.arc,"-").concat(H.id)).data()[0]],H.ratio=r.getRatio.apply(r,K)),K=[H.ratio,H.id,H.index,t],W=Ci(v.apply(void 0,xe([m(H)],K,!1))),r.isAreaRangeType(H)){var G=["high","low"].map(function(ye){return Ci(v.apply(void 0,xe([r.getRangedData(H,ye)],K,!1)))}),vt=G[0],mt=G[1];W="<b>Mid:</b> ".concat(W," <b>High:</b> ").concat(vt," <b>Low:</b> ").concat(mt)}else if(r.isCandlestickType(H)){var ut=["open","high","low","close","volume"].map(function(ht){return Ci(v.apply(void 0,xe([r.getRangedData(H,ht,"candlestick")],K,!1)))}),Rt=ut[0],vt=ut[1],mt=ut[2],gt=ut[3],It=ut[4];W="<b>Open:</b> ".concat(Rt," <b>High:</b> ").concat(vt," <b>Low:</b> ").concat(mt," <b>Close:</b> ").concat(gt).concat(It?" <b>Volume:</b> ".concat(It):"")}else if(r.isBarRangeType(H)){var Dt=H.value,fe=Dt[0],ee=Dt[1];W="".concat(v(fe)," ~ ").concat(v(ee))}if(W!==void 0){if(H.name===null)return"continue";var bt=Ci(d.apply(void 0,xe([H.name],K,!1))),Vt=T(H),he={CLASS_TOOLTIP_NAME:xr.tooltipName+r.getTargetSelectorSuffix(H.id),COLOR:A||!r.patterns?Vt:'<svg><rect style="fill:'.concat(Vt,'" width="10" height="10"></rect></svg>'),NAME:bt,VALUE:W};if(A&&Ut(C.text)){var ne=S.indexOf(H.id);Object.keys(C.text).forEach(function(ye){he[ye]=C.text[ye][ne]})}F+=no(P[1],he)}};for(V=0;V<g;V++)nt();return"".concat(F,"</table>")},getTooltipContentTemplate:function(t){return(t||`<table class="{=CLASS_TOOLTIP}"><tbody>
{=TITLE}
{{<tr class="{=CLASS_TOOLTIP_NAME}">
<td class="name">`.concat(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>',`{=NAME}</td>
<td class="value">{=VALUE}</td>
</tr>}}
</tbody></table>`)).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,i){var r=this,a=r.config,o=r.scale,s=r.state,u=s.width,l=s.height,h=s.current,d=s.isLegendRight,v=s.inputType,y=s.event,m=r.hasType("gauge")&&!a.gauge_fullCircle,T=s.hasTreemap,C=r.getSvgLeft(!0),A=C+h.width-r.getCurrentPaddingRight(),S=r.getCurrentPaddingLeft(!0),D=20,L=Ze(y,i),P=L[0],g=L[1];if(r.hasArcType()){var F=v==="touch"||r.hasType("radar");F||(g+=m?l:l/2,P+=(u-(d?r.getLegendWidth():0))/2)}else if(!T){var H=o.x(t[0].x);a.axis_rotated?(g=H+D,P+=C+100,A-=C):(g-=5,P=C+S+D+(o.zoom?P:H))}if(P+e+15>A&&(P-=e+(T?0:S)),g+n>h.height){var K=T?0:30;g-=m?n*3:n+K}var W={top:g,left:P};return Object.keys(W).forEach(function(V){W[V]<0&&(W[V]=0)}),W},showTooltip:function(t,e){var n,i,r=this,a=r.config,o=r.scale,s=r.state,u=r.$el.tooltip,l=a.tooltip_contents.bindto,h=t.filter(function(W){return W&&pt(r.getBaseValue(W))});if(!(!u||h.length===0||!a.tooltip_show)){var d=u.datum(),v=d||{},y=v.width,m=y===void 0?0:y,T=v.height,C=T===void 0?0:T,A=JSON.stringify(t);if(!d||d.current!==A){var S=t.concat().sort()[0].index;Zt(a.tooltip_onshow,r.api,t),u.html(r.getTooltipHTML(t,r.axis?r.axis.getXAxisTickFormat():r.categoryName.bind(r),r.getDefaultValueFormat(),r.color)).style("display",null).style("visibility",null).datum(d={index:S,current:A,width:m=u.property("offsetWidth"),height:C=u.property("offsetHeight")}),Zt(a.tooltip_onshown,r.api,t),r._handleLinkedCharts(!0,S)}if(!l){var D=((n=a.tooltip_position)===null||n===void 0?void 0:n.bind(r.api))||r.tooltipPosition.bind(r),L=Ze(s.event,e),P=L[0],g=L[1],F={x:P,y:g},H=(i=t.filter(Boolean))===null||i===void 0?void 0:i.shift();o.x&&H&&"x"in H&&(F.xAxis=o.x(H.x));var K=D(h,m,C,e,F);["top","left"].forEach(function(W){var V=K[W];u.style(W,"".concat(V,"px")),W==="left"&&!d.xPosInPercent&&(d.xPosInPercent=V/s.current.width*100)})}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,i=t.$el.tooltip;e.add(function(){if(i.style("display")==="block"){var r=n.current,a=i.datum(),o=a.width,s=a.xPosInPercent,u=r.width/100*s,l=r.width-(u+o);l<0&&(u+=l),i.style("left","".concat(u,"px"))}})},hideTooltip:function(t){var e=this,n=e.api,i=e.config,r=e.$el.tooltip;if(r&&r.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){var a=JSON.parse(r.datum().current);Zt(i.tooltip_onhide,n,a),r.style("display","none").style("visibility","hidden").datum(null),Zt(i.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n=this,i=n.charts,r=n.config,a=n.state.event;if(a!=null&&a.isTrusted&&r.tooltip_linked&&i.length>1){var o=r.tooltip_linked_name;i.filter(function(s){return s!==n.api}).forEach(function(s){var u=s.internal,l=u.config,h=u.$el,d=l.tooltip_linked,v=l.tooltip_linked_name,y=qt.body.contains(h.chart.node());if(d&&o===v&&y){var m=h.tooltip.data()[0],T=e!==(m==null?void 0:m.index);try{s.tooltip[t&&T?"show":"hide"]({index:e})}catch{}}})}}},Jy={getTranslate:function(t,e){e===void 0&&(e=0);var n=this,i=n.config,r=n.state,a=i.axis_rotated,o=0,s,u;if(e&&/^(x|y2?)$/.test(t)&&(o=n.getAxisSize(t)*e),t==="main")s=Ai(r.margin.left),u=Ai(r.margin.top);else if(t==="context")s=Ai(r.margin2.left),u=Ai(r.margin2.top);else if(t==="legend")s=r.margin3.left,u=r.margin3.top;else if(t==="x")s=a?-o:0,u=a?0:r.height+o;else if(t==="y")s=a?0:-o,u=a?r.height+o:0;else if(t==="y2")s=a?0:r.width+o,u=a?1-o:0;else if(t==="subX")s=0,u=a?0:r.height2;else if(t==="arc")s=r.arcWidth/2,u=r.arcHeight/2;else if(t==="polar")s=r.arcWidth/2,u=r.arcHeight/2;else if(t==="radar"){var l=n.getRadarSize()[0];s=r.width/2-l,u=Ai(r.margin.top)}return"translate(".concat(s,", ").concat(u,")")},transformMain:function(t,e){var n=this,i=n.$el.main,r=n.$T,a=e!=null&&e.axisX?e.axisX:r(i.select(".".concat(ce.axisX)),t),o=e!=null&&e.axisY?e.axisY:r(i.select(".".concat(ce.axisY)),t),s=e!=null&&e.axisY2?e.axisY2:r(i.select(".".concat(ce.axisY2)),t);r(i,t).attr("transform",n.getTranslate("main")),a.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),s.attr("transform",n.getTranslate("y2")),i.select(".".concat(Jt.chartArcs)).attr("transform",n.getTranslate("arc"))},transformAll:function(t,e){var n=this,i=n.config,r=n.state,a=r.hasAxis,o=r.hasTreemap,s=n.$el;!o&&n.transformMain(t,e),a&&i.subchart_show&&n.transformContext(t,e),s.legend&&n.transformLegend(t)}},t0={setTargetType:function(t,e){var n=this,i=n.config,r=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach(function(a){r[a]=e===i.data_types[a],i.data_types[a]=e}),t||(i.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys(Tt).forEach(function(n){var i=Tt[n],r=t.hasType(i,null,!0),a=e.types.indexOf(i);a===-1&&r?e.types.push(i):a>-1&&!r&&e.types.splice(a,1)}),t.setChartElements()},hasType:function(t,e,n){var i;n===void 0&&(n=!1);var r=this,a=r.config,o=r.state.current,s=a.data_types,u=e||r.data.targets,l=!1;return!n&&((i=o.types)===null||i===void 0?void 0:i.indexOf(t))>-1?l=!0:u!=null&&u.length?u.forEach(function(h){var d=s[h.id];(d===t||!d&&t==="line")&&(l=!0)}):Object.keys(s).length?Object.keys(s).forEach(function(h){s[h]===t&&(l=!0)}):l=a.data_type===t,l},hasTypeOf:function(t,e,n){var i=this;return n===void 0&&(n=[]),t in gn?!gn[t].filter(function(r){return n.indexOf(r)===-1}).every(function(r){return!i.hasType(r,e)}):!1},isTypeOf:function(t,e){var n=Qt(t)?t:t.id,i=this.config.data_types[n]||this.config.data_type;return Xt(e)?e.indexOf(i)>=0:i===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType:function(t){var e=Qt(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,gn.Line)},isStepType:function(t){return this.isTypeOf(t,gn.Step)},isSplineType:function(t){return this.isTypeOf(t,gn.Spline)},isAreaType:function(t){return this.isTypeOf(t,gn.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,gn.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isCandlestickType:function(t){return this.isTypeOf(t,"candlestick")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isTreemapType:function(t){return this.isTypeOf(t,"treemap")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isPolarType:function(t){return this.isTypeOf(t,"polar")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern,i=!1;return(t==null?void 0:t.tagName)==="circle"?i=!0:i=e.point_type==="circle"&&(!n||Xt(n)&&n.length===0),i},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isRadarType(t)||this.isTreemapType(t)?t.values.filter(function(e){return yt(e.value)||!!e.value}):[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},jr=function(){function t(e){this.data={xs:{},targets:[]},this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var n=this;n.api=e,n.config=new Wr,n.cache=new Ty;var i=new dy;n.$el=i.getStore("element"),n.state=i.getStore("state"),n.$T=n.$T.bind(n)}return t.prototype.$T=function(e,n,i){var r=this,a=r.config,o=r.state,s=a.transition_duration,u=a.subchart_show,l=e;if(l){"tagName"in l&&(l=dt(l));var h=(n!==!1&&s||n)&&(!o.zooming||o.dragging)&&!o.resizing&&o.rendered&&!u;l=h?l.transition(i).duration(s):l}return l},t.prototype.beforeInit=function(){var e=this;e.callPluginHook("$beforeInit"),Zt(e.config.onbeforeinit,e.api)},t.prototype.afterInit=function(){var e=this;e.callPluginHook("$afterInit"),Zt(e.config.onafterinit,e.api)},t.prototype.init=function(){var e=this,n=e.config,i=e.state,r=e.$el,a=n.boost_useCssRule;if(sy(e),i.hasRadar=!i.hasAxis&&e.hasType("radar"),i.hasTreemap=!i.hasAxis&&e.hasType("treemap"),i.hasAxis=!e.hasArcType()&&!i.hasTreemap,i.datetimeId="bb-".concat(+new Date*Xn()),a){var o=qt.createElement("style");o.type="text/css",qt.head.appendChild(o),i.style={rootSelctor:".".concat(i.datetimeId),sheet:o.sheet},r.style=o}var s={element:n.bindto,classname:"bb"};Ut(n.bindto)&&(s.element=n.bindto.element||"#chart",s.classname=n.bindto.classname||s.classname),r.chart=$t(s.element.node)?n.bindto.element:dt(s.element||[]),r.chart.empty()&&(r.chart=dt(qt.body.appendChild(qt.createElement("div")))),r.chart.html("").classed(s.classname,!0).classed(i.datetimeId,a).style("position","relative"),e.initParams(),e.initToRender()},t.prototype.initToRender=function(e){var n=this,i=n.config,r=n.state,a=n.$el.chart,o=function(){return a.style("display")==="none"||a.style("visibility")==="hidden"},s=i.render.lazy||o(),u=At.MutationObserver;s&&u&&i.render.observe!==!1&&!e&&new u(function(l,h){o()||(h.disconnect(),!r.rendered&&n.initToRender(!0))}).observe(a.node(),{attributes:!0,attributeFilter:["class","style"]}),(!s||e)&&n.convertData(i,function(l){n.initWithData(l),n.afterInit()})},t.prototype.initParams=function(){var e=this,n=e.config,i=e.format,r=e.state,a=n.axis_rotated;if(e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),n.padding===!1&&(n.axis_x_show=!1,n.axis_y_show=!1,n.axis_y2_show=!1,n.subchart_show=!1),e.hasPointType()&&(e.point=e.generatePoint()),r.hasAxis){e.initClip(),i.extraLineClasses=e.generateExtraLineClass(),i.dataTime=n.data_xLocaltime?Nu:Iu,i.axisTime=n.axis_x_localtime?ko:Eo;var o=e.config.zoom_enabled&&e.config.zoom_type==="drag";i.defaultAxisTime=function(s){var u=e.scale,l=u.x,h=u.zoom,d=o?h:h&&l.orgDomain().toString()!==h.domain().toString(),v=s.getMilliseconds()&&".%L"||s.getSeconds()&&".:%S"||s.getMinutes()&&"%I:%M"||s.getHours()&&"%I %p"||s.getDate()!==1&&"%b %d"||d&&s.getDate()===1&&"%b'%y"||s.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(v)(s)}}r.isLegendRight=n.legend_position==="right",r.isLegendInset=n.legend_position==="inset",r.isLegendTop=n.legend_inset_anchor==="top-left"||n.legend_inset_anchor==="top-right",r.isLegendLeft=n.legend_inset_anchor==="top-left"||n.legend_inset_anchor==="bottom-left",r.rotatedPadding.top=e.getResettedPadding(r.rotatedPadding.top),r.rotatedPadding.right=a&&!n.axis_x_show?0:30,r.inputType=oy(n.interaction_inputType_mouse,n.interaction_inputType_touch)},t.prototype.initWithData=function(e){var n,i,r=this,a=r.config,o=r.scale,s=r.state,u=r.$el,l=r.org,h=s.hasAxis,d=s.hasTreemap,v=a.interaction_enabled,y=r.hasType("polar");if(h&&(r.axis=r.getAxisInstance(),a.zoom_enabled&&r.initZoom()),r.data.xs={},r.data.targets=r.convertDataToTargets(e),a.data_filter&&(r.data.targets=r.data.targets.filter(a.data_filter.bind(r.api))),a.data_hide&&r.addHiddenTargetIds(a.data_hide===!0?r.mapToIds(r.data.targets):a.data_hide),a.legend_hide&&r.addHiddenLegendIds(a.legend_hide===!0?r.mapToIds(r.data.targets):a.legend_hide),r.updateSizes(),r.updateScales(!0),h){var m=o.x,T=o.y,C=o.y2,A=o.subX,S=o.subY,D=o.subY2;m&&(m.domain(oi(r.getXDomain(r.data.targets))),A.domain(m.domain()),l.xDomain=m.domain()),T&&(T.domain(r.getYDomain(r.data.targets,"y")),S.domain(T.domain())),C&&(C.domain(r.getYDomain(r.data.targets,"y2")),D&&D.domain(C.domain()))}if(u.svg=u.chart.append("svg").style("overflow","hidden").style("display","block"),v&&s.inputType){var L=s.inputType==="touch",P=a.onclick,g=a.onover,F=a.onout;u.svg.on("click",(P==null?void 0:P.bind(r.api))||null).on(L?"touchstart":"mouseenter",(g==null?void 0:g.bind(r.api))||null).on(L?"touchend":"mouseleave",(F==null?void 0:F.bind(r.api))||null)}a.svg_classname&&u.svg.attr("class",a.svg_classname);var H=$t(a.color_tiles)&&r.patterns;(h||H||y||d||a.data_labels_backgroundColors)&&(u.defs=u.svg.append("defs"),h&&["id","idXAxis","idYAxis","idGrid"].forEach(function(V){r.appendClip(u.defs,s.clip[V])}),r.generateDataLabelBackgroundColorFilter(),H&&r.patterns.forEach(function(V){return u.defs.append(function(){return V.node})})),r.updateSvgSize(),r.bindResize();var K=u.svg.append("g").classed(Mt.main,!0).attr("transform",d?null:r.getTranslate("main"));if(u.main=K,a.subchart_show&&r.initSubchart(),a.tooltip_show&&r.initTooltip(),a.title_text&&r.initTitle(),!d&&a.legend_show&&r.initLegend(),a.data_empty_label_text&&K.append("text").attr("class","".concat(Ce.text," ").concat(Mt.empty)).attr("text-anchor","middle").attr("dominant-baseline","middle"),h&&(a.regions.length&&r.initRegion(),!a.clipPath&&r.axis.init()),K.append("g").classed(Mt.chart,!0).attr("clip-path",h?s.clip.path:null),r.callPluginHook("$init"),h&&(v&&((n=r.initEventRect)===null||n===void 0||n.call(r)),r.initGrid(),a.clipPath&&((i=r.axis)===null||i===void 0||i.init())),r.initChartElements(),r.updateTargets(r.data.targets),r.updateDimension(),Zt(a.oninit,r.api),r.setBackground(),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),a.data_onmin||a.data_onmax){var W=r.getMinMaxData();Zt(a.data_onmin,r.api,W.min),Zt(a.data_onmax,r.api,W.max)}a.tooltip_show&&r.initShowTooltip(),s.rendered=!0},t.prototype.initChartElements=function(){var e=this,n=e.state,i=n.hasAxis,r=n.hasRadar,a=n.hasTreemap,o=[];if(i)["bar","bubble","candlestick","line"].forEach(function(u){var l=fn(u);(u==="line"&&e.hasTypeOf(l)||e.hasType(u))&&o.push(l)});else if(a)o.push("Treemap");else{var s=e.hasType("polar");r||o.push("Arc","Pie"),e.hasType("gauge")?o.push("Gauge"):r?o.push("Radar"):s&&o.push("Polar")}o.forEach(function(u){e["init".concat(u)]()}),Kt(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()},t.prototype.setChartElements=function(){var e=this,n=e.$el,i=n.chart,r=n.svg,a=n.defs,o=n.main,s=n.tooltip,u=n.legend,l=n.title,h=n.grid,d=n.arcs,v=n.circle,y=n.bar,m=n.candlestick,T=n.line,C=n.area,A=n.text;e.api.$={chart:i,svg:r,defs:a,main:o,tooltip:s,legend:u,title:l,grid:h,arc:d,circles:v,bar:{bars:y},candlestick:m,line:{lines:T,areas:C},text:{texts:A}}},t.prototype.setBackground=function(){var e=this,n=e.config.background,i=e.state,r=e.$el.svg;if(Kt(n)){var a=r.select("g").insert(n.imgUrl?"image":"rect",":first-child");n.imgUrl?a.attr("href",n.imgUrl):n.color&&a.style("fill",n.color).attr("clip-path",i.clip.path),a.attr("class",n.class||null).attr("width","100%").attr("height","100%")}},t.prototype.updateTargets=function(e){var n,i=this,r=i.state,a=r.hasAxis,o=r.hasRadar,s=r.hasTreemap,u=function(d){return i["updateTargetsFor".concat(d)](e.filter(i["is".concat(d,"Type")].bind(i)))};if(i.updateTargetsForText(e),a)["bar","candlestick","line"].forEach(function(d){var v=fn(d);(d==="line"&&i.hasTypeOf(v)||i.hasType(d))&&u(v)}),i.updateTargetsForSubchart&&i.updateTargetsForSubchart(e);else if(i.hasArcType(e)){var l="Arc";o?l="Radar":i.hasType("polar")&&(l="Polar"),u(l)}else s&&u("Treemap");var h=i.hasType("bubble")||i.hasType("scatter");h&&((n=i.updateTargetForCircle)===null||n===void 0||n.call(i)),i.filterTargetsToShowAtInit(h)},t.prototype.filterTargetsToShowAtInit=function(e){e===void 0&&(e=!1);var n=this,i=n.$el.svg,r=n.$T,a=".".concat(Mt.target);e&&(a+=", .".concat(ve.chartCircles," > .").concat(ve.circles)),r(i.selectAll(a).filter(function(o){return n.isTargetToShow(o.id)})).style("opacity",null)},t.prototype.getWithOption=function(e){var n={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(n).forEach(function(i){var r=n[i];Qt(r)&&(r=n[r]),n[i]=xn(e,"with".concat(i),r)}),n},t.prototype.initialOpacity=function(e){var n=this,i=n.state.withoutFadeIn,r=n.getBaseValue(e)!==null&&i[e.id]?null:"0";return r},t.prototype.bindResize=function(){var e=this,n=e.config,i=e.state,r=Ay(n.resize_timer),a=[];a.push(function(){return Zt(n.onresize,e.api)}),n.resize_auto&&a.push(function(){i.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),a.push(function(){Zt(n.onresized,e.api),i.resizing=!1}),a.forEach(function(o){return r.add(o)}),e.resizeFunction=r,At.addEventListener("resize",e.resizeFunction=r)},t.prototype.callPluginHook=function(e){for(var n=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];this.config.plugins.forEach(function(a){e==="$beforeInit"&&(a.$$=n,n.api.plugins.push(a)),a[e].apply(a,i)})},t}();Ye(jr.prototype,[Ry,Ly,My,Iy,Ny,Xy,By,Dy,zy,Hy,Yy,Uy,Vy,Wy,jy,Zy,Ky,Qy,Jy,t0]);function e0(t){var e=this.config,n,i,r,a=function(){var o=i.shift();if(o&&n&&Ke(n)&&o in n)return n=n[o],a();if(!o)return n};Object.keys(e).forEach(function(o){n=t,i=o.split("_"),r=a(),Yt(r)&&(e[o]=r)}),this.api&&(this.state.orgConfig=t)}var n0={resize:function(t){var e=this.internal,n=e.config,i=e.state;i.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,i.resizing=!0,this.flush(!1),e.resizeFunction())},flush:function(t){var e,n,i=this.internal,r=i.state,a=i.$el.zoomResetBtn;r.rendered?(r.resizing?(e=i.brush)===null||e===void 0||e.updateResize():(n=i.axis)===null||n===void 0||n.setOrient(),a==null||a.style("display","none"),i.scale.zoom=null,t?i.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):i.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!r.resizing&&i.brush&&(i.brush.getSelection().call(i.brush.move),i.unselectRect())):i.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,i=n.chart,r=n.style,a=n.svg;if(Kt(e)){e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),a.select("*").interrupt(),e.resizeFunction.clear(),At.removeEventListener("resize",e.resizeFunction),i.classed("bb",!1).style("position",null).selectChildren().remove(),r&&r.parentNode.removeChild(r),Object.keys(this).forEach(function(s){s==="internal"&&Object.keys(e).forEach(function(u){e[u]=null}),t[s]=null,delete t[s]});for(var o in this)this[o]=function(){}}return null},config:function(t,e,n){var i=this.internal,r=i.config,a=i.state,o=t==null?void 0:t.replace(/\./g,"_"),s;return t&&o in r?Yt(e)?(r[o]=e,s=e,n&&this.flush()):s=r[o]:(arguments.length===0||ui(t))&&(s=a.orgConfig),s}},i0={color:function(t){return this.internal.color(t)}},al=function(t){var e=this.internal.data.targets;if(!ke(t)){var n=Xt(t)?t:[t];return e.filter(function(i){return n.some(function(r){return r===i.id})})}return e};Ye(al,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){e===void 0&&(e=!0);var n=null;if(t){var i=this.data(t);Xt(i)&&(n=[],i.forEach(function(r){var a=r.values.map(function(o){return o.value});e?n=n.concat(a):n.push(a)}))}return n},names:function(t){var e=this.internal;return e.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var r0={data:al},a0=function(t){var e;return(e=At.btoa)===null||e===void 0?void 0:e.call(At,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,function(n,i){return String.fromCharCode(Number("0x".concat(i)))}))};function o0(t,e,n){var i=e||n,r=i.width,a=i.height,o=new XMLSerializer,s=t.cloneNode(!0),u=ry(In(qt.styleSheets)).filter(function(y){return y.cssText}).map(function(y){return y.cssText});s.setAttribute("xmlns",Jn.xhtml),s.style.margin="0",s.style.padding="0",e.preserveFontStyle&&s.querySelectorAll("text").forEach(function(y){y.innerHTML=""});var l=o.serializeToString(s),h=qt.createElement("style");h.appendChild(qt.createTextNode(u.join(`
`)));var d=o.serializeToString(h),v='<svg xmlns="'.concat(Jn.svg,'" width="').concat(r,'" height="').concat(a,`"
viewBox="0 0 `).concat(n.width," ").concat(n.height,`"
preserveAspectRatio="`).concat((e==null?void 0:e.preserveAspectRatio)===!1?"none":"xMinYMid meet",`">
<foreignObject width="100%" height="100%">
`).concat(d,`
`).concat(l.replace(/(url\()[^#]+/g,"$1"),`
</foreignObject></svg>`).replace(`/
/g`,"%0A");return"data:image/svg+xml;base64,".concat(a0(v))}function s0(t,e){var n=e.top,i=e.left,r=t.getBBox(),a=r.x,o=r.y,s=t.getScreenCTM(),u=s.a,l=s.b,h=s.c,d=s.d,v=s.e,y=s.f,m=t.getBoundingClientRect(),T=m.width,C=m.height;return{x:u*a+h*o+v-i,y:l*a+d*o+y-n+(C-Math.round(C/4)),width:T,height:C}}function c0(t){var e=t.getBoundingClientRect(),n=e.left,i=e.top,r=function(o){return o.textContent||o.childElementCount},a=[];return In(t.querySelectorAll("text")).filter(r).forEach(function(o){var s=function(l){var h,d=At.getComputedStyle(l),v=d.fill,y=d.fontFamily,m=d.fontSize,T=d.textAnchor,C=d.transform,A=s0(l,{left:n,top:i}),S=A.x,D=A.y,L=A.width,P=A.height;return h={},h[l.textContent]={x:S,y:D,width:L,height:P,fill:v,fontFamily:y,fontSize:m,textAnchor:T,transform:C},h};if(o.childElementCount>1){var u=[];return In(o.querySelectorAll("tspan")).filter(r).forEach(function(l){a.push(s(l))}),u}else a.push(s(o))}),a}function u0(t,e){e.forEach(function(n){Object.keys(n).forEach(function(i){var r=n[i],a=r.x,o=r.y,s=r.width,u=r.height,l=r.fill,h=r.fontFamily,d=r.fontSize,v=r.transform;if(t.save(),t.font="".concat(d," ").concat(h),t.fillStyle=l,v==="none")t.fillText(i,a,o);else{var y=v.replace(/(matrix|\(|\))/g,"").split(",");y.splice(4).every(function(m){return+m==0})?(y.push(a+s-s/4),y.push(o-u+u/3)):(y.push(a),y.push(o)),t.transform.apply(t,y),t.fillText(i,0,0)}t.restore()})})}var l0={export:function(t,e){var n=this,i=this.internal,r=i.state,a=i.$el,o=a.chart,s=a.svg,u=r.current,l=u.width,h=u.height,d=ai({width:l,height:h,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),v=o0(o.node(),d,{width:l,height:h}),y=d.preserveFontStyle?c0(s.node()):[];if(e&&$t(e)){var m=new Image;m.crossOrigin="Anonymous",m.onload=function(){var T=qt.createElement("canvas"),C=T.getContext("2d");T.width=d.width||l,T.height=d.height||h,C.drawImage(m,0,0),y.length&&(u0(C,y),y.length=0),e.bind(n)(T.toDataURL(d.mimeType))},m.src=v}return v}},f0={focus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),r.classed(Ht.focused,!0).classed(Ht.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(i),e.hasType("gauge")&&e.markOverlapped(t,e,".".concat(We.gaugeValue))),e.toggleFocusLegend(i,!0),n.focusedTargetIds=i,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(a){return i.indexOf(a)<0})},defocus:function(t){var e=this.internal,n=e.state,i=e.mapToTargetIds(t),r=e.$el.svg.selectAll(e.selectorTargets(i.filter(e.isTargetToShow,e)));r.classed(Ht.focused,!1).classed(Ht.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(i),e.hasType("gauge")&&e.undoMarkOverlapped(e,".".concat(We.gaugeValue))),e.toggleFocusLegend(i,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(a){return i.indexOf(a)<0}),n.defocusedTargetIds=i},revert:function(t){var e=this.internal,n=e.config,i=e.state,r=e.$el,a=e.mapToTargetIds(t),o=r.svg.selectAll(e.selectorTargets(a));o.classed(Ht.focused,!1).classed(Ht.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),r.legend.selectAll(e.selectorLegends(a)).filter(function(){return dt(this).classed(Ht.legendItemFocused)}).classed(Ht.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},h0={show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}},d0={legend:h0},g0={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(function(i){n.data_classes[i]=t.classes[i]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(function(i){n.data_axes[i]=t.axes[i]}),"colors"in t&&Object.keys(t.colors).forEach(function(i){n.data_colors[i]=t.colors[i]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),function(){At.requestIdleCallback(function(){return e.loadFromArgs(t)})}):(e.api.tooltip.hide(),e.loadFromArgs(t))},unload:function(t){var e=this,n=this.internal,i=t||{};Xt(i)?i={ids:i}:Qt(i)&&(i={ids:[i]});var r=n.mapToTargetIds(i.ids);n.unload(r,function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(r),i.done&&i.done.call(e)})}};function Lc(t,e,n){var i=this,r=this.internal,a=r.mapToTargetIds(e),o=r.state.hiddenTargetIds.map(function(l){return a.indexOf(l)>-1&&l}).filter(Boolean);r.state.toggling=!0,r["".concat(t?"remove":"add","HiddenTargetIds")](a);var s=r.$el.svg.selectAll(r.selectorTargets(a)),u=t?null:"0";t&&o.length&&(s.style("display",null),Zt(r.config.data_onshown,this,o)),r.$T(s).style("opacity",u,"important").call(Fo,function(){!t&&o.length===0&&(s.style("display","none"),Zt(r.config.data_onhidden,i,a)),s.style("opacity",u)}),n.withLegend&&r["".concat(t?"show":"hide","Legend")](a),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.state.toggling=!1}var p0={show:function(t,e){e===void 0&&(e={}),Lc.call(this,!0,t,e)},hide:function(t,e){e===void 0&&(e={}),Lc.call(this,!1,t,e)},toggle:function(t,e){var n=this;e===void 0&&(e={});var i=this.internal,r={show:[],hide:[]};i.mapToTargetIds(t).forEach(function(a){return r[i.isTargetToShow(a)?"hide":"show"].push(a)}),r.show.length&&this.show(r.show,e),r.hide.length&&setTimeout(function(){return n.hide(r.hide,e)},0)}},v0={show:function(t){var e=this.internal,n=e.$el,i=e.config,r=e.state,a=r.eventReceiver,o=r.hasTreemap,s=r.inputType,u,l;if(t.mouse&&(l=t.mouse),t.data){var h=t.data,d=e.getYScaleById(h.id)(h.value);o&&h.id?a.rect=n.main.select("".concat(e.selectorTarget(h.id,void 0,"rect"))):e.isMultipleX()?l=[e.scale.x(h.x),d]:(i.tooltip_grouped||(l=[0,d]),u=pt(h.index)?h.index:e.getIndexByX(h.x))}else Yt(t.x)?u=e.getIndexByX(t.x):Yt(t.index)&&(u=t.index);(s==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(function(v){e.dispatchEvent(v,u,l)})},hide:function(){var t,e,n,i=this.internal,r=i.state.inputType,a=i.$el.tooltip,o=a==null?void 0:a.datum();if(o){var s=JSON.parse(o.current)[0].index;(r==="mouse"?["mouseout"]:["touchend"]).forEach(function(u){i.dispatchEvent(u,s)})}r==="touch"&&i.callOverOutForTouch(),i.hideTooltip(!0),(t=i.hideGridFocus)===null||t===void 0||t.call(i),(e=i.unexpandCircles)===null||e===void 0||e.call(i),(n=i.expandBarTypeShapes)===null||n===void 0||n.call(i,!1)}},x0={tooltip:v0},Bo=function(){function t(e){this.plugins=[];var n=new jr(this);this.internal=n,function i(r,a,o){Object.keys(r).forEach(function(s){var u=$t(r[s]),l=a!==o,h=Kt(r[s]),d=h&&Object.keys(r[s]).length>0;u&&(!l&&d||l)?a[s]=r[s].bind(o):h&&!u?a[s]={}:a[s]=r[s],d&&i(r[s],a[s],o)})}(t.prototype,this,this),e0.call(n,e),n.beforeInit(),n.init()}return t}();Ye(Bo.prototype,[n0,i0,r0,l0,f0,d0,g0,p0,x0]);function Mc(t,e,n){var i=t.config,r=function(a,o){var s=yt(o)?o:o===!1?void 0:null;s!==null&&(i["axis_".concat(a,"_").concat(e)]=s)};Yt(n)&&(Ke(n)?Object.keys(n).forEach(function(a){r(a,n[a])}):(yt(n)||n===!1)&&["y","y2"].forEach(function(a){r(a,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Dc(t,e){var n=t.config;return{x:n["axis_x_".concat(e)],y:n["axis_y_".concat(e)],y2:n["axis_y2_".concat(e)]}}var y0={labels:function(t){var e=this.internal,n;return t&&(Object.keys(t).forEach(function(i){e.axis.setLabelText(i,t[i])}),e.axis.updateLabels()),["x","y","y2"].forEach(function(i){var r=e.axis.getLabelText(i);r&&(!n&&(n={}),n[i]=r)}),n},min:function(t){var e=this.internal;return pt(t)||t===!1?Mc(e,"min",t):Dc(e,"min")},max:function(t){var e=this.internal;return pt(t)||t===!1?Mc(e,"max",t):Dc(e,"max")},range:function(t){var e=this.axis;if(arguments.length){var n=t.min,i=t.max;Yt(i)&&e.max(i),Yt(n)&&e.min(n)}else return{max:e.max(),min:e.min()}}},m0={axis:y0},_0={category:function(t,e){var n=this.internal,i=n.config;return arguments.length>1&&(i.axis_x_categories[t]=e,n.redraw()),i.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length&&(n.axis_x_categories=t,e.redraw()),n.axis_x_categories}},ol=function(t){var e=this.internal,n=e.config;return t&&(n.grid_x_lines=t,e.redrawWithoutRescale()),n.grid_x_lines};Ye(ol,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var b0={xgrids:ol},sl=function(t){var e=this.internal,n=e.config;return t&&(n.grid_y_lines=t,e.redrawWithoutRescale()),n.grid_y_lines};Ye(sl,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var T0={ygrids:sl},w0={groups:function(t){var e=this.internal,n=e.config;return ke(t)||(n.data_groups=t,e.redraw()),n.data_groups}},cl=function(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions};Ye(cl,{add:function(t){var e=this.internal,n=e.config;return t&&(n.regions=n.regions.concat(t),e.redrawWithoutRescale()),n.regions},remove:function(t){var e=this.internal,n=e.config,i=e.$T,r=t||{},a=xn(r,"classes",[Xi.region]),o=e.$el.main.select(".".concat(Xi.regions)).selectAll(a.map(function(s){return".".concat(s)}));return i(o).style("opacity","0").remove(),o=n.regions,Object.keys(r).length?(o=o.filter(function(s){var u=!1;return s.class?(s.class.split(" ").forEach(function(l){a.indexOf(l)>=0&&(u=!0)}),!u):!0}),n.regions=o):n.regions=[],o}});var $0={regions:cl},A0={x:function(t){var e=this.internal,n=e.axis,i=e.data,r=n.isCustomX()&&n.isCategorized();return Xt(t)&&(r?this.categories(t):(e.updateTargetX(i.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),r?this.categories():i.xs},xs:function(t){var e=this.internal;return Ut(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},C0={flow:function(t){var e=this.internal,n;(t.json||t.rows||t.columns)&&e.convertData(t,function(r){n=r,i()});function i(){var r,a=0,o=0,s,u;if(!(e.state.redrawing||!n||!Xo())){var l=[],h=e.getMaxDataCount(),d=e.convertDataToTargets(n,!0),v=e.axis.isTimeSeries();e.data.targets.forEach(function(T){for(var C=!1,A=0;A<d.length;A++)if(T.id===d[A].id){C=!0,T.values[T.values.length-1]&&(o=T.values[T.values.length-1].index+1),a=d[A].values.length;for(var S=0;S<a;S++)d[A].values[S].index=o+S,v||(d[A].values[S].x=o+S);T.values=T.values.concat(d[A].values),d.splice(A,1);break}!C&&l.push(T.id)}),e.data.targets.forEach(function(T){for(var C=0;C<l.length;C++)if(T.id===l[C]){o=T.values[T.values.length-1].index+1;for(var A=0;A<a;A++)T.values.push({id:T.id,index:o+A,x:v?e.getOtherTargetX(o+A):o+A,value:null})}}),e.data.targets.length&&d.forEach(function(T){for(var C=[],A=e.data.targets[0].values[0].index;A<o;A++)C.push({id:T.id,index:A,x:v?e.getOtherTargetX(A):A,value:null});T.values.forEach(function(S){S.index+=o,v||(S.x+=o)}),T.values=C.concat(T.values)}),e.data.targets=e.data.targets.concat(d);var y=e.data.targets[0],m=y.values[0];Yt(t.to)?(a=0,u=v?Qe.call(e,t.to):t.to,y.values.forEach(function(T){T.x<u&&a++})):Yt(t.length)&&(a=t.length),h?h===1&&v&&(s=(y.values[y.values.length-1].x-m.x)/2,r=[new Date(+m.x-s),new Date(+m.x+s)]):(v?s=y.values.length>1?y.values[y.values.length-1].x-m.x:m.x-e.getXDomain(e.data.targets)[0]:s=1,r=[m.x-s,m.x]),r&&e.updateXDomain(null,!0,!0,!1,r),e.updateTargets(e.data.targets),e.redraw({flow:{index:m.index,length:a,duration:pt(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:h},withLegend:!0,withTransition:h>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}}},Nc=function(){function t(e){var n=Pn(),i=e.config,r=e.params;this.owner=e,this.config=i,this.scale=n,(i.noTransition||!r.config.transition_duration)&&(i.withoutTransition=!0),i.range=this.scaleExtent((r.orgXScale||n).range())}return t.getSizeFor1Char=function(e){var n={w:5.5,h:11.5};return!e.empty()&&e.select("text").text("0").call(function(i){try{var r=i.node().getBBox(),a=r.width,o=r.height;a&&o&&(n.w=a,n.h=o)}catch{}finally{i.text("")}}),this.getSizeFor1Char=function(){return n},n},t.prototype.getTickTransformSetter=function(e){var n=this.config,i=e==="x"?function(r){return"translate(".concat(r+n.tickOffset,",0)")}:function(r){return"translate(0,".concat(r,")")};return function(r,a){r.attr("transform",function(o){return pt(o)?i(Math.ceil(a(o))):null})}},t.prototype.scaleExtent=function(e){var n=e[0],i=e[e.length-1];return n<i?[n,i]:[i,n]},t.prototype.generateTicks=function(e,n){var i=this.owner.params.tickStepSize,r=e.domain(),a=r[0],o=r[1],s=[];if(n&&i)for(var u=Math.round(a);u<=o;)s.push(u),u+=i;else if(e.ticks){var l=this.config.tickArguments;if(e.type==="log"&&!l){var h=Pn("_log").domain([a>0?a:1,o]).range(e.range());s=h.ticks();for(var d=o.toFixed().length;s.length>15;d--)s=h.ticks(d);s.splice(0,1,a),s.splice(s.length-1,1,o)}else s=e.ticks.apply(e,this.config.tickArguments||[]);s=s.map(function(y){var m=Qt(y)&&yt(y)&&!isNaN(y)&&Math.round(y*10)/10||y;return m})}else{for(var v=Math.ceil(a);v<o;v++)s.push(v);s.length>0&&s[0]>0&&s.unshift(s[0]-(s[1]-s[0]))}return s},t.prototype.copyScale=function(){var e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e},t.prototype.textFormatted=function(e){var n=this.config.tickFormat,i=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,r=n?n(i):i;return Yt(r)?r:""},t.prototype.transitionise=function(e){var n=this.config,i=e;if(n.withoutTransition)i=e.interrupt();else if(n.transition||!this.owner.params.noTransition)try{i=e.transition(n.transition)}catch{}return i},t}(),S0=function(){function t(e){e===void 0&&(e={});var n={innerTickSize:6,outerTickSize:e.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:e.noTransition};n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding,this.config=n,this.params=e,this.helper=new Nc(this)}return t.prototype.create=function(e){var n=this,i=n.config,r=n.helper,a=n.params,o=r.scale,s=i.orient,u=this.splitTickText.bind(n),l=/^(left|right)$/.test(s),h=/^(top|bottom)$/.test(s),d=r.getTickTransformSetter(h?"x":"y"),v=d===r.axisX?"y":"x",y=/^(top|left)$/.test(s)?-1:1,m=a.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():r.scaleExtent((a.orgXScale||o).range());var T=i.innerTickSize,C=i.tickLength,A=i.range,S=a.id,D=S&&/^(x|y|y2)$/.test(S)?a.config["axis_".concat(S,"_tick_text_position")]:{x:0,y:0},L=S==="subX"?"subchart_axis_x":"axis_".concat(S),P=a.config["".concat(L,"_show")],g={tick:P?a.config["".concat(L,"_tick_show")]:!1,text:P?a.config["".concat(L,"_tick_text_show")]:!1},F;e.each(function(){var H=dt(this),K=this.__chart__||o,W=r.copyScale();F=H,this.__chart__=W,i.tickOffset=a.isCategory?Math.ceil((W(1)-W(0))/2):0;var V=H.selectAll(".domain").data([0]);if(V.enter().append("path").attr("class","domain").merge(V).attr("d",function(){var bt=i.outerTickSize*y;return h?"M".concat(A[0],",").concat(bt,"V0H").concat(A[1],"V").concat(bt):"M".concat(bt,",").concat(A[0],"H0V").concat(A[1],"H").concat(bt)}),g.tick||g.text){var nt=i.tickValues||r.generateTicks(W,l);n.generatedTicks=nt;var U=H.selectAll(".tick").data(nt,W),G=U.enter().insert("g",".domain").attr("class","tick"),vt=U.exit().remove();U=G.merge(U),g.tick&&G.append("line"),g.text&&G.append("text");var mt=Nc.getSizeFor1Char(U),ut=[],Rt=U.select("text").selectAll("tspan").data(function(bt,Vt){var he=a.tickMultiline?u(bt,W,nt,l,mt.w):Xt(r.textFormatted(bt))?r.textFormatted(bt).concat():[r.textFormatted(bt)];return ut[Vt]=he.length,he.map(function(ne){return{index:Vt,splitted:ne}})});Rt.exit().remove(),Rt=Rt.enter().append("tspan").merge(Rt).text(function(bt){return bt.splitted}),Rt.attr("x",h?0:C*y).attr("dx",function(){var bt=0;return/(top|bottom)/.test(s)&&m&&(bt=8*Math.sin(Math.PI*(m/180))*(s==="top"?-1:1)),bt+(D.x||0)}()).attr("dy",function(bt,Vt){var he=".71em",ne=0;return s!=="top"&&(ne=mt.h,Vt===0&&(ne=l?-((ut[bt.index]-1)*(mt.h/2)-3):D.y===0?he:0)),yt(ne)&&D.y?ne+D.y:ne||he});var gt=U.select("line"),It=U.select("text");if(G.select("line").attr("".concat(v,"2"),T*y),G.select("text").attr(v,C*y),n.setTickLineTextPosition(gt,It),a.tickTitle){var Dt=It.select("title");(Dt.empty()?It.append("title"):Dt).text(function(bt){return a.tickTitle[bt]})}if(W.bandwidth){var fe=W,ee=fe.bandwidth()/2;K=function(bt){return fe(bt)+ee},W=K}else K.bandwidth?K=W:d(vt,W);U=a.owner.state.flowing?r.transitionise(U):a.owner.$T(U),d(G,K),d(U.style("opacity",null),W)}}),this.g=F},t.prototype.getGeneratedTicks=function(e){var n,i=((n=this.generatedTicks)===null||n===void 0?void 0:n.length)-1,r=this.generatedTicks;if(i>e){var a=Math.round(i/e+.1);r=this.generatedTicks.map(function(o,s){return s%a===0?o:null}).filter(function(o){return o!==null}).splice(0,e)}return r},t.prototype.getTickXY=function(){var e=this.config,n={x:0,y:0};return this.params.isCategory&&(n.x=e.tickCentered?0:e.tickOffset,n.y=e.tickCentered?e.tickOffset:0),n},t.prototype.getTickSize=function(e){var n=this.helper.scale,i=this.config,r=i.innerTickSize,a=i.range,o=n(e)+(i.tickCentered?0:i.tickOffset);return a[0]<o&&o<a[1]?r:0},t.prototype.setTickLineTextPosition=function(e,n){var i=this.getTickXY(),r=this.config,a=r.innerTickSize,o=r.orient,s=r.tickLength,u=r.tickOffset,l=this.params.tickTextRotate,h=function(y){var m=["start","end"];return o==="top"&&m.reverse(),y?m[y>0?0:1]:"middle"},d=function(y){return y?"rotate(".concat(y,")"):null},v=function(y){var m=y/(o==="bottom"?15:23);return y?11.5-2.5*m*(y>0?1:-1):s};switch(o){case"bottom":e.attr("x1",i.x).attr("x2",i.x).attr("y2",this.getTickSize.bind(this)),n.attr("x",0).attr("y",v(l)).style("text-anchor",h(l)).attr("transform",d(l));break;case"top":e.attr("x2",0).attr("y2",-a),n.attr("x",0).attr("y",-v(l)*2).style("text-anchor",h(l)).attr("transform",d(l));break;case"left":e.attr("x2",-a).attr("y1",i.y).attr("y2",i.y),n.attr("x",-s).attr("y",u).style("text-anchor","end");break;case"right":e.attr("x2",a).attr("y2",0),n.attr("x",s).attr("y",0).style("text-anchor","start")}},t.prototype.splitTickText=function(e,n,i,r,a){var o=this.params,s=this.helper.textFormatted(e),u=Qt(s)&&s.indexOf(`
`)>-1?s.split(`
`):[];if(u.length)return u;if(Xt(s))return s;var l=o.tickWidth;(!l||l<=0)&&(l=r?95:o.isCategory?Math.ceil(n(i[1])-n(i[0]))-12:110);function h(d,v){for(var y,m,T,C=1;C<v.length;C++)if(v.charAt(C)===" "&&(m=C),y=v.substr(0,C+1),T=a*y.length,l<T)return h(d.concat(v.substr(0,m||C)),v.slice(m?m+1:C));return d.concat(v)}return h(u,String(s))},t.prototype.scale=function(e){return arguments.length?(this.helper.scale=e,this):this.helper.scale},t.prototype.orient=function(e){return arguments.length?(this.config.orient=e in{top:1,right:1,bottom:1,left:1}?String(e):"bottom",this):this.config.orient},t.prototype.tickFormat=function(e){var n=this.config;return arguments.length?(n.tickFormat=e,this):n.tickFormat},t.prototype.tickCentered=function(e){var n=this.config;return arguments.length?(n.tickCentered=e,this):n.tickCentered},t.prototype.tickOffset=function(){return this.config.tickOffset},t.prototype.tickInterval=function(e){var n=this,i=this.config,r=i.outerTickSize,a=i.tickOffset,o=i.tickValues,s;if(this.params.isCategory)s=a*2;else{var u=this.g.select("path.domain").node().getTotalLength()-r*2;s=u/(e||this.g.selectAll("line").size());var l=o?o.map(function(h,d,v){var y=d+1;return y<v.length?n.helper.scale(v[y])-n.helper.scale(h):null}).filter(Boolean):[];s=Math.min.apply(Math,xe(xe([],l,!1),[s],!1))}return s===1/0?0:s},t.prototype.ticks=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this.config;return e.length?(i.tickArguments=In(e),this):i.tickArguments},t.prototype.tickCulling=function(e){var n=this.config;return arguments.length?(n.tickCulling=e,this):n.tickCulling},t.prototype.tickValues=function(e){var n=this,i=this.config;if($t(e))i.tickValues=function(){return e(n.helper.scale.domain())};else{if(!arguments.length)return i.tickValues;i.tickValues=e}return this},t.prototype.setTransition=function(e){return this.config.transition=e,this},t}(),k0={getAxisInstance:function(){return this.axis||new E0(this)}},E0=function(){function t(e){this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=e,this.setOrient()}return t.prototype.getAxisClassName=function(e){return"".concat(ce.axis," ").concat(ce["axis".concat(fn(e))])},t.prototype.isHorizontal=function(e,n){var i=e.config.axis_rotated;return n?i:!i},t.prototype.isCategorized=function(){var e=this.owner,n=e.config,i=e.state;return n.axis_x_type.indexOf("category")>=0||i.hasRadar},t.prototype.isCustomX=function(){var e=this.owner.config;return!this.isTimeSeries()&&(e.data_x||Kt(e.data_xs))},t.prototype.isTimeSeries=function(e){return e===void 0&&(e="x"),this.owner.config["axis_".concat(e,"_type")]==="timeseries"},t.prototype.isLog=function(e){return e===void 0&&(e="x"),this.owner.config["axis_".concat(e,"_type")]==="log"},t.prototype.isTimeSeriesY=function(){return this.isTimeSeries("y")},t.prototype.getAxisType=function(e){e===void 0&&(e="x");var n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n},t.prototype.init=function(){var e=this,n=this.owner,i=n.config,r=n.$el,a=r.main,o=r.axis,s=n.state.clip,u=i.axis_rotated,l=["x","y"];i.axis_y2_show&&l.push("y2"),l.forEach(function(h){var d=e.getAxisClassName(h),v=ce["axis".concat(h.toUpperCase(),"Label")];o[h]=a.append("g").attr("class",d).attr("clip-path",function(){var y=null;return h==="x"?y=s.pathXAxis:h==="y"&&(y=s.pathYAxis),y}).attr("transform",n.getTranslate(h)).style("visibility",i["axis_".concat(h,"_show")]?null:"hidden"),o[h].append("text").attr("class",v).attr("transform",["rotate(-90)",null][h==="x"?+!u:+u]).style("text-anchor",function(){return e.textAnchorForAxisLabel(h)}),e.generateAxes(h)})},t.prototype.setOrient=function(){var e=this.owner,n=e.config,i=n.axis_rotated,r=n.axis_y_inner,a=n.axis_y2_inner;this.orient={x:i?"left":"bottom",y:i?r?"top":"bottom":r?"right":"left",y2:i?a?"bottom":"top":a?"left":"right",subX:i?"left":"bottom"}},t.prototype.generateAxes=function(e){var n=this.owner,i=n.config,r=[],a=i["axis_".concat(e,"_axes")],o=i.axis_rotated,s;e==="x"?s=o?Ds:Ms:e==="y"?s=o?Ms:Ds:e==="y2"&&(s=o?jf:qf),a.length&&a.forEach(function(u){var l=u.tick||{},h=n.scale[e].copy();u.domain&&h.domain(u.domain),r.push(s(h).ticks(l.count).tickFormat($t(l.format)?l.format.bind(n.api):function(d){return d}).tickValues(l.values).tickSizeOuter(l.outer===!1?0:6))}),this.axesList[e]=r},t.prototype.updateAxes=function(){var e=this,n=this.owner,i=n.config,r=n.$el.main,a=n.$T;Object.keys(this.axesList).forEach(function(o){var s=i["axis_".concat(o,"_axes")],u=n.scale[o].copy(),l=u.range();e.axesList[o].forEach(function(h,d){var v=h.scale().range();l.every(function(T,C){return T===v[C]})||h.scale().range(l);var y="".concat(e.getAxisClassName(o),"-").concat(d+1),m=r.select(".".concat(y.replace(/\s/,".")));m.empty()?m=r.append("g").attr("class",y).style("visibility",i["axis_".concat(o,"_show")]?null:"hidden").call(h):(s[d].domain&&u.domain(s[d].domain),a(m).call(h.scale(u))),m.attr("transform",n.getTranslate(o,d+1))})})},t.prototype.setAxis=function(e,n,i,r){var a=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,n,i,e==="x"&&(a.scale.zoom||a.config.subchart_show||a.state.resizing)?!0:r)},t.prototype.getAxis=function(e,n,i,r,a){var o=this.owner,s=o.config,u=/^(x|subX)$/.test(e),l=u?"x":e,h=u&&this.isCategorized(),d=this.orient[e],v=a?0:o.getAxisTickRotate(l),y;if(u)y=e==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{var m=s["axis_".concat(e,"_tick_format")];$t(m)&&(y=m.bind(o.api))}var T=this.tick[l],C=ai({outerTick:i,noTransition:r,config:s,id:e,tickTextRotate:v,owner:o},u&&{isCategory:h,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:h&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});u||(C.tickStepSize=s["axis_".concat(l,"_tick_stepSize")]);var A=new S0(C).scale(u&&o.scale.zoom||n).orient(d);if(u&&this.isTimeSeries()&&T&&!$t(T)){var S=Qe.bind(o);T=T.map(function(L){return S(L)})}else!u&&this.isTimeSeriesY()&&(A.ticks(s.axis_y_tick_time_value),T=null);T&&A.tickValues(T),A.tickFormat(y||!u&&o.isStackNormalized()&&function(L){return"".concat(L,"%")}),h&&(A.tickCentered(s.axis_x_tick_centered),ui(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var D=s["axis_".concat(l,"_tick_count")];return D&&A.ticks(D),A},t.prototype.updateXAxisTickValues=function(e,n){var i,r=this.owner,a=r.config,o=a.axis_x_tick_fit,s=a.axis_x_tick_count,u;return(o||s&&o)&&(u=r.mapTargetsToUniqueXs(e),this.isCategorized()&&s>u.length&&(s=u.length),u=this.generateTickValues(u,s,this.isTimeSeries())),n?n.tickValues(u):this.x&&(this.x.tickValues(u),(i=this.subX)===null||i===void 0||i.tickValues(u)),u},t.prototype.getId=function(e){var n=this.owner,i=n.config,r=n.scale,a=i.data_axes[e];return(!a||!r[a])&&(a="y"),a},t.prototype.getXAxisTickFormat=function(e){var n=this.owner,i=n.config,r=n.format,a=e&&i.subchart_axis_x_tick_format||i.axis_x_tick_format,o=this.isTimeSeries(),s=this.isCategorized(),u;return a?$t(a)?u=a.bind(n.api):o&&(u=function(l){return l?r.axisTime(a)(l):""}):u=o?r.defaultAxisTime:s?n.categoryName:function(l){return l<0?l.toFixed(0):l},$t(u)?function(l){return u.apply(n,s?[l,n.categoryName(l)]:[l])}:u},t.prototype.getTickValues=function(e){var n=this.owner,i=n.config["axis_".concat(e,"_tick_values")],r=n["".concat(e,"Axis")];return($t(i)?i.call(n.api):i)||(r?r.tickValues():void 0)},t.prototype.getLabelOptionByAxisId=function(e){return this.owner.config["axis_".concat(e,"_label")]},t.prototype.getLabelText=function(e){var n=this.getLabelOptionByAxisId(e);return Qt(n)?n:n?n.text:null},t.prototype.setLabelText=function(e,n){var i=this.owner,r=i.config,a=this.getLabelOptionByAxisId(e);Qt(a)?r["axis_".concat(e,"_label")]=n:a&&(a.text=n)},t.prototype.getLabelPosition=function(e,n){var i=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(e),a=Ke(r)&&r.position?r.position:n[+!i],o=function(s){return!!~a.indexOf(s)};return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}},t.prototype.getAxisLabelPosition=function(e){return this.getLabelPosition(e,e==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])},t.prototype.getLabelPositionById=function(e){return this.getAxisLabelPosition(e)},t.prototype.xForAxisLabel=function(e){var n=this.owner,i=n.state,r=i.width,a=i.height,o=this.getAxisLabelPosition(e),s=o.isMiddle?-a/2:0;return this.isHorizontal(n,e!=="x")?s=o.isLeft?0:o.isCenter?r/2:r:o.isBottom&&(s=-a),s},t.prototype.dxForAxisLabel=function(e){var n=this.owner,i=this.getAxisLabelPosition(e),r=i.isBottom?"0.5em":"0";return this.isHorizontal(n,e!=="x")?r=i.isLeft?"0.5em":i.isRight?"-0.5em":"0":i.isTop&&(r="-0.5em"),r},t.prototype.textAnchorForAxisLabel=function(e){var n=this.owner,i=this.getAxisLabelPosition(e),r=i.isMiddle?"middle":"end";return this.isHorizontal(n,e!=="x")?r=i.isLeft?"start":i.isCenter?"middle":"end":i.isBottom&&(r="start"),r},t.prototype.dyForAxisLabel=function(e){var n=this.owner,i=n.config,r=i.axis_rotated,a=this.getAxisLabelPosition(e).isInner,o=i["axis_".concat(e,"_tick_rotate")]?n.getHorizontalAxisHeight(e):0,s=this.getMaxTickWidth(e),u;if(e==="x"){var l=i.axis_x_height;r?u=a?"1.2em":-25-s:a?u="-0.5em":l?u=l-10:o?u=o-10:u="3em"}else u={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],r?a?u=u[0]:o?u=o*(e==="y2"?-1:1)-u[1]:u=u[2]:u=a?u[3]:(u[4]+(i["axis_".concat(e,"_inner")]?0:s+u[4]))*(e==="y"?-1:1);return u},t.prototype.getMaxTickWidth=function(e,n){var i=this.owner,r=i.config,a=i.state.current,o=i.$el,s=o.svg,u=o.chart,l=a.maxTickWidths[e],h=0;if(n||!r["axis_".concat(e,"_show")]||l.size>0&&i.filterTargetsToShow().length===0)return l.size;if(s){var d=/^y2?$/.test(e),v=i.filterTargetsToShow(i.data.targets),y=i.scale[e].copy().domain(i["get".concat(d?"Y":"X","Domain")](v,e)),m=y.domain(),T=m[0]===m[1]&&m.every(function(P){return P>0}),C=Xt(l.domain)&&l.domain[0]===l.domain[1]&&l.domain.every(function(P){return P>0});if(T||C)return l.size;l.domain=m,d||l.ticks.splice(0);var A=this.getAxis(e,y,!1,!1,!0),S=r["axis_".concat(e,"_tick_count")],D=r["axis_".concat(e,"_tick_values")];!D&&S&&A.tickValues(this.generateTickValues(m,S,d?this.isTimeSeriesY():this.isTimeSeries())),!d&&this.updateXAxisTickValues(v,A);var L=u.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");A.create(L),L.selectAll("text").each(function(P,g){var F=this.getBoundingClientRect().width;h=Math.max(h,F),d||(l.ticks[g]=F)}),L.remove()}return h>0&&(l.size=h),l.size},t.prototype.getXAxisTickTextY2Overflow=function(e){var n=this.owner,i=n.axis,r=n.config,a=n.state,o=n.getAxisTickRotate("x"),s=o>0&&o<90;if((i.isCategorized()||i.isTimeSeries())&&r.axis_x_tick_fit&&!r.axis_x_tick_culling&&!r.axis_x_tick_multiline&&s){var u=a.current.width-n.getCurrentPaddingLeft(),l=this.getXAxisTickMaxOverflow(o,u-e),h=Math.max(0,l)+e;return Math.min(h,u/2)}return 0},t.prototype.getXAxisTickMaxOverflow=function(e,n){for(var i=this.owner,r=i.axis,a=i.config,o=i.state,s=r.isTimeSeries(),u=o.current.maxTickWidths.x.ticks,l=u.length,h=o.axis.x.padding,d=h.left,v=h.right,y=0,m=l-(s&&a.axis_x_tick_fit?.5:0),T=0;T<l;T++){var C=T+1,A=Math.cos(Math.PI*e/180)*u[T],S=C-(s?1:.5)+d;if(!(S<=0)){var D=n-A,L=D/S,P=m-C,g=v*L,F=P*L+g,H=A-L/2-F;y=Math.max(y,H)}}var K=i.filterTargetsToShow(i.data.targets),W=0;if(!s&&a.axis_x_tick_count<=K.length&&K[0].values.length){var V=Pn(i.axis.getAxisType("x"),0,n-y).domain([d*-1,i.getXDomainMax(i.data.targets)+1+v]);W=Math.ceil((V(1)-V(0))/2)}return y+W},t.prototype.updateLabels=function(e){var n=this,i=this.owner,r=i.$el.main,a=i.$T,o={x:r.select(".".concat(ce.axisX," .").concat(ce.axisXLabel)),y:r.select(".".concat(ce.axisY," .").concat(ce.axisYLabel)),y2:r.select(".".concat(ce.axisY2," .").concat(ce.axisY2Label))};Object.keys(o).filter(function(s){return!o[s].empty()}).forEach(function(s){var u=o[s];a(u,e).attr("x",function(){return n.xForAxisLabel(s)}).attr("dx",function(){return n.dxForAxisLabel(s)}).attr("dy",function(){return n.dyForAxisLabel(s)}).text(function(){return n.getLabelText(s)})})},t.prototype.getPadding=function(e,n,i,r){var a=yt(e)?e:e[n];return pt(a)?this.owner.convertPixelToScale(/(bottom|top)/.test(n)?"y":"x",a,r):i},t.prototype.generateTickValues=function(e,n,i){var r=e;if(n){var a=$t(n)?n():n;if(a===1)r=[e[0]];else if(a===2)r=[e[0],e[e.length-1]];else if(a>2){var o=this.isCategorized(),s=a-2,u=e[0],l=e[e.length-1],h=(l-u)/(s+1),d=void 0;r=[u];for(var v=0;v<s;v++)d=+u+h*(v+1),r.push(i?new Date(d):o?Math.round(d):d);r.push(l)}}return i||(r=r.sort(function(y,m){return y-m})),r},t.prototype.generateTransitions=function(e){var n=this.owner,i=n.$el.axis,r=n.$T,a=["x","y","y2","subX"].map(function(h){return r(i[h],e)}),o=a[0],s=a[1],u=a[2],l=a[3];return{axisX:o,axisY:s,axisY2:u,axisSubX:l}},t.prototype.redraw=function(e,n,i){var r=this,a=this.owner,o=a.config,s=a.$el,u=n?"0":null;["x","y","y2","subX"].forEach(function(l){var h=r[l],d=s.axis[l];h&&d&&(!i&&!o.transition_duration&&(h.config.withoutTransition=!0),d.style("opacity",u),h.create(e["axis".concat(fn(l))]))}),this.updateAxes()},t.prototype.redrawAxis=function(e,n,i,r,a){var o=this,s,u,l,h=this.owner,d=h.config,v=h.scale,y=h.$el,m=!!v.zoom,T;!m&&this.isCategorized()&&e.length===0&&v.x.domain([0,y.axis.x.selectAll(".tick").size()]),v.x&&e.length?(!m&&h.updateXDomain(e,n.UpdateXDomain,n.UpdateOrgXDomain,n.TrimXDomain),d.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(s=this.subX)===null||s===void 0||s.tickValues([])),d.zoom_rescale&&!r&&(T=v.x.orgDomain()),["y","y2"].forEach(function(C){var A="axis_".concat(C,"_"),S=v[C];if(S){var D=d["".concat(A,"tick_values")],L=d["".concat(A,"tick_count")];if(S.domain(h.getYDomain(e,C,T)),!D&&L){var P=h.axis[C],g=S.domain();P.tickValues(o.generateTickValues(g,g.every(function(F){return F===0})?1:L,o.isTimeSeriesY()))}}}),this.redraw(i,h.hasArcType(),a),this.updateLabels(n.Transition),(n.UpdateXDomain||n.UpdateXAxis||n.Y)&&e.length&&this.setCulling(),n.Y&&((u=v.subY)===null||u===void 0||u.domain(h.getYDomain(e,"y")),(l=v.subY2)===null||l===void 0||l.domain(h.getYDomain(e,"y2")))},t.prototype.setCulling=function(){var e=this.owner,n=e.config,i=e.state,r=i.clip,a=i.current,o=e.$el;["subX","x","y","y2"].forEach(function(s){var u=o.axis[s],l=s==="subX"?"x":s,h="axis_".concat(l,"_tick_culling"),d=n[h];if(u&&d){var v=u.selectAll(".tick"),y=oi(v.data()),m=y.length,T=n["".concat(h,"_max")],C=n["".concat(h,"_lines")],A;if(m){for(var S=1;S<m;S++)if(m/S<T){A=S;break}v.each(function(L){var P=C?this.querySelector("text"):this;P&&(P.style.display=y.indexOf(L)%A?"none":null)})}else v.style("display",null);if(s==="x"){var D=a.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;o.svg.selectAll(".".concat(ce.axisX," .tick text")).attr("clip-path",D)}}})},t}(),R0={initEventRect:function(){var t=this;t.$el.main.select(".".concat(Mt.chart)).append("g").attr("class",Xe.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t,e=this,n=e.config,i=e.state,r=e.$el,a=e.isMultipleX();if(r.eventRect)e.updateEventRect(r.eventRect,!0);else{var o=e.$el.main.select(".".concat(Xe.eventRects)).style("cursor",n.zoom_enabled&&n.zoom_type!=="drag"?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Xe.eventRectsMultiple,a).classed(Xe.eventRectsSingle,!a),s=o.selectAll(".".concat(Xe.eventRect)).data([0]).enter().append("rect");e.updateEventRect(s),a?e.generateEventRectsForMultipleXs(s):e.generateEventRectsForSingleX(s),s.call(e.getDraggableSelection()),r.eventRect=s,e.state.inputType==="touch"&&!r.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(a)}if(!a){var u=e.getMaxDataCountTarget();n.data_xSort||u.sort(function(l,h){return l.x-h.x}),e.updateDataIndexByX(u),e.updateXs(u),(t=e.updatePointClass)===null||t===void 0||t.call(e,!0),i.eventReceiver.data=u}e.updateEventRectData()},bindTouchOnEventRect:function(t){var e=this,n=e.config,i=e.state,r=e.$el,a=r.eventRect,o=r.svg,s=function(m){if(t)e.selectRectForMultipleXs(m);else{var T=e.getDataIndexFromEvent(i.event);e.callOverOutForTouch(T),T===-1?e.unselectRect():e.selectRectForSingle(m,a,T)}},u=function(){e.unselectRect(),e.callOverOutForTouch()},l=n.interaction_inputType_touch.preventDefault,h=Zu(l)&&l||!1,d=!isNaN(l)&&l||null,v,y=function(m){var T=m.type,C=m.changedTouches[0],A=C["client".concat(n.axis_rotated?"Y":"X")];T==="touchstart"?h?m.preventDefault():d!==null&&(v=A):T==="touchmove"&&(h||v===!0||d!==null&&Math.abs(v-A)>=d)&&(v=!0,m.preventDefault())};a.on("touchstart",function(m){i.event=m,e.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",function(m){if(i.event=m,!a.empty()&&a.classed(Xe.eventRect)){if(i.dragging||i.flowing||e.hasArcType()||m.touches.length>1)return;y(m),s(a.node())}else u()},!0).on("touchend.eventRect",function(m){i.event=m,!a.empty()&&a.classed(Xe.eventRect)&&(e.hasArcType()||!e.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)},!0),o.on("touchstart",function(m){i.event=m;var T=m.target;T&&T!==a.node()&&u()})},updateEventRect:function(t,e){e===void 0&&(e=!1);var n=this,i=n.state,r=n.$el,a=i.eventReceiver,o=i.width,s=i.height,u=i.rendered,l=i.resizing,h=t||r.eventRect,d=function(){a&&(a.rect=h.node().getBoundingClientRect())};(!u||l||e)&&(h.attr("x",0).attr("y",0).attr("width",o).attr("height",s),u||h.attr("class",Xe.eventRect)),d()},updateEventRectData:function(){var t=this,e=t.config,n=t.scale,i=t.state,r=n.zoom||n.x,a=e.axis_rotated,o,s,u,l;if(t.isMultipleX())o=0,s=0,u=i.width,l=i.height;else{var h,d=void 0;if(t.axis.isCategorized())h=t.getEventRectWidth(),d=function(T){return r(T.x)-h/2};else{var v=function(T){var C=T.index;return{prev:t.getPrevX(C),next:t.getNextX(C)}};h=function(T){var C=v(T),A=r.domain(),S;return C.prev===null&&C.next===null?S=a?i.height:i.width:C.prev===null?S=(r(C.next)+r(T.x))/2:C.next===null?S=r(A[1])-(r(C.prev)+r(T.x))/2:(Object.keys(C).forEach(function(D,L){var P;C[D]=(P=C[D])!==null&&P!==void 0?P:A[L]}),S=Math.max(0,(r(C.next)-r(C.prev))/2)),S},d=function(T){var C=v(T),A;return C.prev===null&&C.next===null?A=0:C.prev===null?A=r(r.domain()[0]):A=(r(T.x)+r(C.prev))/2,A}}o=a?0:d,s=a?d:0,u=a?i.width:h,l=a?h:i.height}var y=i.eventReceiver,m=function(T,C){return $t(T)?T(C):T};y.coords.splice(y.data.length),y.data.forEach(function(T,C){y.coords[C]={x:m(o,T),y:m(s,T),w:m(u,T),h:m(l,T)}})},selectRectForMultipleXs:function(t){var e=this,n=e.config,i=e.state,r=e.filterTargetsToShow(e.data.targets);if(!(i.dragging||e.hasArcType(r))){var a=Ze(i.event,t),o=e.findClosestFromTargets(r,a);if(i.mouseover&&(!o||o.id!==i.mouseover.id)&&(n.data_onout.call(e.api,i.mouseover),i.mouseover=void 0),!o){e.unselectRect();return}var s=e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(r,o.x),u=s.map(function(l){return e.addName(l)});e.showTooltip(u,t),e.setExpand(o.index,o.id,!0),e.showGridFocus(u),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select(".".concat(Xe.eventRect)).style("cursor","pointer"),i.mouseover||(n.data_onover.call(e.api,o),i.mouseover=o))}},unselectRect:function(){var t=this,e=t.config,n=t.$el,i=n.circle,r=n.tooltip;t.$el.svg.select(".".concat(Xe.eventRect)).style("cursor",null),t.hideGridFocus(),r&&(t.hideTooltip(),t._handleLinkedCharts(!1)),i&&!e.point_focus_only&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX:function(t){var e=this,n=e.config,i=e.state,r=i.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",function(s){i.event=s;var u=r.currentIdx,l=r.data,h=l[u===-1?e.getDataIndexFromEvent(s):u];e.clickHandlerForSingleX.bind(this)(h,e)});if(i.inputType==="mouse"){var o=function(s){var u=s?e.getDataIndexFromEvent(s):r.currentIdx;return u>-1?r.data[u]:null};a.on("mouseover",function(s){i.event=s,e.updateEventRect()}).on("mousemove",function(s){var u=o(s);if(i.event=s,!!u){var l=u.index,h=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(h)){var d=e.scale.zoom||e.scale.x,v=e.axis.xs[l],y=d.invert(Ze(s,this)[0]);h==="step-after"&&y<v?l-=1:h==="step-before"&&y>v&&(l+=1)}i.dragging||i.flowing||e.hasArcType()||n.tooltip_grouped&&l===r.currentIdx||(l!==r.currentIdx&&(e.setOverOut(!1,r.currentIdx),r.currentIdx=l),l===-1?e.unselectRect():e.selectRectForSingle(this,a,l),e.setOverOut(l!==-1,l))}}).on("mouseout",function(s){i.event=s,!(!n||e.hasArcType()||r.currentIdx===-1)&&(e.unselectRect(),e.setOverOut(!1,r.currentIdx),r.currentIdx=-1)})}return a},clickHandlerForSingleX:function(t,e){var n=e,i=n.config,r=n.state,a=n.$el.main;if(!t||n.hasArcType()||r.cancelClick){r.cancelClick&&(r.cancelClick=!1);return}var o=t.index;a.selectAll(".".concat(me.shape,"-").concat(o)).each(function(s){var u;(i.data_selection_grouped||n.isWithinShape(this,s))&&((u=n.toggleShape)===null||u===void 0||u.call(n,this,s,o),i.data_onclick.bind(n.api)(s,this))})},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state;t.on("click",function(i){n.event=i,e.clickHandlerForMultipleXS.bind(this)(e)}),n.inputType==="mouse"&&t.on("mouseover mousemove",function(i){n.event=i,e.selectRectForMultipleXs(this)}).on("mouseout",function(i){n.event=i,!(!e.config||e.hasArcType())&&e.unselectRect()})},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,i=e.state,r=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(r)){var a=Ze(i.event,this),o=e.findClosestFromTargets(r,a);o&&(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&e.$el.main.selectAll(".".concat(me.shapes).concat(e.getTargetSelectorSuffix(o.id))).selectAll(".".concat(me.shape,"-").concat(o.index)).each(function(){var s;(n.data_selection_grouped||e.isWithinShape(this,o))&&((s=e.toggleShape)===null||s===void 0||s.call(e,this,o,o.index),n.data_onclick.bind(e.api)(o,this))})}}},L0={generateFlow:function(t){var e=this,n=e.data,i=e.state,r=e.$el;return function(){var a=t.flow.length;i.flowing=!0,n.targets.forEach(function(s){s.values.splice(0,a)}),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(function(s){var u=s.split("."),l=r[u[0]];l&&u.length>1&&(l=l[u[1]]),l!=null&&l.size()&&(o[s]=l)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n=this,i=e.flow,r=e.targets,a=i.duration,o=a===void 0?e.duration:a,s=i.index,u=i.length,l=i.orgDataCount,h=n.getFlowTransform(r,l,s,u),d=nl(),v;d.add(Object.keys(t).map(function(y){return v=t[y].transition().ease(mp).duration(o),y==="axis.x"?v=v.call(function(m){n.axis.x.setTransition(m).create(m)}):y==="region.list"?v=v.filter(n.isRegionOnX).attr("transform",h):v=v.attr("transform",h),v})),v.call(d,function(){n.cleanUpFlow(t,e)})},cleanUpFlow:function(t,e){var n=this,i=n.config,r=n.state,a=n.$el.svg,o=i.axis_rotated,s=e.flow,u=e.shape,l=e.xv,h=u.pos,d=h.cx,v=h.cy,y=h.xForText,m=h.yForText,T=s.done,C=T===void 0?function(){}:T,A=s.length;A&&(["circle","text","shape","eventRect"].forEach(function(S){for(var D=[],L=0;L<A;L++)D.push(".".concat(le[S],"-").concat(L));a.selectAll(".".concat(le["".concat(S,"s")])).selectAll(D).remove()}),a.select(".".concat(le.xgrid)).remove()),Object.keys(t).forEach(function(S){var D=t[S];if(S!=="axis.x"&&D.attr("transform",null),S==="grid.x")D.attr(r.xgridAttr);else if(S==="gridLines.x")D.attr("x1",o?0:l).attr("x2",o?r.width:l);else if(S==="gridLines.x")D.select("line").attr("x1",o?0:l).attr("x2",o?r.width:l),D.select("text").attr("x",o?r.width:0).attr("y",l);else if(/^(area|bar|line)$/.test(S))D.attr("d",u.type[S]);else if(S==="text")D.attr("x",y).attr("y",m).style("fill-opacity",n.opacityForText.bind(n));else if(S==="circle")if(n.isCirclePoint())D.attr("cx",d).attr("cy",v);else{var L=function(g){return d(g)-i.point_r},P=function(g){return v(g)-i.point_r};D.attr("x",L).attr("y",P).attr("cx",d).attr("cy",v)}else S==="region.list"&&D.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),i.interaction_enabled&&n.redrawEventRect(),C.call(n.api),r.flowing=!1},getFlowTransform:function(t,e,n,i){var r=this,a=r.data,o=r.scale.x,s=a.targets[0].values,u=r.getValueOnIndex(s,n),l=r.getValueOnIndex(s,n+i),h,d=o.domain(),v=r.updateXDomain(t,!0,!0);e?e===1||(u==null?void 0:u.x)===(l==null?void 0:l.x)?h=o(d[0])-o(v[0]):h=r.axis.isTimeSeries()?o(d[0])-o(v[0]):o((u==null?void 0:u.x)||0)-o(l.x):s.length!==1?h=o(d[0])-o(v[0]):r.axis.isTimeSeries()?(u=r.getValueOnIndex(s,0),l=r.getValueOnIndex(s,s.length-1),h=o(u.x)-o(l.x)):h=Li(v)/2;var y=Li(d)/Li(v);return"translate(".concat(h,",0) scale(").concat(y,",1)")}},M0={initClip:function(){var t=this,e=t.state,n=e.clip,i=e.datetimeId;n.id="".concat(i,"-clip"),n.idXAxis="".concat(n.id,"-xaxis"),n.idYAxis="".concat(n.id,"-yaxis"),n.idGrid="".concat(n.id,"-grid"),n.path=t.getClipPath(n.id),n.pathXAxis=t.getClipPath(n.idXAxis),n.pathYAxis=t.getClipPath(n.idYAxis),n.pathGrid=t.getClipPath(n.idGrid)},getClipPath:function(t){var e=this,n=e.config;if(!n.clipPath&&/-clip$/.test(t)||!n.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!n.axis_y_clipPath&&/-clip-yaxis$/.test(t))return null;var i=At.navigator?At.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0:!1;return"url(".concat(i?"":qt.URL.split("#")[0],"#").concat(t,")")},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this,n=e.config,i=e.state,r=i.margin,a=i.width,o=i.height,s=n.axis_rotated,u=Math.max(30,r.left)-(s?0:20),l=s?-(1+u):-(u-1),h=-Math.max(15,r.top),d=s?r.left+20:a+10+u,v=(s?r.top+o+10:r.bottom)+20;t.attr("x",l).attr("y",h).attr("width",d).attr("height",v)},setYAxisClipPath:function(t){var e=this,n=e.config,i=e.state,r=i.margin,a=i.width,o=i.height,s=n.axis_rotated,u=Math.max(30,r.left)-(s?20:0),l=n.axis_y_inner,h=l?-1:s?-(1+u):-(u-1),d=-(s?20:r.top),v=(s?a+15+u:r.left+20)+(l?20:0),y=(s?r.bottom:r.top+o)+10;t.attr("x",h).attr("y",d).attr("width",v).attr("height",y)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,i=n.clip,r=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!i.idXAxisTickTexts){var s="".concat(i.id,"-xaxisticktexts");t.appendClip(a,s),i.pathXAxisTickTexts=t.getClipPath(i.idXAxisTickTexts),i.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==r&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,i=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&i){var r=Math.sin(Math.PI/180*Math.abs(i));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/r}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this,e=t.state,n=e.clip,i=e.current,r=t.$el.svg;r&&r.select("#".concat(n.idXAxisTickTexts," rect")).attr("width",i.maxTickWidths.x.clipPath).attr("height",30)}},Ic=function(t){return pt(t.position)||"end"},Pc=function(t){return t.position==="start"?4:t.position==="middle"?0:-4};function Oc(t,e,n){return function(i){var r=t?0:e;return i.position==="start"?r=t?-n:0:i.position==="middle"&&(r=(t?-n:e)/2),r}}function Fc(t,e){e==="grid"&&t.each(function(){var n=dt(this);["x1","x2","y1","y2"].forEach(function(i){return n.attr(i,Math.ceil(+n.attr(i)))})})}var D0={hasGrid:function(){var t=this.config;return["x","y"].some(function(e){return t["grid_".concat(e,"_show")]||t["grid_".concat(e,"_lines")].length})},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,i=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(i.gridLines.main=i.main.insert("g",".".concat(Mt.chart).concat(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class","".concat(zt.grid," ").concat(zt.gridLines)),i.gridLines.main.append("g").attr("class",zt.xgridLines),i.gridLines.main.append("g").attr("class",zt.ygridLines),i.gridLines.x=tu([]))},updateXGrid:function(t){var e=this,n=e.config,i=e.scale,r=e.state,a=e.$el,o=a.main,s=a.grid,u=n.axis_rotated,l=e.generateGridData(n.grid_x_type,i.x),h=e.axis.isCategorized()?e.axis.x.tickOffset():0,d=function(v){return(i.zoom||i.x)(v)+h*(u?-1:1)};r.xgridAttr=u?{x1:0,x2:r.width,y1:d,y2:d}:{x1:d,x2:d,y1:0,y2:r.height},s.x=o.select(".".concat(zt.xgrids)).selectAll(".".concat(zt.xgrid)).data(l),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",zt.xgrid).merge(s.x),t||s.x.each(function(){var v=dt(this);Object.keys(r.xgridAttr).forEach(function(y){v.attr(y,r.xgridAttr[y]).style("opacity",function(){return v.attr(u?"y1":"x1")===(u?r.height:0)?"0":null})})})},updateYGrid:function(){var t=this,e=t.axis,n=t.config,i=t.scale,r=t.state,a=t.$el,o=a.grid,s=a.main,u=n.axis_rotated,l=function(d){return Math.ceil(i.y(d))},h=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);o.y=s.select(".".concat(zt.ygrids)).selectAll(".".concat(zt.ygrid)).data(h),o.y.exit().remove(),o.y=o.y.enter().append("line").attr("class",zt.ygrid).merge(o.y),o.y.attr("x1",u?l:0).attr("x2",u?l:r.width).attr("y1",u?0:l).attr("y2",u?r.height:l),Fc(o.y,"grid")},updateGrid:function(){var t=this,e=t.$el,n=e.grid,i=e.gridLines;!i.main&&t.initGridLines(),n.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateXGridLines(),t.updateYGridLines()},updateXGridLines:function(){var t=this,e=t.config,n=t.$el,i=n.gridLines,r=n.main,a=t.$T,o=e.axis_rotated;e.grid_x_show&&t.updateXGrid();var s=r.select(".".concat(zt.xgridLines)).selectAll(".".concat(zt.xgridLine)).data(e.grid_x_lines);a(s.exit()).style("opacity","0").remove();var u=s.enter().append("g");u.append("line").style("opacity","0"),u.append("text").attr("transform",o?null:"rotate(-90)").attr("dy",-5).style("opacity","0"),s=u.merge(s),a(s.attr("class",function(l){return"".concat(zt.xgridLine," ").concat(l.class||"").trim()}).select("text").attr("text-anchor",Ic).attr("dx",Pc)).text(function(l){return l.text}).style("opacity",null),i.x=s},updateYGridLines:function(){var t=this,e=t.config,n=t.state,i=n.width,r=n.height,a=t.$el,o=t.$T,s=e.axis_rotated;e.grid_y_show&&t.updateYGrid();var u=a.main.select(".".concat(zt.ygridLines)).selectAll(".".concat(zt.ygridLine)).data(e.grid_y_lines);o(u.exit()).style("opacity","0").remove();var l=u.enter().append("g");l.append("line").style("opacity","0"),l.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),u=l.merge(u);var h=t.yv.bind(t);o(u.attr("class",function(d){return"".concat(zt.ygridLine," ").concat(d.class||"").trim()}).select("line")).attr("x1",s?h:0).attr("x2",s?h:i).attr("y1",s?0:h).attr("y2",s?r:h).style("opacity",null),o(u.select("text").attr("text-anchor",Ic).attr("dx",Pc)).attr("dy",-5).attr("x",Oc(s,i,r)).attr("y",h).text(function(d){return d.text}).style("opacity",null),a.gridLines.y=u},redrawGrid:function(t){var e=this,n=e.config.axis_rotated,i=e.state,r=i.width,a=i.height,o=e.$el.gridLines,s=e.$T,u=e.xv.bind(e),l=o.x.select("line"),h=o.x.select("text");return l=s(l,t).attr("x1",n?0:u).attr("x2",n?r:u).attr("y1",n?u:0).attr("y2",n?u:a),h=s(h,t).attr("x",Oc(!n,r,a)).attr("y",u).text(function(d){return d.text}),[l.style("opacity",null),h.style("opacity",null)]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,i=t.$el,r=e.grid_front,a=".".concat(r&&i.gridLines.main?zt.gridLines:Mt.chart).concat(r?" + *":""),o=i.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",zt.grid);i.grid.main=o,e.grid_x_show&&o.append("g").attr("class",zt.xgrids),e.grid_y_show&&o.append("g").attr("class",zt.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",Ht.xgridFocus).append("line").attr("class",Ht.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",Ht.ygridFocus).append("line").attr("class",Ht.ygridFocus))},showGridFocus:function(t){var e,n=this,i=n.config,r=n.state,a=r.width,o=r.height,s=i.axis_rotated,u=n.$el.main.selectAll("line.".concat(Ht.xgridFocus,", line.").concat(Ht.ygridFocus)),l=(t||[u.datum()]).filter(function(v){return v&&pt(n.getBaseValue(v))});if(!(!i.tooltip_show||l.length===0||n.hasType("bubble")||n.hasArcType())){var h=i.grid_focus_edge&&!i.tooltip_grouped,d=n.xx.bind(n);u.style("visibility",null).data(l.concat(l)).each(function(v){var y=dt(this),m={x:d(v),y:n.getYScaleById(v.id)(v.value)},T;if(y.classed(Ht.xgridFocus))T=s?[null,m.x,h?m.y:a,m.x]:[m.x,h?m.y:null,m.x,o];else{var C=n.axis.getId(v.id)==="y2";T=s?[m.y,h&&!C?m.x:null,m.y,h&&C?m.x:o]:[h&&C?m.x:null,m.y,h&&!C?m.x:a,m.y]}["x1","y1","x2","y2"].forEach(function(A,S){return y.attr(A,T[S])})}),Fc(u,"grid"),(e=n.showCircleFocus)===null||e===void 0||e.call(n,t)}},hideGridFocus:function(){var t,e=this,n=e.state,i=n.inputType,r=n.resizing,a=e.$el.main;(i==="mouse"||!r)&&(a.selectAll("line.".concat(Ht.xgridFocus,", line.").concat(Ht.ygridFocus)).style("visibility","hidden"),(t=e.hideCircleFocus)===null||t===void 0||t.call(e))},updateGridFocus:function(){var t,e=this,n=e.state,i=n.inputType,r=n.width,a=n.height,o=n.resizing,s=e.$el.grid,u=s.main.select("line.".concat(Ht.xgridFocus));if(i==="touch")u.empty()?o&&((t=e.showCircleFocus)===null||t===void 0||t.call(e)):e.showGridFocus();else{var l=e.config.axis_rotated;u.attr("x1",l?0:-10).attr("x2",l?r:-10).attr("y1",l?-10:0).attr("y2",l?-10:a)}return!0},generateGridData:function(t,e){var n=this,i=n.$el.main.select(".".concat(ce.axisX)).selectAll(".tick").size(),r=[];if(t==="year")for(var a=n.getXDomain(),o=a.map(function(h){return h.getFullYear()}),s=o[0],u=o[1],l=s;l<=u;l++)r.push(new Date("".concat(l,"-01-01 00:00:00")));else r=e.ticks(10),r.length>i&&(r=r.filter(function(h){return String(h).indexOf(".")<0}));return r},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Xt(t)?t.concat():[t]).forEach(function(i){("value"in i&&e.value===i.value||"class"in i&&e.class===i.class)&&(n=!0)}),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,i=n.config,r=n.$T,a=n.getGridFilterToRemove(t),o=function(h){return!a(h)},s=e?zt.xgridLines:zt.ygridLines,u=e?zt.xgridLine:zt.ygridLine;r(n.$el.main.select(".".concat(s)).selectAll(".".concat(u)).filter(a)).style("opacity","0").remove();var l="grid_".concat(e?"x":"y","_lines");i[l]=i[l].filter(o)}},N0={initRegion:function(){var t=this,e=t.$el;e.region.main=e.main.insert("g",":first-child").attr("clip-path",t.state.clip.path).attr("class",Xi.regions)},updateRegion:function(){var t=this,e=t.config,n=t.$el.region,i=t.$T;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);var r=n.main.selectAll(".".concat(Xi.region)).data(e.regions);i(r.exit()).style("opacity","0").remove(),r=r.enter().append("g").merge(r).attr("class",t.classRegion.bind(t)),r.append("rect").style("fill-opacity","0"),n.list=r},redrawRegion:function(t){var e=this,n=e.$el.region,i=e.$T,r=n.list.select("rect");return r=i(r,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),[r.style("fill-opacity",function(a){return pt(a.opacity)?a.opacity:null}).on("end",function(){dt(this.parentNode).selectAll("rect:not([x])").remove()})]},getRegionXY:function(t,e){var n=this,i=n.config,r=n.scale,a=i.axis_rotated,o=t==="x",s="start",u,l=0;return e.axis==="y"||e.axis==="y2"?(o||(s="end"),(o?a:!a)&&s in e&&(u=r[e.axis],l=u(e[s]))):(o?!a:a)&&s in e&&(u=r.zoom||r.x,l=u(n.axis.isTimeSeries()?Qe.call(n,e[s]):e[s])),l},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,i=n.config,r=n.scale,a=n.state,o=i.axis_rotated,s=t==="width",u=n[s?"regionX":"regionY"](e),l,h="end",d=a[t];return e.axis==="y"||e.axis==="y2"?(s||(h="start"),(s?o:!o)&&h in e&&(l=r[e.axis],d=l(e[h]))):(s?!o:o)&&h in e&&(l=r.zoom||r.x,d=l(n.axis.isTimeSeries()?Qe.call(n,e[h]):e[h])),d<u?0:d-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||t.axis==="x"}},I0={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&t==="x"||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n,i=this;if(i.axis){var r=(n=i.axis)===null||n===void 0?void 0:n.getLabelPositionById(t),a=i.axis.getMaxTickWidth(t,e),o=a===0?.5:0;return a+(r.isInner?20+o:40)}else return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,i=e.state,r=i.current,a=i.rotatedPadding,o=i.isLegendRight,s=i.isLegendInset,u=n.axis_rotated,l=30;if(t==="x"&&!n.axis_x_show)return 8;if(t==="x"&&n.axis_x_height)return n.axis_x_height;if(t==="y"&&!n.axis_y_show)return n.legend_show&&!o&&!s?10:1;if(t==="y2"&&!n.axis_y2_show)return a.top;var h=e.getAxisTickRotate(t);return(t==="x"&&!u||/y2?/.test(t)&&u)&&h&&(l=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-Math.abs(h))/180),!n.axis_x_tick_multiline&&r.height&&l>r.height/2&&(l=r.height/2)),l+(e.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!u?-10:0)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,i=e.config,r=e.state,a=e.$el,o=i["axis_".concat(t,"_tick_rotate")];if(t==="x"){var s=n.isCategorized()||n.isTimeSeries();if(i.axis_x_tick_fit&&s){var u=i.axis_x_tick_count,l=r.current.maxTickWidths.x.ticks.length,h=0;if(u?h=u>l?l:u:l&&(h=l),h!==r.axis.x.tickCount){var d=e.data.targets;r.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(d,"min"),e.getXDomainMinMax(d,"max")],h)}r.axis.x.tickCount=h}a.svg&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&i.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?i.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,i=e.current,r=i.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),a=n.x.tickCount+n.x.padding.left+n.x.padding.right,o=t.axis.getMaxTickWidth("x"),s=a?r/a:0;return o>s}},P0={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},O0={axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},F0={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},X0={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]},B0=wt(wt(wt({axis_rotated:!1},O0),F0),X0),z0={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},H0=[m0,_0,b0,T0,C0,w0,$0,A0],Y0=[k0,M0,R0,L0,D0,N0,I0],U0=[P0,B0,z0];function Xc(t){t===void 0&&(t=0);var e=this,n=e.config,i=e.state,r=e.hasMultiArcGauge(),a=i.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(i.radiusExpanded*t-i.radius,a*.8-(1-t)*100):0;return{inner:function(s){var u=e.getRadius(s).innerRadius;return r?i.radius-a*(s.index+1):yt(u)?u:0},outer:function(s){var u=e.getRadius(s).outerRadius,l;if(r)l=i.radius-a*s.index+o;else if(e.hasType("polar")&&!t)l=e.getPolarOuterRadius(s,u);else if(l=u,t){var h=i.radiusExpanded;i.radius!==u&&(h-=Math.abs(i.radius-u)),l=h*t}return l},corner:function(s,u){var l=n.arc_cornerRadius_ratio,h=l===void 0?0:l,d=n.arc_cornerRadius,v=d===void 0?0:d,y=s.data.id,m=s.value,T=0;return h?T=h*u:T=yt(v)?v:v.call(e.api,y,m,u),T}}}function Na(t){return function(e){var n=zi(this._current,e);return this._current=e,function(i){var r=n(i);return t(r)}}}var V0={initPie:function(){var t=this,e=t.config,n=e.data_type,i=e["".concat(n,"_padding")],r=e["".concat(n,"_startingAngle")]||0,a=(i?i*.01:e["".concat(n,"_padAngle")])||0;t.pie=Dx().startAngle(r).endAngle(r+2*Math.PI).padAngle(a).value(function(o){return o.values.reduce(function(s,u){return s+u.value},0)}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,i=e.data_type,r=e["".concat(i,"_padding")],a=e.gauge_width||e.donut_width,o=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?.85:1),n.radius=n.radiusExpanded*.95,n.innerRadiusRatio=a?(n.radius-a)/n.radius:.6,n.gaugeArcWidth=a||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);var s=e.pie_innerRadius||(r?r*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:s},getRadius:function(t){var e=this,n=t==null?void 0:t.data,i=e.state,r=i.innerRadius,a=i.outerRadius;return!yt(r)&&n&&(r=r[n.id]||0),Ut(a)&&n&&n.id in a?a=a[n.id]:yt(a)||(a=e.state.radius),{innerRadius:r,outerRadius:a}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=this,e=t.config,n=e.gauge_arcLength*3.6,i=2*(n/360);return n<-360?i=-2:n>360&&(i=2),i*Math.PI},getStartAngle:function(){var t=this,e=t.config,n=e.gauge_fullCircle,i=-1*Math.PI/2,r=Math.PI/2,a=e.gauge_startingAngle;return!n&&a<=i?a=i:!n&&a>=r?a=r:(a>Math.PI||a<-1*Math.PI)&&(a=Math.PI),a},updateAngle:function(t){var e=this,n=e.config,i=e.state,r=e.pie,a=t,o=!1;if(!n)return null;var s=e.getStartAngle(),u=n.gauge_fullCircle?e.getArcLength():s*-2;if(a.data&&e.isGaugeType(a.data)&&!e.hasMultiArcGauge()){var l=n.gauge_min,h=n.gauge_max,d=e.getTotalDataSum(i.rendered),v=u*((d-l)/(h-l));r=r.startAngle(s).endAngle(v+s)}if(r(e.filterTargetsToShow()).forEach(function(A,S){!o&&A.data.id===a.data.id&&(o=!0,a=A,a.index=S)}),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&e.hasMultiArcGauge()){var y=n.gauge_min,m=n.gauge_max,T=u/(m-y),C=a.value<y?0:a.value<m?a.value-y:m-y;a.startAngle=s,a.endAngle=s+T*C}return o?a:null},getSvgArc:function(){var t=this,e=Xc.call(t),n=e.inner,i=e.outer,r=e.corner,a=bc().innerRadius(n).outerRadius(i),o=function(s,u){var l,h="M 0 0";if(s.value||s.data){var d=u?s:(l=t.updateAngle(s))!==null&&l!==void 0?l:null;d&&(h=a.cornerRadius(r(d,i(d)))(d))}return h};return o.centroid=a.centroid,o},getSvgArcExpanded:function(t){t===void 0&&(t=1);var e=this,n=Xc.call(e,t),i=n.inner,r=n.outer,a=n.corner,o=bc().innerRadius(i).outerRadius(r);return function(s){var u=e.updateAngle(s),l=r(u),h=0;return u&&(h=a(u,l)),u?o.cornerRadius(h)(u):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e,n=this,i=n.config,r=n.state.radiusExpanded,a=n.updateAngle(t),o="";if(a){if(n.hasMultiArcGauge()){var s=Math.sin(a.endAngle-Math.PI/2),u=Math.cos(a.endAngle-Math.PI/2)*(r+25),l=s*(r+15-Math.abs(s*10))+3;o="translate(".concat(u,",").concat(l,")")}else if(!n.hasType("gauge")||n.data.targets.length>1){var h=n.getRadius(t).outerRadius;n.hasType("polar")&&(h=n.getPolarOuterRadius(t,h));var d=this.svgArc.centroid(a),v=d.map(function(A){return isNaN(A)?0:A}),u=v[0],l=v[1],y=Math.sqrt(u*u+l*l),m=(e=["donut","pie","polar"].filter(n.hasType.bind(n)).map(function(A){return i["".concat(A,"_label_ratio")]}))===null||e===void 0?void 0:e[0];m?m=$t(m)?m.bind(n.api)(t,h,y):m:m=h&&(y?(36/h>.375?1.175-36/h:.8)*h/y:0),o="translate(".concat(u*m,",").concat(l*m,")")}}return o},convertToArcData:function(t){return this.addName({id:"data"in t?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",e.updateTextBacgroundColor.bind(e)).each(function(i){var r,a=dt(this),o=e.updateAngle(i),s=e.getRatio("arc",o),u=e.meetsLabelThreshold(s,(r=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))===null||r===void 0?void 0:r[0]);if(u){var l=(o||i).value,h=(e.getArcLabelFormat()||e.defaultArcValueFormat)(l,s,i.data.id).toString();Ir(a,h,[-1,1],n)}else a.text("")})},expandArc:function(t){var e=this,n=e.state.transiting,i=e.$el;if(n){var r=setInterval(function(){n||(clearInterval(r),i.legend.selectAll(".".concat(Ht.legendItemFocused)).size()>0&&e.expandArc(t))},10);return}var a=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(a,".".concat(Jt.chartArc))).each(function(o){if(e.shouldExpand(o.data.id)){var s=e.getExpandConfig(o.data.id,"duration"),u=e.getSvgArcExpanded(e.getExpandConfig(o.data.id,"rate"));dt(this).selectAll("path").transition().duration(s).attrTween("d",Na(e.svgArcExpanded.bind(e))).transition().duration(s*2).attrTween("d",Na(u.bind(e)))}})},unexpandArc:function(t){var e=this,n=e.state.transiting,i=e.$el.svg;if(!n){var r=e.mapToTargetIds(t);i.selectAll(e.selectorTargets(r,".".concat(Jt.chartArc))).selectAll("path").transition().duration(function(a){return e.getExpandConfig(a.data.id,"duration")}).attrTween("d",Na(e.svgArc.bind(e))),i.selectAll("".concat(Jt.arc)).style("opacity",null)}},getExpandConfig:function(t,e){var n=this,i=n.config,r={duration:50,rate:.98},a;return n.isDonutType(t)?a="donut":n.isGaugeType(t)?a="gauge":n.isPieType(t)&&(a="pie"),a?i["".concat(a,"_expand_").concat(e)]:r[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=t.config;return["donut","gauge","pie","polar"].some(function(n){return t.hasType(n)&&e["".concat(n,"_label_show")]})},getArcLabelFormat:function(){var t=this,e=t.config,n=function(i){return i};return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach(function(i){n=e["".concat(i,"_label_format")]}),$t(n)?n.bind(t.api):n},getArcTitle:function(){var t=this,e=t.hasType("donut")&&"donut"||t.hasType("gauge")&&"gauge";return e?t.config["".concat(e,"_title")]:""},updateTargetsForArc:function(t){var e=this,n=e.$el,i=e.hasType("gauge"),r=e.getChartClass("Arc"),a=e.getClass("arcs",!0),o=e.classFocus.bind(e),s=n.main.select(".".concat(Jt.chartArcs)),u=s.selectAll(".".concat(Jt.chartArc)).data(e.pie(t)).attr("class",function(h){return r(h)+o(h.data)}),l=u.enter().append("g").attr("class",r).call(this.setCssRule(!1,".".concat(Jt.chartArcs," text"),["pointer-events:none","text-anchor:middle"]));l.append("g").attr("class",a).merge(u),l.append("text").attr("dy",i&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),n.text=s.selectAll(".".concat(Mt.target," text"))},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select(".".concat(Mt.chart)).append("g").attr("class",Jt.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var i=t.$el.arcs.append("text").attr("class",n?We.chartArcsGaugeTitle:Jt.chartArcsTitle).style("text-anchor","middle");n&&i.attr("dy","-0.3em"),Ir(i,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var i=this,r=i.config,a=i.state,o=i.$el.main,s=r.interaction_enabled,u=s&&r.data_selection_isselectable,l=o.selectAll(".".concat(Jt.arcs)).selectAll(".".concat(Jt.arc)).data(i.arcData.bind(i));l.exit().transition().duration(e).style("opacity","0").remove(),l=l.enter().append("path").attr("class",i.getClass("arc",!0)).style("fill",function(h){return i.color(h.data)}).style("cursor",function(h){var d;return!((d=u==null?void 0:u.bind)===null||d===void 0)&&d.call(u,i.api)(h)?"pointer":null}).style("opacity","0").each(function(h){i.isGaugeType(h.data)&&(h.startAngle=r.gauge_startingAngle,h.endAngle=r.gauge_startingAngle),this._current=h}).merge(l),i.hasType("gauge")&&(i.updateGaugeMax(),i.hasMultiArcGauge()&&i.redrawMultiArcGauge()),l.attr("transform",function(h){return!i.isGaugeType(h.data)&&n?"scale(0)":""}).style("opacity",function(h){return h===this._current?"0":null}).each(function(){a.transiting=!0}).transition().duration(t).attrTween("d",function(h){var d=i.updateAngle(h);if(!d)return function(){return"M 0 0"};isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var v=zi(this._current,d);return this._current=v(0),function(y){var m=v(y);return m.data=h.data,i.getArc(m,!0)}}).attr("transform",n?"scale(1)":"").style("fill",function(h){var d;return i.levelColor?(d=i.levelColor(h.data.values[0].value),r.data_colors[h.data.id]=d):d=i.color(h.data),d}).style("opacity",null).call(Fo,function(){if(i.levelColor){var h=dt(this),d=h.datum();i.updateLegendItemColor(d.data.id,h.style("fill"))}a.transiting=!1,Zt(r.onrendered,i.api)}),s&&i.bindArcEvent(l),i.hasType("polar")&&i.redrawPolar(),i.hasType("gauge")&&i.redrawBackgroundArcs(),i.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=t.config,n=t.state,i=t.hasMultiArcGauge(),r=e.gauge_fullCircle,a=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,o=t.getStartAngle(),s=r?o+t.getArcLength():o*-1,u=t.$el.arcs.select("".concat(i?"g":"",".").concat(Jt.chartArcsBackground));if(i){var l=0;u=u.selectAll("path.".concat(Jt.chartArcsBackground)).data(t.data.targets),u.enter().append("path").attr("class",function(h,d){return"".concat(Jt.chartArcsBackground," ").concat(Jt.chartArcsBackground,"-").concat(d)}).merge(u).style("fill",e.gauge_background||null).attr("d",function(h){var d=h.id;if(a||n.hiddenTargetIds.indexOf(d)>=0)return"M 0 0";var v={data:[{value:e.gauge_max}],startAngle:o,endAngle:s,index:l++};return t.getArc(v,!0,!0)}),u.exit().remove()}else u.attr("d",a?"M 0 0":function(){var h={data:[{value:e.gauge_max}],startAngle:o,endAngle:s};return t.getArc(h,!0,!0)})},bindArcEvent:function(t){var e=this,n=e.config,i=e.state,r=i.inputType==="touch",a=i.inputType==="mouse";function o(l,h,d){e.expandArc(d),e.api.focus(d),e.toggleFocusLegend(d,!0),e.showTooltip([h],l)}function s(l){var h=(l==null?void 0:l.id)||void 0;e.unexpandArc(h),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(l,h,d){var v,y=e.updateAngle(h),m;y&&(m=e.convertToArcData(y),(v=e.toggleShape)===null||v===void 0||v.call(e,this,m,d),n.data_onclick.bind(e.api)(m,this))}),a&&t.on("mouseover",function(l,h){if(!i.transiting){i.event=l;var d=e.updateAngle(h),v=d?e.convertToArcData(d):null,y=(v==null?void 0:v.id)||void 0;o(this,v,y),e.setOverOut(!0,v)}}).on("mouseout",function(l,h){if(!i.transiting){i.event=l;var d=e.updateAngle(h),v=d?e.convertToArcData(d):null;s(),e.setOverOut(!1,v)}}).on("mousemove",function(l,h){var d=e.updateAngle(h),v=d?e.convertToArcData(d):null;i.event=l,e.showTooltip([v],this)}),r&&e.hasArcType()&&!e.radars){var u=function(l){var h=l.changedTouches[0],d=dt(qt.elementFromPoint(h.clientX,h.clientY));return d};e.$el.svg.on("touchstart touchmove",function(l){if(!i.transiting){i.event=l;var h=u(l),d=h.datum(),v=d!=null&&d.data&&d.data.id?e.updateAngle(d):null,y=v?e.convertToArcData(v):null,m=(y==null?void 0:y.id)||void 0;e.callOverOutForTouch(y),ke(m)?s():o(this,y,m)}})}},redrawArcText:function(t){var e=this,n=e.config,i=e.state,r=e.$el,a=r.main,o=r.arcs,s=e.hasType("gauge"),u=e.hasMultiArcGauge(),l;if(s&&e.data.targets.length===1&&n.gauge_title||(l=a.selectAll(".".concat(Jt.chartArc)).select("text").style("opacity","0").attr("class",function(d){return e.isGaugeType(d.data)?We.gaugeValue:null}).call(e.textForArcLabel.bind(e)).attr("transform",e.transformForArcLabel.bind(e)).style("font-size",function(d){return e.isGaugeType(d.data)&&e.data.targets.length===1&&!u?"".concat(Math.round(i.radius/5),"px"):null}).transition().duration(t).style("opacity",function(d){return e.isTargetToShow(d.data.id)&&e.isArcType(d.data)?null:"0"}),u&&l.attr("dy","-.1em")),a.select(".".concat(Jt.chartArcsTitle)).style("opacity",e.hasType("donut")||s?null:"0"),s){var h=n.gauge_fullCircle;h&&(l==null||l.attr("dy","".concat(u?0:Math.round(i.radius/14)))),n.gauge_label_show&&(o.select(".".concat(We.chartArcsGaugeUnit)).attr("dy","".concat(h?1.5:.75,"em")).text(n.gauge_units),o.select(".".concat(We.chartArcsGaugeMin)).attr("dx","".concat(-1*(i.innerRadius+(i.radius-i.innerRadius)/(h?1:2)),"px")).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_min,!1)),!h&&o.select(".".concat(We.chartArcsGaugeMax)).attr("dx","".concat(i.innerRadius+(i.radius-i.innerRadius)/2,"px")).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_max,!0)))}}},W0={initArea:function(t){var e=this,n=e.config;t.insert("g",".".concat(n.area_front?ve.circles:vn.lines)).attr("class",e.getClass("areas",!0))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea:function(t,e){e===void 0&&(e=!1);var n=this,i=n.config,r=n.state,a=n.$el,o=n.$T,s=e?a.subchart:a;i.area_linearGradient&&n.updateLinearGradient();var u=s.main.selectAll(".".concat(io.areas)).selectAll(".".concat(io.area)).data(n.lineData.bind(n));o(u.exit(),t).style("opacity","0").remove(),s.area=u.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return r.orgAreaOpacity=dt(this).style("opacity"),"0"}).merge(u),u.style("opacity",r.orgAreaOpacity),n.setRatioForGroupedData(s.area.data())},redrawArea:function(t,e,n){n===void 0&&(n=!1);var i=this,r=(n?this.$el.subchart:this.$el).area,a=i.state.orgAreaOpacity;return[i.$T(r,e,Xn()).attr("d",t).style("fill",i.updateAreaColor.bind(i)).style("opacity",function(o){return String(i.isAreaRangeType(o)?a/1.75:a)})]},generateDrawArea:function(t,e){var n=this,i=n.config,r=i.line_connectNull,a=i.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),u=function(d){return(e?n.subxx:n.xx).call(n,d)},l=function(d,v){return n.isGrouped(d.id)?o(d,v)[0][1]:s(d.id,e)(n.isAreaRangeType(d)?n.getRangedData(d,"high"):n.getShapeYMin(d.id))},h=function(d,v){return n.isGrouped(d.id)?o(d,v)[1][1]:s(d.id,e)(n.isAreaRangeType(d)?n.getRangedData(d,"low"):d.value)};return function(d){var v=r?n.filterRemoveNull(d.values):d.values,y=0,m=0,T;if(n.isAreaType(d)){var C=Rx();C=a?C.y(u).x0(l).x1(h):C.x(u).y0(i.area_above?0:i.area_below?n.state.height:l).y1(h),r||(C=C.defined(function(A){return n.getBaseValue(A)!==null})),n.isStepType(d)&&(v=n.convertValuesToStep(v)),T=C.curve(n.getCurve(d))(v)}else v[0]&&(y=n.scale.x(v[0].x),m=n.getYScaleById(d.id)(v[0].value)),T=a?"M ".concat(m," ").concat(y):"M ".concat(y," ").concat(m);return T||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,i=n.config,r=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(u,l){var h=s.call(n,u.id,e)(n.getShapeYMin(u.id)),d=o(u,l)||h,v=r(u),y=u.value,m=a(u);return i.axis_rotated&&(y>0&&m<h||y<0&&h<m)&&(m=h),[[v,d],[v,m-(h-d)],[v,m-(h-d)],[v,d]]}}},j0={initBar:function(){var t=this,e=t.$el,n=t.config,i=t.state.clip;e.bar=e.main.select(".".concat(Mt.chart)).insert("g",":first-child").attr("class",Be.chartBars).call(this.setCssRule(!1,".".concat(Be.chartBars),["pointer-events:none"])),n.clipPath===!1&&(n.bar_radius||n.bar_radius_ratio)&&e.bar.attr("clip-path",i.pathXAxis.replace(/#[^)]*/,"#".concat(i.id)))},updateTargetsForBar:function(t){var e=this,n=e.config,i=e.$el,r=e.getChartClass("Bar"),a=e.getClass("bars",!0),o=e.classFocus.bind(e),s=n.interaction_enabled&&n.data_selection_isselectable;i.bar||e.initBar();var u=i.main.select(".".concat(Be.chartBars)).selectAll(".".concat(Be.chartBar)).data(t.filter(function(h){return h.values.some(function(d){return yt(d.value)||e.isBarRangeType(d)})})).attr("class",function(h){return r(h)+o(h)}),l=u.enter().append("g").attr("class",r).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));l.append("g").attr("class",a).style("cursor",function(h){var d;return!((d=s==null?void 0:s.bind)===null||d===void 0)&&d.call(s,e.api)(h)?"pointer":null}).call(e.setCssRule(!0," .".concat(Be.bar),["fill"],e.color))},updateBar:function(t,e){e===void 0&&(e=!1);var n=this,i=n.config,r=n.$el,a=n.$T,o=e?r.subchart:r,s=n.getClass("bar",!0),u=n.initialOpacity.bind(n);i.bar_linearGradient&&n.updateLinearGradient();var l=o.main.selectAll(".".concat(Be.bars)).selectAll(".".concat(Be.bar)).data(n.labelishData.bind(n));a(l.exit(),t).style("opacity","0").remove(),o.bar=l.enter().append("path").attr("class",s).style("fill",n.updateBarColor.bind(n)).merge(l).style("opacity",u),n.setRatioForGroupedData(o.bar.data())},updateBarColor:function(t){var e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar:function(t,e,n){n===void 0&&(n=!1);var i=this,r=(n?i.$el.subchart:i.$el).bar;return[i.$T(r,e,Xn()).attr("d",function(a){return(yt(a.value)||i.isBarRangeType(a))&&t(a)}).style("fill",i.updateBarColor.bind(i)).style("opacity",null)]},generateDrawBar:function(t,e){var n=this,i=n.config,r=n.generateGetBarPoints(t,e),a=i.axis_rotated,o=i.bar_radius,s=i.bar_radius_ratio,u=yt(o)&&o>0?function(){return o}:yt(s)?function(l){return l*s}:null;return function(l,h){var d=r(l,h),v=+a,y=+!v,m=l.value<0,T=i["axis_".concat(n.axis.getId(l.id),"_inverted")],C=!T&&m||T&&!m,A=["",""],S=0,D=n.isGrouped(l.id),L=u&&D?n.isStackingRadiusData(l):!1;if(u){var P=a?y:v,g=d[2][P]-d[0][P];S=!D||L?u(g):0;var F="a".concat(S,",").concat(S," ").concat(C?"1 0 0":"0 0 1"," ");A[+!a]="".concat(F).concat(S,",").concat(S),A[+a]="".concat(F).concat([-S,S][a?"sort":"reverse"]()),C&&A.reverse()}var H=a?"H".concat(d[1][v]+(C?S:-S)," ").concat(A[0],"V").concat(d[2][y]-S," ").concat(A[1],"H").concat(d[3][v]):"V".concat(d[1][y]+(C?-S:S)," ").concat(A[0],"H").concat(d[2][v]-S," ").concat(A[1],"V").concat(d[3][y]);return"M".concat(d[0][v],",").concat(d[0][y]).concat(H,"z")}},isStackingRadiusData:function(t){var e=this,n=e.$el,i=e.config,r=e.data,a=e.state,o=t.id,s=t.index,u=t.value;if(a.hiddenTargetIds.indexOf(o)>-1){var l=n.bar.filter(function(y){return y.id===o&&y.value===u});return!l.empty()&&/a\d+/i.test(l.attr("d"))}var h=i.data_groups.find(function(y){return y.indexOf(o)>-1}),d=e.orderTargets(e.filterTargetsToShow(r.targets.filter(e.isBarType,e))).filter(function(y){return h.indexOf(y.id)>-1}),v=d.map(function(y){return y.values.filter(function(m){return m.index===s&&(yt(u)&&u>0?m.value>0:m.value<0)})[0]}).filter(Boolean).map(function(y){return y.id});return u!==0&&v.indexOf(o)===v.length-1},generateGetBarPoints:function(t,e){var n=this,i=n.config,r=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW("bar",r,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),l=n.getShapeOffset(n.isBarType,t,!!e),h=n.getYScaleById.bind(n);return function(d,v){var y=d.id,m=h.call(n,y,e)(n.getShapeYMin(y)),T=l(d,v)||m,C=yt(o)?o:o[d.id]||o._$width,A=i["axis_".concat(n.axis.getId(y),"_inverted")],S=d.value,D=s(d),L=u(d);i.axis_rotated&&!A&&(S>0&&L<m||S<0&&m<L)&&(L=m),n.isBarRangeType(d)||(L-=m-T);var P=D+C;return[[D,T],[D,L],[P,L],[P,T]]}}},q0={initLine:function(){var t=this.$el;t.line=t.main.select(".".concat(Mt.chart)).append("g").attr("class",vn.chartLines).call(this.setCssRule(!1,".".concat(vn.chartLines),["pointer-events:none"]))},updateTargetsForLine:function(t){var e=this,n=e.$el,i=n.area,r=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),u=e.classFocus.bind(e);r||e.initLine();var l=t.filter(function(y){return!(e.isScatterType(y)||e.isBubbleType(y))}),h=a.select(".".concat(vn.chartLines)).selectAll(".".concat(vn.chartLine)).data(l).attr("class",function(y){return o(y)+u(y)}),d=h.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(d.append("g").attr("class",s),e.hasTypeOf("Area")){var v=(!i&&d.empty()?h:d).filter(e.isAreaType.bind(e));e.initArea(v)}e.updateTargetForCircle(l,d)},updateLine:function(t,e){e===void 0&&(e=!1);var n=this,i=n.format.extraLineClasses,r=n.$el,a=n.$T,o=e?r.subchart:r,s=o.main.selectAll(".".concat(vn.lines)).selectAll(".".concat(vn.line)).data(n.lineData.bind(n));a(s.exit(),t).style("opacity","0").remove(),o.line=s.enter().append("path").attr("class",function(u){return"".concat(n.getClass("line",!0)(u)," ").concat(i(u)||"")}).style("stroke",n.color).merge(s).style("opacity",n.initialOpacity.bind(n)).style("shape-rendering",function(u){return n.isStepType(u)?"crispEdges":""}).attr("transform",null)},redrawLine:function(t,e,n){n===void 0&&(n=!1);var i=this,r=i.$el,a=i.$T,o=(n?r.subchart:r).line;return[a(o,e,Xn()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve:function(t){var e=this,n=e.config.axis_rotated&&e.isStepType(t);return n?function(i){var r=e.getInterpolate(t)(i);return r.orgPoint=r.point,r.pointRotated=function(a,o){this._point===1&&(this._point=2);var s=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,s),this._context.lineTo(a,s),this._x=a,this._y=o},r.point=function(a,o){this._point===0?this.orgPoint(a,o):this.pointRotated(a,o)},r}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,i=n.config,r=n.scale,a=i.line_connectNull,o=i.axis_rotated,s=n.generateGetLinePoints(t,e),u=n.getYScaleById.bind(n),l=function(y){return(e?n.subxx:n.xx).call(n,y)},h=function(y,m){return n.isGrouped(y.id)?s(y,m)[0][1]:u(y.id,e)(n.getBaseValue(y))},d=Xu();d=o?d.x(h).y(l):d.x(l).y(h),a||(d=d.defined(function(y){return n.getBaseValue(y)!==null}));var v=e?r.subX:r.x;return function(y){var m=u(y.id,e),T=a?n.filterRemoveNull(y.values):y.values,C=0,A=0,S;if(n.isLineType(y)){var D=i.data_regions[y.id];D?S=n.lineWithRegions(T,r.zoom||v,m,D):(n.isStepType(y)&&(T=n.convertValuesToStep(T)),S=d.curve(n.getCurve(y))(T))}else T[0]&&(C=v(T[0].x),A=m(T[0].value)),S=o?"M ".concat(A," ").concat(C):"M ".concat(C," ").concat(A);return S||"M 0 0"}},lineWithRegions:function(t,e,n,i){var r=this,a=r.config,o=a.axis_rotated,s=r.axis.isTimeSeries(),u=[],l="2 2",h,d,v,y;if(Yt(i))for(var m=function(ut,Rt){return ke(ut)?Rt:s?Qe.call(r,ut):ut},T=0,C=void 0;C=i[T];T++){var A=m(C.start,t[0].x),S=m(C.end,t[t.length-1].x),D=C.style||{dasharray:l};u[T]={start:A,end:S,style:D}}for(var L=o?function(ut){return n(ut.value)}:function(ut){return e(ut.x)},P=o?function(ut){return e(ut.x)}:function(ut){return n(ut.value)},g=function(ut){return"M".concat(ut[0][0],",").concat(ut[0][1],"L").concat(ut[1][0],",").concat(ut[1][1])},F=s?function(ut,Rt,gt,It){var Dt=ut.x.getTime(),fe=Rt.x-ut.x,ee=new Date(Dt+fe*gt),bt=new Date(Dt+fe*(gt+It)),Vt=o?[[n(d(gt)),e(ee)],[n(d(gt+v)),e(bt)]]:[[e(ee),n(d(gt))],[e(bt),n(d(gt+v))]];return g(Vt)}:function(ut,Rt,gt,It){var Dt=o?[[n(d(gt),!0),e(h(gt))],[n(d(gt+It),!0),e(h(gt+It))]]:[[e(h(gt),!0),n(d(gt))],[e(h(gt+It),!0),n(d(gt+It))]];return g(Dt)},H={x:r.axis.getAxisType("x"),y:r.axis.getAxisType("y")},K="",T=0,W=void 0;W=t[T];T++){var V=t[T-1],nt=V&&pt(V.value),D=r.isWithinRegions(W.x,u);if(pt(W.value)){if(ke(u)||!D||!nt)K+="".concat(T&&nt?"L":"M").concat(L(W),",").concat(P(W));else if(nt){try{D=D.dasharray.split(" ")}catch{D=l.split(" ")}h=Pn(H.x,V.x,W.x),d=Pn(H.y,V.value,W.value);var U=e(W.x)-e(V.x),G=n(W.value)-n(V.value),vt=Math.sqrt(Math.pow(U,2)+Math.pow(G,2));v=D[0]/vt,y=v*D[1];for(var mt=v;mt<=1;mt+=y)K+=F(V,W,mt,v),mt+y>=1&&(K+=F(V,W,1,0))}}}return K},isWithinRegions:function(t,e){for(var n=0,i=void 0;i=e[n];n++)if(i.start<t&&t<=i.end)return i.style;return!1},isWithinStep:function(t,e){return Math.abs(e-Ze(this.state.event,t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return e===!0||Xt(e)&&e.indexOf(t.id)!==-1}},jn=function(){return Xn()},ul={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Ke(e)&&$t(e.create)&&$t(e.update)},initialOpacityForCircle:function(t){var e=this,n=e.config,i=e.state.withoutFadeIn,r=n.point_opacity;return ke(r)&&(r=this.getBaseValue(t)!==null&&i[t.id]?this.opacityForCircle(t):"0"),r},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return ke(n)&&(n=e.point_show&&!e.point_focus_only?null:"0",n=pt(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(".".concat(ve.chartCircles)).empty()&&e.select(".".concat(Mt.chart)).append("g").attr("class",ve.chartCircles)},updateTargetForCircle:function(t,e){var n=this,i=this,r=i.config,a=i.data,o=i.$el,s=r.interaction_enabled&&r.data_selection_enabled,u=s&&r.data_selection_isselectable,l=i.getClass("circles",!0);if(r.point_show){!o.circle&&i.initCircle();var h=t,d=e;if(!h){h=a.targets.filter(function(y){return n.isScatterType(y)||n.isBubbleType(y)});var v=o.main.select(".".concat(ve.chartCircles)).style("pointer-events","none").selectAll(".".concat(ve.circles)).data(h);v.exit().remove(),d=v.enter()}s&&d.append("g").attr("class",function(y){return i.generateClass(oe.selectedCircles,y.id)}),d.append("g").attr("class",l).call(function(y){i.setCssRule(!0,".".concat(ve.circles),["cursor:pointer"],u)(y),i.setCssRule(!0," .".concat(ve.circle),["fill","stroke"],i.color)(y)}).style("opacity",function(){var y=dt(this.parentNode);return y.attr("class").indexOf(ve.chartCircles)>-1?"0":null}),s&&h.forEach(function(y){o.main.selectAll(".".concat(oe.selectedCircles).concat(i.getTargetSelectorSuffix(y.id))).selectAll("".concat(oe.selectedCircle)).each(function(m){m.value=y.values[m.index].value})})}},updateCircle:function(t){t===void 0&&(t=!1);var e=this,n=e.config,i=e.state,r=e.$el,a=n.point_focus_only,o=t?r.subchart:r;if(n.point_show&&!i.toggling){var s=o.main.selectAll(".".concat(ve.circles)).selectAll(".".concat(ve.circle)).data(function(u){return e.isLineType(u)&&e.shouldDrawPointsForLine(u)||e.isBubbleType(u)||e.isRadarType(u)||e.isScatterType(u)?a?[u.values[0]]:u.values:[]});s.exit().remove(),s.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.getStylePropValue(e.color))),o.circle=o.main.selectAll(".".concat(ve.circles," .").concat(ve.circle)).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},redrawCircle:function(t,e,n,i,r){r===void 0&&(r=!1);var a=this,o=a.state.rendered,s=a.$el,u=a.$T,l=r?s.subchart:s,h=l.main.selectAll(".".concat(oe.selectedCircle));if(!a.config.point_show)return[];var d=a.point("update",a,t,e,a.getStylePropValue(a.color),n,i,h),v=a.isCirclePoint()?"c":"",y=Xn(),m=a.opacityForCircle.bind(a),T=[];return l.circle.each(function(C){var A=d.bind(this)(C);A=u(A,n||!o,y).style("opacity",m),T.push(A)}),[T,u(h,n).attr("".concat(v,"x"),t).attr("".concat(v,"y"),e)]},showCircleFocus:function(t){var e=this,n=e.config,i=e.state,r=i.hasRadar,a=i.resizing,o=i.toggling,s=i.transiting,u=e.$el,l=u.circle;if(s===!1&&n.point_focus_only&&l){var h=(r?e.radarCircleX:e.circleX).bind(e),d=(r?e.radarCircleY:e.circleY).bind(e),v=o||ke(t),y=e.point("update",e,h,d,e.getStylePropValue(e.color),a?!1:v);t&&(l=l.filter(function(m){var T=t.filter(function(C){return C.id===m.id});return T.length?dt(this).datum(T[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(m){var T=m.id,C=m.index,A=m.value,S="hidden";pt(A)&&(y.bind(this)(m),e.expandCircles(C,T),S=""),this.style.visibility=S})}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(t){t===void 0&&(t=!1);var e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return function(i,r){var a=i.id;return e.isGrouped(a)?n(i,r)[0][1]:e.getYScaleById(a,t)(e.getBaseValue(i))}},expandCircles:function(t,e,n){var i=this,r=i.pointExpandedR.bind(i);n&&i.unexpandCircles();var a=i.getShapeByIndex("circle",t,e).classed(Mt.EXPANDED,!0),o=r(a)/i.config.point_r,s=1-o;i.isCirclePoint()?a.attr("r",r):a.each(function(){var u=dt(this);if(this.tagName==="circle")u.attr("r",r);else{var l=this.getBBox(),h=l.width,d=l.height,v=s*(+u.attr("x")+h/2),y=s*(+u.attr("y")+d/2);u.attr("transform","translate(".concat(v," ").concat(y,") scale(").concat(o,")"))}})},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),i=e.getShapeByIndex("circle",t).filter(function(){return dt(this).classed(Mt.EXPANDED)}).classed(Mt.EXPANDED,!1);if(i.attr("r",n),!e.isCirclePoint()){var r=n(i)/e.config.point_r;i.attr("transform",r!==1?"scale(".concat(r,")"):null)}},pointR:function(t){var e=this,n=e.config,i=n.point_r,r=i;return e.isBubbleType(t)?r=e.getBubbleR(t):$t(i)&&(r=i.bind(e.api)(t)),r},pointExpandedR:function(t){var e=this,n=e.config,i=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*i:e.pointR(t)},pointSelectR:function(t){var e=this,n=e.config.point_select_r;return $t(n)?n(t):n||e.pointR(t)*4},isWithinCircle:function(t,e){var n=Ze(this.state.event,t),i=dt(t),r=this.isCirclePoint(t)?"c":"",a=+i.attr("".concat(r,"x")),o=+i.attr("".concat(r,"y"));if(!(a||o)&&t.nodeType===1){var s=Ri(t),u=s.x,l=s.y;a=u,o=l}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n,i=this,r=function(l,h){for(var d=l.attributes,v=0,y;y=d[v];v++)y=y.name,h.setAttribute(y,l.getAttribute(y))},a=new DOMParser().parseFromString(t,"image/svg+xml"),o=a.documentElement,s=qt.createElementNS(Jn.svg,o.nodeName.toLowerCase());if(s.id=e,s.style.fill="inherit",s.style.stroke="inherit",r(o,s),!((n=o.childNodes)===null||n===void 0)&&n.length){var u=dt(s);"innerHTML"in s?u.html(o.innerHTML):In(o.childNodes).forEach(function(l){r(l,u.append(l.tagName).node())})}i.$el.defs.node().appendChild(s)},pointFromDefs:function(t){return this.$el.defs.select("#".concat(t))},updatePointClass:function(t){var e=this,n=e.$el.circle,i=!1;return(Ut(t)||n)&&(i=t===!0?n.each(function(r){var a=e.getClass("circle",!0)(r);this.getAttribute("class").indexOf(Mt.EXPANDED)>-1&&(a+=" ".concat(Mt.EXPANDED)),this.setAttribute("class",a)}):e.getClass("circle",!0)(t)),i},generateGetLinePoints:function(t,e){var n=this,i=n.config,r=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(u,l){var h=s.call(n,u.id,e)(n.getShapeYMin(u.id)),d=o(u,l)||h,v=r(u),y=a(u);i.axis_rotated&&(u.value>0&&y<h||u.value<0&&h<y)&&(y=h);var m=[v,y-(h-d)];return[m,m,m,m]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,i=[],r=Kt(e.point_pattern)?e.point_pattern:[e.point_type];return function(a,o){for(var s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];return function(l){var h,d=t.getTargetSelectorSuffix(l.id||((h=l.data)===null||h===void 0?void 0:h.id)||l),v=dt(this);i.indexOf(d)<0&&i.push(d);var y=r[i.indexOf(d)%r.length];if(t.hasValidPointType(y))y=t[y];else if(!t.hasValidPointDrawMethods(y)){var m="".concat(n,"-point").concat(d),T=t.pointFromDefs(m);if(T.size()<1&&t.insertPointInfoDefs(y,m),a==="create")return t.custom.create.bind(o).apply(void 0,xe([v,m],s,!1));if(a==="update")return t.custom.update.bind(o).apply(void 0,xe([v],s,!1))}return y[a].bind(o).apply(void 0,xe([v],s,!1))}}},custom:{create:function(t,e,n){return t.append("use").attr("xlink:href","#".concat(e)).attr("class",this.updatePointClass.bind(this)).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=this,u=t.node().getBBox(),l=u.width,h=u.height,d=function(m){return pt(m.value)?e(m)-l/2:0},v=function(m){return pt(m.value)?n(m)-h/2:0},y=t;return r&&(a&&y.attr("x",d),y=s.$T(y,r,jn()),o&&s.$T(o,r,jn())),y.attr("x",d).attr("y",v).style("fill",i)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=this,u=t;return s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),r&&(a&&u.attr("cx",e),u.attr("cx")&&(u=s.$T(u,r,jn())),o&&s.$T(u,r,jn())),u.attr("cx",e).attr("cy",n).style("fill",i)}},rectangle:{create:function(t,e,n){var i=function(r){return e(r)*2};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",i).attr("height",i).style("fill",n).node()},update:function(t,e,n,i,r,a,o){var s=this,u=s.config.point_r,l=function(v){return e(v)-u},h=function(v){return n(v)-u},d=t;return r&&(a&&d.attr("x",l),d=s.$T(d,r,jn()),o&&s.$T(o,r,jn())),d.attr("x",l).attr("y",h).style("fill",i)}}},ll={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},G0={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},Z0={bar_label_threshold:0,bar_linearGradient:!1,bar_indices_removeNull:!1,bar_overlap:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},K0={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},Q0={scatter_zerobased:!1},J0={arc_cornerRadius:0,arc_cornerRadius_ratio:0},tm={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0};function zo(t,e){Ye(jr.prototype,Y0.concat(t)),Ye(Bo.prototype,H0),Wr.setOptions(U0.concat(e||[]))}function fl(t,e){zo([ul,q0].concat(t||[])),Wr.setOptions([ll,K0].concat(e||[]))}function em(t,e){Ye(jr.prototype,[V0].concat(t||[])),Wr.setOptions(e)}var hl=function(){return fl(W0,[G0]),(hl=function(){return Tt.AREA})()},dl=function(){return fl(),(dl=function(){return Tt.LINE})()},gl=function(){return em(void 0,[J0,tm]),(gl=function(){return Tt.PIE})()},pl=function(){return zo([j0],Z0),(pl=function(){return Tt.BAR})()},vl=function(){return zo([ul],[ll,Q0]),(vl=function(){return Tt.SCATTER})()};function nm(t,e,n){var i=n[0],r=n[1];return t.every(function(a,o){return(o===0?a>=i:a<=r)&&!t.every(function(s,u){return s===e[u]})})}var im=function(t){var e,n=this.internal,i=n.$el,r=n.axis,a=n.config,o=n.org,s=n.scale,u=a.axis_rotated,l=r.isCategorized(),h=t;if(a.zoom_enabled&&h){if(r.isTimeSeries()&&(h=h.map(function(m){return Qe.bind(n)(m)})),nm(h,n.getZoomDomain(!0),n.getZoomDomain())){if(l&&(h=h.map(function(m,T){return Number(m)+(T===0?0:1)})),n.api.tooltip.hide(),a.subchart_show){var d=s.zoom||s.x;n.brush.getSelection().call(n.brush.move,h.map(d))}else{var d=l?s.x.orgScale():o.xScale||s.x,v=[-d(h[0]),0],y=(e=Kx.scale(d.range()[1]/(d(h[1])-d(h[0])))).translate.apply(e,u?v.reverse():v);i.eventRect.call(n.zoom.transform,y)}n.setZoomResetButton()}}else h=s.zoom?s.zoom.domain():s.x.orgDomain();return h};Ye(im,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,i=e.org.xDomain;return(t===0||t)&&(n.zoom_x_max=pn("max",[i[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,i=e.org.xDomain;return(t===0||t)&&(n.zoom_x_min=pn("min",[i[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(Ut(t)){var n=t.min,i=t.max;Yt(n)&&e.min(n),Yt(i)&&e.max(i)}return{min:e.min(),max:e.max()}}});var rm={drag:function(t){var e=this,n=e.config,i=e.state,r=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!(e.hasArcType()||!n.data_selection_enabled||n.zoom_enabled&&!e.zoom.altDomain||!n.data_selection_multiple)){var s=i.dragStart||[0,0],u=s[0],l=s[1],h=t[0],d=t[1],v=Math.min(u,h),y=Math.max(u,h),m=a?i.margin.top:Math.min(l,d),T=a?i.height:Math.max(l,d);r.select(".".concat(En.dragarea)).attr("x",v).attr("y",m).attr("width",y-v).attr("height",T-m),r.selectAll(".".concat(me.shapes)).selectAll(".".concat(me.shape)).filter(function(C){return o==null?void 0:o.bind(e.api)(C)}).each(function(C,A){var S=dt(this),D=S.classed(oe.SELECTED),L=S.classed(En.INCLUDED),P=!1,g;if(S.classed(ve.circle)){var F=+S.attr("cx")*1,H=+S.attr("cy")*1;g=e.togglePoint,P=v<F&&F<y&&m<H&&H<T}else if(S.classed(Be.bar)){var K=Jx(this),F=K.x,H=K.y,W=K.width,V=K.height;g=e.togglePath,P=!(y<F||F+W<v)&&!(T<H||H+V<m)}else return;P^L&&(S.classed(En.INCLUDED,!L),S.classed(oe.SELECTED,!D),g.call(e,!D,S,C,A))})}},dragstart:function(t){var e=this,n=e.config,i=e.state,r=e.$el.main;e.hasArcType()||!n.data_selection_enabled||(i.dragStart=t,r.select(".".concat(Mt.chart)).append("rect").attr("class",En.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main,i=t.$T;t.hasArcType()||!e.data_selection_enabled||(i(n.select(".".concat(En.dragarea))).style("opacity","0").remove(),n.selectAll(".".concat(me.shape)).classed(En.INCLUDED,!1),t.setDragStatus(!1))}};wt(wt({},rm),{selectPoint:function(t,e,n){var i=this,r=i.config,a=i.$el.main,o=i.$T,s=r.axis_rotated,u=(s?i.circleY:i.circleX).bind(i),l=(s?i.circleX:i.circleY).bind(i),h=i.pointSelectR.bind(i);Zt(r.data_onselected,i.api,e,t.node()),o(a.select(".".concat(oe.selectedCircles).concat(i.getTargetSelectorSuffix(e.id))).selectAll(".".concat(oe.selectedCircle,"-").concat(n)).data([e]).enter().append("circle").attr("class",function(){return i.generateClass(oe.selectedCircle,n)}).attr("cx",u).attr("cy",l).attr("stroke",i.color).attr("r",function(d){return i.pointSelectR(d)*1.4})).attr("r",h)},unselectPoint:function(t,e,n){var i=this,r=i.config,a=i.$el.main,o=i.$T;Zt(r.data_onunselected,i.api,e,t==null?void 0:t.node()),o(a.select(".".concat(oe.selectedCircles).concat(i.getTargetSelectorSuffix(e.id))).selectAll(".".concat(oe.selectedCircle,"-").concat(n))).attr("r",0).remove()},togglePoint:function(t,e,n,i){var r="".concat(t?"":"un","selectPoint");this[r](e,n,i)},selectPath:function(t,e){var n=this,i=n.config;Zt(i.data_onselected,n.api,e,t.node()),i.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath:function(t,e){var n=this,i=n.config;Zt(i.data_onunselected,n.api,e,t.node()),i.interaction_brighten&&t.style("filter",null)},togglePath:function(t,e,n,i){this["".concat(t?"":"un","selectPath")](e,n,i)},getToggle:function(t,e){var n=this;return t.nodeName==="path"?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var i=this,r=i.config,a=i.$el.main;if(r.data_selection_enabled&&r.data_selection_isselectable.bind(i.api)(e)){var o=dt(t),s=o.classed(oe.SELECTED),u=i.getToggle(t,e).bind(i),l;if(!r.data_selection_multiple){var h=r.point_focus_only,d=".".concat(h?oe.selectedCircles:me.shapes);r.data_selection_grouped&&(d+=i.getTargetSelectorSuffix(e.id)),a.selectAll(d).selectAll(h?".".concat(oe.selectedCircle):".".concat(me.shape,".").concat(oe.SELECTED)).classed(oe.SELECTED,!1).each(function(v){var y=dt(this);l=y,u(!1,y,v,v.index)})}(!l||l.node()!==o.node())&&(o.classed(oe.SELECTED,!s),u(!s,o,e,n))}}});var Ia={},am={version:"3.7.5",generate:function(t){var e=ai({},Ia,t),n=new Bo(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return Ut(t)&&(Ia=t),Ia},instance:[],plugin:{}};const om=t=>{sm(t.MsgQueue),Bc(je(".block")),Bc(je("table td"))};function sm(t){t.forEach(e=>cm(e==null?void 0:e.data))}const Pa=(t,e=n=>{})=>({axis:(i=>(e(i),i))({x:{tick:{format(i){return t[0].xlabels[i]||i}}}})});function cm(t){if(!t)return;const{chartID:e,chartType:n,chartData:i}=t,r={bindto:`#${e}`};switch(n){case"lineChart":Object.assign(r,{data:{columns:i.map(a=>[a.key,...a.values.map(({y:o})=>o)]),type:dl()},...Pa(i),interaction:{enabled:!0}});break;case"barChart":Object.assign(r,{data:{columns:i.map(a=>[a.key,...a.values.map(({y:o})=>o)]),type:pl()},...Pa(i,a=>a.x.tick.multiline=!0)});break;case"pieChart":case"pie3DChart":Object.assign(r,{data:{columns:Object.values(i[0].xlabels).map((a,o)=>[a,i[0].values[o].y]),type:gl()}});break;case"areaChart":Object.assign(r,{data:{columns:i.map(a=>[a.key,...a.values.map(({y:o})=>o)]),type:hl()},interaction:{enabled:!0},...Pa(i)});break;case"scatterChart":Object.assign(r,{data:{xs:{y:"x"},columns:i.map((a,o)=>[o?"y":"x",...a]),type:vl()},axis:{x:{label:"X",showDist:!0,tick:{format:Oi(".02f")}},y:{label:"Y",showDist:!0,tick:{format:Oi(".02f")}}}});break}r.data&&am.generate(r)}function Bc(t){const e=t;for(let n=0;n<e.length;n++){const i=je(e[n]).find(".numeric-bullet-style");if(i.length>0){let r="",a="",o=0;const s=[];let u=0;const l=[];for(let h=0;h<i.length;h++){const d=je(i[h]).data("bulltname"),v=je(i[h]).data("bulltlvl");o==0?(r=d,a=v,s[u]=o,l[u]=d,o++):d==r&&v==a?(r=d,a=v,o++,s[u]=o,l[u]=d):d!=r&&v==a||d!=r&&Number(v)>Number(a)?(r=d,a=v,u++,s[u]=o,l[u]=d,o=1):d!=r&&Number(v)<Number(a)&&(r=d,a=v,u--,o=s[u]+1);const y=um(l[u],o);je(i[h]).html(y)}}}}function um(t,e){let n="";switch(t){case"arabicPeriod":n=e+". ";break;case"arabicParenR":n=e+") ";break;case"alphaLcParenR":n=ur(e,"lowerCase")+") ";break;case"alphaLcPeriod":n=ur(e,"lowerCase")+". ";break;case"alphaUcParenR":n=ur(e,"upperCase")+") ";break;case"alphaUcPeriod":n=ur(e,"upperCase")+". ";break;case"romanUcPeriod":n=zc(e)+". ";break;case"romanLcParenR":n=zc(e)+") ";break;case"hebrew2Minus":n=lm.format(e)+"-";break;default:n=String(e)}return n}function zc(t){if(!+t)return!1;const e=String(+t).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];let i="",r=3;for(;r--;)i=(n[+(e.pop()??"")+r*10]||"")+i;return Array(+e.join("")+1).join("M")+i}const lm=fm([[1e3,""],[400,"ת"],[300,"ש"],[200,"ר"],[100,"ק"],[90,"צ"],[80,"פ"],[70,"ע"],[60,"ס"],[50,"נ"],[40,"מ"],[30,"ל"],[20,"כ"],[10,"י"],[9,"ט"],[8,"ח"],[7,"ז"],[6,"ו"],[5,"ה"],[4,"ד"],[3,"ג"],[2,"ב"],[1,"א"],[/יה/,"ט״ו"],[/יו/,"ט״ז"],[/([א-ת])([א-ת])$/,"$1״$2"],[/^([א-ת])$/,"$1׳"]]);function fm(t){return t.slice().sort(function(e,n){return n[1].length-e[1].length}),{format:function(e){let n="";return je.each(t,function(){const i=this[0];if(parseInt(i)>0)for(;e>=i;e-=i)n+=this[1];else n=n.replace(i,this[1])}),n}}}function ur(t,e){t=Number(t)-1;let n="";return e=="upperCase"?n=((t/26>=1?String.fromCharCode(t/26+64):"")+String.fromCharCode(t%26+65)).toUpperCase():e=="lowerCase"&&(n=((t/26>=1?String.fromCharCode(t/26+64):"")+String.fromCharCode(t%26+65)).toLowerCase()),n}const hm={create(){return Cf("pptx.worker.js").defaults(()=>new Worker(new URL(""+new URL("pptx.worker-762bd091.js",import.meta.url).href,self.location),{type:"module"}))}},dm=_f({__name:"PptxRender",props:{data:null,options:{type:Function,default:kf}},setup(t){const e=t,n=bf(null);return(()=>{const i={isDone:!1,thumbElement:null,worker:null,timer:null},r={startWorker(){i.worker&&i.worker.terminate(),i.timer&&clearInterval(i.timer);const a=i.worker=hm.create();a.addEventListener("message",o=>{this.processMessage(o.data)},!1),a.addEventListener("error",o=>{console.error(o)},!1),a.postMessage({type:"processPPTX",data:e.data,IE11:"MSInputMethodContext"in window&&"documentMode"in document,options:e.options()}),i.timer=setInterval(this.stopWorker,500)},stopWorker(){var a;i.isDone&&((a=i.worker)==null||a.terminate(),console.log("worker terminated"),i.timer&&clearInterval(i.timer))},resize(){if(n.value){const a=je(n.value),o=Math.max(...Array.from(a.children("section")).map(u=>u.offsetWidth)),s=a[0].offsetWidth;a.css({transform:`scale(${s/o})`,"transform-origin":"top left"})}},processMessage(a){if(i.isDone||!n.value)return;const o=je(n.value),{thumbElement:s}=i;switch(a.type){case"slide":console.log("正在处理:",a.slide_num),o.append(a.data);break;case"pptx-thumb":s&&je(s).attr("src",`data:image/jpeg;base64,${a.data}`);break;case"slideSize":break;case"globalCSS":o.append(`<style>${a.data}</style>`);break;case"ExecutionTime":case"Done":console.log("pptx渲染完成耗时",a.data),om(a.charts),i.isDone=!0;break;case"WARN":console.warn("PPTX processing warning: ",a.data);break;case"ERROR":i.isDone=!0,console.error("PPTX processing error: ",a.data);break;case"DEBUG":console.debug("Worker: ",a.data);break;case"INFO":default:console.info("Worker: ",a.data)}}};Tf(()=>{r.startWorker()})})(),(i,r)=>(wf(),$f("div",{class:"pptx-wrapper",ref_key:"wrapper",ref:n},null,512))}});const vm=Af(dm,[["__scopeId","data-v-1b0d57cb"]]);export{vm as default};