arize-phoenix 5.1.4__py3-none-any.whl → 5.1.6__py3-none-any.whl

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.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- import{w as x,T as ce,ad as se,r as C,aB as Re,aC as a,aD as F1,aE as ka,aF as N1,aG as Wa,R as O,a6 as H,aH as ba,aI as va,aJ as _1,aK as Oe,aL as La,aM as na,aN as Y,aO as Ua,aP as D1,aQ as He,aR as E1,aS as Ve,aT as Ie,aU as Fe,aV as Sa,aW as T1,aX as $1,aY as Q1,aZ as Ga,a_ as W1,a$ as U1,b0 as G1,b1 as Z1,b2 as Y1,b3 as K1,b4 as ha,b5 as j1,b6 as X1,b7 as Za,b8 as q1,b9 as J1,ba as ar,bb as er,bc as Ne,bd as rr,be as or,bf as lr,bg as tr,bh as Aa,bi as ir,bj as nr,bk as cr,bl as _e,bm as sr,bn as dr,bo as gr,bp as br,bq as ur,br as vr,bs as hr,bt as de,bu as pr,bv as mr,bw as fr,bx as Cr,by as Ya,bz as wr,bA as De,bB as yr,bC as ge,bD as xr,bE as Ar,bF as zr,bG as kr,bH as Lr,bI as Sr,bJ as Br,bK as Mr}from"./vendor-D8cj1ZYg.js";function Ea(){Ea=function(){return r};var e,r={},o=Object.prototype,l=o.hasOwnProperty,t=Object.defineProperty||function(m,p,w){m[p]=w.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function n(m,p,w){return Object.defineProperty(m,p,{value:w,enumerable:!0,configurable:!0,writable:!0}),m[p]}try{n({},"")}catch{n=function(p,w,R){return p[w]=R}}function g(m,p,w,R){var S=p&&p.prototype instanceof B?p:B,I=Object.create(S.prototype),N=new Z(R||[]);return t(I,"_invoke",{value:Q(m,w,N)}),I}function b(m,p,w){try{return{type:"normal",arg:m.call(p,w)}}catch(R){return{type:"throw",arg:R}}}r.wrap=g;var u="suspendedStart",f="suspendedYield",h="executing",y="completed",A={};function B(){}function L(){}function k(){}var M={};n(M,s,function(){return this});var V=Object.getPrototypeOf,P=V&&V(V(G([])));P&&P!==o&&l.call(P,s)&&(M=P);var F=k.prototype=B.prototype=Object.create(M);function $(m){["next","throw","return"].forEach(function(p){n(m,p,function(w){return this._invoke(p,w)})})}function E(m,p){function w(S,I,N,W){var U=b(m[S],m,I);if(U.type!=="throw"){var ea=U.arg,ca=ea.value;return ca&&typeof ca=="object"&&l.call(ca,"__await")?p.resolve(ca.__await).then(function(la){w("next",la,N,W)},function(la){w("throw",la,N,W)}):p.resolve(ca).then(function(la){ea.value=la,N(ea)},function(la){return w("throw",la,N,W)})}W(U.arg)}var R;t(this,"_invoke",{value:function(S,I){function N(){return new p(function(W,U){w(S,I,W,U)})}return R=R?R.then(N,N):N()}})}function Q(m,p,w){var R=u;return function(S,I){if(R===h)throw Error("Generator is already running");if(R===y){if(S==="throw")throw I;return{value:e,done:!0}}for(w.method=S,w.arg=I;;){var N=w.delegate;if(N){var W=T(N,w);if(W){if(W===A)continue;return W}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(R===u)throw R=y,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);R=h;var U=b(m,p,w);if(U.type==="normal"){if(R=w.done?y:f,U.arg===A)continue;return{value:U.arg,done:w.done}}U.type==="throw"&&(R=y,w.method="throw",w.arg=U.arg)}}}function T(m,p){var w=p.method,R=m.iterator[w];if(R===e)return p.delegate=null,w==="throw"&&m.iterator.return&&(p.method="return",p.arg=e,T(m,p),p.method==="throw")||w!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+w+"' method")),A;var S=b(R,m.iterator,p.arg);if(S.type==="throw")return p.method="throw",p.arg=S.arg,p.delegate=null,A;var I=S.arg;return I?I.done?(p[m.resultName]=I.value,p.next=m.nextLoc,p.method!=="return"&&(p.method="next",p.arg=e),p.delegate=null,A):I:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,A)}function X(m){var p={tryLoc:m[0]};1 in m&&(p.catchLoc=m[1]),2 in m&&(p.finallyLoc=m[2],p.afterLoc=m[3]),this.tryEntries.push(p)}function K(m){var p=m.completion||{};p.type="normal",delete p.arg,m.completion=p}function Z(m){this.tryEntries=[{tryLoc:"root"}],m.forEach(X,this),this.reset(!0)}function G(m){if(m||m===""){var p=m[s];if(p)return p.call(m);if(typeof m.next=="function")return m;if(!isNaN(m.length)){var w=-1,R=function S(){for(;++w<m.length;)if(l.call(m,w))return S.value=m[w],S.done=!1,S;return S.value=e,S.done=!0,S};return R.next=R}}throw new TypeError(typeof m+" is not iterable")}return L.prototype=k,t(F,"constructor",{value:k,configurable:!0}),t(k,"constructor",{value:L,configurable:!0}),L.displayName=n(k,d,"GeneratorFunction"),r.isGeneratorFunction=function(m){var p=typeof m=="function"&&m.constructor;return!!p&&(p===L||(p.displayName||p.name)==="GeneratorFunction")},r.mark=function(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,k):(m.__proto__=k,n(m,d,"GeneratorFunction")),m.prototype=Object.create(F),m},r.awrap=function(m){return{__await:m}},$(E.prototype),n(E.prototype,c,function(){return this}),r.AsyncIterator=E,r.async=function(m,p,w,R,S){S===void 0&&(S=Promise);var I=new E(g(m,p,w,R),S);return r.isGeneratorFunction(p)?I:I.next().then(function(N){return N.done?N.value:I.next()})},$(F),n(F,d,"Generator"),n(F,s,function(){return this}),n(F,"toString",function(){return"[object Generator]"}),r.keys=function(m){var p=Object(m),w=[];for(var R in p)w.push(R);return w.reverse(),function S(){for(;w.length;){var I=w.pop();if(I in p)return S.value=I,S.done=!1,S}return S.done=!0,S}},r.values=G,Z.prototype={constructor:Z,reset:function(m){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(K),!m)for(var p in this)p.charAt(0)==="t"&&l.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=e)},stop:function(){this.done=!0;var m=this.tryEntries[0].completion;if(m.type==="throw")throw m.arg;return this.rval},dispatchException:function(m){if(this.done)throw m;var p=this;function w(U,ea){return I.type="throw",I.arg=m,p.next=U,ea&&(p.method="next",p.arg=e),!!ea}for(var R=this.tryEntries.length-1;R>=0;--R){var S=this.tryEntries[R],I=S.completion;if(S.tryLoc==="root")return w("end");if(S.tryLoc<=this.prev){var N=l.call(S,"catchLoc"),W=l.call(S,"finallyLoc");if(N&&W){if(this.prev<S.catchLoc)return w(S.catchLoc,!0);if(this.prev<S.finallyLoc)return w(S.finallyLoc)}else if(N){if(this.prev<S.catchLoc)return w(S.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return w(S.finallyLoc)}}}},abrupt:function(m,p){for(var w=this.tryEntries.length-1;w>=0;--w){var R=this.tryEntries[w];if(R.tryLoc<=this.prev&&l.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var S=R;break}}S&&(m==="break"||m==="continue")&&S.tryLoc<=p&&p<=S.finallyLoc&&(S=null);var I=S?S.completion:{};return I.type=m,I.arg=p,S?(this.method="next",this.next=S.finallyLoc,A):this.complete(I)},complete:function(m,p){if(m.type==="throw")throw m.arg;return m.type==="break"||m.type==="continue"?this.next=m.arg:m.type==="return"?(this.rval=this.arg=m.arg,this.method="return",this.next="end"):m.type==="normal"&&p&&(this.next=p),A},finish:function(m){for(var p=this.tryEntries.length-1;p>=0;--p){var w=this.tryEntries[p];if(w.finallyLoc===m)return this.complete(w.completion,w.afterLoc),K(w),A}},catch:function(m){for(var p=this.tryEntries.length-1;p>=0;--p){var w=this.tryEntries[p];if(w.tryLoc===m){var R=w.completion;if(R.type==="throw"){var S=R.arg;K(w)}return S}}throw Error("illegal catch attempt")},delegateYield:function(m,p,w){return this.delegate={iterator:G(m),resultName:p,nextLoc:w},this.method==="next"&&(this.arg=e),A}},r}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l])}return e},v.apply(this,arguments)}function Pr(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Ta(e,r)}function Ta(e,r){return Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l},Ta(e,r)}function Rr(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function D(e,r){if(e==null)return{};var o={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){if(r.indexOf(l)>=0)continue;o[l]=e[l]}return o}function ua(e,r){return r||(r=e.slice(0)),e.raw=r,e}function Or(e,r){if(e){if(typeof e=="string")return be(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return be(e,r)}}function be(e,r){(r==null||r>e.length)&&(r=e.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=e[o];return l}function Ee(e,r){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Or(e))||r){o&&(e=o);var l=0;return function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{w as x,T as ce,ad as se,r as C,aB as Re,aC as a,aD as F1,aE as ka,aF as N1,aG as Wa,R as O,a6 as H,aH as ba,aI as va,aJ as _1,aK as Oe,aL as La,aM as na,aN as Y,aO as Ua,aP as D1,aQ as He,aR as E1,aS as Ve,aT as Ie,aU as Fe,aV as Sa,aW as T1,aX as $1,aY as Q1,aZ as Ga,a_ as W1,a$ as U1,b0 as G1,b1 as Z1,b2 as Y1,b3 as K1,b4 as ha,b5 as j1,b6 as X1,b7 as Za,b8 as q1,b9 as J1,ba as ar,bb as er,bc as Ne,bd as rr,be as or,bf as lr,bg as tr,bh as Aa,bi as ir,bj as nr,bk as cr,bl as _e,bm as sr,bn as dr,bo as gr,bp as br,bq as ur,br as vr,bs as hr,bt as de,bu as pr,bv as mr,bw as fr,bx as Cr,by as Ya,bz as wr,bA as De,bB as yr,bC as ge,bD as xr,bE as Ar,bF as zr,bG as kr,bH as Lr,bI as Sr,bJ as Br,bK as Mr}from"./vendor-CQYk2bLC.js";function Ea(){Ea=function(){return r};var e,r={},o=Object.prototype,l=o.hasOwnProperty,t=Object.defineProperty||function(m,p,w){m[p]=w.value},i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function n(m,p,w){return Object.defineProperty(m,p,{value:w,enumerable:!0,configurable:!0,writable:!0}),m[p]}try{n({},"")}catch{n=function(p,w,R){return p[w]=R}}function g(m,p,w,R){var S=p&&p.prototype instanceof B?p:B,I=Object.create(S.prototype),N=new Z(R||[]);return t(I,"_invoke",{value:Q(m,w,N)}),I}function b(m,p,w){try{return{type:"normal",arg:m.call(p,w)}}catch(R){return{type:"throw",arg:R}}}r.wrap=g;var u="suspendedStart",f="suspendedYield",h="executing",y="completed",A={};function B(){}function L(){}function k(){}var M={};n(M,s,function(){return this});var V=Object.getPrototypeOf,P=V&&V(V(G([])));P&&P!==o&&l.call(P,s)&&(M=P);var F=k.prototype=B.prototype=Object.create(M);function $(m){["next","throw","return"].forEach(function(p){n(m,p,function(w){return this._invoke(p,w)})})}function E(m,p){function w(S,I,N,W){var U=b(m[S],m,I);if(U.type!=="throw"){var ea=U.arg,ca=ea.value;return ca&&typeof ca=="object"&&l.call(ca,"__await")?p.resolve(ca.__await).then(function(la){w("next",la,N,W)},function(la){w("throw",la,N,W)}):p.resolve(ca).then(function(la){ea.value=la,N(ea)},function(la){return w("throw",la,N,W)})}W(U.arg)}var R;t(this,"_invoke",{value:function(S,I){function N(){return new p(function(W,U){w(S,I,W,U)})}return R=R?R.then(N,N):N()}})}function Q(m,p,w){var R=u;return function(S,I){if(R===h)throw Error("Generator is already running");if(R===y){if(S==="throw")throw I;return{value:e,done:!0}}for(w.method=S,w.arg=I;;){var N=w.delegate;if(N){var W=T(N,w);if(W){if(W===A)continue;return W}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(R===u)throw R=y,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);R=h;var U=b(m,p,w);if(U.type==="normal"){if(R=w.done?y:f,U.arg===A)continue;return{value:U.arg,done:w.done}}U.type==="throw"&&(R=y,w.method="throw",w.arg=U.arg)}}}function T(m,p){var w=p.method,R=m.iterator[w];if(R===e)return p.delegate=null,w==="throw"&&m.iterator.return&&(p.method="return",p.arg=e,T(m,p),p.method==="throw")||w!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+w+"' method")),A;var S=b(R,m.iterator,p.arg);if(S.type==="throw")return p.method="throw",p.arg=S.arg,p.delegate=null,A;var I=S.arg;return I?I.done?(p[m.resultName]=I.value,p.next=m.nextLoc,p.method!=="return"&&(p.method="next",p.arg=e),p.delegate=null,A):I:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,A)}function X(m){var p={tryLoc:m[0]};1 in m&&(p.catchLoc=m[1]),2 in m&&(p.finallyLoc=m[2],p.afterLoc=m[3]),this.tryEntries.push(p)}function K(m){var p=m.completion||{};p.type="normal",delete p.arg,m.completion=p}function Z(m){this.tryEntries=[{tryLoc:"root"}],m.forEach(X,this),this.reset(!0)}function G(m){if(m||m===""){var p=m[s];if(p)return p.call(m);if(typeof m.next=="function")return m;if(!isNaN(m.length)){var w=-1,R=function S(){for(;++w<m.length;)if(l.call(m,w))return S.value=m[w],S.done=!1,S;return S.value=e,S.done=!0,S};return R.next=R}}throw new TypeError(typeof m+" is not iterable")}return L.prototype=k,t(F,"constructor",{value:k,configurable:!0}),t(k,"constructor",{value:L,configurable:!0}),L.displayName=n(k,d,"GeneratorFunction"),r.isGeneratorFunction=function(m){var p=typeof m=="function"&&m.constructor;return!!p&&(p===L||(p.displayName||p.name)==="GeneratorFunction")},r.mark=function(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,k):(m.__proto__=k,n(m,d,"GeneratorFunction")),m.prototype=Object.create(F),m},r.awrap=function(m){return{__await:m}},$(E.prototype),n(E.prototype,c,function(){return this}),r.AsyncIterator=E,r.async=function(m,p,w,R,S){S===void 0&&(S=Promise);var I=new E(g(m,p,w,R),S);return r.isGeneratorFunction(p)?I:I.next().then(function(N){return N.done?N.value:I.next()})},$(F),n(F,d,"Generator"),n(F,s,function(){return this}),n(F,"toString",function(){return"[object Generator]"}),r.keys=function(m){var p=Object(m),w=[];for(var R in p)w.push(R);return w.reverse(),function S(){for(;w.length;){var I=w.pop();if(I in p)return S.value=I,S.done=!1,S}return S.done=!0,S}},r.values=G,Z.prototype={constructor:Z,reset:function(m){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(K),!m)for(var p in this)p.charAt(0)==="t"&&l.call(this,p)&&!isNaN(+p.slice(1))&&(this[p]=e)},stop:function(){this.done=!0;var m=this.tryEntries[0].completion;if(m.type==="throw")throw m.arg;return this.rval},dispatchException:function(m){if(this.done)throw m;var p=this;function w(U,ea){return I.type="throw",I.arg=m,p.next=U,ea&&(p.method="next",p.arg=e),!!ea}for(var R=this.tryEntries.length-1;R>=0;--R){var S=this.tryEntries[R],I=S.completion;if(S.tryLoc==="root")return w("end");if(S.tryLoc<=this.prev){var N=l.call(S,"catchLoc"),W=l.call(S,"finallyLoc");if(N&&W){if(this.prev<S.catchLoc)return w(S.catchLoc,!0);if(this.prev<S.finallyLoc)return w(S.finallyLoc)}else if(N){if(this.prev<S.catchLoc)return w(S.catchLoc,!0)}else{if(!W)throw Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return w(S.finallyLoc)}}}},abrupt:function(m,p){for(var w=this.tryEntries.length-1;w>=0;--w){var R=this.tryEntries[w];if(R.tryLoc<=this.prev&&l.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var S=R;break}}S&&(m==="break"||m==="continue")&&S.tryLoc<=p&&p<=S.finallyLoc&&(S=null);var I=S?S.completion:{};return I.type=m,I.arg=p,S?(this.method="next",this.next=S.finallyLoc,A):this.complete(I)},complete:function(m,p){if(m.type==="throw")throw m.arg;return m.type==="break"||m.type==="continue"?this.next=m.arg:m.type==="return"?(this.rval=this.arg=m.arg,this.method="return",this.next="end"):m.type==="normal"&&p&&(this.next=p),A},finish:function(m){for(var p=this.tryEntries.length-1;p>=0;--p){var w=this.tryEntries[p];if(w.finallyLoc===m)return this.complete(w.completion,w.afterLoc),K(w),A}},catch:function(m){for(var p=this.tryEntries.length-1;p>=0;--p){var w=this.tryEntries[p];if(w.tryLoc===m){var R=w.completion;if(R.type==="throw"){var S=R.arg;K(w)}return S}}throw Error("illegal catch attempt")},delegateYield:function(m,p,w){return this.delegate={iterator:G(m),resultName:p,nextLoc:w},this.method==="next"&&(this.arg=e),A}},r}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l])}return e},v.apply(this,arguments)}function Pr(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Ta(e,r)}function Ta(e,r){return Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,t){return l.__proto__=t,l},Ta(e,r)}function Rr(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function D(e,r){if(e==null)return{};var o={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){if(r.indexOf(l)>=0)continue;o[l]=e[l]}return o}function ua(e,r){return r||(r=e.slice(0)),e.raw=r,e}function Or(e,r){if(e){if(typeof e=="string")return be(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return be(e,r)}}function be(e,r){(r==null||r>e.length)&&(r=e.length);for(var o=0,l=new Array(r);o<r;o++)l[o]=e[o];return l}function Ee(e,r){var o=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=Or(e))||r){o&&(e=o);var l=0;return function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Hr={name:"9rndb8",styles:":root{--ac-global-dimension-scale-factor:1;--ac-global-dimension-size-0:0px;--ac-global-dimension-size-10:1px;--ac-global-dimension-size-25:2px;--ac-global-dimension-size-30:2px;--ac-global-dimension-size-40:3px;--ac-global-dimension-size-50:4px;--ac-global-dimension-size-65:5px;--ac-global-dimension-size-75:6px;--ac-global-dimension-size-85:7px;--ac-global-dimension-size-100:8px;--ac-global-dimension-size-115:9px;--ac-global-dimension-size-125:10px;--ac-global-dimension-size-130:11px;--ac-global-dimension-size-150:12px;--ac-global-dimension-size-160:13px;--ac-global-dimension-size-175:14px;--ac-global-dimension-size-185:15px;--ac-global-dimension-size-200:16px;--ac-global-dimension-size-225:18px;--ac-global-dimension-size-250:20px;--ac-global-dimension-size-275:22px;--ac-global-dimension-size-300:24px;--ac-global-dimension-size-325:26px;--ac-global-dimension-size-350:28px;--ac-global-dimension-size-400:32px;--ac-global-dimension-size-450:36px;--ac-global-dimension-size-500:40px;--ac-global-dimension-size-550:44px;--ac-global-dimension-size-600:48px;--ac-global-dimension-size-650:52px;--ac-global-dimension-size-675:54px;--ac-global-dimension-size-700:56px;--ac-global-dimension-size-750:60px;--ac-global-dimension-size-800:64px;--ac-global-dimension-size-900:72px;--ac-global-dimension-size-1000:80px;--ac-global-dimension-size-1125:90px;--ac-global-dimension-size-1200:96px;--ac-global-dimension-size-1250:100px;--ac-global-dimension-size-1600:128px;--ac-global-dimension-size-1700:136px;--ac-global-dimension-size-1800:144px;--ac-global-dimension-size-2000:160px;--ac-global-dimension-size-2400:192px;--ac-global-dimension-size-2500:200px;--ac-global-dimension-size-3000:240px;--ac-global-dimension-size-3400:272px;--ac-global-dimension-size-3600:288px;--ac-global-dimension-size-4600:368px;--ac-global-dimension-size-5000:400px;--ac-global-dimension-size-6000:480px;}"},Vr={name:"1vqwjre",styles:":root{--ac-global-static-color-white-900:rgba(255, 255, 255, 0.9);--ac-global-static-color-white-700:rgba(255, 255, 255, 0.7);--ac-global-static-color-white-300:rgba(255, 255, 255, 0.3);--ac-global-static-color-black-900:rgba(0, 0, 0, 0.9);--ac-global-static-color-black-700:rgba(0, 0, 0, 0.7);--ac-global-static-color-black-300:rgba(0, 0, 0, 0.3);}"},Ir={name:"15o57dn",styles:":root{--ac-global-dimension-static-size-0:0px;--ac-global-dimension-static-size-10:1px;--ac-global-dimension-static-size-25:2px;--ac-global-dimension-static-size-50:4px;--ac-global-dimension-static-size-40:3px;--ac-global-dimension-static-size-65:5px;--ac-global-dimension-static-size-100:8px;--ac-global-dimension-static-size-115:9px;--ac-global-dimension-static-size-125:10px;--ac-global-dimension-static-size-130:11px;--ac-global-dimension-static-size-150:12px;--ac-global-dimension-static-size-160:13px;--ac-global-dimension-static-size-175:14px;--ac-global-dimension-static-size-200:16px;--ac-global-dimension-static-size-225:18px;--ac-global-dimension-static-size-250:20px;--ac-global-dimension-static-size-300:24px;--ac-global-dimension-static-size-400:32px;--ac-global-dimension-static-size-450:36px;--ac-global-dimension-static-size-500:40px;--ac-global-dimension-static-size-550:44px;--ac-global-dimension-static-size-600:48px;--ac-global-dimension-static-size-700:56px;--ac-global-dimension-static-size-800:64px;--ac-global-dimension-static-size-900:72px;--ac-global-dimension-static-size-1000:80px;--ac-global-dimension-static-size-1200:96px;--ac-global-dimension-static-size-1700:136px;--ac-global-dimension-static-size-2400:192px;--ac-global-dimension-static-size-2600:208px;--ac-global-dimension-static-size-3400:272px;--ac-global-dimension-static-size-3600:288px;--ac-global-dimension-static-size-4600:368px;--ac-global-dimension-static-size-5000:400px;--ac-global-dimension-static-size-6000:480px;--ac-global-dimension-static-font-size-50:11px;--ac-global-dimension-static-font-size-75:12px;--ac-global-dimension-static-font-size-100:14px;--ac-global-dimension-static-font-size-150:15px;--ac-global-dimension-static-font-size-200:16px;--ac-global-dimension-static-font-size-300:18px;--ac-global-dimension-static-font-size-400:20px;--ac-global-dimension-static-font-size-500:22px;--ac-global-dimension-static-font-size-600:25px;--ac-global-dimension-static-font-size-700:28px;--ac-global-dimension-static-font-size-800:32px;--ac-global-dimension-static-font-size-900:36px;--ac-global-dimension-static-font-size-1000:40px;--ac-global-dimension-static-percent-50:50%;--ac-global-dimension-static-percent-100:100%;--ac-global-dimension-static-breakpoint-xsmall:304px;--ac-global-dimension-static-breakpoint-small:768px;--ac-global-dimension-static-breakpoint-medium:1280px;--ac-global-dimension-static-breakpoint-large:1768px;--ac-global-dimension-static-breakpoint-xlarge:2160px;--ac-global-dimension-static-grid-columns:12;--ac-global-dimension-static-grid-fluid-width:100%;--ac-global-dimension-static-grid-fixed-max-width:1280px;--ac-global-dimension-font-size-25:10px;--ac-global-dimension-font-size-50:11px;--ac-global-dimension-font-size-75:12px;--ac-global-dimension-font-size-100:14px;--ac-global-dimension-font-size-150:15px;--ac-global-dimension-font-size-200:16px;--ac-global-dimension-font-size-300:18px;--ac-global-dimension-font-size-400:20px;--ac-global-dimension-font-size-500:22px;--ac-global-dimension-font-size-600:25px;--ac-global-dimension-font-size-700:28px;--ac-global-dimension-font-size-800:32px;--ac-global-dimension-font-size-900:36px;--ac-global-dimension-font-size-1000:40px;--ac-global-dimension-font-size-1100:45px;--ac-global-dimension-font-size-1200:50px;--ac-global-dimension-font-size-1300:60px;}"},Fr={name:"xwbvnd",styles:`:root,.ac-theme--dark{--ac-global-color-primary:rgb(114, 217, 255);--ac-global-color-primary-900:rgba(114, 217, 255, 0.9);--ac-global-color-primary-700:rgba(114, 217, 255, 0.7);--ac-global-color-primary-500:rgba(114, 217, 255, 0.5);--ac-global-color-primary-300:rgba(114, 217, 255, 0.3);--ac-global-color-gray-900:#181b1f;--ac-global-color-gray-800:#1d2126;--ac-global-color-gray-700:#23282e;--ac-global-color-gray-600:#282e35;--ac-global-color-gray-500:#2f353d;--ac-global-color-gray-400:#3d434a;--ac-global-color-gray-300:#4a5057;--ac-global-color-gray-200:#585d64;--ac-global-color-gray-100:#666b71;--ac-global-color-grey-50-rgb:0,0,0;--ac-global-color-grey-50:rgb(var(--ac-global-color-grey-50-rgb));--ac-global-color-grey-75-rgb:14,14,14;--ac-global-color-grey-75:rgb(var(--ac-global-color-grey-75-rgb));--ac-global-color-grey-100-rgb:29,29,29;--ac-global-color-grey-100:rgb(var(--ac-global-color-grey-100-rgb));--ac-global-color-grey-200-rgb:48,48,48;--ac-global-color-grey-200:rgb(var(--ac-global-color-grey-200-rgb));--ac-global-color-grey-300-rgb:75,75,75;--ac-global-color-grey-300:rgb(var(--ac-global-color-grey-300-rgb));--ac-global-color-grey-400-rgb:106,106,106;--ac-global-color-grey-400:rgb(var(--ac-global-color-grey-400-rgb));--ac-global-color-grey-500-rgb:141,141,141;--ac-global-color-grey-500:rgb(var(--ac-global-color-grey-500-rgb));--ac-global-color-grey-600-rgb:176,176,176;--ac-global-color-grey-600:rgb(var(--ac-global-color-grey-600-rgb));--ac-global-color-grey-700-rgb:208,208,208;--ac-global-color-grey-700:rgb(var(--ac-global-color-grey-700-rgb));--ac-global-color-grey-800-rgb:235,235,235;--ac-global-color-grey-800:rgb(var(--ac-global-color-grey-800-rgb));--ac-global-color-grey-900-rgb:255,255,255;--ac-global-color-grey-900:rgb(var(--ac-global-color-grey-900-rgb));--ac-global-color-red-100-rgb:87,0,0;--ac-global-color-red-100:rgb(var(--ac-global-color-red-100-rgb));--ac-global-color-red-200-rgb:110,0,0;--ac-global-color-red-200:rgb(var(--ac-global-color-red-200-rgb));--ac-global-color-red-300-rgb:138,0,0;--ac-global-color-red-300:rgb(var(--ac-global-color-red-300-rgb));--ac-global-color-red-400-rgb:167,0,0;--ac-global-color-red-400:rgb(var(--ac-global-color-red-400-rgb));--ac-global-color-red-500-rgb:196,7,6;--ac-global-color-red-500:rgb(var(--ac-global-color-red-500-rgb));--ac-global-color-red-600-rgb:221,33,24;--ac-global-color-red-600:rgb(var(--ac-global-color-red-600-rgb));--ac-global-color-red-700-rgb:238,67,49;--ac-global-color-red-700:rgb(var(--ac-global-color-red-700-rgb));--ac-global-color-red-800-rgb:249,99,76;--ac-global-color-red-800:rgb(var(--ac-global-color-red-800-rgb));--ac-global-color-red-900-rgb:255,129,107;--ac-global-color-red-900:rgb(var(--ac-global-color-red-900-rgb));--ac-global-color-red-1000-rgb:255,158,140;--ac-global-color-red-1000:rgb(var(--ac-global-color-red-1000-rgb));--ac-global-color-red-1100-rgb:255,183,169;--ac-global-color-red-1100:rgb(var(--ac-global-color-red-1100-rgb));--ac-global-color-red-1200-rgb:255,205,195;--ac-global-color-red-1200:rgb(var(--ac-global-color-red-1200-rgb));--ac-global-color-red-1300-rgb:255,223,217;--ac-global-color-red-1300:rgb(var(--ac-global-color-red-1300-rgb));--ac-global-color-red-1400-rgb:255,237,234;--ac-global-color-red-1400:rgb(var(--ac-global-color-red-1400-rgb));--ac-global-color-orange-100-rgb:72,24,1;--ac-global-color-orange-100:rgb(var(--ac-global-color-orange-100-rgb));--ac-global-color-orange-200-rgb:92,32,0;--ac-global-color-orange-200:rgb(var(--ac-global-color-orange-200-rgb));--ac-global-color-orange-300-rgb:115,43,0;--ac-global-color-orange-300:rgb(var(--ac-global-color-orange-300-rgb));--ac-global-color-orange-400-rgb:138,55,0;--ac-global-color-orange-400:rgb(var(--ac-global-color-orange-400-rgb));--ac-global-color-orange-500-rgb:162,68,0;--ac-global-color-orange-500:rgb(var(--ac-global-color-orange-500-rgb));--ac-global-color-orange-600-rgb:186,82,0;--ac-global-color-orange-600:rgb(var(--ac-global-color-orange-600-rgb));--ac-global-color-orange-700-rgb:210,98,0;--ac-global-color-orange-700:rgb(var(--ac-global-color-orange-700-rgb));--ac-global-color-orange-800-rgb:232,116,0;--ac-global-color-orange-800:rgb(var(--ac-global-color-orange-800-rgb));--ac-global-color-orange-900-rgb:249,137,23;--ac-global-color-orange-900:rgb(var(--ac-global-color-orange-900-rgb));--ac-global-color-orange-1000-rgb:255,162,59;--ac-global-color-orange-1000:rgb(var(--ac-global-color-orange-1000-rgb));--ac-global-color-orange-1100-rgb:255,188,102;--ac-global-color-orange-1100:rgb(var(--ac-global-color-orange-1100-rgb));--ac-global-color-orange-1200-rgb:253,210,145;--ac-global-color-orange-1200:rgb(var(--ac-global-color-orange-1200-rgb));--ac-global-color-orange-1300-rgb:255,226,181;--ac-global-color-orange-1300:rgb(var(--ac-global-color-orange-1300-rgb));--ac-global-color-orange-1400-rgb:255,239,213;--ac-global-color-orange-1400:rgb(var(--ac-global-color-orange-1400-rgb));--ac-global-color-yellow-100-rgb:53,36,0;--ac-global-color-yellow-100:rgb(var(--ac-global-color-yellow-100-rgb));--ac-global-color-yellow-200-rgb:68,47,0;--ac-global-color-yellow-200:rgb(var(--ac-global-color-yellow-200-rgb));--ac-global-color-yellow-300-rgb:86,62,0;--ac-global-color-yellow-300:rgb(var(--ac-global-color-yellow-300-rgb));--ac-global-color-yellow-400-rgb:103,77,0;--ac-global-color-yellow-400:rgb(var(--ac-global-color-yellow-400-rgb));--ac-global-color-yellow-500-rgb:122,92,0;--ac-global-color-yellow-500:rgb(var(--ac-global-color-yellow-500-rgb));--ac-global-color-yellow-600-rgb:141,108,0;--ac-global-color-yellow-600:rgb(var(--ac-global-color-yellow-600-rgb));--ac-global-color-yellow-700-rgb:161,126,0;--ac-global-color-yellow-700:rgb(var(--ac-global-color-yellow-700-rgb));--ac-global-color-yellow-800-rgb:180,144,0;--ac-global-color-yellow-800:rgb(var(--ac-global-color-yellow-800-rgb));--ac-global-color-yellow-900-rgb:199,162,0;--ac-global-color-yellow-900:rgb(var(--ac-global-color-yellow-900-rgb));--ac-global-color-yellow-1000-rgb:216,181,0;--ac-global-color-yellow-1000:rgb(var(--ac-global-color-yellow-1000-rgb));--ac-global-color-yellow-1100-rgb:233,199,0;--ac-global-color-yellow-1100:rgb(var(--ac-global-color-yellow-1100-rgb));--ac-global-color-yellow-1200-rgb:247,216,4;--ac-global-color-yellow-1200:rgb(var(--ac-global-color-yellow-1200-rgb));--ac-global-color-yellow-1300-rgb:249,233,97;--ac-global-color-yellow-1300:rgb(var(--ac-global-color-yellow-1300-rgb));--ac-global-color-yellow-1400-rgb:252,243,170;--ac-global-color-yellow-1400:rgb(var(--ac-global-color-yellow-1400-rgb));--ac-global-color-chartreuse-100-rgb:32,43,0;--ac-global-color-chartreuse-100:rgb(
3
3
  var(--ac-global-color-chartreuse-100-rgb)
4
4
  );--ac-global-color-chartreuse-200-rgb:42,56,0;--ac-global-color-chartreuse-200:rgb(
@@ -1,4 +1,4 @@
1
- import{bL as vt,bM as bc,bN as yc,bO as wc,bP as w,bQ as el,bR as Hp,bS as ti,bT as Lt,bU as Vp,bV as il,bW as is,bX as Wp,bY as zp,bZ as qp,b_ as xc,b$ as Sc,c0 as W,r as Et,c1 as Kp,c2 as jp,c3 as Gp,c4 as Up}from"./vendor-D8cj1ZYg.js";class B{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=ui(this,t,e);let s=[];return this.decompose(0,t,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(e,this.length,s,1),Zt.from(s,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=ui(this,t,e);let i=[];return this.decompose(t,e,i,0),Zt.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),s=new Ui(this),r=new Ui(t);for(let o=e,l=e;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(t=1){return new Ui(this,t)}iterRange(t,e=this.length){return new vc(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let s=this.line(t).from;i=this.iterRange(s,Math.max(s,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new kc(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?B.empty:t.length<=32?new J(t):Zt.from(J.split(t,[]))}}class J extends B{constructor(t,e=Xp(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((e?i:l)>=t)return new Yp(s,l,i,o);s=l+1,i++}}decompose(t,e,i,s){let r=t<=0&&e>=this.length?this:new J(ql(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(s&1){let o=i.pop(),l=ns(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let a=l.length>>1;i.push(new J(l.slice(0,a)),new J(l.slice(a)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof J))return super.replace(t,e,i);[t,e]=ui(this,t,e);let s=ns(this.text,ns(i.text,ql(this.text,0,t)),e),r=this.length+i.length-(e-t);return s.length<=32?new J(s,r):Zt.from(J.split(s,[]),r)}sliceString(t,e=this.length,i=`
1
+ import{bL as vt,bM as bc,bN as yc,bO as wc,bP as w,bQ as el,bR as Hp,bS as ti,bT as Lt,bU as Vp,bV as il,bW as is,bX as Wp,bY as zp,bZ as qp,b_ as xc,b$ as Sc,c0 as W,r as Et,c1 as Kp,c2 as jp,c3 as Gp,c4 as Up}from"./vendor-CQYk2bLC.js";class B{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=ui(this,t,e);let s=[];return this.decompose(0,t,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(e,this.length,s,1),Zt.from(s,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=ui(this,t,e);let i=[];return this.decompose(t,e,i,0),Zt.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),s=new Ui(this),r=new Ui(t);for(let o=e,l=e;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(t=1){return new Ui(this,t)}iterRange(t,e=this.length){return new vc(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let s=this.line(t).from;i=this.iterRange(s,Math.max(s,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new kc(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?B.empty:t.length<=32?new J(t):Zt.from(J.split(t,[]))}}class J extends B{constructor(t,e=Xp(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((e?i:l)>=t)return new Yp(s,l,i,o);s=l+1,i++}}decompose(t,e,i,s){let r=t<=0&&e>=this.length?this:new J(ql(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(s&1){let o=i.pop(),l=ns(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new J(l,o.length+r.length));else{let a=l.length>>1;i.push(new J(l.slice(0,a)),new J(l.slice(a)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof J))return super.replace(t,e,i);[t,e]=ui(this,t,e);let s=ns(this.text,ns(i.text,ql(this.text,0,t)),e),r=this.length+i.length-(e-t);return s.length<=32?new J(s,r):Zt.from(J.split(s,[]),r)}sliceString(t,e=this.length,i=`
2
2
  `){[t,e]=ui(this,t,e);let s="";for(let r=0,o=0;r<=e&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>t&&o&&(s+=i),t<a&&e>r&&(s+=l.slice(Math.max(0,t-r),e-r)),r=a+1}return s}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],s=-1;for(let r of t)i.push(r),s+=r.length+1,i.length==32&&(e.push(new J(i,s)),i=[],s=-1);return s>-1&&e.push(new J(i,s)),e}}class Zt extends B{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((e?a:l)>=t)return o.lineInner(t,e,i,s);s=l+1,i=a+1}}decompose(t,e,i,s){for(let r=0,o=0;o<=e&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(t<=a&&e>=o){let c=s&((o<=t?1:0)|(a>=e?2:0));o>=t&&a<=e&&!c?i.push(l):l.decompose(t-o,e-o,i,c)}o=a+1}}replace(t,e,i){if([t,e]=ui(this,t,e),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(t>=r&&e<=l){let a=o.replace(t-r,e-r,i),c=this.lines-o.lines+a.lines;if(a.lines<c>>4&&a.lines>c>>6){let h=this.children.slice();return h[s]=a,new Zt(h,this.length-(e-t)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=`
3
3
  `){[t,e]=ui(this,t,e);let s="";for(let r=0,o=0;r<this.children.length&&o<=e;r++){let l=this.children[r],a=o+l.length;o>t&&r&&(s+=i),t<a&&e>o&&(s+=l.sliceString(t-o,e-o,i)),o=a+1}return s}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof Zt))return 0;let i=0,[s,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;s+=e,r+=e){if(s==o||r==l)return i;let a=this.children[s],c=t.children[r];if(a!=c)return i+a.scanIdentical(c,e);i+=a.length+1}}static from(t,e=t.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new J(d,e)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,c=-1,h=[];function f(d){let p;if(d.lines>r&&d instanceof Zt)for(let g of d.children)f(g);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof J&&a&&(p=h[h.length-1])instanceof J&&d.lines+p.lines<=32?(a+=d.lines,c+=d.length+1,h[h.length-1]=new J(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,c+=d.length+1,h.push(d))}function u(){a!=0&&(l.push(h.length==1?h[0]:Zt.from(h,c)),c=-1,a=h.length=0)}for(let d of t)f(d);return u(),l.length==1?l[0]:new Zt(l,e)}}B.empty=new J([""],0);function Xp(n){let t=-1;for(let e of n)t+=e.length+1;return t}function ns(n,t,e=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=e&&(a>i&&(l=l.slice(0,i-s)),s<e&&(l=l.slice(e-s)),o?(t[t.length-1]+=l,o=!1):t.push(l)),s=a+1}return t}function ql(n,t,e){return ns(n,[""],t,e)}class Ui{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof J?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof J?s.text.length:s.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;t--}else if(s instanceof J){let a=s.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,a.length>Math.max(0,t))return this.value=t==0?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{let a=s.children[o+(e<0?-1:0)];t>a.length?(t-=a.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(e>0?1:(a instanceof J?a.text.length:a.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class vc{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new Ui(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:s}=this.cursor.next(t);return this.pos+=(s.length+t)*e,this.value=s.length<=i?s:e<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class kc{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:s}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(B.prototype[Symbol.iterator]=function(){return this.iter()},Ui.prototype[Symbol.iterator]=vc.prototype[Symbol.iterator]=kc.prototype[Symbol.iterator]=function(){return this});class Yp{constructor(t,e,i,s){this.from=t,this.to=e,this.number=i,this.text=s}get length(){return this.to-this.from}}function ui(n,t,e){return t=Math.max(0,Math.min(n.length,t)),[t,Math.max(t,Math.min(n.length,e))]}let si="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;n<si.length;n++)si[n]+=si[n-1];function _p(n){for(let t=1;t<si.length;t+=2)if(si[t]>n)return si[t-1]<=n;return!1}function Kl(n){return n>=127462&&n<=127487}const jl=8205;function X(n,t,e=!0,i=!0){return(e?Cc:Jp)(n,t,i)}function Cc(n,t,e){if(t==n.length)return t;t&&Mc(n.charCodeAt(t))&&Ac(n.charCodeAt(t-1))&&t--;let i=nt(n,t);for(t+=At(i);t<n.length;){let s=nt(n,t);if(i==jl||s==jl||e&&_p(s))t+=At(s),i=s;else if(Kl(s)){let r=0,o=t-2;for(;o>=0&&Kl(nt(n,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function Jp(n,t,e){for(;t>0;){let i=Cc(n,t-2,e);if(i<t)return i;t--}return 0}function Mc(n){return n>=56320&&n<57344}function Ac(n){return n>=55296&&n<56320}function nt(n,t){let e=n.charCodeAt(t);if(!Ac(e)||t+1==n.length)return e;let i=n.charCodeAt(t+1);return Mc(i)?(e-55296<<10)+(i-56320)+65536:e}function nl(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function At(n){return n<65536?1:2}const Nr=/\r\n?|\n/;var G=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(G||(G={}));class se{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e+1];t+=i<0?this.sections[e]:i}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let e=0,i=0,s=0;e<this.sections.length;){let r=this.sections[e++],o=this.sections[e++];o<0?(t(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(t,e=!1){Fr(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let i=this.sections[e++],s=this.sections[e++];s<0?t.push(i,s):t.push(s,i)}return new se(t)}composeDesc(t){return this.empty?t:t.empty?this:Dc(this,t)}mapDesc(t,e=!1){return t.empty?this:Hr(this,t,e)}mapPos(t,e=-1,i=G.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],c=s+l;if(a<0){if(c>t)return r+(t-s);r+=l}else{if(i!=G.Simple&&c>=t&&(i==G.TrackDel&&s<t&&c>t||i==G.TrackBefore&&s<t||i==G.TrackAfter&&c>t))return null;if(c>t||c==t&&e<0&&!l)return t==s||e<0?r:r+a;r+=a}s=c}if(t>s)throw new RangeError(`Position ${t} is out of range for changeset of length ${s}`);return r}touchesRange(t,e=t){for(let i=0,s=0;i<this.sections.length&&s<=e;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=e&&l>=t)return s<t&&l>e?"cover":!0;s=l}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let i=this.sections[e++],s=this.sections[e++];t+=(t?" ":"")+i+(s>=0?":"+s:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new se(t)}static create(t){return new se(t)}}class Q extends se{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Fr(this,(e,i,s,r,o)=>t=t.replace(s,s+(i-e),o),!1),t}mapDesc(t,e=!1){return Hr(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let s=0,r=0;s<e.length;s+=2){let o=e[s],l=e[s+1];if(l>=0){e[s]=l,e[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(B.empty);i.push(o?t.slice(r,r+o):B.empty)}r+=o}return new Q(e,i)}compose(t){return this.empty?t:t.empty?this:Dc(this,t,!0)}map(t,e=!1){return t.empty?this:Hr(this,t,e,!0)}iterChanges(t,e=!1){Fr(this,t,e)}get desc(){return se.create(this.sections)}filter(t){let e=[],i=[],s=[],r=new en(this);t:for(let o=0,l=0;;){let a=o==t.length?1e9:t[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break t;let h=Math.min(r.len,a-l);lt(s,h,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;lt(e,h,f),f>0&&Me(i,e,r.text),r.forward(h),l+=h}let c=t[o++];for(;l<c;){if(r.done)break t;let h=Math.min(r.len,c-l);lt(e,h,-1),lt(s,h,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(h),l+=h}}return{changes:new Q(e,i),filtered:se.create(s)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e],s=this.sections[e+1];s<0?t.push(i):s==0?t.push([i]):t.push([i].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,i){let s=[],r=[],o=0,l=null;function a(h=!1){if(!h&&!s.length)return;o<e&&lt(s,e-o,-1);let f=new Q(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function c(h){if(Array.isArray(h))for(let f of h)c(f);else if(h instanceof Q){if(h.length!=e)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${e})`);a(),l=l?l.compose(h.map(l)):h}else{let{from:f,to:u=f,insert:d}=h;if(f>u||f<0||u>e)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?B.of(d.split(i||Nr)):d:B.empty,g=p.length;if(f==u&&g==0)return;f<o&&a(),f>o&&lt(s,f-o,-1),lt(s,u-f,g),Me(r,s,p),o=u}}return c(t),a(!l),l}static empty(t){return new Q(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let s=0;s<t.length;s++){let r=t[s];if(typeof r=="number")e.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length<s;)i.push(B.empty);i[s]=B.of(r.slice(1)),e.push(r[0],i[s].length)}}}return new Q(e,i)}static createSet(t,e){return new Q(t,e)}}function lt(n,t,e,i=!1){if(t==0&&e<=0)return;let s=n.length-2;s>=0&&e<=0&&e==n[s+1]?n[s]+=t:t==0&&n[s]==0?n[s+1]+=e:i?(n[s]+=t,n[s+1]+=e):n.push(t,e)}function Me(n,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(e);else{for(;n.length<i;)n.push(B.empty);n.push(e)}}function Fr(n,t,e){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let c=s,h=r,f=B.empty;for(;c+=l,h+=a,a&&i&&(f=f.append(i[o-2>>1])),!(e||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];t(s,c,r,h,f),s=c,r=h}}}function Hr(n,t,e,i=!1){let s=[],r=i?[]:null,o=new en(n),l=new en(t);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);lt(s,c,-1),o.forward(c),l.forward(c)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!e))){let c=l.len;for(lt(s,l.ins,-1);c;){let h=Math.min(o.len,c);o.ins>=0&&a<o.i&&o.len<=h&&(lt(s,0,o.ins),r&&Me(r,s,o.text),a=o.i),o.forward(h),c-=h}l.next()}else if(o.ins>=0){let c=0,h=o.len;for(;h;)if(l.ins==-1){let f=Math.min(h,l.len);c+=f,h-=f,l.forward(f)}else if(l.ins==0&&l.len<h)h-=l.len,l.next();else break;lt(s,c,a<o.i?o.ins:0),r&&a<o.i&&Me(r,s,o.text),a=o.i,o.forward(o.len-h)}else{if(o.done&&l.done)return r?Q.createSet(s,r):se.create(s);throw new Error("Mismatched change set lengths")}}function Dc(n,t,e=!1){let i=[],s=e?[]:null,r=new en(n),o=new en(t);for(let l=!1;;){if(r.done&&o.done)return s?Q.createSet(i,s):se.create(i);if(r.ins==0)lt(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)lt(i,0,o.ins,l),s&&Me(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),c=i.length;if(r.ins==-1){let h=o.ins==-1?-1:o.off?0:o.ins;lt(i,a,h,l),s&&h&&Me(s,i,o.text)}else o.ins==-1?(lt(i,r.off?0:r.len,a,l),s&&Me(s,i,r.textBit(a))):(lt(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&Me(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>c),r.forward2(a),o.forward(a)}}}}class en{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?B.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?B.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class He{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,e=-1){let i,s;return this.empty?i=s=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),s=t.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new He(i,s,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return y.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return y.range(this.anchor,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return y.range(t.anchor,t.head)}static create(t,e,i){return new He(t,e,i)}}class y{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:y.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(t.ranges[i],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new y([this.main],0)}addRange(t,e=!0){return y.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let i=this.ranges.slice();return i[e]=t,y.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new y(t.ranges.map(e=>He.fromJSON(e)),t.main)}static single(t,e=t){return new y([y.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<t.length;s++){let r=t[s];if(r.empty?r.from<=i:r.from<i)return y.normalized(t.slice(),e);i=r.to}return new y(t,e)}static cursor(t,e=0,i,s){return He.create(t,t,(e==0?0:e<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(t,e,i,s){let r=(i??16777215)<<6|(s==null?7:Math.min(6,s));return e<t?He.create(e,t,48|r):He.create(t,e,(e>t?8:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((s,r)=>s.from-r.from),e=t.indexOf(i);for(let s=1;s<t.length;s++){let r=t[s],o=t[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=e&&e--,t.splice(--s,2,r.anchor>r.head?y.range(a,l):y.range(l,a))}}return new y(t,e)}}function Oc(n,t){for(let e of n.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let sl=0;class k{constructor(t,e,i,s,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=s,this.id=sl++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(t={}){return new k(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:rl),!!t.static,t.enables)}of(t){return new ss([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ss(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new ss(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function rl(n,t){return n==t||n.length==t.length&&n.every((e,i)=>e===t[i])}class ss{constructor(t,e,i,s){this.dependencies=t,this.facet=e,this.type=i,this.value=s,this.id=sl++}dynamicSlot(t){var e;let i=this.value,s=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,a=!1,c=!1,h=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?c=!0:((e=t[f.id])!==null&&e!==void 0?e:1)&1||h.push(t[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||c&&(u.docChanged||u.selection)||Vr(f,h)){let d=i(f);if(l?!Gl(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let g=xs(u,p);if(this.dependencies.every(m=>m instanceof k?u.facet(m)===f.facet(m):m instanceof it?u.field(m,!1)==f.field(m,!1):!0)||(l?Gl(d=i(f),g,s):s(d=i(f),g)))return f.values[o]=g,0}else d=i(f);return f.values[o]=d,1}}}}function Gl(n,t,e){if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(!e(n[i],t[i]))return!1;return!0}function Vr(n,t){let e=!1;for(let i of t)Xi(n,i)&1&&(e=!0);return e}function Qp(n,t,e){let i=e.map(a=>n[a.id]),s=e.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[t.id]>>1;function l(a){let c=[];for(let h=0;h<i.length;h++){let f=xs(a,i[h]);if(s[h]==2)for(let u of f)c.push(u);else c.push(f)}return t.combine(c)}return{create(a){for(let c of i)Xi(a,c);return a.values[o]=l(a),1},update(a,c){if(!Vr(a,r))return 0;let h=l(a);return t.compare(h,a.values[o])?0:(a.values[o]=h,1)},reconfigure(a,c){let h=Vr(a,i),f=c.config.facets[t.id],u=c.facet(t);if(f&&!h&&rl(e,f))return a.values[o]=u,0;let d=l(a);return t.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const Ul=k.define({static:!0});class it{constructor(t,e,i,s,r){this.id=t,this.createF=e,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(t){let e=new it(sl++,t.create,t.update,t.compare||((i,s)=>i===s),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(Ul).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,s)=>{let r=i.values[e],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[e]=s.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,Ul.of({field:this,create:t})]}get extension(){return this}}const Ne={lowest:4,low:3,default:2,high:1,highest:0};function Ei(n){return t=>new Tc(t,n)}const le={highest:Ei(Ne.highest),high:Ei(Ne.high),default:Ei(Ne.default),low:Ei(Ne.low),lowest:Ei(Ne.lowest)};class Tc{constructor(t,e){this.inner=t,this.prec=e}}class Ks{of(t){return new Wr(this,t)}reconfigure(t){return Ks.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Wr{constructor(t,e){this.compartment=t,this.inner=e}}class ws{constructor(t,e,i,s,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return e==null?t.default:this.staticValues[e>>1]}static resolve(t,e,i){let s=[],r=Object.create(null),o=new Map;for(let u of Zp(t,e,o))u instanceof it?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],c=[];for(let u of s)l[u.id]=c.length<<1,c.push(d=>u.slot(d));let h=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=h&&h[u]||[];if(d.every(m=>m.type==0))if(l[p.id]=a.length<<1|1,rl(g,d))a.push(i.facet(p));else{let m=p.combine(d.map(b=>b.value));a.push(i&&p.compare(m,i.facet(p))?i.facet(p):m)}else{for(let m of d)m.type==0?(l[m.id]=a.length<<1|1,a.push(m.value)):(l[m.id]=c.length<<1,c.push(b=>m.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(m=>Qp(m,p,d))}}let f=c.map(u=>u(l));return new ws(t,o,f,l,a,r)}}function Zp(n,t,e){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let c=i[a].indexOf(o);c>-1&&i[a].splice(c,1),o instanceof Wr&&e.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let c of o)r(c,l);else if(o instanceof Wr){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(o.compartment)||o.inner;e.set(o.compartment,c),r(c,l)}else if(o instanceof Tc)r(o.inner,o.prec);else if(o instanceof it)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof ss)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Ne.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(c,l)}}return r(n,Ne.default),i.reduce((o,l)=>o.concat(l))}function Xi(n,t){if(t&1)return 2;let e=t>>1,i=n.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[e]=4;let s=n.computeSlot(n,n.config.dynamicSlots[e]);return n.status[e]=2|s}function xs(n,t){return t&1?n.config.staticValues[t>>1]:n.values[t>>1]}const Ec=k.define(),zr=k.define({combine:n=>n.some(t=>t),static:!0}),Bc=k.define({combine:n=>n.length?n[0]:void 0,static:!0}),Rc=k.define(),Lc=k.define(),Pc=k.define(),Ic=k.define({combine:n=>n.length?n[0]:!1});class $t{constructor(t,e){this.type=t,this.value=e}static define(){return new tg}}class tg{of(t){return new $t(this,t)}}class eg{constructor(t){this.map=t}of(t){return new T(this,t)}}class T{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new T(this.type,e)}is(t){return this.type==t}static define(t={}){return new eg(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let s of t){let r=s.map(e);r&&i.push(r)}return i}}T.reconfigure=T.define();T.appendConfig=T.define();class _{constructor(t,e,i,s,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Oc(i,e.newLength),r.some(l=>l.type==_.time)||(this.annotations=r.concat(_.time.of(Date.now())))}static create(t,e,i,s,r,o){return new _(t,e,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(_.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}_.time=$t.define();_.userEvent=$t.define();_.addToHistory=$t.define();_.remote=$t.define();function ig(n,t){let e=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==t.length||t[s]>=n[i]))r=n[i++],o=n[i++];else if(s<t.length)r=t[s++],o=t[s++];else return e;!e.length||e[e.length-1]<r?e.push(r,o):e[e.length-1]<o&&(e[e.length-1]=o)}}function $c(n,t,e){var i;let s,r,o;return e?(s=t.changes,r=Q.empty(t.changes.length),o=n.changes.compose(t.changes)):(s=t.changes.map(n.changes),r=n.changes.mapDesc(t.changes,!0),o=n.changes.compose(s)),{changes:o,selection:t.selection?t.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:T.mapEffects(n.effects,s).concat(T.mapEffects(t.effects,r)),annotations:n.annotations.length?n.annotations.concat(t.annotations):t.annotations,scrollIntoView:n.scrollIntoView||t.scrollIntoView}}function qr(n,t,e){let i=t.selection,s=ri(t.annotations);return t.userEvent&&(s=s.concat(_.userEvent.of(t.userEvent))),{changes:t.changes instanceof Q?t.changes:Q.of(t.changes||[],e,n.facet(Bc)),selection:i&&(i instanceof y?i:y.single(i.anchor,i.head)),effects:ri(t.effects),annotations:s,scrollIntoView:!!t.scrollIntoView}}function Nc(n,t,e){let i=qr(n,t.length?t[0]:{},n.doc.length);t.length&&t[0].filter===!1&&(e=!1);for(let r=1;r<t.length;r++){t[r].filter===!1&&(e=!1);let o=!!t[r].sequential;i=$c(i,qr(n,t[r],o?i.changes.newLength:n.doc.length),o)}let s=_.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return sg(e?ng(s):s)}function ng(n){let t=n.startState,e=!0;for(let s of t.facet(Rc)){let r=s(n);if(r===!1){e=!1;break}Array.isArray(r)&&(e=e===!0?r:ig(e,r))}if(e!==!0){let s,r;if(e===!1)r=n.changes.invertedDesc,s=Q.empty(t.doc.length);else{let o=n.changes.filter(e);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=_.create(t,s,n.selection&&n.selection.map(r),T.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=t.facet(Lc);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof _?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof _?n=r[0]:n=Nc(t,ri(r),!1)}return n}function sg(n){let t=n.startState,e=t.facet(Pc),i=n;for(let s=e.length-1;s>=0;s--){let r=e[s](n);r&&Object.keys(r).length&&(i=$c(i,qr(t,r,n.changes.newLength),!0))}return i==n?n:_.create(t,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const rg=[];function ri(n){return n==null?rg:Array.isArray(n)?n:[n]}var K=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(K||(K={}));const og=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Kr;try{Kr=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function lg(n){if(Kr)return Kr.test(n);for(let t=0;t<n.length;t++){let e=n[t];if(/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||og.test(e)))return!0}return!1}function ag(n){return t=>{if(!/\S/.test(t))return K.Space;if(lg(t))return K.Word;for(let e=0;e<n.length;e++)if(t.indexOf(n[e])>-1)return K.Word;return K.Other}}class P{constructor(t,e,i,s,r,o){this.config=t,this.doc=e,this.selection=i,this.values=s,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Xi(this,l<<1);this.computeSlot=null}field(t,e=!0){let i=this.config.address[t.id];if(i==null){if(e)throw new RangeError("Field is not present in this state");return}return Xi(this,i),xs(this,i)}update(...t){return Nc(this,t,!0)}applyTransaction(t){let e=this.config,{base:i,compartments:s}=e;for(let l of t.effects)l.is(Ks.reconfigure)?(e&&(s=new Map,e.compartments.forEach((a,c)=>s.set(c,a)),e=null),s.set(l.value.compartment,l.value.extension)):l.is(T.reconfigure)?(e=null,i=l.value):l.is(T.appendConfig)&&(e=null,i=ri(i).concat(l.value));let r;e?r=t.startState.values.slice():(e=ws.resolve(i,s,this),r=new P(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let o=t.startState.facet(zr)?t.newSelection:t.newSelection.asSingle();new P(e,t.newDoc,o,r,(l,a)=>a.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:y.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),s=this.changes(i.changes),r=[i.range],o=ri(i.effects);for(let l=1;l<e.ranges.length;l++){let a=t(e.ranges[l]),c=this.changes(a.changes),h=c.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(h);let f=s.mapDesc(c,!0);r.push(a.range.map(f)),s=s.compose(h),o=T.mapEffects(o,h).concat(T.mapEffects(ri(a.effects),f))}return{changes:s,selection:y.create(r,e.mainIndex),effects:o}}changes(t=[]){return t instanceof Q?t:Q.of(t,this.doc.length,this.facet(P.lineSeparator))}toText(t){return B.of(t.split(this.facet(P.lineSeparator)||Nr))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return e==null?t.default:(Xi(this,e),xs(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let i in t){let s=t[i];s instanceof it&&this.config.address[s.id]!=null&&(e[i]=s.spec.toJSON(this.field(t[i]),this))}return e}static fromJSON(t,e={},i){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(t,r)){let o=i[r],l=t[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return P.create({doc:t.doc,selection:y.fromJSON(t.selection),extensions:e.extensions?s.concat([e.extensions]):s})}static create(t={}){let e=ws.resolve(t.extensions||[],new Map),i=t.doc instanceof B?t.doc:B.of((t.doc||"").split(e.staticFacet(P.lineSeparator)||Nr)),s=t.selection?t.selection instanceof y?t.selection:y.single(t.selection.anchor,t.selection.head):y.single(0);return Oc(s,i.length),e.staticFacet(zr)||(s=s.asSingle()),new P(e,i,s,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(P.tabSize)}get lineBreak(){return this.facet(P.lineSeparator)||`
@@ -1,4 +1,4 @@
1
- import{c5 as Wr,c6 as gu,c7 as zt,c8 as ye,c9 as Wt,r as B,ca as W,cb as z,cc as da,cd as X,R as A,ce as Dn,cf as bu,cg as Kc,ch as xu,ci as Ou,cj as Au,ck as wu,cl as Pu,cm as Su,cn as Ti,co as fi,cp as Fc,cq as Z,cr as at,cs as ki,ct as Ii,cu as rn,cv as _i,cw as Mn,cx as Re,cy as ju,cz as Eu,cA as $u,cB as Fe,cC as Tu,cD as ku,cE as Iu,cF as _u,cG as Cu,cH as Hr,cI as Du,cJ as Vc,cK as Mu,cL as Bu,cM as Nu,cN as Lu,cO as Ru,cP as zu,cQ as Wu,cR as Ku,cS as Fu,cT as Vu,cU as Xu,cV as Gu,cW as Me,cX as Hu,cY as Uu,cZ as Yu,c_ as qu,c$ as an,d0 as Zu,d1 as Xc,d2 as Ju,d3 as Qu,d4 as es,d5 as ts}from"./vendor-D8cj1ZYg.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return gu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},rs=0,Xe=function(e){var r=++rs;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},ns=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var as=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var is=["viewBox","children"],os=["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"],Ci=["points","pathLength"],ta={svg:is,polygon:Ci,polyline:Ci},di=["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"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},cs=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=cs(o,r,n))}),a},ls=["children"],us=["children"];function Di(t,e){if(t==null)return{};var r=ss(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ss(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},De=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return De(a)}):n=[De(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},fs=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ds=function(e){return e&&e.type&&Wr(e.type)&&fs.indexOf(e.type)>=0},Gc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ps=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||os.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ps((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,ls),o=r.props||{},c=o.children,l=Di(o,us);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(ds(i))n.push(i);else if(i){var c=De(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},vs=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},hs=function(e,r){return pi(r).indexOf(e)},ys=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ms(t,e){if(t==null)return{};var r=gs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function gs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ms(t,ys),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var bs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function xs(t,e){if(t==null)return{};var r=Os(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Os(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=xs(t,bs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),je=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var As=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){ws(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ws(t,e,r){return e=Ps(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ps(t){var e=Ss(t,"string");return sr(e)=="symbol"?e:String(e)}function Ss(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function js(t,e){if(t==null)return{};var r=Es(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Es(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Hc={symbolCircle:Kc,symbolCross:xu,symbolDiamond:Ou,symbolSquare:Au,symbolStar:wu,symbolTriangle:Pu,symbolWye:Su},$s=Math.PI/180,Ts=function(e){var r="symbol".concat(Dn(e));return Hc[r]||Kc},ks=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*$s;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Is=function(e,r){Hc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=js(e,As),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=Ts(n),O=bu().type(g).size(ks(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=Is;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function _s(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ds(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Yc(n.key),n)}}function Ms(t,e,r){return e&&Ds(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bs(t,e,r){return e=ln(e),Ns(t,Uc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Ns(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ls(t)}function Ls(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Rs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Yc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yc(t){var e=zs(t,"string");return wt(e)=="symbol"?e:String(e)}function zs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var be=32,vi=function(t){Rs(e,t);function e(){return Cs(this,e),Bs(this,e,arguments)}return Ms(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=be/2,o=be/6,c=be/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:be,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
1
+ import{c5 as Wr,c6 as gu,c7 as zt,c8 as ye,c9 as Wt,r as B,ca as W,cb as z,cc as da,cd as X,R as A,ce as Dn,cf as bu,cg as Kc,ch as xu,ci as Ou,cj as Au,ck as wu,cl as Pu,cm as Su,cn as Ti,co as fi,cp as Fc,cq as Z,cr as at,cs as ki,ct as Ii,cu as rn,cv as _i,cw as Mn,cx as Re,cy as ju,cz as Eu,cA as $u,cB as Fe,cC as Tu,cD as ku,cE as Iu,cF as _u,cG as Cu,cH as Hr,cI as Du,cJ as Vc,cK as Mu,cL as Bu,cM as Nu,cN as Lu,cO as Ru,cP as zu,cQ as Wu,cR as Ku,cS as Fu,cT as Vu,cU as Xu,cV as Gu,cW as Me,cX as Hu,cY as Uu,cZ as Yu,c_ as qu,c$ as an,d0 as Zu,d1 as Xc,d2 as Ju,d3 as Qu,d4 as es,d5 as ts}from"./vendor-CQYk2bLC.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return gu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},rs=0,Xe=function(e){var r=++rs;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},ns=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var as=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var is=["viewBox","children"],os=["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"],Ci=["points","pathLength"],ta={svg:is,polygon:Ci,polyline:Ci},di=["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"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},cs=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=cs(o,r,n))}),a},ls=["children"],us=["children"];function Di(t,e){if(t==null)return{};var r=ss(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ss(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},De=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return De(a)}):n=[De(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},fs=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ds=function(e){return e&&e.type&&Wr(e.type)&&fs.indexOf(e.type)>=0},Gc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ps=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||os.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ps((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,ls),o=r.props||{},c=o.children,l=Di(o,us);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(ds(i))n.push(i);else if(i){var c=De(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},vs=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},hs=function(e,r){return pi(r).indexOf(e)},ys=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ms(t,e){if(t==null)return{};var r=gs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function gs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ms(t,ys),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var bs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function xs(t,e){if(t==null)return{};var r=Os(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Os(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=xs(t,bs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),je=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var As=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){ws(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ws(t,e,r){return e=Ps(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ps(t){var e=Ss(t,"string");return sr(e)=="symbol"?e:String(e)}function Ss(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function js(t,e){if(t==null)return{};var r=Es(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Es(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Hc={symbolCircle:Kc,symbolCross:xu,symbolDiamond:Ou,symbolSquare:Au,symbolStar:wu,symbolTriangle:Pu,symbolWye:Su},$s=Math.PI/180,Ts=function(e){var r="symbol".concat(Dn(e));return Hc[r]||Kc},ks=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*$s;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Is=function(e,r){Hc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=js(e,As),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=Ts(n),O=bu().type(g).size(ks(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=Is;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function _s(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Cs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ds(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Yc(n.key),n)}}function Ms(t,e,r){return e&&Ds(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bs(t,e,r){return e=ln(e),Ns(t,Uc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Ns(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ls(t)}function Ls(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Rs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Yc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yc(t){var e=zs(t,"string");return wt(e)=="symbol"?e:String(e)}function zs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var be=32,vi=function(t){Rs(e,t);function e(){return Cs(this,e),Bs(this,e,arguments)}return Ms(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=be/2,o=be/6,c=be/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:be,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
2
2
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*c,",").concat(i,`
3
3
  H`).concat(be,"M").concat(2*c,",").concat(i,`
4
4
  A`).concat(o,",").concat(o,",0,1,1,").concat(c,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(be/8,"h").concat(be,"v").concat(be*3/4,"h").concat(-be,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=_s({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(Bn,{fill:l,cx:i,cy:i,size:be,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,c=a.layout,l=a.formatter,u=a.inactiveColor,s={x:0,y:0,width:be,height:be},f={display:c==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var y=p.formatter||l,g=X(fr(fr({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var O=W(p.value)?null:p.value;je(!W(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?u:p.color;return A.createElement("li",xa({className:g,style:f,key:"legend-item-".concat(m)},Ve(n.props,p,m)),A.createElement(ma,{width:o,height:o,viewBox:s,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(O,p,m):O))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}]),e}(B.PureComponent);fr(vi,"displayName","Legend");fr(vi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function qc(t,e,r){return e===!0?Ti(t,r):W(e)?Ti(t,e):t}function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}var Ws=["ref"];function Fi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fi(Object(r),!0).forEach(function(n){Nn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ks(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Qc(n.key),n)}}function Fs(t,e,r){return e&&Vi(t.prototype,e),r&&Vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vs(t,e,r){return e=un(e),Xs(t,Zc()?Reflect.construct(e,r||[],un(t).constructor):e.apply(t,r))}function Xs(t,e){if(e&&(Pt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jc(t)}function Zc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zc=function(){return!!t})()}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},un(t)}function Jc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Aa(t,e)}function Aa(t,e){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Aa(t,e)}function Nn(t,e,r){return e=Qc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qc(t){var e=Hs(t,"string");return Pt(e)=="symbol"?e:String(e)}function Hs(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Us(t,e){if(t==null)return{};var r=Ys(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ys(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function qs(t){return t.value}function Zs(t,e){if(A.isValidElement(t))return A.cloneElement(t,e);if(typeof t=="function")return A.createElement(t,e);e.ref;var r=Us(e,Ws);return A.createElement(vi,r)}var Xi=1,dr=function(t){Gs(e,t);function e(){var r;Ks(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Vs(this,e,[].concat(a)),Nn(Jc(r),"lastBoundingBox",{width:-1,height:-1}),r}return Fs(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Xi||Math.abs(a.height-this.lastBoundingBox.height)>Xi)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ze({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,c=a.verticalAlign,l=a.margin,u=a.chartWidth,s=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(c==="middle"){var m=this.getBBoxSnapshot();d={top:((s||0)-m.height)/2}}else d=c==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ze(Ze({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,c=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,s=a.payload,f=Ze(Ze({position:"absolute",width:o||"auto",height:c||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},Zs(i,Ze(Ze({},this.props),{},{payload:qc(s,u,qs)})))}}],[{key:"getWithHeight",value:function(n,a){var i=n.props.layout;return i==="vertical"&&M(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||a}:null}}]),e}(B.PureComponent);Nn(dr,"displayName","Legend");Nn(dr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function pr(t){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(t)}function wa(){return wa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wa.apply(this,arguments)}function Js(t,e){return rf(t)||tf(t,e)||ef(t,e)||Qs()}function Qs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -156,11 +156,10 @@ class SpanFilter:
156
156
  if not (source := self.condition):
157
157
  return
158
158
  root = ast.parse(source, mode="eval")
159
- _validate_expression(root, source, valid_eval_names=self.valid_eval_names)
159
+ _validate_expression(root, valid_eval_names=self.valid_eval_names)
160
160
  source, aliased_annotation_relations = _apply_eval_aliasing(source)
161
161
  root = ast.parse(source, mode="eval")
162
162
  translated = _FilterTranslator(
163
- source=source,
164
163
  reserved_keywords=(
165
164
  alias
166
165
  for aliased_annotation in aliased_annotation_relations
@@ -400,11 +399,7 @@ def _is_float(node: typing.Any) -> TypeGuard[ast.Call]:
400
399
 
401
400
 
402
401
  class _ProjectionTranslator(ast.NodeTransformer):
403
- def __init__(self, source: str, reserved_keywords: typing.Iterable[str] = ()) -> None:
404
- # Regarding the need for `source: str` for getting source segments:
405
- # In Python 3.8, we have to use `ast.get_source_segment(source, node)`.
406
- # In Python 3.9+, we can use `ast.unparse(node)` (no need for `source`).
407
- self._source = source
402
+ def __init__(self, reserved_keywords: typing.Iterable[str] = ()) -> None:
408
403
  self._reserved_keywords = frozenset(
409
404
  chain(
410
405
  reserved_keywords,
@@ -415,13 +410,13 @@ class _ProjectionTranslator(ast.NodeTransformer):
415
410
  )
416
411
 
417
412
  def visit_generic(self, node: ast.AST) -> typing.Any:
418
- raise SyntaxError(f"invalid expression: {ast.get_source_segment(self._source, node)}")
413
+ raise SyntaxError(f"invalid expression: {ast.unparse(node)}")
419
414
 
420
415
  def visit_Expression(self, node: ast.Expression) -> typing.Any:
421
416
  return ast.Expression(body=self.visit(node.body))
422
417
 
423
418
  def visit_Attribute(self, node: ast.Attribute) -> typing.Any:
424
- source_segment = typing.cast(str, ast.get_source_segment(self._source, node))
419
+ source_segment = ast.unparse(node)
425
420
  if replacement := _BACKWARD_COMPATIBILITY_REPLACEMENTS.get(source_segment):
426
421
  return ast.Name(id=replacement, ctx=ast.Load())
427
422
  if (keys := _get_attribute_keys_list(node)) is not None:
@@ -429,7 +424,7 @@ class _ProjectionTranslator(ast.NodeTransformer):
429
424
  raise SyntaxError(f"invalid expression: {source_segment}")
430
425
 
431
426
  def visit_Name(self, node: ast.Name) -> typing.Any:
432
- source_segment = typing.cast(str, ast.get_source_segment(self._source, node))
427
+ source_segment = ast.unparse(node)
433
428
  if source_segment in self._reserved_keywords:
434
429
  return node
435
430
  name = source_segment
@@ -438,7 +433,7 @@ class _ProjectionTranslator(ast.NodeTransformer):
438
433
  def visit_Subscript(self, node: ast.Subscript) -> typing.Any:
439
434
  if (keys := _get_attribute_keys_list(node)) is not None:
440
435
  return _as_attribute(keys)
441
- raise SyntaxError(f"invalid expression: {ast.get_source_segment(self._source, node)}")
436
+ raise SyntaxError(f"invalid expression: {ast.unparse(node)}")
442
437
 
443
438
 
444
439
  class _FilterTranslator(_ProjectionTranslator):
@@ -460,10 +455,7 @@ class _FilterTranslator(_ProjectionTranslator):
460
455
  elif not _is_float(left) and _is_float(right):
461
456
  left = _cast_as("Float", left)
462
457
  if isinstance(op, (ast.In, ast.NotIn)):
463
- if (
464
- _is_string_attribute(right)
465
- or (typing.cast(str, ast.get_source_segment(self._source, right))) in _NAMES
466
- ):
458
+ if _is_string_attribute(right) or ast.unparse(right) in _NAMES:
467
459
  call = ast.Call(
468
460
  func=ast.Name(id="TextContains", ctx=ast.Load()),
469
461
  args=[right, left],
@@ -482,7 +474,7 @@ class _FilterTranslator(_ProjectionTranslator):
482
474
  keywords=[],
483
475
  )
484
476
  else:
485
- raise SyntaxError(f"invalid expression: {ast.get_source_segment(self._source, op)}")
477
+ raise SyntaxError(f"invalid expression: {ast.unparse(op)}")
486
478
  if isinstance(op, ast.Is):
487
479
  op = ast.Eq()
488
480
  elif isinstance(op, ast.IsNot):
@@ -495,7 +487,7 @@ class _FilterTranslator(_ProjectionTranslator):
495
487
  elif isinstance(node.op, ast.Or):
496
488
  func = ast.Name(id="or_", ctx=ast.Load())
497
489
  else:
498
- raise SyntaxError(f"invalid expression: {ast.get_source_segment(self._source, node)}")
490
+ raise SyntaxError(f"invalid expression: {ast.unparse(node)}")
499
491
  args = [self.visit(value) for value in node.values]
500
492
  return ast.Call(func=func, args=args, keywords=[])
501
493
 
@@ -532,13 +524,11 @@ class _FilterTranslator(_ProjectionTranslator):
532
524
  return _cast_as(type_, ast.BinOp(left=left, op=op, right=right))
533
525
 
534
526
  def visit_Call(self, node: ast.Call) -> typing.Any:
535
- source_segment = typing.cast(str, ast.get_source_segment(self._source, node))
527
+ source_segment = ast.unparse(node)
536
528
  if len(node.args) != 1:
537
529
  raise SyntaxError(f"invalid expression: {source_segment}")
538
530
  if not isinstance(node.func, ast.Name) or node.func.id not in ("str", "float", "int"):
539
- raise SyntaxError(
540
- f"invalid expression: {ast.get_source_segment(self._source, node.func)}"
541
- )
531
+ raise SyntaxError(f"invalid expression: {ast.unparse(node.func)}")
542
532
  arg = self.visit(node.args[0])
543
533
  if node.func.id in ("float", "int") and not _is_float(arg):
544
534
  return _cast_as("Float", arg)
@@ -549,7 +539,6 @@ class _FilterTranslator(_ProjectionTranslator):
549
539
 
550
540
  def _validate_expression(
551
541
  expression: ast.Expression,
552
- source: str,
553
542
  valid_eval_names: typing.Optional[typing.Sequence[str]] = None,
554
543
  valid_eval_attributes: typing.Tuple[str, ...] = _VALID_EVAL_ATTRIBUTES,
555
544
  ) -> None:
@@ -562,11 +551,8 @@ def _validate_expression(
562
551
  additional exceptions may be raised later by the NodeTransformer regarding
563
552
  either structural and semantic issues.
564
553
  """
565
- # Regarding the need for `source: str` for getting source segments:
566
- # In Python 3.8, we have to use `ast.get_source_segment(source, node)`.
567
- # In Python 3.9+, we can use `ast.unparse(node)` (no need for `source`).
568
554
  if not isinstance(expression, ast.Expression):
569
- raise SyntaxError(f"invalid expression: {source}")
555
+ raise SyntaxError(f"invalid expression: {ast.unparse(expression)}")
570
556
  for i, node in enumerate(ast.walk(expression.body)):
571
557
  if i == 0:
572
558
  if (
@@ -584,7 +570,7 @@ def _validate_expression(
584
570
  if not (eval_name := _get_subscript_key(node)) or (
585
571
  valid_eval_names is not None and eval_name not in valid_eval_names
586
572
  ):
587
- source_segment = typing.cast(str, ast.get_source_segment(source, node))
573
+ source_segment = ast.unparse(node)
588
574
  if eval_name and valid_eval_names:
589
575
  # suggest a valid eval name most similar to the one given
590
576
  choice, score = _find_best_match(eval_name, valid_eval_names)
@@ -604,7 +590,7 @@ def _validate_expression(
604
590
  elif isinstance(node, ast.Attribute) and _is_annotation(node.value):
605
591
  # e.g. `evals["name"].score`
606
592
  if (attr := node.attr) not in valid_eval_attributes:
607
- source_segment = typing.cast(str, ast.get_source_segment(source, node))
593
+ source_segment = ast.unparse(node)
608
594
  # suggest a valid attribute most similar to the one given
609
595
  choice, score = _find_best_match(attr, valid_eval_attributes)
610
596
  if choice and score > 0.75: # arbitrary threshold
@@ -644,15 +630,10 @@ def _validate_expression(
644
630
  ast.cmpop,
645
631
  ast.operator,
646
632
  ast.unaryop,
647
- # Prior to Python 3.9, `ast.Index` is part of `ast.Subscript`,
648
- # so it needs to allowed here, but note that `ast.Subscript` is
649
- # not allowed in general except in the case of `evals["name"]`.
650
- # Note that `ast.Index` is deprecated in Python 3.9+.
651
- *((ast.Index,) if sys.version_info < (3, 9) else ()),
652
633
  ),
653
634
  ):
654
635
  continue
655
- source_segment = typing.cast(str, ast.get_source_segment(source, node))
636
+ source_segment = ast.unparse(node)
656
637
  raise SyntaxError(f"invalid expression: {source_segment}")
657
638
 
658
639
 
@@ -727,14 +708,7 @@ def _get_attribute_keys_list(
727
708
  def _get_subscript_keys_list(
728
709
  node: ast.Subscript,
729
710
  ) -> typing.Optional[typing.List[ast.Constant]]:
730
- if sys.version_info < (3, 9):
731
- # Note that `ast.Index` is deprecated in Python 3.9+, but is necessary
732
- # for Python 3.8 as part of `ast.Subscript`.
733
- if not isinstance(node.slice, ast.Index):
734
- return None
735
- child = node.slice.value
736
- else:
737
- child = node.slice
711
+ child = node.slice
738
712
  if isinstance(child, ast.Constant):
739
713
  if not isinstance(child.value, (str, int)) or isinstance(child.value, bool):
740
714
  return None
@@ -756,14 +730,7 @@ def _get_subscript_keys_list(
756
730
  def _get_subscript_key(
757
731
  node: ast.Subscript,
758
732
  ) -> typing.Optional[str]:
759
- if sys.version_info < (3, 9):
760
- # Note that `ast.Index` is deprecated in Python 3.9+, but is necessary
761
- # for Python 3.8 as part of `ast.Subscript`.
762
- if not isinstance(node.slice, ast.Index):
763
- return None
764
- child = node.slice.value
765
- else:
766
- child = node.slice
733
+ child = node.slice
767
734
  if not (isinstance(child, ast.Constant) and isinstance(child.value, str)):
768
735
  return None
769
736
  return child.value
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "5.1.4"
1
+ __version__ = "5.1.6"