@kky42/pievo-server 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{LoopView-CCYqXrKq.js → LoopView-Pbp2YtUu.js} +1 -1
  3. package/.output/public/assets/{Modal-BhRzAXQg.js → Modal-B3xpEtcf.js} +1 -1
  4. package/.output/public/assets/{SignIn-CV3jqX_8.js → SignIn-9vsaKv_p.js} +1 -1
  5. package/.output/public/assets/{actionUi-BRtdWVvO.js → actionUi-DDDfD0WX.js} +1 -1
  6. package/.output/public/assets/app-CStTBRt2.css +2 -0
  7. package/.output/public/assets/{artifactView-DekEs5ME.js → artifactView-BV-yQVrj.js} +1 -1
  8. package/.output/public/assets/{index-BATGA0jG.js → index-DT_reRxT.js} +4 -4
  9. package/.output/public/assets/{invite._token-Dp2HL9X5.js → invite._token-5zhVSA26.js} +1 -1
  10. package/.output/public/assets/{invite._token-CQgv8lTC.js → invite._token-C3t4JfAY.js} +1 -1
  11. package/.output/public/assets/{lifecycleUi-C3k2MlX8.js → lifecycleUi-CMFw5Nlj.js} +1 -1
  12. package/.output/public/assets/{loopApi-5s2-kCnu.js → loopApi-C_Dtw-nL.js} +1 -1
  13. package/.output/public/assets/loops._loopId-6JlPOCsY.js +4 -0
  14. package/.output/public/assets/{loops._loopId_.runs._runId-BNN-dLrW.js → loops._loopId_.runs._runId-wFUMHN9w.js} +2 -2
  15. package/.output/public/assets/{notifyFns-DuBElaqG.js → notifyFns-CF12Yboc.js} +1 -1
  16. package/.output/public/assets/{preload-helper-3xcHsDtt.js → preload-helper--VCqDT5m.js} +2 -2
  17. package/.output/public/assets/{routes-CmuCVIIS.js → routes-DsdcURfk.js} +1 -1
  18. package/.output/public/assets/{routes-YnrsFY5X.js → routes-WVPuW976.js} +1 -1
  19. package/.output/public/assets/{t._teamId-BlE4mCSj.js → t._teamId-BdVLnwih.js} +1 -1
  20. package/.output/public/assets/{t._teamId-Bi-C9s5j.js → t._teamId-C9uEyAh_.js} +1 -1
  21. package/.output/public/assets/ui-Gb1413-F.js +1 -0
  22. package/.output/server/_ssr/{DashboardView-2eNPqWcy.mjs → DashboardView-DJMpoucm.mjs} +8 -8
  23. package/.output/server/_ssr/{LoopPlaybook-CnQ8Qgyf.mjs → LoopPlaybook-WFNer22Y.mjs} +3 -3
  24. package/.output/server/_ssr/{LoopView-DM30OPCN.mjs → LoopView-Dsc6oik9.mjs} +7 -7
  25. package/.output/server/_ssr/{Modal-B7gBr5Pm.mjs → Modal-Bc_5TYGr.mjs} +2 -2
  26. package/.output/server/_ssr/{SignIn-CaAi4_mk.mjs → SignIn-2qr-vtR5.mjs} +3 -3
  27. package/.output/server/_ssr/{actionUi-Be7dmMxb.mjs → actionUi-BKF6xI3d.mjs} +2 -2
  28. package/.output/server/_ssr/{adapters-CHURWoZx.mjs → adapters-Bwuh6uek.mjs} +2 -2
  29. package/.output/server/_ssr/{artifactFiles-D6b_RP78.mjs → artifactFiles-Cp1IBHne.mjs} +3 -3
  30. package/.output/server/_ssr/{artifactView-CYV1r48i.mjs → artifactView-DX4P3Krh.mjs} +2 -2
  31. package/.output/server/_ssr/artifacts-9G_Ai7vO.mjs +2 -0
  32. package/.output/server/_ssr/{auth-B_OxPpFr.mjs → auth-uQ19WsD1.mjs} +9 -9
  33. package/.output/server/_ssr/{boot-BNoivm21.mjs → boot-DPoPmSLh.mjs} +1236 -314
  34. package/.output/server/_ssr/boot-Zz5AJgfy.mjs +2 -0
  35. package/.output/server/_ssr/{bun-sqlite-dialect-BW9W1_Ps-B3RHdVjo.mjs → bun-sqlite-dialect-BW9W1_Ps-CqcLCApi.mjs} +2 -2
  36. package/.output/server/_ssr/{d1-sqlite-dialect-BLC8LXE6-DpVe1foU.mjs → d1-sqlite-dialect-BLC8LXE6-AuWb61y8.mjs} +2 -2
  37. package/.output/server/_ssr/db-BMANvbZu.mjs +2 -0
  38. package/.output/server/_ssr/{dist-BTx1ljg7.mjs → dist-CtYTvPCD.mjs} +2 -2
  39. package/.output/server/_ssr/{factory-TSnFcS96.mjs → factory-BtqxMS8a.mjs} +2 -2
  40. package/.output/server/_ssr/{invite._token-CvqaKH2R.mjs → invite._token-BlbVjz-o.mjs} +2 -2
  41. package/.output/server/_ssr/{invite._token-CDpO3cfB.mjs → invite._token-DBttmaDb.mjs} +6 -6
  42. package/.output/server/_ssr/{invite._token-DWOPXXLS.mjs → invite._token-DtAfQyfP.mjs} +5 -5
  43. package/.output/server/_ssr/{kysely-adapter-BWjzeCGK.mjs → kysely-adapter-bSpTlW7Z.mjs} +1 -1
  44. package/.output/server/_ssr/{lifecycleUi-5jMhxINb.mjs → lifecycleUi-Djb44Aj3.mjs} +4 -4
  45. package/.output/server/_ssr/logger-CR1a0flR.mjs +2 -0
  46. package/.output/server/_ssr/{loopApi-BfMnXaKT.mjs → loopApi-7MTSs6hy.mjs} +5 -5
  47. package/.output/server/_ssr/{loopApi-Cpm8YV3U.mjs → loopApi-BXRBFGWh.mjs} +23 -23
  48. package/.output/server/_ssr/{loops._loopId-C-y4Pux_.mjs → loops._loopId-6Q0DMXU0.mjs} +4 -4
  49. package/.output/server/_ssr/{loops._loopId-DfrHw2mZ.mjs → loops._loopId-C0x0SE8F.mjs} +85 -85
  50. package/.output/server/_ssr/{loops._loopId_.runs._runId-BXyyqXwX.mjs → loops._loopId_.runs._runId-BOJBJu_a.mjs} +4 -4
  51. package/.output/server/_ssr/{loops._loopId_.runs._runId-C9d0EC2Q.mjs → loops._loopId_.runs._runId-CkM0-ckn.mjs} +9 -9
  52. package/.output/server/_ssr/{machineFns-CRbwYxD3.mjs → machineFns-CQuvvdXx.mjs} +3 -3
  53. package/.output/server/_ssr/{node-sqlite-dialect-B10G6C4W.mjs → node-sqlite-dialect-ZOyD6D7F.mjs} +2 -2
  54. package/.output/server/_ssr/{notifyFns-DvH4C-GH.mjs → notifyFns-BOeYZDRp.mjs} +3 -3
  55. package/.output/server/_ssr/{notifyFns-CtmSVNmE.mjs → notifyFns-UFZ2j7Fv.mjs} +7 -7
  56. package/.output/server/_ssr/{router-B4ipreZ4.mjs → router-jnPelPNh.mjs} +32 -32
  57. package/.output/server/_ssr/{routes-DKox93l0.mjs → routes-Bx0bRxt9.mjs} +2 -2
  58. package/.output/server/_ssr/{routes-iHT61OkI.mjs → routes-CMAUcUsZ.mjs} +5 -5
  59. package/.output/server/_ssr/{routes-l7tUe3lr.mjs → routes-CXnbFjB_.mjs} +6 -6
  60. package/.output/server/_ssr/runDiff-CDPvl_cY.mjs +2 -0
  61. package/.output/server/_ssr/ssr.mjs +51 -51
  62. package/.output/server/_ssr/store-DDOk2Ty_.mjs +2 -0
  63. package/.output/server/_ssr/{t._teamId-jO8dUmSQ.mjs → t._teamId-36z-mmyw.mjs} +5 -5
  64. package/.output/server/_ssr/{t._teamId-BPK2mrN3.mjs → t._teamId-Bsm4WrJl.mjs} +6 -6
  65. package/.output/server/_ssr/{t._teamId-B3g0Cs8B.mjs → t._teamId-D9nCEa2h.mjs} +2 -2
  66. package/.output/server/_ssr/{teamFns-D4I-0dEB.mjs → teamFns-BBIbatdZ.mjs} +2 -2
  67. package/.output/server/_ssr/{teamFns-6zjFV7lM.mjs → teamFns-DAx4a1z4.mjs} +3 -3
  68. package/.output/server/_ssr/tokens-7KEKpLnu.mjs +2 -0
  69. package/.output/server/_ssr/{ui-CI-OeTr7.mjs → ui-B6mE5-5v.mjs} +6 -6
  70. package/.output/server/{_tanstack-start-manifest_v-CxHUYCv8.mjs → _tanstack-start-manifest_v-5iQOchGB.mjs} +28 -28
  71. package/.output/server/drizzle/0015_run_history_foundation.sql +43 -0
  72. package/.output/server/drizzle/0016_plural_machine_runs.sql +4 -0
  73. package/.output/server/drizzle/meta/_journal.json +14 -0
  74. package/.output/server/index.mjs +118 -118
  75. package/drizzle/0015_run_history_foundation.sql +43 -0
  76. package/drizzle/0016_plural_machine_runs.sql +4 -0
  77. package/drizzle/meta/_journal.json +14 -0
  78. package/package.json +1 -1
  79. package/.output/public/assets/app-B03JVnFn.css +0 -2
  80. package/.output/public/assets/loops._loopId-C9vRjZ8W.js +0 -4
  81. package/.output/public/assets/ui-By58RJgB.js +0 -1
  82. package/.output/server/_ssr/artifacts-CXMpBzMY.mjs +0 -2
  83. package/.output/server/_ssr/boot-C9VAWt9Z.mjs +0 -2
  84. package/.output/server/_ssr/db-C11vQNxP.mjs +0 -2
  85. package/.output/server/_ssr/logger-DE_PU5bE.mjs +0 -2
  86. package/.output/server/_ssr/runDiff-Bohd5W5R.mjs +0 -113
  87. package/.output/server/_ssr/store-Ck7kCAGf.mjs +0 -2
  88. package/.output/server/_ssr/tokens-oJm6yFyt.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-07-22T11:55:25.130Z",
