arize-phoenix 5.5.2__py3-none-any.whl → 5.6.0__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.
- {arize_phoenix-5.5.2.dist-info → arize_phoenix-5.6.0.dist-info}/METADATA +3 -6
- {arize_phoenix-5.5.2.dist-info → arize_phoenix-5.6.0.dist-info}/RECORD +171 -171
- phoenix/config.py +8 -8
- phoenix/core/model.py +3 -3
- phoenix/core/model_schema.py +41 -50
- phoenix/core/model_schema_adapter.py +17 -16
- phoenix/datetime_utils.py +2 -2
- phoenix/db/bulk_inserter.py +10 -20
- phoenix/db/engines.py +2 -1
- phoenix/db/enums.py +2 -2
- phoenix/db/helpers.py +8 -7
- phoenix/db/insertion/dataset.py +9 -19
- phoenix/db/insertion/document_annotation.py +14 -13
- phoenix/db/insertion/helpers.py +6 -16
- phoenix/db/insertion/span_annotation.py +14 -13
- phoenix/db/insertion/trace_annotation.py +14 -13
- phoenix/db/insertion/types.py +19 -30
- phoenix/db/migrations/versions/3be8647b87d8_add_token_columns_to_spans_table.py +8 -8
- phoenix/db/models.py +28 -28
- phoenix/experiments/evaluators/base.py +2 -1
- phoenix/experiments/evaluators/code_evaluators.py +4 -5
- phoenix/experiments/evaluators/llm_evaluators.py +157 -4
- phoenix/experiments/evaluators/utils.py +3 -2
- phoenix/experiments/functions.py +10 -21
- phoenix/experiments/tracing.py +2 -1
- phoenix/experiments/types.py +20 -29
- phoenix/experiments/utils.py +2 -1
- phoenix/inferences/errors.py +6 -5
- phoenix/inferences/fixtures.py +6 -5
- phoenix/inferences/inferences.py +37 -37
- phoenix/inferences/schema.py +11 -10
- phoenix/inferences/validation.py +13 -14
- phoenix/logging/_formatter.py +3 -3
- phoenix/metrics/__init__.py +5 -4
- phoenix/metrics/binning.py +2 -1
- phoenix/metrics/metrics.py +2 -1
- phoenix/metrics/mixins.py +7 -6
- phoenix/metrics/retrieval_metrics.py +2 -1
- phoenix/metrics/timeseries.py +5 -4
- phoenix/metrics/wrappers.py +2 -2
- phoenix/pointcloud/clustering.py +3 -4
- phoenix/pointcloud/pointcloud.py +7 -5
- phoenix/pointcloud/umap_parameters.py +2 -1
- phoenix/server/api/dataloaders/annotation_summaries.py +12 -19
- phoenix/server/api/dataloaders/average_experiment_run_latency.py +2 -2
- phoenix/server/api/dataloaders/cache/two_tier_cache.py +3 -2
- phoenix/server/api/dataloaders/dataset_example_revisions.py +3 -8
- phoenix/server/api/dataloaders/dataset_example_spans.py +2 -5
- phoenix/server/api/dataloaders/document_evaluation_summaries.py +12 -18
- phoenix/server/api/dataloaders/document_evaluations.py +3 -7
- phoenix/server/api/dataloaders/document_retrieval_metrics.py +6 -13
- phoenix/server/api/dataloaders/experiment_annotation_summaries.py +4 -8
- phoenix/server/api/dataloaders/experiment_error_rates.py +2 -5
- phoenix/server/api/dataloaders/experiment_run_annotations.py +3 -7
- phoenix/server/api/dataloaders/experiment_run_counts.py +1 -5
- phoenix/server/api/dataloaders/experiment_sequence_number.py +2 -5
- phoenix/server/api/dataloaders/latency_ms_quantile.py +21 -30
- phoenix/server/api/dataloaders/min_start_or_max_end_times.py +7 -13
- phoenix/server/api/dataloaders/project_by_name.py +3 -3
- phoenix/server/api/dataloaders/record_counts.py +11 -18
- phoenix/server/api/dataloaders/span_annotations.py +3 -7
- phoenix/server/api/dataloaders/span_dataset_examples.py +3 -8
- phoenix/server/api/dataloaders/span_descendants.py +3 -7
- phoenix/server/api/dataloaders/span_projects.py +2 -2
- phoenix/server/api/dataloaders/token_counts.py +12 -19
- phoenix/server/api/dataloaders/trace_row_ids.py +3 -7
- phoenix/server/api/dataloaders/user_roles.py +3 -3
- phoenix/server/api/dataloaders/users.py +3 -3
- phoenix/server/api/helpers/__init__.py +4 -3
- phoenix/server/api/helpers/dataset_helpers.py +10 -9
- phoenix/server/api/input_types/AddExamplesToDatasetInput.py +2 -2
- phoenix/server/api/input_types/AddSpansToDatasetInput.py +2 -2
- phoenix/server/api/input_types/ChatCompletionMessageInput.py +13 -1
- phoenix/server/api/input_types/ClusterInput.py +2 -2
- phoenix/server/api/input_types/DeleteAnnotationsInput.py +1 -3
- phoenix/server/api/input_types/DeleteDatasetExamplesInput.py +2 -2
- phoenix/server/api/input_types/DeleteExperimentsInput.py +1 -3
- phoenix/server/api/input_types/DimensionFilter.py +4 -4
- phoenix/server/api/input_types/Granularity.py +1 -1
- phoenix/server/api/input_types/InvocationParameters.py +2 -2
- phoenix/server/api/input_types/PatchDatasetExamplesInput.py +2 -2
- phoenix/server/api/mutations/dataset_mutations.py +4 -4
- phoenix/server/api/mutations/experiment_mutations.py +1 -2
- phoenix/server/api/mutations/export_events_mutations.py +7 -7
- phoenix/server/api/mutations/span_annotations_mutations.py +4 -4
- phoenix/server/api/mutations/trace_annotations_mutations.py +4 -4
- phoenix/server/api/mutations/user_mutations.py +4 -4
- phoenix/server/api/openapi/schema.py +2 -2
- phoenix/server/api/queries.py +20 -20
- phoenix/server/api/routers/oauth2.py +4 -4
- phoenix/server/api/routers/v1/datasets.py +22 -36
- phoenix/server/api/routers/v1/evaluations.py +6 -5
- phoenix/server/api/routers/v1/experiment_evaluations.py +2 -2
- phoenix/server/api/routers/v1/experiment_runs.py +2 -2
- phoenix/server/api/routers/v1/experiments.py +4 -4
- phoenix/server/api/routers/v1/spans.py +13 -12
- phoenix/server/api/routers/v1/traces.py +5 -5
- phoenix/server/api/routers/v1/utils.py +5 -5
- phoenix/server/api/subscriptions.py +284 -162
- phoenix/server/api/types/AnnotationSummary.py +3 -3
- phoenix/server/api/types/Cluster.py +8 -7
- phoenix/server/api/types/Dataset.py +5 -4
- phoenix/server/api/types/Dimension.py +3 -3
- phoenix/server/api/types/DocumentEvaluationSummary.py +8 -7
- phoenix/server/api/types/EmbeddingDimension.py +6 -5
- phoenix/server/api/types/EvaluationSummary.py +3 -3
- phoenix/server/api/types/Event.py +7 -7
- phoenix/server/api/types/Experiment.py +3 -3
- phoenix/server/api/types/ExperimentComparison.py +2 -4
- phoenix/server/api/types/Inferences.py +9 -8
- phoenix/server/api/types/InferencesRole.py +2 -2
- phoenix/server/api/types/Model.py +2 -2
- phoenix/server/api/types/Project.py +11 -18
- phoenix/server/api/types/Segments.py +3 -3
- phoenix/server/api/types/Span.py +8 -7
- phoenix/server/api/types/TimeSeries.py +8 -7
- phoenix/server/api/types/Trace.py +2 -2
- phoenix/server/api/types/UMAPPoints.py +6 -6
- phoenix/server/api/types/User.py +3 -3
- phoenix/server/api/types/node.py +1 -3
- phoenix/server/api/types/pagination.py +4 -4
- phoenix/server/api/utils.py +2 -4
- phoenix/server/app.py +16 -25
- phoenix/server/bearer_auth.py +4 -10
- phoenix/server/dml_event.py +3 -3
- phoenix/server/dml_event_handler.py +10 -24
- phoenix/server/grpc_server.py +3 -2
- phoenix/server/jwt_store.py +22 -21
- phoenix/server/main.py +3 -3
- phoenix/server/oauth2.py +3 -2
- phoenix/server/rate_limiters.py +5 -8
- phoenix/server/static/.vite/manifest.json +31 -31
- phoenix/server/static/assets/components-C70HJiXz.js +1612 -0
- phoenix/server/static/assets/{index-DCzakdJq.js → index-DLe1Oo3l.js} +2 -2
- phoenix/server/static/assets/{pages-CAL1FDMt.js → pages-C8-Sl7JI.js} +269 -434
- phoenix/server/static/assets/{vendor-6IcPAw_j.js → vendor-CtqfhlbC.js} +6 -6
- phoenix/server/static/assets/{vendor-arizeai-DRZuoyuF.js → vendor-arizeai-C_3SBz56.js} +2 -2
- phoenix/server/static/assets/{vendor-codemirror-DVE2_WBr.js → vendor-codemirror-wfdk9cjp.js} +1 -1
- phoenix/server/static/assets/{vendor-recharts-DwrexFA4.js → vendor-recharts-BiVnSv90.js} +1 -1
- phoenix/server/thread_server.py +1 -1
- phoenix/server/types.py +17 -29
- phoenix/services.py +4 -3
- phoenix/session/client.py +12 -24
- phoenix/session/data_extractor.py +3 -3
- phoenix/session/evaluation.py +1 -2
- phoenix/session/session.py +11 -20
- phoenix/trace/attributes.py +16 -28
- phoenix/trace/dsl/filter.py +17 -21
- phoenix/trace/dsl/helpers.py +3 -3
- phoenix/trace/dsl/query.py +13 -22
- phoenix/trace/fixtures.py +11 -17
- phoenix/trace/otel.py +5 -15
- phoenix/trace/projects.py +3 -2
- phoenix/trace/schemas.py +2 -2
- phoenix/trace/span_evaluations.py +9 -8
- phoenix/trace/span_json_decoder.py +3 -3
- phoenix/trace/span_json_encoder.py +2 -2
- phoenix/trace/trace_dataset.py +6 -5
- phoenix/trace/utils.py +6 -6
- phoenix/utilities/deprecation.py +3 -2
- phoenix/utilities/error_handling.py +3 -2
- phoenix/utilities/json.py +2 -1
- phoenix/utilities/logging.py +2 -2
- phoenix/utilities/project.py +1 -1
- phoenix/utilities/re.py +3 -4
- phoenix/utilities/template_formatters.py +5 -4
- phoenix/version.py +1 -1
- phoenix/server/static/assets/components-hX0LgYz3.js +0 -1428
- {arize_phoenix-5.5.2.dist-info → arize_phoenix-5.6.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-5.5.2.dist-info → arize_phoenix-5.6.0.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-5.5.2.dist-info → arize_phoenix-5.6.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-5.5.2.dist-info → arize_phoenix-5.6.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as A,U as ce,ae as se,r as C,aT as Oe,aU as a,aV as E1,aW as ka,aX as T1,aY as Wa,R,a7 as O,aZ as ba,a_ as va,a$ as $1,b0 as He,b1 as La,b2 as na,b3 as Y,b4 as Ua,b5 as Q1,b6 as Ve,b7 as W1,b8 as Ie,b9 as Fe,ba as Ne,bb as Sa,bc as U1,bd as G1,be as Z1,bf as Ga,bg as Y1,bh as K1,bi as X1,bj as j1,bk as q1,bl as J1,bm as ha,bn as ar,bo as er,bp as Za,bq as rr,br as or,bs as lr,bt as tr,bu as _e,bv as ir,bw as nr,bx as cr,by as sr,bz as Aa,bA as dr,bB as gr,bC as br,bD as De,bE as ur,bF as vr,bG as hr,bH as pr,bI as mr,bJ as fr,bK as Cr,bL as de,bM as wr,bN as yr,bO as xr,bP as Ar,bQ as Ya,bR as zr,bS as Ee,bT as kr,bU as ge,bV as Lr,bW as Sr,bX as Br,bY as Mr,bZ as Pr,b_ as Rr,b$ as Or,c0 as Hr}from"./vendor-
|
|
1
|
+
import{x as A,U as ce,ae as se,r as C,aT as Oe,aU as a,aV as E1,aW as ka,aX as T1,aY as Wa,R,a7 as O,aZ as ba,a_ as va,a$ as $1,b0 as He,b1 as La,b2 as na,b3 as Y,b4 as Ua,b5 as Q1,b6 as Ve,b7 as W1,b8 as Ie,b9 as Fe,ba as Ne,bb as Sa,bc as U1,bd as G1,be as Z1,bf as Ga,bg as Y1,bh as K1,bi as X1,bj as j1,bk as q1,bl as J1,bm as ha,bn as ar,bo as er,bp as Za,bq as rr,br as or,bs as lr,bt as tr,bu as _e,bv as ir,bw as nr,bx as cr,by as sr,bz as Aa,bA as dr,bB as gr,bC as br,bD as De,bE as ur,bF as vr,bG as hr,bH as pr,bI as mr,bJ as fr,bK as Cr,bL as de,bM as wr,bN as yr,bO as xr,bP as Ar,bQ as Ya,bR as zr,bS as Ee,bT as kr,bU as ge,bV as Lr,bW as Sr,bX as Br,bY as Mr,bZ as Pr,b_ as Rr,b$ as Or,c0 as Hr}from"./vendor-CtqfhlbC.js";function be(e,r){(r==null||r>e.length)&&(r=e.length);for(var o=0,l=Array(r);o<r;o++)l[o]=e[o];return l}function Te(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=Fr(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.`)}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)({}).hasOwnProperty.call(o,l)&&(e[l]=o[l])}return e},v.apply(null,arguments)}function Vr(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Ta(e,r)}function Ir(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function E(e,r){if(e==null)return{};var o={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(r.includes(l))continue;o[l]=e[l]}return o}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,P){return p[w]=P}}function g(m,p,w,P){var M=p&&p.prototype instanceof L?p:L,N=Object.create(M.prototype),_=new j(P||[]);return t(N,"_invoke",{value:$(m,w,_)}),N}function b(m,p,w){try{return{type:"normal",arg:m.call(p,w)}}catch(P){return{type:"throw",arg:P}}}r.wrap=g;var u="suspendedStart",f="suspendedYield",h="executing",x="completed",y={};function L(){}function S(){}function k(){}var B={};n(B,s,function(){return this});var H=Object.getPrototypeOf,V=H&&H(H(U([])));V&&V!==o&&l.call(V,s)&&(B=V);var F=k.prototype=L.prototype=Object.create(B);function I(m){["next","throw","return"].forEach(function(p){n(m,p,function(w){return this._invoke(p,w)})})}function T(m,p){function w(M,N,_,Q){var G=b(m[M],m,N);if(G.type!=="throw"){var aa=G.arg,ca=aa.value;return ca&&typeof ca=="object"&&l.call(ca,"__await")?p.resolve(ca.__await).then(function(la){w("next",la,_,Q)},function(la){w("throw",la,_,Q)}):p.resolve(ca).then(function(la){aa.value=la,_(aa)},function(la){return w("throw",la,_,Q)})}Q(G.arg)}var P;t(this,"_invoke",{value:function(M,N){function _(){return new p(function(Q,G){w(M,N,Q,G)})}return P=P?P.then(_,_):_()}})}function $(m,p,w){var P=u;return function(M,N){if(P===h)throw Error("Generator is already running");if(P===x){if(M==="throw")throw N;return{value:e,done:!0}}for(w.method=M,w.arg=N;;){var _=w.delegate;if(_){var Q=Z(_,w);if(Q){if(Q===y)continue;return Q}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(P===u)throw P=x,w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);P=h;var G=b(m,p,w);if(G.type==="normal"){if(P=w.done?x:f,G.arg===y)continue;return{value:G.arg,done:w.done}}G.type==="throw"&&(P=x,w.method="throw",w.arg=G.arg)}}}function Z(m,p){var w=p.method,P=m.iterator[w];if(P===e)return p.delegate=null,w==="throw"&&m.iterator.return&&(p.method="return",p.arg=e,Z(m,p),p.method==="throw")||w!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+w+"' method")),y;var M=b(P,m.iterator,p.arg);if(M.type==="throw")return p.method="throw",p.arg=M.arg,p.delegate=null,y;var N=M.arg;return N?N.done?(p[m.resultName]=N.value,p.next=m.nextLoc,p.method!=="return"&&(p.method="next",p.arg=e),p.delegate=null,y):N:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,y)}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 W(m){var p=m.completion||{};p.type="normal",delete p.arg,m.completion=p}function j(m){this.tryEntries=[{tryLoc:"root"}],m.forEach(X,this),this.reset(!0)}function U(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,P=function M(){for(;++w<m.length;)if(l.call(m,w))return M.value=m[w],M.done=!1,M;return M.value=e,M.done=!0,M};return P.next=P}}throw new TypeError(typeof m+" is not iterable")}return S.prototype=k,t(F,"constructor",{value:k,configurable:!0}),t(k,"constructor",{value:S,configurable:!0}),S.displayName=n(k,d,"GeneratorFunction"),r.isGeneratorFunction=function(m){var p=typeof m=="function"&&m.constructor;return!!p&&(p===S||(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}},I(T.prototype),n(T.prototype,c,function(){return this}),r.AsyncIterator=T,r.async=function(m,p,w,P,M){M===void 0&&(M=Promise);var N=new T(g(m,p,w,P),M);return r.isGeneratorFunction(p)?N:N.next().then(function(_){return _.done?_.value:N.next()})},I(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 P in p)w.push(P);return w.reverse(),function M(){for(;w.length;){var N=w.pop();if(N in p)return M.value=N,M.done=!1,M}return M.done=!0,M}},r.values=U,j.prototype={constructor:j,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(W),!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(G,aa){return N.type="throw",N.arg=m,p.next=G,aa&&(p.method="next",p.arg=e),!!aa}for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P],N=M.completion;if(M.tryLoc==="root")return w("end");if(M.tryLoc<=this.prev){var _=l.call(M,"catchLoc"),Q=l.call(M,"finallyLoc");if(_&&Q){if(this.prev<M.catchLoc)return w(M.catchLoc,!0);if(this.prev<M.finallyLoc)return w(M.finallyLoc)}else if(_){if(this.prev<M.catchLoc)return w(M.catchLoc,!0)}else{if(!Q)throw Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return w(M.finallyLoc)}}}},abrupt:function(m,p){for(var w=this.tryEntries.length-1;w>=0;--w){var P=this.tryEntries[w];if(P.tryLoc<=this.prev&&l.call(P,"finallyLoc")&&this.prev<P.finallyLoc){var M=P;break}}M&&(m==="break"||m==="continue")&&M.tryLoc<=p&&p<=M.finallyLoc&&(M=null);var N=M?M.completion:{};return N.type=m,N.arg=p,M?(this.method="next",this.next=M.finallyLoc,y):this.complete(N)},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),y},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),W(w),y}},catch:function(m){for(var p=this.tryEntries.length-1;p>=0;--p){var w=this.tryEntries[p];if(w.tryLoc===m){var P=w.completion;if(P.type==="throw"){var M=P.arg;W(w)}return M}}throw Error("illegal catch attempt")},delegateYield:function(m,p,w){return this.delegate={iterator:U(m),resultName:p,nextLoc:w},this.method==="next"&&(this.arg=e),y}},r}function Ta(e,r){return Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},Ta(e,r)}function ua(e,r){return r||(r=e.slice(0)),e.raw=r,e}function Fr(e,r){if(e){if(typeof e=="string")return be(e,r);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?be(e,r):void 0}}var Nr={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;}"},_r={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);}"},Dr={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;}"},Er={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(
|
|
@@ -661,4 +661,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
661
661
|
`,z.typography.sizes.small.lineHeight,`px + 2 *
|
|
662
662
|
var(--ac-global-dimension-static-size-25) / 2
|
|
663
663
|
)
|
|
664
|
-
);background-color:var(--ac-global-background-color-light);font-size:`,z.typography.sizes.small.fontSize,"px;line-height:",z.typography.sizes.small.lineHeight,"px;color:var(--ac-global-text-color-900);&[data-variant='light']{background-color:var(--ac-global-color-grey-400);}&[data-variant='dark']{background-color:var(--ac-global-background-color-dark);}&[data-variant='danger']{background-color:var(--ac-global-background-color-danger);}","");function y2(e){var r=e.children,o=e.variant,l=o===void 0?"default":o;return a("span",{css:Vc,"data-variant":l,className:"ac-counter"},r)}var Ic=["children"],Fc={name:"zjik7",styles:"display:flex"},Nc={direction:["flexDirection",ra],wrap:["flexWrap",Dc],justifyContent:["justifyContent",Da],alignItems:["alignItems",Da],alignContent:["alignContent",Da]};function _c(e,r){var o=e.children,l=E(e,Ic),t=["base"],i=ia(l),s=i.styleProps,c=ia(l,Nc),d=c.styleProps,n=q(r),g=v({},s.style,d.style);return e.gap!=null&&(g.gap=Fa(e.gap,t)),e.columnGap!=null&&(g.columnGap=Fa(e.columnGap,t)),e.rowGap!=null&&(g.rowGap=Fa(e.rowGap,t)),a("div",v({css:Fc},va(l),{className:O("flex",s.className),style:g,ref:n}),o)}function Da(e){return e==="start"?"flex-start":e==="end"?"flex-end":e}function Dc(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}var x2=C.forwardRef(_c);export{
|
|
664
|
+
);background-color:var(--ac-global-background-color-light);font-size:`,z.typography.sizes.small.fontSize,"px;line-height:",z.typography.sizes.small.lineHeight,"px;color:var(--ac-global-text-color-900);&[data-variant='light']{background-color:var(--ac-global-color-grey-400);}&[data-variant='dark']{background-color:var(--ac-global-background-color-dark);}&[data-variant='danger']{background-color:var(--ac-global-background-color-danger);}","");function y2(e){var r=e.children,o=e.variant,l=o===void 0?"default":o;return a("span",{css:Vc,"data-variant":l,className:"ac-counter"},r)}var Ic=["children"],Fc={name:"zjik7",styles:"display:flex"},Nc={direction:["flexDirection",ra],wrap:["flexWrap",Dc],justifyContent:["justifyContent",Da],alignItems:["alignItems",Da],alignContent:["alignContent",Da]};function _c(e,r){var o=e.children,l=E(e,Ic),t=["base"],i=ia(l),s=i.styleProps,c=ia(l,Nc),d=c.styleProps,n=q(r),g=v({},s.style,d.style);return e.gap!=null&&(g.gap=Fa(e.gap,t)),e.columnGap!=null&&(g.columnGap=Fa(e.columnGap,t)),e.rowGap!=null&&(g.rowGap=Fa(e.rowGap,t)),a("div",v({css:Fc},va(l),{className:O("flex",s.className),style:g,ref:n}),o)}function Da(e){return e==="start"?"flex-start":e==="end"?"flex-end":e}function Dc(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}var x2=C.forwardRef(_c);export{c2 as $,c0 as A,u2 as B,s2 as C,d2 as D,C2 as E,r2 as F,Wc as G,l2 as H,J as I,p1 as J,ni as K,Jc as L,si as M,Uc as N,f2 as O,Ao as P,$c as Q,qc as R,Qc as S,kt as T,Xe as U,y2 as V,D0 as W,Zc as X,Gc as Y,Ra as Z,p2 as _,Tc as a,f1 as a0,o2 as a1,m1 as a2,m2 as a3,Ur as a4,K as b,x2 as c,b2 as d,Ja as e,Yc as f,v2 as g,Xc as h,t2 as i,Ze as j,Rn as k,h2 as l,C1 as m,jc as n,ee as o,Kc as p,g2 as q,w2 as r,e2 as s,a2 as t,i2 as u,z as v,ri as w,El as x,el as y,n2 as z};
|
phoenix/server/static/assets/{vendor-codemirror-DVE2_WBr.js → vendor-codemirror-wfdk9cjp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c1 as at,c2 as yf,c3 as bf,c4 as vf,ai as m,c5 as kr,ah as xf,c6 as Ae,c7 as Cr,c8 as Et,c9 as wf,ca as cn,cb as Sf,cc as kf,cd as Cf,ce as Ql,cf as qn,cg as V,r as we,ch as Af,ci as Mf,cj as Tf,ck as Of,cl as Df,cm as Ef,cn as Zl,co as Pf,cp as Bf,cq as ea,cr as Rf}from"./vendor-
|
|
1
|
+
import{c1 as at,c2 as yf,c3 as bf,c4 as vf,ai as m,c5 as kr,ah as xf,c6 as Ae,c7 as Cr,c8 as Et,c9 as wf,ca as cn,cb as Sf,cc as kf,cd as Cf,ce as Ql,cf as qn,cg as V,r as we,ch as Af,ci as Mf,cj as Tf,ck as Of,cl as Df,cm as Ef,cn as Zl,co as Pf,cp as Bf,cq as ea,cr as Rf}from"./vendor-CtqfhlbC.js";class B{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=$t(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),We.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$t(this,e,t);let i=[];return this.decompose(e,t,i,0),We.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ui(this),r=new ui(e);for(let o=t,l=t;;){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(e=1){return new ui(this,e)}iterRange(e,t=this.length){return new ta(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ia(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?B.empty:e.length<=32?new J(e):We.from(J.split(e,[]))}}class J extends B{constructor(e,t=Lf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new If(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new J(oo(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=fn(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(e,t,i){if(!(i instanceof J))return super.replace(e,t,i);[e,t]=$t(this,e,t);let s=fn(this.text,fn(i.text,oo(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new J(s,r):We.from(J.split(s,[]),r)}sliceString(e,t=this.length,i=`
|
|
2
2
|
`){[e,t]=$t(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new J(i,s)),i=[],s=-1);return s>-1&&t.push(new J(i,s)),t}}class We extends B{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let c=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!c?i.push(l):l.decompose(e-o,t-o,i,c)}o=a+1}}replace(e,t,i){if([e,t]=$t(this,e,t),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(e>=r&&t<=l){let a=o.replace(e-r,t-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 We(h,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
|
3
3
|
`){[e,t]=$t(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof We))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],c=e.children[r];if(a!=c)return i+a.scanIdentical(c,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new J(d,t)}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 We)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]:We.from(h,c)),c=-1,a=h.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new We(l,t)}}B.empty=new J([""],0);function Lf(n){let e=-1;for(let t of n)e+=t.length+1;return e}function fn(n,e,t=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>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function oo(n,e,t){return fn(n,[""],e,t)}class ui{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof J?e.text.length:e.children.length)<<1]}nextInner(e,t){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==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;e--}else if(s instanceof J){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof J?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ta{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new ui(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ia{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(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]=ta.prototype[Symbol.iterator]=ia.prototype[Symbol.iterator]=function(){return this});class If{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function $t(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let Lt="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<Lt.length;n++)Lt[n]+=Lt[n-1];function Nf(n){for(let e=1;e<Lt.length;e+=2)if(Lt[e]>n)return Lt[e-1]<=n;return!1}function lo(n){return n>=127462&&n<=127487}const ao=8205;function se(n,e,t=!0,i=!0){return(t?na:Ff)(n,e,i)}function na(n,e,t){if(e==n.length)return e;e&&sa(n.charCodeAt(e))&&ra(n.charCodeAt(e-1))&&e--;let i=ie(n,e);for(e+=Se(i);e<n.length;){let s=ie(n,e);if(i==ao||s==ao||t&&Nf(s))e+=Se(s),i=s;else if(lo(s)){let r=0,o=e-2;for(;o>=0&&lo(ie(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Ff(n,e,t){for(;e>0;){let i=na(n,e-2,t);if(i<e)return i;e--}return 0}function sa(n){return n>=56320&&n<57344}function ra(n){return n>=55296&&n<56320}function ie(n,e){let t=n.charCodeAt(e);if(!ra(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return sa(i)?(t-55296<<10)+(i-56320)+65536:t}function Ar(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Se(n){return n<65536?1:2}const Ps=/\r\n?|\n/;var ee=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(ee||(ee={}));class Ke{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){Bs(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new Ke(e)}composeDesc(e){return this.empty?e:e.empty?this:oa(this,e)}mapDesc(e,t=!1){return e.empty?this:Rs(this,e,t)}mapPos(e,t=-1,i=ee.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>e)return r+(e-s);r+=l}else{if(i!=ee.Simple&&c>=e&&(i==ee.TrackDel&&s<e&&c>e||i==ee.TrackBefore&&s<e||i==ee.TrackAfter&&c>e))return null;if(c>e||c==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=c}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Ke(e)}static create(e){return new Ke(e)}}class Z extends Ke{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Bs(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return Rs(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(B.empty);i.push(o?e.slice(r,r+o):B.empty)}r+=o}return new Z(t,i)}compose(e){return this.empty?e:e.empty?this:oa(this,e,!0)}map(e,t=!1){return e.empty?this:Rs(this,e,t,!0)}iterChanges(e,t=!1){Bs(this,e,t)}get desc(){return Ke.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new bi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let h=Math.min(r.len,a-l);re(s,h,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;re(t,h,f),f>0&&nt(i,t,r.text),r.forward(h),l+=h}let c=e[o++];for(;l<c;){if(r.done)break e;let h=Math.min(r.len,c-l);re(t,h,-1),re(s,h,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(h),l+=h}}return{changes:new Z(t,i),filtered:Ke.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(h=!1){if(!h&&!s.length)return;o<t&&re(s,t-o,-1);let f=new Z(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 Z){if(h.length!=t)throw new RangeError(`Mismatched change set length (got ${h.length}, expected ${t})`);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>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?B.of(d.split(i||Ps)):d:B.empty,g=p.length;if(f==u&&g==0)return;f<o&&a(),f>o&&re(s,f-o,-1),re(s,u-f,g),nt(r,s,p),o=u}}return c(e),a(!l),l}static empty(e){return new Z(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.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)t.push(r[0],0);else{for(;i.length<s;)i.push(B.empty);i[s]=B.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new Z(t,i)}static createSet(e,t){return new Z(e,t)}}function re(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function nt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(B.empty);n.push(t)}}function Bs(n,e,t){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])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,c,r,h,f),s=c,r=h}}}function Rs(n,e,t,i=!1){let s=[],r=i?[]:null,o=new bi(n),l=new bi(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let c=Math.min(o.len,l.len);re(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&&!t))){let c=l.len;for(re(s,l.ins,-1);c;){let h=Math.min(o.len,c);o.ins>=0&&a<o.i&&o.len<=h&&(re(s,0,o.ins),r&&nt(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;re(s,c,a<o.i?o.ins:0),r&&a<o.i&&nt(r,s,o.text),a=o.i,o.forward(o.len-h)}else{if(o.done&&l.done)return r?Z.createSet(s,r):Ke.create(s);throw new Error("Mismatched change set lengths")}}function oa(n,e,t=!1){let i=[],s=t?[]:null,r=new bi(n),o=new bi(e);for(let l=!1;;){if(r.done&&o.done)return s?Z.createSet(i,s):Ke.create(i);if(r.ins==0)re(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)re(i,0,o.ins,l),s&&nt(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;re(i,a,h,l),s&&h&&nt(s,i,o.text)}else o.ins==-1?(re(i,r.off?0:r.len,a,l),s&&nt(s,i,r.textBit(a))):(re(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&nt(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 bi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[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:e}=this.set,t=this.i-2>>1;return t>=e.length?B.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?B.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class bt{constructor(e,t,i){this.from=e,this.to=t,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 e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new bt(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return v.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return v.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return v.range(e.anchor,e.head)}static create(e,t,i){return new bt(e,t,i)}}class v{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:v.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new v([this.main],0)}addRange(e,t=!0){return v.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,v.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new v(e.ranges.map(t=>bt.fromJSON(t)),e.main)}static single(e,t=e){return new v([v.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return v.normalized(e.slice(),t);i=r.to}return new v(e,t)}static cursor(e,t=0,i,s){return bt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let r=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?bt.create(t,e,48|r):bt.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[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<=t&&t--,e.splice(--s,2,r.anchor>r.head?v.range(a,l):v.range(l,a))}}return new v(e,t)}}function la(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Mr=0;class A{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=Mr++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new A(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Tr),!!e.static,e.enables)}of(e){return new un([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new un(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new un(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Tr(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class un{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=Mr++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[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:((t=e[f.id])!==null&&t!==void 0?t:1)&1||h.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||c&&(u.docChanged||u.selection)||Ls(f,h)){let d=i(f);if(l?!ho(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=Cn(u,p);if(this.dependencies.every(y=>y instanceof A?u.facet(y)===f.facet(y):y instanceof X?u.field(y,!1)==f.field(y,!1):!0)||(l?ho(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 ho(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function Ls(n,e){let t=!1;for(let i of e)di(n,i)&1&&(t=!0);return t}function Vf(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let c=[];for(let h=0;h<i.length;h++){let f=Cn(a,i[h]);if(s[h]==2)for(let u of f)c.push(u);else c.push(f)}return e.combine(c)}return{create(a){for(let c of i)di(a,c);return a.values[o]=l(a),1},update(a,c){if(!Ls(a,r))return 0;let h=l(a);return e.compare(h,a.values[o])?0:(a.values[o]=h,1)},reconfigure(a,c){let h=Ls(a,i),f=c.config.facets[e.id],u=c.facet(e);if(f&&!h&&Tr(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const co=A.define({static:!0});class X{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new X(Mr++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(co).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,co.of({field:this,create:e})]}get extension(){return this}}const mt={lowest:4,low:3,default:2,high:1,highest:0};function ti(n){return e=>new aa(e,n)}const dt={highest:ti(mt.highest),high:ti(mt.high),default:ti(mt.default),low:ti(mt.low),lowest:ti(mt.lowest)};class aa{constructor(e,t){this.inner=e,this.prec=t}}class Kn{of(e){return new Is(this,e)}reconfigure(e){return Kn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Is{constructor(e,t){this.compartment=e,this.inner=t}}class kn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of Hf(e,t,o))u instanceof X?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(y=>y.type==0))if(l[p.id]=a.length<<1|1,Tr(g,d))a.push(i.facet(p));else{let y=p.combine(d.map(b=>b.value));a.push(i&&p.compare(y,i.facet(p))?i.facet(p):y)}else{for(let y of d)y.type==0?(l[y.id]=a.length<<1|1,a.push(y.value)):(l[y.id]=c.length<<1,c.push(b=>y.dynamicSlot(b)));l[p.id]=c.length<<1,c.push(y=>Vf(y,p,d))}}let f=c.map(u=>u(l));return new kn(e,o,f,l,a,r)}}function Hf(n,e,t){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 Is&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let c of o)r(c,l);else if(o instanceof Is){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=e.get(o.compartment)||o.inner;t.set(o.compartment,c),r(c,l)}else if(o instanceof aa)r(o.inner,o.prec);else if(o instanceof X)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof un)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,mt.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,mt.default),i.reduce((o,l)=>o.concat(l))}function di(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Cn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const ha=A.define(),Ns=A.define({combine:n=>n.some(e=>e),static:!0}),ca=A.define({combine:n=>n.length?n[0]:void 0,static:!0}),fa=A.define(),ua=A.define(),da=A.define(),pa=A.define({combine:n=>n.length?n[0]:!1});class Ie{constructor(e,t){this.type=e,this.value=t}static define(){return new Wf}}class Wf{of(e){return new Ie(this,e)}}class $f{constructor(e){this.map=e}of(e){return new D(this,e)}}class D{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new D(this.type,t)}is(e){return this.type==e}static define(e={}){return new $f(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}D.reconfigure=D.define();D.appendConfig=D.define();class Y{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&la(i,t.newLength),r.some(l=>l.type==Y.time)||(this.annotations=r.concat(Y.time.of(Date.now())))}static create(e,t,i,s,r,o){return new Y(e,t,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(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(Y.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}Y.time=Ie.define();Y.userEvent=Ie.define();Y.addToHistory=Ie.define();Y.remote=Ie.define();function zf(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function ma(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=Z.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:D.mapEffects(n.effects,s).concat(D.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function Fs(n,e,t){let i=e.selection,s=It(e.annotations);return e.userEvent&&(s=s.concat(Y.userEvent.of(e.userEvent))),{changes:e.changes instanceof Z?e.changes:Z.of(e.changes||[],t,n.facet(ca)),selection:i&&(i instanceof v?i:v.single(i.anchor,i.head)),effects:It(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function ga(n,e,t){let i=Fs(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=ma(i,Fs(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=Y.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return qf(t?jf(s):s)}function jf(n){let e=n.startState,t=!0;for(let s of e.facet(fa)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:zf(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=Z.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=Y.create(e,s,n.selection&&n.selection.map(r),D.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(ua);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof Y?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof Y?n=r[0]:n=ga(e,It(r),!1)}return n}function qf(n){let e=n.startState,t=e.facet(da),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=ma(i,Fs(e,r,n.changes.newLength),!0))}return i==n?n:Y.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Kf=[];function It(n){return n==null?Kf:Array.isArray(n)?n:[n]}var z=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(z||(z={}));const _f=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Vs;try{Vs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Jf(n){if(Vs)return Vs.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||_f.test(t)))return!0}return!1}function Uf(n){return e=>{if(!/\S/.test(e))return z.Space;if(Jf(e))return z.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return z.Word;return z.Other}}class P{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)di(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return di(this,i),Cn(this,i)}update(...e){return ga(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(Kn.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,c)=>s.set(c,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(D.reconfigure)?(t=null,i=l.value):l.is(D.appendConfig)&&(t=null,i=It(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=kn.resolve(i,s,this),r=new P(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,c)=>c.reconfigure(a,this),null).values);let o=e.startState.facet(Ns)?e.newSelection:e.newSelection.asSingle();new P(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:v.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=It(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.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=D.mapEffects(o,h).concat(D.mapEffects(It(a.effects),f))}return{changes:s,selection:v.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof Z?e:Z.of(e,this.doc.length,this.facet(P.lineSeparator))}toText(e){return B.of(e.split(this.facet(P.lineSeparator)||Ps))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(di(this,t),Cn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof X&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return P.create({doc:e.doc,selection:v.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=kn.resolve(e.extensions||[],new Map),i=e.doc instanceof B?e.doc:B.of((e.doc||"").split(t.staticFacet(P.lineSeparator)||Ps)),s=e.selection?e.selection instanceof v?e.selection:v.single(e.selection.anchor,e.selection.head):v.single(0);return la(s,i.length),t.staticFacet(Ns)||(s=s.asSingle()),new P(t,i,s,t.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{cs as Wr,ct as gu,cu as zt,cv as ye,cw as Wt,r as B,cx as W,cy as z,cz as da,cA as X,R as A,cB as Dn,cC as bu,cD as Kc,cE as xu,cF as Ou,cG as Au,cH as wu,cI as Pu,cJ as Su,cK as Ti,cL as fi,cM as Fc,cN as Z,cO as at,cP as ki,cQ as Ii,cR as rn,cS as _i,cT as Mn,cU as Re,cV as ju,cW as Eu,cX as $u,cY as Fe,cZ as Tu,c_ as ku,c$ as Iu,d0 as _u,d1 as Cu,d2 as Hr,d3 as Du,d4 as Vc,d5 as Mu,d6 as Bu,d7 as Nu,d8 as Lu,d9 as Ru,da as zu,db as Wu,dc as Ku,dd as Fu,de as Vu,df as Xu,dg as Gu,dh as Me,di as Hu,dj as Uu,dk as Yu,dl as qu,dm as an,dn as Zu,dp as Xc,dq as Ju,dr as Qu,ds as es,dt as ts}from"./vendor-6IcPAw_j.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{cs as Wr,ct as gu,cu as zt,cv as ye,cw as Wt,r as B,cx as W,cy as z,cz as da,cA as X,R as A,cB as Dn,cC as bu,cD as Kc,cE as xu,cF as Ou,cG as Au,cH as wu,cI as Pu,cJ as Su,cK as Ti,cL as fi,cM as Fc,cN as Z,cO as at,cP as ki,cQ as Ii,cR as rn,cS as _i,cT as Mn,cU as Re,cV as ju,cW as Eu,cX as $u,cY as Fe,cZ as Tu,c_ as ku,c$ as Iu,d0 as _u,d1 as Cu,d2 as Hr,d3 as Du,d4 as Vc,d5 as Mu,d6 as Bu,d7 as Nu,d8 as Lu,d9 as Ru,da as zu,db as Wu,dc as Ku,dd as Fu,de as Vu,df as Xu,dg as Gu,dh as Me,di as Hu,dj as Uu,dk as Yu,dl as qu,dm as an,dn as Zu,dp as Xc,dq as Ju,dr as Qu,ds as es,dt as ts}from"./vendor-CtqfhlbC.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.
|
phoenix/server/thread_server.py
CHANGED
phoenix/server/types.py
CHANGED
|
@@ -3,23 +3,11 @@ from __future__ import annotations
|
|
|
3
3
|
from abc import ABC, abstractmethod
|
|
4
4
|
from asyncio import Task, create_task, sleep
|
|
5
5
|
from collections import defaultdict
|
|
6
|
+
from collections.abc import Callable, Iterator
|
|
7
|
+
from contextlib import AbstractAsyncContextManager
|
|
6
8
|
from dataclasses import dataclass
|
|
7
9
|
from datetime import datetime, timezone
|
|
8
|
-
from typing import
|
|
9
|
-
Any,
|
|
10
|
-
AsyncContextManager,
|
|
11
|
-
Callable,
|
|
12
|
-
DefaultDict,
|
|
13
|
-
Generic,
|
|
14
|
-
Iterator,
|
|
15
|
-
List,
|
|
16
|
-
Optional,
|
|
17
|
-
Protocol,
|
|
18
|
-
Tuple,
|
|
19
|
-
Type,
|
|
20
|
-
TypeVar,
|
|
21
|
-
final,
|
|
22
|
-
)
|
|
10
|
+
from typing import Any, Generic, Optional, Protocol, TypeVar, final
|
|
23
11
|
|
|
24
12
|
from cachetools import LRUCache
|
|
25
13
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
@@ -30,23 +18,23 @@ from phoenix.db.helpers import SupportedSQLDialect
|
|
|
30
18
|
|
|
31
19
|
|
|
32
20
|
class CanSetLastUpdatedAt(Protocol):
|
|
33
|
-
def set(self, table:
|
|
21
|
+
def set(self, table: type[models.Base], id_: int) -> None: ...
|
|
34
22
|
|
|
35
23
|
|
|
36
24
|
class CanGetLastUpdatedAt(Protocol):
|
|
37
|
-
def get(self, table:
|
|
25
|
+
def get(self, table: type[models.Base], id_: Optional[int] = None) -> Optional[datetime]: ...
|
|
38
26
|
|
|
39
27
|
|
|
40
28
|
class DbSessionFactory:
|
|
41
29
|
def __init__(
|
|
42
30
|
self,
|
|
43
|
-
db: Callable[[],
|
|
31
|
+
db: Callable[[], AbstractAsyncContextManager[AsyncSession]],
|
|
44
32
|
dialect: str,
|
|
45
33
|
):
|
|
46
34
|
self._db = db
|
|
47
35
|
self.dialect = SupportedSQLDialect(dialect)
|
|
48
36
|
|
|
49
|
-
def __call__(self) ->
|
|
37
|
+
def __call__(self) -> AbstractAsyncContextManager[AsyncSession]:
|
|
50
38
|
return self._db()
|
|
51
39
|
|
|
52
40
|
|
|
@@ -79,7 +67,7 @@ class DaemonTask(ABC):
|
|
|
79
67
|
def __init__(self, **kwargs: Any) -> None:
|
|
80
68
|
super().__init__(**kwargs)
|
|
81
69
|
self._running = False
|
|
82
|
-
self._tasks:
|
|
70
|
+
self._tasks: list[Task[None]] = []
|
|
83
71
|
|
|
84
72
|
async def start(self) -> None:
|
|
85
73
|
self._running = True
|
|
@@ -127,19 +115,19 @@ class BatchedCaller(DaemonTask, _HasBatch[_AnyT], Generic[_AnyT], ABC):
|
|
|
127
115
|
|
|
128
116
|
class LastUpdatedAt:
|
|
129
117
|
def __init__(self) -> None:
|
|
130
|
-
self._cache:
|
|
131
|
-
|
|
118
|
+
self._cache: defaultdict[
|
|
119
|
+
type[models.Base],
|
|
132
120
|
LRUCache[int, datetime],
|
|
133
121
|
] = defaultdict(lambda: LRUCache(maxsize=100))
|
|
134
122
|
|
|
135
|
-
def get(self, table:
|
|
123
|
+
def get(self, table: type[models.Base], id_: Optional[int] = None) -> Optional[datetime]:
|
|
136
124
|
if not (cache := self._cache.get(table)):
|
|
137
125
|
return None
|
|
138
126
|
if id_ is None:
|
|
139
127
|
return max(filter(bool, cache.values()), default=None)
|
|
140
128
|
return cache.get(id_)
|
|
141
129
|
|
|
142
|
-
def set(self, table:
|
|
130
|
+
def set(self, table: type[models.Base], id_: int) -> None:
|
|
143
131
|
self._cache[table][id_] = datetime.now(timezone.utc)
|
|
144
132
|
|
|
145
133
|
|
|
@@ -180,7 +168,7 @@ class ApiKeyAttributes(UserTokenAttributes):
|
|
|
180
168
|
|
|
181
169
|
|
|
182
170
|
class _DbId(str, ABC):
|
|
183
|
-
table:
|
|
171
|
+
table: type[models.Base]
|
|
184
172
|
|
|
185
173
|
def __new__(cls, id_: int) -> _DbId:
|
|
186
174
|
assert isinstance(id_, int)
|
|
@@ -272,16 +260,16 @@ class TokenStore(CanReadToken, CanRevokeTokens, CanLogOutUser, Protocol):
|
|
|
272
260
|
async def create_password_reset_token(
|
|
273
261
|
self,
|
|
274
262
|
claims: PasswordResetTokenClaims,
|
|
275
|
-
) ->
|
|
263
|
+
) -> tuple[PasswordResetToken, PasswordResetTokenId]: ...
|
|
276
264
|
async def create_access_token(
|
|
277
265
|
self,
|
|
278
266
|
claims: AccessTokenClaims,
|
|
279
|
-
) ->
|
|
267
|
+
) -> tuple[AccessToken, AccessTokenId]: ...
|
|
280
268
|
async def create_refresh_token(
|
|
281
269
|
self,
|
|
282
270
|
claims: RefreshTokenClaims,
|
|
283
|
-
) ->
|
|
271
|
+
) -> tuple[RefreshToken, RefreshTokenId]: ...
|
|
284
272
|
async def create_api_key(
|
|
285
273
|
self,
|
|
286
274
|
claims: ApiKeyClaims,
|
|
287
|
-
) ->
|
|
275
|
+
) -> tuple[ApiKey, ApiKeyId]: ...
|
phoenix/services.py
CHANGED
|
@@ -3,9 +3,10 @@ import os
|
|
|
3
3
|
import signal
|
|
4
4
|
import subprocess
|
|
5
5
|
import sys
|
|
6
|
+
from collections.abc import Callable
|
|
6
7
|
from pathlib import Path
|
|
7
8
|
from time import sleep, time
|
|
8
|
-
from typing import
|
|
9
|
+
from typing import Optional
|
|
9
10
|
|
|
10
11
|
import psutil
|
|
11
12
|
|
|
@@ -31,7 +32,7 @@ class Service:
|
|
|
31
32
|
)
|
|
32
33
|
|
|
33
34
|
@property
|
|
34
|
-
def command(self) ->
|
|
35
|
+
def command(self) -> list[str]:
|
|
35
36
|
raise NotImplementedError(f"{type(self)} must define `command`")
|
|
36
37
|
|
|
37
38
|
def start(self) -> psutil.Popen:
|
|
@@ -131,7 +132,7 @@ class AppService(Service):
|
|
|
131
132
|
super().__init__()
|
|
132
133
|
|
|
133
134
|
@property
|
|
134
|
-
def command(self) ->
|
|
135
|
+
def command(self) -> list[str]:
|
|
135
136
|
command = [
|
|
136
137
|
sys.executable,
|
|
137
138
|
"main.py",
|
phoenix/session/client.py
CHANGED
|
@@ -4,23 +4,11 @@ import logging
|
|
|
4
4
|
import re
|
|
5
5
|
import weakref
|
|
6
6
|
from collections import Counter
|
|
7
|
+
from collections.abc import Iterable, Mapping, Sequence
|
|
7
8
|
from datetime import datetime
|
|
8
9
|
from io import BytesIO
|
|
9
10
|
from pathlib import Path
|
|
10
|
-
from typing import
|
|
11
|
-
Any,
|
|
12
|
-
BinaryIO,
|
|
13
|
-
Dict,
|
|
14
|
-
Iterable,
|
|
15
|
-
List,
|
|
16
|
-
Literal,
|
|
17
|
-
Mapping,
|
|
18
|
-
Optional,
|
|
19
|
-
Sequence,
|
|
20
|
-
Tuple,
|
|
21
|
-
Union,
|
|
22
|
-
cast,
|
|
23
|
-
)
|
|
11
|
+
from typing import Any, BinaryIO, Literal, Optional, Union, cast
|
|
24
12
|
from urllib.parse import quote, urljoin
|
|
25
13
|
|
|
26
14
|
import httpx
|
|
@@ -129,7 +117,7 @@ class Client(TraceDataExtractor):
|
|
|
129
117
|
# Deprecated
|
|
130
118
|
stop_time: Optional[datetime] = None,
|
|
131
119
|
timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
|
|
132
|
-
) -> Optional[Union[pd.DataFrame,
|
|
120
|
+
) -> Optional[Union[pd.DataFrame, list[pd.DataFrame]]]:
|
|
133
121
|
"""
|
|
134
122
|
Queries spans from the Phoenix server or active session based on specified criteria.
|
|
135
123
|
|
|
@@ -142,7 +130,7 @@ class Client(TraceDataExtractor):
|
|
|
142
130
|
using environment variables. If not provided, falls back to the default project.
|
|
143
131
|
|
|
144
132
|
Returns:
|
|
145
|
-
Union[pd.DataFrame,
|
|
133
|
+
Union[pd.DataFrame, list[pd.DataFrame]]:
|
|
146
134
|
A pandas DataFrame or a list of pandas.
|
|
147
135
|
DataFrames containing the queried span data, or None if no spans are found.
|
|
148
136
|
"""
|
|
@@ -208,7 +196,7 @@ class Client(TraceDataExtractor):
|
|
|
208
196
|
def get_evaluations(
|
|
209
197
|
self,
|
|
210
198
|
project_name: Optional[str] = None,
|
|
211
|
-
) ->
|
|
199
|
+
) -> list[Evaluations]:
|
|
212
200
|
"""
|
|
213
201
|
Retrieves evaluations for a given project from the Phoenix server or active session.
|
|
214
202
|
|
|
@@ -218,7 +206,7 @@ class Client(TraceDataExtractor):
|
|
|
218
206
|
default project.
|
|
219
207
|
|
|
220
208
|
Returns:
|
|
221
|
-
|
|
209
|
+
list[Evaluations]:
|
|
222
210
|
A list of Evaluations objects containing evaluation data. Returns an
|
|
223
211
|
empty list if no evaluations are found.
|
|
224
212
|
"""
|
|
@@ -426,7 +414,7 @@ class Client(TraceDataExtractor):
|
|
|
426
414
|
pandas DataFrame
|
|
427
415
|
"""
|
|
428
416
|
url = urljoin(self._base_url, f"v1/datasets/{dataset_id}/versions")
|
|
429
|
-
response =
|
|
417
|
+
response = self._client.get(url=url, params={"limit": limit})
|
|
430
418
|
response.raise_for_status()
|
|
431
419
|
if not (records := response.json()["data"]):
|
|
432
420
|
return pd.DataFrame()
|
|
@@ -768,10 +756,10 @@ class Client(TraceDataExtractor):
|
|
|
768
756
|
FileName: TypeAlias = str
|
|
769
757
|
FilePointer: TypeAlias = BinaryIO
|
|
770
758
|
FileType: TypeAlias = str
|
|
771
|
-
FileHeaders: TypeAlias =
|
|
759
|
+
FileHeaders: TypeAlias = dict[str, str]
|
|
772
760
|
|
|
773
761
|
|
|
774
|
-
def _get_csv_column_headers(path: Path) ->
|
|
762
|
+
def _get_csv_column_headers(path: Path) -> tuple[str, ...]:
|
|
775
763
|
path = path.resolve()
|
|
776
764
|
if not path.is_file():
|
|
777
765
|
raise FileNotFoundError(f"File does not exist: {path}")
|
|
@@ -788,7 +776,7 @@ def _get_csv_column_headers(path: Path) -> Tuple[str, ...]:
|
|
|
788
776
|
def _prepare_csv(
|
|
789
777
|
path: Path,
|
|
790
778
|
keys: DatasetKeys,
|
|
791
|
-
) ->
|
|
779
|
+
) -> tuple[FileName, FilePointer, FileType, FileHeaders]:
|
|
792
780
|
column_headers = _get_csv_column_headers(path)
|
|
793
781
|
(header, freq), *_ = Counter(column_headers).most_common(1)
|
|
794
782
|
if freq > 1:
|
|
@@ -803,7 +791,7 @@ def _prepare_csv(
|
|
|
803
791
|
def _prepare_pyarrow(
|
|
804
792
|
df: pd.DataFrame,
|
|
805
793
|
keys: DatasetKeys,
|
|
806
|
-
) ->
|
|
794
|
+
) -> tuple[FileName, FilePointer, FileType, FileHeaders]:
|
|
807
795
|
if df.empty:
|
|
808
796
|
raise ValueError("dataframe has no data")
|
|
809
797
|
(header, freq), *_ = Counter(df.columns).most_common(1)
|
|
@@ -824,7 +812,7 @@ _response_header = re.compile(r"(?i)(response|answer|output)s*$")
|
|
|
824
812
|
|
|
825
813
|
def _infer_keys(
|
|
826
814
|
table: Union[str, Path, pd.DataFrame],
|
|
827
|
-
) ->
|
|
815
|
+
) -> tuple[tuple[str, ...], tuple[str, ...], tuple[str, ...]]:
|
|
828
816
|
column_headers = (
|
|
829
817
|
tuple(table.columns)
|
|
830
818
|
if isinstance(table, pd.DataFrame)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from abc import ABC, abstractmethod
|
|
2
2
|
from datetime import datetime
|
|
3
|
-
from typing import
|
|
3
|
+
from typing import Optional, Union, cast
|
|
4
4
|
|
|
5
5
|
import pandas as pd
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ class TraceDataExtractor(ABC):
|
|
|
28
28
|
root_spans_only: Optional[bool] = None,
|
|
29
29
|
project_name: Optional[str] = None,
|
|
30
30
|
timeout: Optional[int] = DEFAULT_TIMEOUT_IN_SECONDS,
|
|
31
|
-
) -> Optional[Union[pd.DataFrame,
|
|
31
|
+
) -> Optional[Union[pd.DataFrame, list[pd.DataFrame]]]: ...
|
|
32
32
|
|
|
33
33
|
def get_spans_dataframe(
|
|
34
34
|
self,
|
|
@@ -58,7 +58,7 @@ class TraceDataExtractor(ABC):
|
|
|
58
58
|
def get_evaluations(
|
|
59
59
|
self,
|
|
60
60
|
project_name: Optional[str] = None,
|
|
61
|
-
) ->
|
|
61
|
+
) -> list[Evaluations]: ...
|
|
62
62
|
|
|
63
63
|
def get_trace_dataset(
|
|
64
64
|
self,
|