2
+ "date": "2026-07-23T04:17:58.854Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./jsx-runtime-BseJUIpC.js";import{I as s,T as c,o as l}from"./loopApi-5s2-kCnu.js";import{n as u,t as d}from"./Modal-BhRzAXQg.js";import{E as f,T as p,j as m,k as h}from"./ui-By58RJgB.js";import{c as g,l as _,n as v,r as y,s as b,t as x}from"./artifactView-DekEs5ME.js";function S(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function C(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var w=e=>Array.isArray(e)?e:[e];function T(e){let t=Array.isArray(e[0])?e[0]:e;return C(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function E(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var D=class{constructor(e){this.value=e}deref(){return this.value}},O=typeof WeakRef>`u`?D:WeakRef,k=0,A=1;function j(){return{s:k,v:void 0,o:null,p:null}}function M(e){return e instanceof O?e.deref():e}function N(e,t={}){let n=j(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=j(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=j(),e.set(n,t)):t=r}}let s=t,c;if(t.s===A)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=M(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new O(c):c}return s.s=A,s.v=c,c}return o.clearCache=()=>{n=j(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function ee(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),S(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=N,argsMemoizeOptions:u=[]}={...n,...a},d=w(c),f=w(u),p=T(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=E(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var P=ee(N),te=i((e=>{e.CASE_SENSITIVE_TAG_NAMES_MAP=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{})}));function ne(e){return e.type===F.Tag||e.type===F.Script||e.type===F.Style}var F,re=t((()=>{(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(F||={}),F.Root,F.Text,F.Directive,F.Comment,F.Script,F.Style,F.Tag,F.CDATA,F.Doctype}));function ie(e){return ne(e)}function ae(e){return e.type===F.CDATA}function oe(e){return e.type===F.Text}function se(e){return e.type===F.Comment}function ce(e){return e.type===F.Directive}function le(e){return e.type===F.Root}function ue(e){return Object.hasOwn(e,`children`)}function de(e,t=!1){let n;if(oe(e))n=new he(e.data);else if(se(e))n=new ge(e.data);else if(ie(e)){let r=t?fe(e.children):[],i=new xe(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(ae(e)){let r=t?fe(e.children):[],i=new ye(r);for(let e of r)e.parent=i;n=i}else if(le(e)){let r=t?fe(e.children):[],i=new be(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(ce(e)){let t=new _e(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function fe(e){let t=e.map(e=>de(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var pe,me,he,ge,_e,ve,ye,be,xe,Se=t((()=>{re(),pe=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return de(this,e)}},me=class extends pe{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},he=class extends me{type=F.Text;get nodeType(){return 3}},ge=class extends me{type=F.Comment;get nodeType(){return 8}},_e=class extends me{type=F.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},ve=class extends pe{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},ye=class extends ve{type=F.CDATA;get nodeType(){return 4}},be=class extends ve{type=F.Root;get nodeType(){return 9}},xe=class extends ve{name;attribs;type;constructor(e,t,n=[],r=e===`script`?F.Script:e===`style`?F.Style:F.Tag){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}})),Ce=e({CDATA:()=>ye,Comment:()=>ge,DataNode:()=>me,Document:()=>be,DomHandler:()=>Te,Element:()=>xe,Node:()=>pe,NodeWithChildren:()=>ve,ProcessingInstruction:()=>_e,Text:()=>he,cloneNode:()=>de,default:()=>Te,hasChildren:()=>ue,isCDATA:()=>ae,isComment:()=>se,isDirective:()=>ce,isDocument:()=>le,isTag:()=>ie,isText:()=>oe}),we,Te,Ee=t((()=>{re(),Se(),Se(),we={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Te=class{dom=[];root=new be(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){typeof t==`function`&&(n=t,t=we),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??we,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new be(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new xe(e,t,void 0,this.options.xmlMode?F.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===F.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{let t=new he(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===F.Comment){this.lastNode.data+=e;return}let t=new ge(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new he(``),t=new ye([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new _e(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}})),De=i((e=>{var t=te(),n=(Ee(),r(Ce)),i=`\r`,a=new RegExp(i,`g`),o=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,s=new RegExp(o,`g`);function c(e){return t.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function l(e){let t={},n=0,r=e.length;for(;n<r;n++){let r=e[n];t[r.name]=r.value}return t}function u(e){return e=e.toLowerCase(),c(e)||e}function d(e,t){let n=`<`+t,r=e.toLowerCase().indexOf(n);if(r===-1)return!1;let i=e[r+n.length];return i===`>`||i===` `||i===` `||i===`
1
+ import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./jsx-runtime-BseJUIpC.js";import{I as s,T as c,o as l}from"./loopApi-C_Dtw-nL.js";import{n as u,t as d}from"./Modal-B3xpEtcf.js";import{E as f,T as p,j as m,k as h}from"./ui-Gb1413-F.js";import{c as g,l as _,n as v,r as y,s as b,t as x}from"./artifactView-BV-yQVrj.js";function S(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function C(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var w=e=>Array.isArray(e)?e:[e];function T(e){let t=Array.isArray(e[0])?e[0]:e;return C(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function E(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var D=class{constructor(e){this.value=e}deref(){return this.value}},O=typeof WeakRef>`u`?D:WeakRef,k=0,A=1;function j(){return{s:k,v:void 0,o:null,p:null}}function M(e){return e instanceof O?e.deref():e}function N(e,t={}){let n=j(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=j(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=j(),e.set(n,t)):t=r}}let s=t,c;if(t.s===A)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=M(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new O(c):c}return s.s=A,s.v=c,c}return o.clearCache=()=>{n=j(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function ee(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),S(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=N,argsMemoizeOptions:u=[]}={...n,...a},d=w(c),f=w(u),p=T(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=E(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var P=ee(N),te=i((e=>{e.CASE_SENSITIVE_TAG_NAMES_MAP=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{})}));function ne(e){return e.type===F.Tag||e.type===F.Script||e.type===F.Style}var F,re=t((()=>{(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(F||={}),F.Root,F.Text,F.Directive,F.Comment,F.Script,F.Style,F.Tag,F.CDATA,F.Doctype}));function ie(e){return ne(e)}function ae(e){return e.type===F.CDATA}function oe(e){return e.type===F.Text}function se(e){return e.type===F.Comment}function ce(e){return e.type===F.Directive}function le(e){return e.type===F.Root}function ue(e){return Object.hasOwn(e,`children`)}function de(e,t=!1){let n;if(oe(e))n=new he(e.data);else if(se(e))n=new ge(e.data);else if(ie(e)){let r=t?fe(e.children):[],i=new xe(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(ae(e)){let r=t?fe(e.children):[],i=new ye(r);for(let e of r)e.parent=i;n=i}else if(le(e)){let r=t?fe(e.children):[],i=new be(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(ce(e)){let t=new _e(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function fe(e){let t=e.map(e=>de(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var pe,me,he,ge,_e,ve,ye,be,xe,Se=t((()=>{re(),pe=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return de(this,e)}},me=class extends pe{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},he=class extends me{type=F.Text;get nodeType(){return 3}},ge=class extends me{type=F.Comment;get nodeType(){return 8}},_e=class extends me{type=F.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},ve=class extends pe{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},ye=class extends ve{type=F.CDATA;get nodeType(){return 4}},be=class extends ve{type=F.Root;get nodeType(){return 9}},xe=class extends ve{name;attribs;type;constructor(e,t,n=[],r=e===`script`?F.Script:e===`style`?F.Style:F.Tag){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}})),Ce=e({CDATA:()=>ye,Comment:()=>ge,DataNode:()=>me,Document:()=>be,DomHandler:()=>Te,Element:()=>xe,Node:()=>pe,NodeWithChildren:()=>ve,ProcessingInstruction:()=>_e,Text:()=>he,cloneNode:()=>de,default:()=>Te,hasChildren:()=>ue,isCDATA:()=>ae,isComment:()=>se,isDirective:()=>ce,isDocument:()=>le,isTag:()=>ie,isText:()=>oe}),we,Te,Ee=t((()=>{re(),Se(),Se(),we={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Te=class{dom=[];root=new be(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){typeof t==`function`&&(n=t,t=we),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??we,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new be(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new xe(e,t,void 0,this.options.xmlMode?F.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===F.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{let t=new he(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===F.Comment){this.lastNode.data+=e;return}let t=new ge(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new he(``),t=new ye([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new _e(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}})),De=i((e=>{var t=te(),n=(Ee(),r(Ce)),i=`\r`,a=new RegExp(i,`g`),o=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,s=new RegExp(o,`g`);function c(e){return t.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function l(e){let t={},n=0,r=e.length;for(;n<r;n++){let r=e[n];t[r.name]=r.value}return t}function u(e){return e=e.toLowerCase(),c(e)||e}function d(e,t){let n=`<`+t,r=e.toLowerCase().indexOf(n);if(r===-1)return!1;let i=e[r+n.length];return i===`>`||i===` `||i===` `||i===`
2
2
  `||i===`\r`||i===`/`}function f(e){return e.replace(a,o)}function p(e){return e.replace(s,i)}function m(e,t=null,r){let i=[],a,o=0,s=e.length;for(;o<s;o++){let r=e[o];switch(r.nodeType){case 1:{let e=u(r.nodeName);a=new n.Element(e,l(r.attributes)),a.children=m(e===`template`?r.content.childNodes:r.childNodes,a);break}case 3:a=new n.Text(p(r.nodeValue??``));break;case 8:a=new n.Comment(r.nodeValue??``);break;default:continue}let s=i[o-1]??null;s&&(s.next=a),a.parent=t,a.prev=s,a.next=null,i.push(a)}return r&&(a=new n.ProcessingInstruction(r.substring(0,r.indexOf(` `)).toLowerCase(),r),a.next=i[0]??null,a.parent=t,i.unshift(a),i[1]&&(i[1].prev=i[0])),i}e.escapeSpecialCharacters=f,e.formatDOM=m,e.hasOpenTag=d})),Oe=i((e=>{var t=De(),n=`html`,r=`head`,i=`body`,a=/<([a-zA-Z]+[0-9]?)/;function o(e,t){return t?t.createHTML(e):e}var s=(e,t,n)=>{throw Error("This browser does not support `document.implementation.createHTMLDocument`")},c=(e,t,n)=>{throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window==`object`&&window.DOMParser;if(typeof l==`function`){let e=new l;c=(t,n,r)=>(n&&(t=`<${n}>${t}</${n}>`),e.parseFromString(t,`text/html`)),s=c}if(typeof document==`object`&&document.implementation){let e=document.implementation.createHTMLDocument();s=function(t,n,r){if(n){let i=e.documentElement.querySelector(n);return i&&(i.innerHTML=o(t,r)),e}return e.documentElement.innerHTML=o(t,r),e}}var u=typeof document==`object`&&document.createElement(`template`),d;u&&u.content&&(d=(e,t)=>(u.innerHTML=o(e,t),u.content.childNodes));var f=()=>document.createDocumentFragment().childNodes;function p(e,o){e=t.escapeSpecialCharacters(e);let l=a.exec(e)?.[1]?.toLowerCase();switch(l){case n:{let a=c(e);if(!t.hasOpenTag(e,r)){let e=a.querySelector(r);e?.parentNode?.removeChild(e)}if(!t.hasOpenTag(e,i)){let e=a.querySelector(i);e?.parentNode?.removeChild(e)}return a.querySelectorAll(n)}case r:case i:{let n=s(e,void 0,o).querySelectorAll(l);return t.hasOpenTag(e,i)&&t.hasOpenTag(e,r)?n[0].parentNode?.childNodes??f():n}default:return d?d(e,o):s(e,i,o).querySelector(i)?.childNodes??f()}}e.default=p})),ke=i((e=>{Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=De(),n=Oe(),r=/<(![a-zA-Z\s]+)>/;function i(e,i){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];let a=r.exec(e),o=a?a[1]:void 0;return t.formatDOM(n.default(e,i?.trustedTypePolicy),null,o)}e.default=i})),Ae=i((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":`acceptCharset`,accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:`className`,classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:`htmlFor`,form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":`httpEquiv`,icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":`accentHeight`,accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":`alignmentBaseline`,allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":`arabicForm`,ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":`baselineShift`,baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":`capHeight`,clip:0,clipPath:1,"clip-path":`clipPath`,clipPathUnits:1,clipRule:1,"clip-rule":`clipRule`,color:0,colorInterpolation:1,"color-interpolation":`colorInterpolation`,colorInterpolationFilters:1,"color-interpolation-filters":`colorInterpolationFilters`,colorProfile:1,"color-profile":`colorProfile`,colorRendering:1,"color-rendering":`colorRendering`,contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":`dominantBaseline`,dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":`enableBackground`,end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":`fillOpacity`,fillRule:1,"fill-rule":`fillRule`,filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":`floodOpacity`,floodColor:1,"flood-color":`floodColor`,focusable:0,fontFamily:1,"font-family":`fontFamily`,fontSize:1,"font-size":`fontSize`,fontSizeAdjust:1,"font-size-adjust":`fontSizeAdjust`,fontStretch:1,"font-stretch":`fontStretch`,fontStyle:1,"font-style":`fontStyle`,fontVariant:1,"font-variant":`fontVariant`,fontWeight:1,"font-weight":`fontWeight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":`glyphName`,glyphOrientationHorizontal:1,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphOrientationVertical:1,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":`horizAdvX`,horizOriginX:1,"horiz-origin-x":`horizOriginX`,ideographic:0,imageRendering:1,"image-rendering":`imageRendering`,in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":`letterSpacing`,lightingColor:1,"lighting-color":`lightingColor`,limitingConeAngle:1,local:0,markerEnd:1,"marker-end":`markerEnd`,markerHeight:1,markerMid:1,"marker-mid":`markerMid`,markerStart:1,"marker-start":`markerStart`,markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":`overlinePosition`,overlineThickness:1,"overline-thickness":`overlineThickness`,paintOrder:1,"paint-order":`paintOrder`,panose1:0,"panose-1":`panose1`,pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":`pointerEvents`,points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":`renderingIntent`,repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":`shapeRendering`,slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":`stopColor`,stopOpacity:1,"stop-opacity":`stopOpacity`,strikethroughPosition:1,"strikethrough-position":`strikethroughPosition`,strikethroughThickness:1,"strikethrough-thickness":`strikethroughThickness`,string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":`strokeDasharray`,strokeDashoffset:1,"stroke-dashoffset":`strokeDashoffset`,strokeLinecap:1,"stroke-linecap":`strokeLinecap`,strokeLinejoin:1,"stroke-linejoin":`strokeLinejoin`,strokeMiterlimit:1,"stroke-miterlimit":`strokeMiterlimit`,strokeWidth:1,"stroke-width":`strokeWidth`,strokeOpacity:1,"stroke-opacity":`strokeOpacity`,suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":`textAnchor`,textDecoration:1,"text-decoration":`textDecoration`,textLength:1,textRendering:1,"text-rendering":`textRendering`,to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":`underlinePosition`,underlineThickness:1,"underline-thickness":`underlineThickness`,unicode:0,unicodeBidi:1,"unicode-bidi":`unicodeBidi`,unicodeRange:1,"unicode-range":`unicodeRange`,unitsPerEm:1,"units-per-em":`unitsPerEm`,unselectable:0,vAlphabetic:1,"v-alphabetic":`vAlphabetic`,values:0,vectorEffect:1,"vector-effect":`vectorEffect`,version:0,vertAdvY:1,"vert-adv-y":`vertAdvY`,vertOriginX:1,"vert-origin-x":`vertOriginX`,vertOriginY:1,"vert-origin-y":`vertOriginY`,vHanging:1,"v-hanging":`vHanging`,vIdeographic:1,"v-ideographic":`vIdeographic`,viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":`vMathematical`,vocab:0,widths:0,wordSpacing:1,"word-spacing":`wordSpacing`,writingMode:1,"writing-mode":`writingMode`,x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":`xHeight`,xlinkActuate:1,"xlink:actuate":`xlinkActuate`,xlinkArcrole:1,"xlink:arcrole":`xlinkArcrole`,xlinkHref:1,"xlink:href":`xlinkHref`,xlinkRole:1,"xlink:role":`xlinkRole`,xlinkShow:1,"xlink:show":`xlinkShow`,xlinkTitle:1,"xlink:title":`xlinkTitle`,xlinkType:1,"xlink:type":`xlinkType`,xmlBase:1,"xml:base":`xmlBase`,xmlLang:1,"xml:lang":`xmlLang`,xmlns:0,"xml:space":`xmlSpace`,xmlnsXlink:1,"xmlns:xlink":`xmlnsXlink`,xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),je=i((e=>{var t=0,n=1,r=2,i=3,a=4,o=5,s=6;function c(e){return u.hasOwnProperty(e)?u[e]:null}function l(e,t,n,o,s,c,l){this.acceptsBooleans=t===r||t===i||t===a,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=l}var u={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(e=>{u[e]=new l(e,t,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(([e,t])=>{u[e]=new l(e,n,!1,t,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(e=>{u[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(e=>{u[e]=new l(e,r,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(e=>{u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(e=>{u[e]=new l(e,i,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(e=>{u[e]=new l(e,a,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(e=>{u[e]=new l(e,s,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(e=>{u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-\:]([a-z])/g,f=e=>e[1].toUpperCase();`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!1,!1)});var p=`xlinkHref`;u[p]=new l(`xlinkHref`,n,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:m,SAME:h,possibleStandardNames:g}=Ae(),_=RegExp.prototype.test.bind(RegExp(`^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`)),v=Object.keys(g).reduce((e,t)=>{let n=g[t];return n===h?e[t]=t:n===m?e[t.toLowerCase()]=t:e[t]=n,e},{});e.BOOLEAN=i,e.BOOLEANISH_STRING=r,e.NUMERIC=o,e.OVERLOADED_BOOLEAN=a,e.POSITIVE_NUMERIC=s,e.RESERVED=t,e.STRING=n,e.getPropertyInfo=c,e.isCustomAttribute=_,e.possibleStandardNames=v})),Me=i(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
3
3
  `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Ne=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Me());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Pe=i(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),u=Ne();u=l(u);var d=/^--[a-zA-Z0-9_-]+$/,f=/-([a-z])/g,p=/^[^-]+$/,m=/^-(webkit|moz|ms|o|khtml)-/,h=/^-(ms)-/,g=e=>!e||p.test(e)||d.test(e),_=(e,t)=>t.toUpperCase(),v=(e,t)=>`${t}-`,y=(e,t={})=>g(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(h,v):e.replace(m,v),e.replace(f,_));function b(e,t){let n={};return!e||typeof e!=`string`||(0,u.default)(e,(e,r)=>{e&&r&&(n[y(e,t)]=r)}),n}t.exports=b})),Fe=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=o,e.setStyleProp=c;var r=n(),i=t(Pe()),a=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function o(e,t){return e.includes(`-`)?!a.has(e):!!(t&&typeof t.is==`string`)}var s={reactCompat:!0};function c(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,i.default)(e,s)}catch{t.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(`.`)[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),e.canTextBeChildOfNode=t=>!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name),e.returnFirstArg=e=>e})),Ie=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=je(),n=Fe(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e={},o){let c={},l=!!(e.type&&a[e.type]);for(let a in e){let u=e[a];if((0,t.isCustomAttribute)(a)){c[a]=u;continue}let d=a.toLowerCase(),f=s(d);if(f){let e=(0,t.getPropertyInfo)(f);switch(r.includes(f)&&i.includes(o)&&!l&&(f=s(`default`+d)),c[f]=u,e?.type){case t.BOOLEAN:c[f]=!0;break;case t.OVERLOADED_BOOLEAN:u===``&&(c[f]=!0);break}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[a]=u)}return(0,n.setStyleProp)(e.style,c),c}function s(e){return t.possibleStandardNames[e]}})),Le=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var i=(Ee(),r(Ce)),a=n(),o=t(Ie()),s=Fe(),c={cloneElement:a.cloneElement,createElement:a.createElement,isValidElement:a.isValidElement};function l(e,t={}){let n=[],r=typeof t.replace==`function`,i=t.transform??s.returnFirstArg,{cloneElement:a,createElement:f,isValidElement:p}=t.library??c,m=e.length;u(e);for(let c=0;c<m;c++){let u=e[c];if(r){let e=t.replace?.call(t,u,c);if(p(e)){m>1&&(e=a(e,{key:e.key??c})),n.push(i(e,u,c));continue}}if(u.type===`text`){let e=!u.data.trim().length;if(e&&u.parent&&!(0,s.canTextBeChildOfNode)(u.parent)||t.trim&&e)continue;n.push(i(u.data,u,c));continue}let h=u,g={};d(h)?((0,s.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,o.default)(h.attribs,h.name));let _;switch(u.type){case`script`:case`style`:u.children[0]&&(g.dangerouslySetInnerHTML={__html:u.children[0].data});break;case`tag`:u.name===`textarea`&&u.children[0]?g.defaultValue=u.children[0].data:u.children?.length&&(_=l(u.children,t));break;default:continue}m>1&&(g.key=c),n.push(i(f(u.name,g,_),u,c))}return n.length===1?n[0]:n}function u(e){for(let t of e)(t.type===`tag`||t.type===`script`||t.type===`style`)&&(Object.setPrototypeOf(t,i.Element.prototype),u(t.children))}function d(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,s.isCustomComponent)(e.name,e.attribs)}})),Re=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var n=t(ke());e.htmlToDOM=n.default,e.attributesToProps=t(Ie()).default;var i=t(Le());e.domToReact=i.default;var a=(Ee(),r(Ce));Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];let r=Object.assign(Object.assign({},t?.htmlparser2??o),{trustedTypePolicy:t?.trustedTypePolicy});return(0,i.default)((0,n.default)(e,r),t)}})),I=a(n()),ze=a(Re(),1),Be=ze.default.default||ze.default;function Ve(e){return e?e.split(`,`).map(e=>{let[t,n,r]=e.split(`:`).map(e=>e.trim());return{key:t??``,...n?{label:n}:{},...r?{unit:r}:{}}}).filter(e=>e.key):[]}function He(e){let t={},n=new Set;for(let r of e)if(r.metrics&&typeof r.metrics==`object`&&!Array.isArray(r.metrics))for(let e in r.metrics){if(n.has(e))continue;n.add(e);let i=r.metrics[e];typeof i==`number`&&(t[e]=f(i))}return{latest:t}}var Ue=/\{\{\s*([a-zA-Z0-9_.]+)\s*\}\}/g,We=e=>e.replace(/[&<>"]/g,e=>({"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`})[e]??e);function Ge(e,t){return e.replace(Ue,(e,n)=>{let r=Ke(t,n);return r==null?`—`:We(r)})}function Ke(e,t){let n=t.split(`.`);if(n[0]===`latest`&&n[1])return e.latest[n[1]]}function qe(e){let t=(e??[]).slice().reverse(),n={};for(let e of t){let t=e.metrics&&typeof e.metrics==`object`&&!Array.isArray(e.metrics)?e.metrics:{};for(let r in t){let i=t[r];typeof i==`number`&&isFinite(i)&&(n[r]??=[]).push({t:e.ts,v:i})}}return n}function Je(e,t){let n=new Set;for(let r of t)for(let t of e[r]??[])n.add(t.t);let r=[...n].sort(),i=new Map(r.map((e,t)=>[e,t])),a=r.map(e=>({__t:e}));for(let n of t)for(let t of e[n]??[])a[i.get(t.t)][n]=t.v;return a}function Ye(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ye(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function L(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ye(e))&&(r&&(r+=` `),r+=t);return r}var Xe=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function Ze(e){return typeof e==`string`?Xe.includes(e):!1}var Qe=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function $e(e){return typeof e==`string`?Qe.has(e):!1}function et(e){return typeof e==`string`&&e.startsWith(`data-`)}function tt(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&($e(n)||et(n))&&(t[n]=e[n]);return t}function nt(e){if(e==null)return null;if((0,I.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return tt(t)}return typeof e==`object`&&!Array.isArray(e)?tt(e):null}function rt(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&($e(n)||et(n)||Ze(n))&&(t[n]=e[n]);return t}function it(e){return e==null?null:(0,I.isValidElement)(e)?rt(e.props):typeof e==`object`&&!Array.isArray(e)?rt(e):null}var at=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function ot(){return ot=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ot.apply(null,arguments)}function st(e,t){if(e==null)return{};var n,r,i=ct(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ct(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var lt=(0,I.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=st(e,at),d=a||{width:r,height:i,x:0,y:0},f=L(`recharts-surface`,o);return I.createElement(`svg`,ot({},rt(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),I.createElement(`title`,null,c),I.createElement(`desc`,null,l),n)}),ut=[`children`,`className`];function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dt.apply(null,arguments)}function ft(e,t){if(e==null)return{};var n,r,i=pt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mt=I.forwardRef((e,t)=>{var n=e.children,r=e.className,i=ft(e,ut),a=L(`recharts-layer`,r);return I.createElement(`g`,dt({className:a},rt(i),{ref:t}),n)}),ht=(0,I.createContext)(null);function R(e){return function(){return e}}var gt=Math.PI,_t=2*gt,vt=1e-6,yt=_t-vt;function bt(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xt(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return bt;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var St=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?bt:xt(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>vt)if(!(Math.abs(u*s-c*l)>vt)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((gt-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>vt&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>vt||Math.abs(this._y1-l)>vt)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%_t+_t),d>yt?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>vt&&this._append`A${n},${n},0,${+(d>=gt)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function Ct(){return new St}Ct.prototype=St.prototype;function wt(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new St(t)}Array.prototype.slice;function Tt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Et(e){this._context=e}Et.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Dt(e){return new Et(e)}function Ot(e){return e[0]}function kt(e){return e[1]}function At(e,t){var n=R(!0),r=null,i=Dt,a=null,o=wt(s);e=typeof e==`function`?e:e===void 0?Ot:R(e),t=typeof t==`function`?t:t===void 0?kt:R(t);function s(s){var c,l=(s=Tt(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function jt(e,t,n){var r=null,i=R(!0),a=null,o=Dt,s=null,c=wt(l);e=typeof e==`function`?e:e===void 0?Ot:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?kt:R(+n);function l(l){var u,d,f,p=(l=Tt(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return At().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:R(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Mt=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Nt(e){return new Mt(e,!0)}function Pt(e){return new Mt(e,!1)}function Ft(){}function It(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Lt(e){this._context=e}Lt.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:It(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:It(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Rt(e){return new Lt(e)}function zt(e){this._context=e}zt.prototype={areaStart:Ft,areaEnd:Ft,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:It(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bt(e){return new zt(e)}function Vt(e){this._context=e}Vt.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:It(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ht(e){return new Vt(e)}function Ut(e){this._context=e}Ut.prototype={areaStart:Ft,areaEnd:Ft,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Wt(e){return new Ut(e)}function Gt(e){return e<0?-1:1}function Kt(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Gt(a)+Gt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function qt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jt(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Yt(e){this._context=e}Yt.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:Jt(this,this._t0,qt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Jt(this,qt(this,n=Kt(this,e,t)),n);break;default:Jt(this,this._t0,n=Kt(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Xt(e){this._context=new Zt(e)}(Xt.prototype=Object.create(Yt.prototype)).point=function(e,t){Yt.prototype.point.call(this,t,e)};function Zt(e){this._context=e}Zt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Qt(e){return new Yt(e)}function $t(e){return new Xt(e)}function en(e){this._context=e}en.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=tn(e),i=tn(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function tn(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function nn(e){return new en(e)}function rn(e,t){this._context=e,this._t=t}rn.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function an(e){return new rn(e,.5)}function on(e){return new rn(e,0)}function sn(e){return new rn(e,1)}function cn(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ln(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function un(e,t){return e[t]}function dn(e){let t=[];return t.key=e,t}function fn(){var e=R([]),t=ln,n=cn,r=un;function i(i){var a=Array.from(e.apply(this,arguments),dn),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Tt(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?ln:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??cn,i):n},i}function pn(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}cn(e,t)}}function mn(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}cn(e,t)}}function hn(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,cn(e,t)}}function gn(e){return e===`__proto__`}function _n(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function vn(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function yn(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(yn).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function bn(e){if(Array.isArray(e))return e.map(vn);if(typeof e==`symbol`)return[e];e=yn(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function xn(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(gn(t))return n;let r=e[t];return r===void 0?_n(t)&&!Object.hasOwn(e,t)?xn(e,bn(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=vn(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Sn(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),gn(t))return n;let r=e[t];return r===void 0?n:r}}}function Sn(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||gn(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Cn=4;function wn(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cn),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Tn(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+wn(i)+n},``)}var En=e=>e===0?0:e>0?1:-1,Dn=e=>typeof e==`number`&&e!=+e,On=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,z=e=>(typeof e==`number`||e instanceof Number)&&!Dn(e),kn=e=>z(e)||typeof e==`string`,An=0,jn=e=>{var t=++An;return`${e||``}${t}`},Mn=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!z(e)&&typeof e!=`string`)return n;var i;if(On(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Dn(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Nn=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Pn(e,t,n){return z(e)&&z(t)?wn(e+n*(t-e)):t}function Fn(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):xn(e,t))===n)}var In=e=>e==null,Ln=e=>In(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function Rn(e){return e!=null}function zn(){}var Bn=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Vn=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,I.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Ze(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Hn=(e,t,n)=>r=>(e(t,n,r),null),Un=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Ze(i)&&typeof a==`function`&&(r||={},r[i]=Hn(a,t,n))}),r};function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wn(Object(n),!0).forEach(function(t){Kn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kn(e,t,n){return(t=qn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(e){var t=Jn(e,`string`);return typeof t==`symbol`?t:t+``}function Jn(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yn(e,t){var n=Gn({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function Xn(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function Zn(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function Qn(e){return e}function $n(e){return function(t){return xn(t,e)}}function er(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function tr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nr(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function rr(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var ir=`[object RegExp]`,ar=`[object String]`,or=`[object Number]`,sr=`[object Boolean]`,cr=`[object Arguments]`,lr=`[object Symbol]`,ur=`[object Date]`,dr=`[object Map]`,fr=`[object Set]`,pr=`[object Array]`,mr=`[object ArrayBuffer]`,hr=`[object Object]`,gr=`[object DataView]`,_r=`[object Uint8Array]`,vr=`[object Uint8ClampedArray]`,yr=`[object Uint16Array]`,br=`[object Uint32Array]`,xr=`[object Int8Array]`,Sr=`[object Int16Array]`,Cr=`[object Int32Array]`,wr=`[object Float32Array]`,Tr=`[object Float64Array]`,Er=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function Dr(e){return Er.Buffer!==void 0&&Er.Buffer.isBuffer(e)}function Or(e,t){return kr(e,void 0,e,new Map,t)}function kr(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(er(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=kr(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,kr(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(kr(a,void 0,n,r,i));return t}if(Dr(e))return e.subarray();if(tr(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=kr(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Ar(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Ar(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Ar(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Ar(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Ar(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Ar(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Ar(t,e,n,r,i),t}if(typeof e==`object`&&jr(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Ar(t,e,n,r,i),t}return e}function Ar(e,t,n=e,r,i){let a=[...Object.keys(t),...nr(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=kr(t[s],s,n,r,i))}}function jr(e){switch(rr(e)){case cr:case pr:case mr:case gr:case sr:case ur:case wr:case Tr:case xr:case Sr:case Cr:case dr:case or:case hr:case ir:case fr:case ar:case lr:case _r:case vr:case yr:case br:return!0;default:return!1}}function Mr(e){return kr(e,void 0,e,new Map,void 0)}function Nr(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Pr(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Fr(e,t,n){return typeof n==`function`?Ir(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Ir(t,r,e,s,!1):!!c},new Map,!0):Fr(e,t,()=>void 0)}function Ir(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Lr(e,t,n,r);case`function`:return Object.keys(t).length>0?Ir(e,{...t},n,r,i):Nr(e,t);default:return Pr(e)&&i?typeof t==`string`?t===``:!0:Nr(e,t)}}function Lr(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return zr(e,t,n,r);if(t instanceof Map)return Rr(e,t,n,r);if(t instanceof Set)return Br(e,t,n,r);let i=Object.keys(t);if(e==null||er(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!er(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function Rr(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function zr(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Br(e,t,n,r){return t.size===0?!0:e instanceof Set?zr([...e],[...t],n,r):!1}function Vr(e,t){return Fr(e,t,()=>void 0)}function Hr(e){return e=Mr(e),t=>Vr(t,e)}function Ur(e,t){return Or(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(rr(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Ar(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case or:case ar:case sr:{let t=new e.constructor(e?.valueOf());return Ar(t,e),t}case cr:{let t={};return Ar(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Wr(e){return Ur(e)}var Gr=/^(?:0|[1-9]\d*)$/;function Kr(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Gr.test(e)}}function qr(e){return typeof e==`object`&&!!e&&rr(e)===`[object Arguments]`}function Jr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&_n(t)&&e?.[t]==null?bn(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||qr(r))&&Kr(t)&&t<r.length))return!1;r=r[t]}return!0}function Yr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=vn(e);break}return t=Wr(t),function(n){let r=xn(n,e);return r===void 0?Jr(n,e):t===void 0?r===void 0:Vr(r,t)}}function Xr(e){if(e==null)return Qn;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Yr(e[0],e[1]):Hr(e);case`string`:case`symbol`:case`number`:return $n(e)}}function Zr(e){return Number.isSafeInteger(e)&&e>=0}function Qr(e){return e!=null&&typeof e!=`function`&&Zr(e.length)}function $r(e){return typeof e==`object`&&!!e}function ei(e){return $r(e)&&Qr(e)}function ti(e,t=Qn){return ei(e)?Xn(Array.from(e),Zn(Xr(t),1)):[]}function ni(e,t,n){return t===!0?ti(e,n):typeof t==`function`?ti(e,t):e}var ri=(0,I.createContext)(null),ii=c(),ai=e=>e,B=()=>{var e=(0,I.useContext)(ri);return e?e.store.dispatch:ai},oi=()=>{},si=()=>oi,ci=(e,t)=>e===t;function V(e){var t=(0,I.useContext)(ri),n=(0,I.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:oi,[t,e]);return(0,ii.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:si,t?t.store.getState:oi,t?t.store.getState:oi,n,ci)}function li(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function ui(e,t,n){return Pr(n)&&(typeof t==`number`&&Qr(n)&&Kr(t)&&t<n.length||typeof t==`string`&&t in n)?Nr(n[t],e):!1}function di(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var fi=(e,t,n)=>{if(e!==t){let r=di(e),i=di(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function pi(e){return typeof e==`symbol`||e instanceof Symbol}var mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hi=/^\w*$/;function gi(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||pi(e)?!0:typeof e==`string`&&(hi.test(e)||!mi.test(e))||t!=null&&Object.hasOwn(t,e)}function _i(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||gi(e)?e:{key:e,path:bn(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=fi(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function vi(e,...t){let n=t.length;return n>1&&ui(e,t[0],t[1])?t=[]:n>2&&ui(t[0],t[1],t[2])&&(t=[t[0]]),_i(e,li(t),[`asc`])}var yi=e=>e.legend.settings,bi=e=>e.legend.size;P([e=>e.legend.payload,yi],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?vi(r,n):r});function xi(e,t){return Ei(e)||Ti(e,t)||Ci(e,t)||Si()}function Si(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ci(e,t){if(e){if(typeof e==`string`)return wi(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wi(e,t):void 0}}function wi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ti(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ei(e){if(Array.isArray(e))return e}var Di=1;function Oi(e,t){return Math.abs(e.height-t.height)>Di||Math.abs(e.left-t.left)>Di||Math.abs(e.top-t.top)>Di||Math.abs(e.width-t.width)>Di}function ki(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=xi((0,I.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,I.useRef)(null),a=(0,I.useRef)(n);a.current=n;var o=(0,I.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=ki(e);if(Oi(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=ki(e);Oi(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,I.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function ji(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Mi=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Ni=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Pi={INIT:`@@redux/INIT${Ni()}`,REPLACE:`@@redux/REPLACE${Ni()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ni()}`};function Fi(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ii(e,t,n){if(typeof e!=`function`)throw Error(ji(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ji(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ji(1));return n(Ii)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ji(3));return i}function d(e){if(typeof e!=`function`)throw Error(ji(4));if(c)throw Error(ji(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ji(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!Fi(e))throw Error(ji(7));if(e.type===void 0)throw Error(ji(8));if(typeof e.type!=`string`)throw Error(ji(17));if(c)throw Error(ji(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ji(10));r=e,f({type:Pi.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ji(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Mi](){return this}}}return f({type:Pi.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Mi]:m}}function Li(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Pi.INIT})===void 0)throw Error(ji(12));if(n(void 0,{type:Pi.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ji(13))})}function Ri(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Li(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(ji(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function zi(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Bi(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ji(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=zi(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Vi(e){return Fi(e)&&`type`in e&&typeof e.type==`string`}var Hi=Symbol.for(`immer-nothing`),Ui=Symbol.for(`immer-draftable`),Wi=Symbol.for(`immer-state`);function Gi(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ki=Object,qi=Ki.getPrototypeOf,Ji=`constructor`,Yi=`prototype`,Xi=`configurable`,Zi=`enumerable`,Qi=`writable`,$i=`value`,ea=e=>!!e&&!!e[Wi];function ta(e){return e?ia(e)||da(e)||!!e[Ui]||!!e[Ji]?.[Ui]||fa(e)||pa(e):!1}var na=Ki[Yi][Ji].toString(),ra=new WeakMap;function ia(e){if(!e||!ma(e))return!1;let t=qi(e);if(t===null||t===Ki[Yi])return!0;let n=Ki.hasOwnProperty.call(t,Ji)&&t[Ji];if(n===Object)return!0;if(!ha(n))return!1;let r=ra.get(n);return r===void 0&&(r=Function.toString.call(n),ra.set(n,r)),r===na}function aa(e,t,n=!0){oa(e)===0?(n?Reflect.ownKeys(e):Ki.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function oa(e){let t=e[Wi];return t?t.type_:da(e)?1:fa(e)?2:pa(e)?3:0}var sa=(e,t,n=oa(e))=>n===2?e.has(t):Ki[Yi].hasOwnProperty.call(e,t),ca=(e,t,n=oa(e))=>n===2?e.get(t):e[t],la=(e,t,n,r=oa(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function ua(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var da=Array.isArray,fa=e=>e instanceof Map,pa=e=>e instanceof Set,ma=e=>typeof e==`object`,ha=e=>typeof e==`function`,ga=e=>typeof e==`boolean`;function _a(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var va=e=>e.copy_||e.base_,ya=e=>e.modified_?e.copy_:e.base_;function ba(e,t){if(fa(e))return new Map(e);if(pa(e))return new Set(e);if(da(e))return Array[Yi].slice.call(e);let n=ia(e);if(t===!0||t===`class_only`&&!n){let t=Ki.getOwnPropertyDescriptors(e);delete t[Wi];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Qi]===!1&&(a[Qi]=!0,a[Xi]=!0),(a.get||a.set)&&(t[i]={[Xi]:!0,[Qi]:!0,[Zi]:a[Zi],[$i]:e[i]})}return Ki.create(qi(e),t)}else{let t=qi(e);if(t!==null&&n)return{...e};let r=Ki.create(t);return Ki.assign(r,e)}}function xa(e,t=!1){return wa(e)||ea(e)||!ta(e)?e:(oa(e)>1&&Ki.defineProperties(e,{set:Ca,add:Ca,clear:Ca,delete:Ca}),Ki.freeze(e),t&&aa(e,(e,t)=>{xa(t,!0)},!1),e)}function Sa(){Gi(2)}var Ca={[$i]:Sa};function wa(e){return e===null||!ma(e)?!0:Ki.isFrozen(e)}var Ta=`MapSet`,Ea=`Patches`,Da=`ArrayMethods`,Oa={};function ka(e){let t=Oa[e];return t||Gi(0,e),t}var Aa=e=>!!Oa[e],ja,Ma=()=>ja,Na=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Aa(Ta)?ka(Ta):void 0,arrayMethodsPlugin_:Aa(Da)?ka(Da):void 0});function Pa(e,t){t&&(e.patchPlugin_=ka(Ea),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fa(e){Ia(e),e.drafts_.forEach(Ra),e.drafts_=null}function Ia(e){e===ja&&(ja=e.parent_)}var La=e=>ja=Na(ja,e);function Ra(e){let t=e[Wi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function za(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Wi].modified_&&(Fa(t),Gi(4)),ta(e)&&(e=Ba(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Wi].base_,e,t)}else e=Ba(t,n);return Va(t,e,!0),Fa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Hi?void 0:e}function Ba(e,t){if(wa(t))return t;let n=t[Wi];if(!n)return Ya(t,e.handledSet_,e);if(!Ua(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);qa(n,e)}return n.copy_}function Va(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xa(t,n)}function Ha(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ua=(e,t)=>e.scope_===t,Wa=[];function Ga(e,t,n,r){let i=va(e),a=e.type_;if(r!==void 0&&ca(i,r,a)===t){la(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;aa(i,(e,n)=>{if(ea(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Wa;for(let e of o)la(i,e,n,a)}function Ka(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Ua(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ya(i);Ga(e,i.draft_??i,a,n),qa(i,r)})}function qa(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Ha(e)}}function Ja(e,t,n){let{scope_:r}=e;if(ea(n)){let i=n[Wi];Ua(i,r)&&i.callbacks_.push(function(){ro(e),Ga(e,n,ya(i),t)})}else ta(n)&&e.callbacks_.push(function(){let i=va(e);e.type_===3?i.has(n)&&Ya(n,r.handledSet_,r):ca(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ya(ca(e.copy_,t,e.type_),r.handledSet_,r)})}function Ya(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ea(e)||t.has(e)||!ta(e)||wa(e)?e:(t.add(e),aa(e,(r,i)=>{if(ea(i)){let t=i[Wi];Ua(t,n)&&(la(e,r,ya(t),e.type_),Ha(t))}else ta(i)&&Ya(i,t,n)}),e)}function Xa(e,t){let n=da(e),r={type_:+!!n,scope_:t?t.scope_:Ma(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Za;n&&(i=[r],a=Qa);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Za={get(e,t){if(t===Wi)return e;if(t===`constructor`||t===`__proto__`){let n=va(e)[t];return new Proxy(n||{},{get:(e,t)=>t===`__proto__`||t===`prototype`?Object.freeze(Object.create(null)):Reflect.get(e,t),set:()=>!0,apply:(e,t,n)=>Reflect.apply(e,t,n)})}let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=va(e);if(!sa(i,t,e.type_))return eo(e,i,t);let a=i[t];if(e.finalized_||!ta(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&_a(t))return a;if(a===$a(e.base_,t)){ro(e);let n=e.type_===1?+t:t,r=ao(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t===`constructor`||t===`__proto__`||t===`prototype`?!1:t in va(e)},ownKeys(e){return Reflect.ownKeys(va(e))},set(e,t,n){if(t===`constructor`||t===`__proto__`||t===`prototype`)return!0;let r=to(va(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=$a(va(e),t),i=r?.[Wi];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(ua(n,r)&&(n!==void 0||sa(e.base_,t,e.type_)))return!0;ro(e),no(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Ja(e,t,n),!0)},deleteProperty(e,t){return ro(e),$a(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),no(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=va(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Qi]:!0,[Xi]:e.type_!==1||t!==`length`,[Zi]:r[Zi],[$i]:n[t]}},defineProperty(){Gi(11)},getPrototypeOf(e){return qi(e.base_)},setPrototypeOf(){Gi(12)}},Qa={};for(let e in Za){let t=Za[e];Qa[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Qa.deleteProperty=function(e,t){return Qa.set.call(this,e,t,void 0)},Qa.set=function(e,t,n){return Za.set.call(this,e[0],t,n,e[0])};function $a(e,t){let n=e[Wi];return(n?va(n):e)[t]}function eo(e,t,n){let r=to(t,n);return r?$i in r?r[$i]:r.get?.call(e.draft_):void 0}function to(e,t){if(!(t in e))return;let n=qi(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=qi(n)}}function no(e){e.modified_||(e.modified_=!0,e.parent_&&no(e.parent_))}function ro(e){e.copy_||=(e.assigned_=new Map,ba(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var io=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(ha(e)&&!ha(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}ha(t)||Gi(6),n!==void 0&&!ha(n)&&Gi(7);let r;if(ta(e)){let i=La(this),a=ao(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Fa(i):Ia(i)}return Pa(i,n),za(r,i)}else if(!e||!ma(e)){if(r=t(e),r===void 0&&(r=e),r===Hi&&(r=void 0),this.autoFreeze_&&xa(r,!0),n){let t=[],i=[];ka(Ea).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Gi(1,e)},this.produceWithPatches=(e,t)=>{if(ha(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},ga(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ga(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ga(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ta(e)||Gi(8),ea(e)&&(e=oo(e));let t=La(this),n=ao(t,e,void 0);return n[Wi].isManual_=!0,Ia(t),n}finishDraft(e,t){let n=e&&e[Wi];(!n||!n.isManual_)&&Gi(9);let{scope_:r}=n;return Pa(r,t),za(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=ka(Ea).applyPatches_;return ea(e)?r(e,t):this.produce(e,e=>r(e,t))}};function ao(e,t,n,r){let[i,a]=fa(t)?ka(Ta).proxyMap_(t,n):pa(t)?ka(Ta).proxySet_(t,n):Xa(t,n);return(n?.scope_??Ma()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ka(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function oo(e){return ea(e)||Gi(10,e),so(e)}function so(e){if(!ta(e)||wa(e))return e;let t=e[Wi],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ba(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=ba(e,!0);return aa(n,(e,t)=>{la(n,e,so(t))},r),t&&(t.finalized_=!1),n}var co=new io().produce,H=e=>e;function lo(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var uo=lo(),fo=lo,po=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?zi:zi.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function mo(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Ss(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Vi(t)&&t.type===e,n}var ho=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function go(e){return ta(e)?co(e,()=>{}):e}function _o(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function vo(e){return typeof e==`boolean`}var yo=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new ho;return t&&(vo(t)?a.push(uo):a.push(fo(t.extraArgument))),a},bo=`RTK_autoBatch`,U=()=>e=>({payload:e,meta:{[bo]:!0}}),xo=e=>t=>{setTimeout(t,e)},So=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Co=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?So(window.requestAnimationFrame,100):xo(10):e.type===`callback`?e.queueNotification:xo(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[bo],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},wo=e=>function(t){let{autoBatch:n=!0}=t??{},r=new ho(e);return n&&r.push(Co(typeof n==`object`?n:void 0)),r};function To(e){let t=yo(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(Fi(n))c=Ri(n);else throw Error(Ss(1));let l;l=typeof r==`function`?r(t):t();let u=zi;i&&(u=po({trace:!1,...typeof i==`object`&&i}));let d=wo(Bi(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return Ii(c,o,p)}function Eo(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Ss(28));if(r in t)throw Error(Ss(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Do(e){return typeof e==`function`}function Oo(e,t){let[n,r,i]=Eo(t),a;if(Do(e))a=()=>go(e());else{let t=go(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(ea(e)){let r=n(e,t);return r===void 0?e:r}else if(ta(e))return co(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var ko=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Ao=(e=21)=>{let t=``,n=e;for(;n--;)t+=ko[Math.random()*64|0];return t},jo=Symbol.for(`rtk-slice-createasyncthunk`);function Mo(e,t){return`${e}/${t}`}function No({creators:e}={}){let t=e?.asyncThunk?.[jo];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Ss(11));let i=(typeof e.reducers==`function`?e.reducers(Io()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Ss(12));if(n in o.sliceCaseReducersByType)throw Error(Ss(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Mo(n,r),createNotation:typeof e.reducers==`function`};Ro(a)?Bo(o,a,s,t):Lo(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Eo(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Oo(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=_o(d,r,m)),i}function i(t=l){return _o(_o(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Po(a,t,()=>_o(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Po(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var Fo=No();function Io(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function Lo({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!zo(r))throw Error(Ss(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?mo(e,o):mo(e))}function Ro(e){return e._reducerDefinitionType===`asyncThunk`}function zo(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Bo({type:e,reducerName:t},n,r,i){if(!i)throw Error(Ss(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Vo,pending:s||Vo,rejected:c||Vo,settled:l||Vo})}function Vo(){}var Ho=`task`,Uo=`listener`,Wo=`completed`,Go=`cancelled`,Ko=`task-${Go}`,qo=`task-${Wo}`,Jo=`${Uo}-${Go}`,Yo=`${Uo}-${Wo}`,Xo=class{constructor(e){this.code=e,this.message=`${Ho} ${Go} (reason: ${e})`}code;name=`TaskAbortError`;message},Zo=(e,t)=>{if(typeof e!=`function`)throw TypeError(Ss(32))},Qo=()=>{},$o=(e,t=Qo)=>(e.catch(t),e),es=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),ts=e=>{if(e.aborted)throw new Xo(e.reason)};function ns(e,t){let n=Qo;return new Promise((r,i)=>{let a=()=>i(new Xo(e.reason));if(e.aborted){a();return}n=es(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Qo})}var rs=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof Xo?`cancelled`:`rejected`,error:e}}finally{t?.()}},is=e=>t=>$o(ns(e,t).then(t=>(ts(e),t))),as=e=>{let t=is(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:os}=Object,ss={},cs=`listenerMiddleware`,ls=(e,t)=>{let n=t=>es(e,()=>t.abort(e.reason));return(r,i)=>{Zo(r,`taskExecutor`);let a=new AbortController;n(a);let o=rs(async()=>{ts(e),ts(a.signal);let t=await r({pause:is(a.signal),delay:as(a.signal),signal:a.signal});return ts(a.signal),t},()=>a.abort(qo));return i?.autoJoin&&t.push(o.catch(Qo)),{result:is(e)(o),cancel(){a.abort(Ko)}}}},us=(e,t)=>{let n=async(n,r)=>{ts(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await ns(t,Promise.race(a));return ts(t),e}finally{i()}};return((e,t)=>$o(n(e,t)))},ds=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=mo(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Ss(21));return Zo(a,`options.listener`),{predicate:i,type:t,effect:a}},fs=os(e=>{let{type:t,predicate:n,effect:r}=ds(e);return{id:Ao(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Ss(22))}}},{withTypes:()=>fs}),ps=(e,t)=>{let{type:n,effect:r,predicate:i}=ds(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},ms=e=>{e.pending.forEach(e=>{e.abort(Jo)})},hs=(e,t)=>()=>{for(let e of t.keys())ms(e);e.clear()},gs=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},_s=os(mo(`${cs}/add`),{withTypes:()=>_s}),vs=mo(`${cs}/removeAll`),ys=os(mo(`${cs}/remove`),{withTypes:()=>ys}),bs=(...e)=>{console.error(`${cs}/error`,...e)},xs=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=bs}=e;Zo(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&ms(e)}),c=(e=>s(ps(t,e)??fs(e)));os(c,{withTypes:()=>c});let l=e=>{let n=ps(t,e);return n&&(n.unsubscribe(),e.cancelActive&&ms(n)),!!n};os(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=us(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,os({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:as(u.signal),pause:is(u.signal),extra:a,signal:u.signal,fork:ls(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Jo),n.delete(e))})},cancel:()=>{u.abort(Jo),e.pending.delete(u)},throwIfCancelled:()=>{ts(u.signal)}})))}catch(e){e instanceof Xo||gs(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(Yo),i(e),e.pending.delete(u)}},d=hs(t,n);return{middleware:e=>n=>r=>{if(!Vi(r))return n(r);if(_s.match(r))return c(r.payload);if(vs.match(r)){d();return}if(ys.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===ss)throw Error(Ss(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,gs(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=ss}return s},startListening:c,stopListening:l,clearListeners:d}};function Ss(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Cs=Fo({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),ws=Cs.actions,Ts=ws.setMargin,Es=ws.setLayout,Ds=ws.setChartSize,Os=ws.setScale,ks=Cs.reducer;function As(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function W(e){return Number.isFinite(e)}function js(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function Ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ms(Object(n),!0).forEach(function(t){Ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ps(e,t,n){return(t=Fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fs(e){var t=Is(e,`string`);return typeof t==`symbol`?t:t+``}function Is(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function G(e,t,n){return In(e)||In(t)?n:kn(t)?xn(e,t,n):typeof t==`function`?t(e):n}var Ls=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&z(e[a]))return Ns(Ns({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&z(e[o]))return Ns(Ns({},e),{},{[o]:e[o]+(i||0)})}return e},Rs=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,zs=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},Bs=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?En(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return W(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Rn):c&&l?l.map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Rn):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Rn):o.domain().map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Rn)},Vs={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=Dn(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:pn,none:cn,silhouette:mn,wiggle:hn,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=Dn(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},Hs=(e,t,n)=>{var r=Vs[n]??cn,i=fn().keys(t).value((e,t)=>Number(G(e,t,0))).order(ln).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=G(e[i],t[r],0);Array.isArray(a)&&a.length===2&&z(a[0])&&z(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function Us(e){return e==null?void 0:String(e)}function Ws(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!In(i[t.dataKey])){var s=Fn(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=G(i,In(o)?t.dataKey:o),l=t.scale.map(c);return z(l)?l:null}var Gs=e=>{var t=e.flat(2).filter(z);return[Math.min(...t),Math.max(...t)]},Ks=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],qs=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return Ks(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=Gs(As(r,t,n));return!W(i[0])||!W(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},Js=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ys=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xs=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=vi(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function Zs(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return Ns(Ns({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Qs(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var $s=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},ec=(e,t)=>t===`centric`?e.angle:e.radius,tc=e=>e.layout.width,nc=e=>e.layout.height,rc=e=>e.layout.scale,ic=e=>e.layout.margin,ac=P(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),oc=P(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),sc=`data-recharts-item-index`;function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cc(Object(n),!0).forEach(function(t){uc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uc(e,t,n){return(t=dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dc(e){var t=fc(e,`string`);return typeof t==`symbol`?t:t+``}function fc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pc=e=>e.brush.height;function mc(e){return oc(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function hc(e){return oc(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function gc(e){return ac(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function _c(e){return ac(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var vc=P([tc,nc,ic,pc,mc,hc,gc,_c,yi,bi],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=lc(lc({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=Ls(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return lc(lc({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),yc=P(vc,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),bc=P(tc,nc,(e,t)=>({x:0,y:0,width:e,height:t})),xc=(0,I.createContext)(null),Sc=()=>(0,I.useContext)(xc)!=null,Cc=e=>e.brush,wc=P([Cc,vc,ic],(e,t,n)=>({height:e.height,x:z(e.x)?e.x:t.left,y:z(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:z(e.width)?e.width:t.width}));function Tc(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Ec(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Tc(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function Dc(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return Ec(e,t,{leading:r,maxWait:t,trailing:i})}var Oc=!0,kc=function(e,t){var n=[...arguments].slice(2);if(Oc&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},Ac={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},jc=(e,t,n)=>{var r=n.width,i=r===void 0?Ac.width:r,a=n.height,o=a===void 0?Ac.height:a,s=n.aspect,c=n.maxHeight,l=On(i)?e:Number(i),u=On(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},Mc={width:0,height:0,overflow:`visible`},Nc={width:0,overflowX:`visible`},Pc={height:0,overflowY:`visible`},Fc={},Ic=e=>{var t=e.width,n=e.height,r=On(t),i=On(n);return r&&i?Mc:r?Nc:i?Pc:Fc};function Lc(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=Ac.width,a=Ac.height):i===void 0?i=r&&r>0?void 0:Ac.width:a===void 0&&(a=r&&r>0?void 0:Ac.height),{width:i,height:a}}var Rc=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function zc(){return zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zc.apply(null,arguments)}function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bc(Object(n),!0).forEach(function(t){Hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hc(e,t,n){return(t=Uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uc(e){var t=Wc(e,`string`);return typeof t==`symbol`?t:t+``}function Wc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gc(e,t){return Xc(e)||Yc(e,t)||qc(e,t)||Kc()}function Kc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.