@nocobase/plugin-ai 2.1.0-alpha.15 → 2.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/skills/business-analysis-report/SKILLS.md +13 -0
- package/dist/ai/tools/businessReportGenerator.js +21 -6
- package/dist/client/{fd4e5dcaf24052c1.js → 44a97eeb67ff35d9.js} +1 -1
- package/dist/client/6a8fa308c9f51507.js +10 -0
- package/dist/client/8c8f0213e3b46621.js +10 -0
- package/dist/client/ai-employees/business-report/ui/report-utils.d.ts +2 -0
- package/dist/client/f8a32cc1ac47cf6b.js +10 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +14 -14
- package/dist/node_modules/fast-glob/package.json +1 -1
- package/dist/node_modules/flexsearch/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/openai/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/manager/ai-context-datasource-manager.js +30 -1
- package/package.json +2 -2
- package/dist/client/a8d6d81fb88f1a8e.js +0 -10
- package/dist/client/d5e9663991c30eed.js +0 -10
|
@@ -26,9 +26,17 @@ Your job is to understand the business question, use the data-query workflow to
|
|
|
26
26
|
|
|
27
27
|
- Clarify the business objective, audience, time range, and metrics.
|
|
28
28
|
- Identify the dimensions, measures, and comparison baselines needed to answer the question.
|
|
29
|
+
- Identify which data sources may contain relevant evidence before you start querying collections.
|
|
29
30
|
|
|
30
31
|
## 2. Use the data-query workflow before reporting
|
|
31
32
|
|
|
33
|
+
- If the user did not explicitly name a data source, call `getDataSources` first.
|
|
34
|
+
- If multiple available data sources could plausibly contain relevant business data, inspect each candidate data source before deciding the analysis scope.
|
|
35
|
+
- Do not silently analyze only one data source when multiple relevant data sources are available.
|
|
36
|
+
- In the final report, state which data sources were included and explicitly mention any relevant data sources that were excluded, with the reason.
|
|
37
|
+
- When you must generate explicit datetime filter values yourself, generate them in UTC using ISO 8601 timestamps with a trailing `Z`.
|
|
38
|
+
- Do not generate local offsets such as `+09:00` or `-05:00`, and do not provide timezone values yourself.
|
|
39
|
+
- If timezone affects whether a boundary record belongs to one period or another, verify the boundary with raw records and state that the generated filter values use UTC.
|
|
32
40
|
- Inspect the schema with `getCollectionNames`, `getCollectionMetadata`, or `searchFieldMetadata`.
|
|
33
41
|
- Use `dataQuery` for grouped metrics, trends, comparisons, rankings, and post-aggregation filtering.
|
|
34
42
|
- Use `dataSourceQuery` for raw-row inspection and anomaly checks.
|
|
@@ -44,6 +52,9 @@ For business reporting, generate the final report directly with `businessReportG
|
|
|
44
52
|
Do not call a separate chart-only tool first.
|
|
45
53
|
If charts are needed, include their ECharts `options` directly in the `charts` field of the same `businessReportGenerator` call.
|
|
46
54
|
When the report needs mixed text-and-chart layout, place charts inline by adding markdown placeholders such as `{{chart:1}}` and `{{chart:2}}` where each chart should appear.
|
|
55
|
+
Call `businessReportGenerator` at most once for the same user request unless the user explicitly asks you to regenerate the whole report.
|
|
56
|
+
If the report tool succeeds, stop and return the result instead of making follow-up retry calls to add charts.
|
|
57
|
+
If you cannot produce valid charts in that single call, omit `charts` and complete the report as markdown-only.
|
|
47
58
|
|
|
48
59
|
The report should usually include:
|
|
49
60
|
|
|
@@ -68,9 +79,11 @@ Prefer this structure:
|
|
|
68
79
|
- Every chart must be grounded in the queried data.
|
|
69
80
|
- Prefer a small number of high-signal charts over many low-value charts.
|
|
70
81
|
- If the data is incomplete, say so explicitly in the report.
|
|
82
|
+
- If the report only covers part of the available data sources, say so explicitly in the report.
|
|
71
83
|
- Do not fabricate causes, trends, or recommendations that are unsupported by the data.
|
|
72
84
|
- Do not split chart generation and report generation into separate steps for the same report unless the user explicitly asks for a standalone chart.
|
|
73
85
|
- If charts should appear inside the narrative, use `{{chart:n}}` placeholders in the markdown instead of relying on charts being appended at the end.
|
|
86
|
+
- Do not write a `Generated at`, `报告生成时间`, or similar footer inside the markdown. The platform adds the generated time automatically.
|
|
74
87
|
|
|
75
88
|
# Available Tools
|
|
76
89
|
|
|
@@ -42,6 +42,21 @@ module.exports = __toCommonJS(businessReportGenerator_exports);
|
|
|
42
42
|
var import_ai = require("@nocobase/ai");
|
|
43
43
|
var import_zod = require("zod");
|
|
44
44
|
var import_package = __toESM(require("../../../package.json"));
|
|
45
|
+
function normalizeChartsInput(value) {
|
|
46
|
+
if (typeof value !== "string") {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
const raw = value.trim();
|
|
50
|
+
if (!raw) {
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const parsed = JSON.parse(raw);
|
|
55
|
+
return Array.isArray(parsed) ? parsed : void 0;
|
|
56
|
+
} catch (error) {
|
|
57
|
+
return void 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
45
60
|
const chartSchema = import_zod.z.object({
|
|
46
61
|
title: import_zod.z.string().optional().describe("Chart title shown in the report."),
|
|
47
62
|
summary: import_zod.z.string().optional().describe("Short explanation of what this chart shows."),
|
|
@@ -56,26 +71,26 @@ var businessReportGenerator_default = (0, import_ai.defineTools)({
|
|
|
56
71
|
},
|
|
57
72
|
definition: {
|
|
58
73
|
name: "businessReportGenerator",
|
|
59
|
-
description: "Generate a complete business analysis report with markdown content and embedded ECharts charts in a single tool call.",
|
|
74
|
+
description: "Generate a complete business analysis report with markdown content and embedded ECharts charts in a single tool call. Call this tool once per report and stop after it succeeds.",
|
|
60
75
|
schema: import_zod.z.object({
|
|
61
76
|
title: import_zod.z.string().describe("Report title."),
|
|
62
77
|
summary: import_zod.z.string().optional().describe("Short executive summary shown in the report header."),
|
|
63
78
|
markdown: import_zod.z.string().describe(
|
|
64
|
-
"Main report body in markdown. Use sections for findings, risks, and recommendations. To place a chart inline at a specific position, insert placeholders like {{chart:1}}, {{chart:2}}."
|
|
79
|
+
"Main report body in markdown. Use sections for findings, risks, and recommendations. To place a chart inline at a specific position, insert placeholders like {{chart:1}}, {{chart:2}}. Do not include any generated-at footer because the platform renders that automatically."
|
|
65
80
|
),
|
|
66
|
-
charts: import_zod.z.array(chartSchema).optional().describe(
|
|
67
|
-
"Charts included in the report. Put full ECharts options here directly instead of generating charts in a separate step."
|
|
81
|
+
charts: import_zod.z.union([import_zod.z.array(chartSchema), import_zod.z.string()]).optional().describe(
|
|
82
|
+
"Charts included in the report. Put full ECharts options here directly instead of generating charts in a separate step. If chart data is unavailable, omit this field instead of retrying the tool."
|
|
68
83
|
),
|
|
69
84
|
fileName: import_zod.z.string().optional().describe("Optional export file name without extension.")
|
|
70
85
|
})
|
|
71
86
|
},
|
|
72
87
|
invoke: async (_ctx, args) => {
|
|
73
|
-
|
|
88
|
+
const charts = normalizeChartsInput(args.charts);
|
|
74
89
|
return {
|
|
75
90
|
status: "success",
|
|
76
91
|
content: JSON.stringify({
|
|
77
92
|
title: args.title,
|
|
78
|
-
chartCount: (
|
|
93
|
+
chartCount: Array.isArray(charts) ? charts.length : 0,
|
|
79
94
|
fileName: args.fileName ?? null
|
|
80
95
|
})
|
|
81
96
|
};
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["861"],{244:function(e,t,n){var r=n(9155);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},s={};function i(e){return!!a.call(s,e)||!a.call(u,e)&&(l.test(e)?s[e]=!0:(u[e]=!0,!1))}function c(e,t,n,r,o,a,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){d[e]=new c(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];d[t]=new c(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){d[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){d[e]=new c(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){d[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){d[e]=new c(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){d[e]=new c(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){d[e]=new c(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){d[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var f=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)}),d.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)});var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(h).forEach(function(e){g.forEach(function(t){h[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=h[e]})});var m=/["'&<>]/;function y(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=m.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var b=/([A-Z])/g,v=/^ms-/,S=Array.isArray;function k(e,t){return{insertionMode:e,selectedValue:t}}var x=new Map;function w(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(a.call(n,r)){var l=n[r];if(null!=l&&"boolean"!=typeof l&&""!==l){if(0===r.indexOf("--")){var u=y(r);l=y((""+l).trim())}else{u=r;var s=x.get(u);void 0!==s||(s=y(u.replace(b,"-$1").toLowerCase().replace(v,"-ms-")),x.set(u,s)),u=s,l="number"==typeof l?0===l||a.call(h,r)?""+l:l+"px":y((""+l).trim())}t?(t=!1,e.push(' style="',u,":",l)):e.push(";",u,":",l)}}t||e.push('"')}function C(e,t,n,r){switch(n){case"style":w(e,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]){if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',y(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',y(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',y(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',y(r),'"')}}else if(i(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',y(r),'"')}}}function E(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(""+t)}}function F(e,t,n,r){e.push(_(n));var o,l=n=null;for(o in t)if(a.call(t,o)){var u=t[o];if(null!=u)switch(o){case"children":n=u;break;case"dangerouslySetInnerHTML":l=u;break;default:C(e,r,o,u)}}return e.push(">"),E(e,l,n),"string"==typeof n?(e.push(y(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,R=new Map;function _(e){var t=R.get(e);if(void 0===t){if(!T.test(e))throw Error(o(65,e));t="<"+e,R.set(e,t)}return t}function P(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(o(395));return e.push(n),e.push('"></template>')}var I=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(I,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function B(e,t,n,r){return n.generateStaticMarkup?(e.push(y(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(y(t)),e=!0),e)}var D=Object.assign,z=Symbol.for("react.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),A=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Z=Symbol.for("react.scope"),G=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),J=Symbol.for("react.default_value"),Y=Symbol.iterator,K={};function Q(e,t){if(!(e=e.contextTypes))return K;var n,r={};for(n in e)r[n]=t[n];return r}var ee=null;function et(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));et(e,n)}t.context._currentValue2=t.value}}function en(e){var t=ee;t!==e&&(null===t?function e(t){var n=t.parent;null!==n&&e(n),t.context._currentValue2=t.value}(e):null===e?function e(t){t.context._currentValue2=t.parentValue,null!==(t=t.parent)&&e(t)}(t):t.depth===e.depth?et(t,e):t.depth>e.depth?function e(t,n){if(t.context._currentValue2=t.parentValue,null===(t=t.parent))throw Error(o(402));t.depth===n.depth?et(t,n):e(t,n)}(t,e):function e(t,n){var r=n.parent;if(null===r)throw Error(o(402));t.depth===r.depth?et(t,r):e(t,r),n.context._currentValue2=n.value}(t,e),ee=e)}var er={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function eo(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=er,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue2:r,"function"==typeof(l=t.getDerivedStateFromProps)&&(e.state=o=null==(l=l(n,o))?o:D({},o,l)),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&er.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,l=a.replace,a.queue=null,a.replace=!1,l&&1===t.length)e.state=t[0];else{for(a=l?t[0]:e.state,o=!0,l=+!!l;l<t.length;l++){var u=t[l];null!=(u="function"==typeof u?u.call(e,a,n,r):u)&&(o?(o=!1,a=D({},a,u)):D(a,u))}e.state=a}else a.queue=null}var ea={id:1,overflow:""};function el(e,t,n){var r=e.id;e=e.overflow;var o=32-eu(r)-1;r&=~(1<<o),n+=1;var a=32-eu(t)+o;if(30<a){var l=o-o%5;return a=(r&(1<<l)-1).toString(32),r>>=l,o-=l,{id:1<<32-eu(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var eu=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(es(e)/ei|0)|0},es=Math.log,ei=Math.LN2,ec="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ed=null,ef=null,ep=null,eh=null,eg=!1,em=!1,ey=0,eb=null,ev=0;function eS(){if(null===ed)throw Error(o(321));return ed}function ek(){if(0<ev)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function ex(){return null===eh?null===ep?(eg=!1,ep=eh=ek()):(eg=!0,eh=ep):null===eh.next?(eg=!1,eh=eh.next=ek()):(eg=!0,eh=eh.next),eh}function ew(){ef=ed=null,em=!1,ep=null,ev=0,eh=eb=null}function eC(e,t){return"function"==typeof t?t(e):t}function eE(e,t,n){if(ed=eS(),eh=ex(),eg){var r=eh.queue;if(t=r.dispatch,null!==eb&&void 0!==(n=eb.get(r))){eb.delete(r),r=eh.memoizedState;do r=e(r,n.action),n=n.next;while(null!==n);return eh.memoizedState=r,[r,t]}return[eh.memoizedState,t]}return e=e===eC?"function"==typeof t?t():t:void 0!==n?n(t):t,eh.memoizedState=e,e=(e=eh.queue={last:null,dispatch:null}).dispatch=eT.bind(null,ed,e),[eh.memoizedState,e]}function eF(e,t){if(ed=eS(),eh=ex(),t=void 0===t?null:t,null!==eh){var n=eh.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!ec(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),eh.memoizedState=[e,t],e}function eT(e,t,n){if(25<=ev)throw Error(o(301));if(e===ed)if(em=!0,e={action:n,next:null},null===eb&&(eb=new Map),void 0===(n=eb.get(t)))eb.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function eR(){throw Error(o(394))}function e_(){}var eP={readContext:function(e){return e._currentValue2},useContext:function(e){return eS(),e._currentValue2},useMemo:eF,useReducer:eE,useRef:function(e){ed=eS();var t=(eh=ex()).memoizedState;return null===t?(e={current:e},eh.memoizedState=e):t},useState:function(e){return eE(eC,e)},useInsertionEffect:e_,useLayoutEffect:function(){},useCallback:function(e,t){return eF(function(){return e},t)},useImperativeHandle:e_,useEffect:e_,useDebugValue:e_,useDeferredValue:function(e){return eS(),e},useTransition:function(){return eS(),[!1,eR]},useId:function(){var e=ef.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-eu(e)-1)).toString(32)+t;var n=eI;if(null===n)throw Error(o(404));return t=ey++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return eS(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},eI=null,eM=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function eB(e){return console.error(e),null}function eD(){}function ez(e,t,n,r,o,a,l,u){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&eG(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:l,treeContext:u};return o.add(s),s}function eN(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function eV(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function e$(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function eL(e,t,n,r,o){for(ed={},ef=t,ey=0,e=n(r,o);em;)em=!1,ey=0,ev+=1,eh=null,e=n(r,o);return ew(),e}function eO(e,t,n,r){var a=n.render(),l=r.childContextTypes;if(null!=l){var u=t.legacyContext;if("function"!=typeof n.getChildContext)r=u;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(o(108,function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case V:return"Fragment";case N:return"Portal";case L:return"Profiler";case $:return"StrictMode";case q:return"Suspense";case H:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case A:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case j:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case U:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case W:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(r)||"Unknown",s));r=D({},u,n)}t.legacyContext=r,ej(e,t,a),t.legacyContext=u}else ej(e,t,a)}function eA(e,t){if(e&&e.defaultProps)for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function ej(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case z:!function e(t,n,l,u,s){if("function"==typeof l)if(l.prototype&&l.prototype.isReactComponent){s=Q(l,n.legacyContext);var c=l.contextType;eo(c=new l(u,"object"==typeof c&&null!==c?c._currentValue2:s),l,u,s),eO(t,n,c,l)}else{c=Q(l,n.legacyContext),s=eL(t,n,l,u,c);var d=0!==ey;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)eo(s,l,u,c),eO(t,n,s,l);else if(d){u=n.treeContext,n.treeContext=el(u,1,0);try{ej(t,n,s)}finally{n.treeContext=u}}else ej(t,n,s)}else if("string"==typeof l){switch(c=function(e,t,n,l,u){switch(t){case"select":e.push(_("select"));var s=null,c=null;for(m in n)if(a.call(n,m)){var d=n[m];if(null!=d)switch(m){case"children":s=d;break;case"dangerouslySetInnerHTML":c=d;break;case"defaultValue":case"value":break;default:C(e,l,m,d)}}return e.push(">"),E(e,c,s),s;case"option":c=u.selectedValue,e.push(_("option"));var f,p,h=d=null,g=null,m=null;for(s in n)if(a.call(n,s)){var b=n[s];if(null!=b)switch(s){case"children":d=b;break;case"selected":g=b;break;case"dangerouslySetInnerHTML":m=b;break;case"value":h=b;default:C(e,l,s,b)}}if(null!=c)if(n=null!==h?""+h:(f=d,p="",r.Children.forEach(f,function(e){null!=e&&(p+=e)}),p),S(c)){for(l=0;l<c.length;l++)if(""+c[l]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else g&&e.push(' selected=""');return e.push(">"),E(e,m,d),d;case"textarea":for(d in e.push(_("textarea")),m=c=s=null,n)if(a.call(n,d)&&null!=(h=n[d]))switch(d){case"children":m=h;break;case"value":s=h;break;case"defaultValue":c=h;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:C(e,l,d,h)}if(null===s&&null!==c&&(s=c),e.push(">"),null!=m){if(null!=s)throw Error(o(92));if(S(m)&&1<m.length)throw Error(o(93));s=""+m}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),null!==s&&e.push(y(""+s)),null;case"input":for(c in e.push(_("input")),h=m=d=s=null,n)if(a.call(n,c)&&null!=(g=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":h=g;break;case"defaultValue":d=g;break;case"checked":m=g;break;case"value":s=g;break;default:C(e,l,c,g)}return null!==m?C(e,l,"checked",m):null!==h&&C(e,l,"checked",h),null!==s?C(e,l,"value",s):null!==d&&C(e,l,"value",d),e.push("/>"),null;case"menuitem":for(var v in e.push(_("menuitem")),n)if(a.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:C(e,l,v,s)}return e.push(">"),null;case"title":for(b in e.push(_("title")),s=null,n)if(a.call(n,b)&&null!=(c=n[b]))switch(b){case"children":s=c;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:C(e,l,b,c)}return e.push(">"),s;case"listing":case"pre":for(h in e.push(_(t)),c=s=null,n)if(a.call(n,h)&&null!=(d=n[h]))switch(h){case"children":s=d;break;case"dangerouslySetInnerHTML":c=d;break;default:C(e,l,h,d)}if(e.push(">"),null!=c){if(null!=s)throw Error(o(60));if("object"!=typeof c||!("__html"in c))throw Error(o(61));null!=(n=c.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var k in e.push(_(t)),n)if(a.call(n,k)&&null!=(s=n[k]))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:C(e,l,k,s)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return F(e,n,t,l);case"html":return 0===u.insertionMode&&e.push("<!DOCTYPE html>"),F(e,n,t,l);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return F(e,n,t,l);for(g in e.push(_(t)),c=s=null,n)if(a.call(n,g)&&null!=(d=n[g]))switch(g){case"children":s=d;break;case"dangerouslySetInnerHTML":c=d;break;case"style":w(e,l,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:i(g)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",g,'="',y(d),'"')}return e.push(">"),E(e,c,s),s}}((s=n.blockedSegment).chunks,l,u,t.responseState,s.formatContext),s.lastPushedText=!1,d=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return k(1,null!=n.value?n.value:n.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=e.insertionMode||0===e.insertionMode?k(1,null):e}(d,l,u),eH(t,n,c),s.formatContext=d,l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push("</",l,">")}s.lastPushedText=!1}else{switch(l){case X:case G:case $:case L:case V:case H:ej(t,n,u.children);return;case Z:throw Error(o(343));case q:e:{l=n.blockedBoundary,s=n.blockedSegment,c=u.fallback,u=u.children;var f={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d=new Set,errorDigest:null},p=eN(t,s.chunks.length,f,s.formatContext,!1,!1);s.children.push(p),s.lastPushedText=!1;var h=eN(t,0,null,s.formatContext,!1,!1);h.parentFlushed=!0,n.blockedBoundary=f,n.blockedSegment=h;try{if(eH(t,n,u),t.responseState.generateStaticMarkup||h.lastPushedText&&h.textEmbedded&&h.chunks.push("\x3c!-- --\x3e"),h.status=1,eW(f,h),0===f.pendingTasks)break e}catch(e){h.status=4,f.forceClientRender=!0,f.errorDigest=eV(t,e)}finally{n.blockedBoundary=l,n.blockedSegment=s}n=ez(t,c,l,p,d,n.legacyContext,n.context,n.treeContext),t.pingedTasks.push(n)}return}if("object"==typeof l&&null!==l)switch(l.$$typeof){case j:if(u=eL(t,n,l.render,u,s),0!==ey){l=n.treeContext,n.treeContext=el(l,1,0);try{ej(t,n,u)}finally{n.treeContext=l}}else ej(t,n,u);return;case U:u=eA(l=l.type,u),e(t,n,l,u,s);return;case O:if(s=u.children,l=l._context,u=u.value,c=l._currentValue2,l._currentValue2=u,ee=u={parent:d=ee,depth:null===d?0:d.depth+1,context:l,parentValue:c,value:u},n.context=u,ej(t,n,s),null===(t=ee))throw Error(o(403));u=t.parentValue,t.context._currentValue2=u===J?t.context._defaultValue:u,t=ee=t.parent,n.context=t;return;case A:ej(t,n,u=(u=u.children)(l._currentValue2));return;case W:u=eA(l=(s=l._init)(l._payload),u),e(t,n,l,u,void 0);return}throw Error(o(130,null==l?l:typeof l,""))}}(e,t,n.type,n.props,n.ref);return;case N:throw Error(o(257));case W:var l=n._init;ej(e,t,n=l(n._payload));return}if(S(n))return void eq(e,t,n);if((l=null===n||"object"!=typeof n?null:"function"==typeof(l=Y&&n[Y]||n["@@iterator"])?l:null)&&(l=l.call(n))){if(!(n=l.next()).done){var u=[];do u.push(n.value),n=l.next();while(!n.done);eq(e,t,u)}return}throw Error(o(31,"[object Object]"===(e=Object.prototype.toString.call(n))?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(l=t.blockedSegment).lastPushedText=B(t.blockedSegment.chunks,n,e.responseState,l.lastPushedText):"number"==typeof n&&((l=t.blockedSegment).lastPushedText=B(t.blockedSegment.chunks,""+n,e.responseState,l.lastPushedText))}function eq(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=el(a,r,o);try{eH(e,t,n[o])}finally{t.treeContext=a}}}function eH(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return ej(e,t,n)}catch(s){if(ew(),"object"==typeof s&&null!==s&&"function"==typeof s.then){n=s;var l=t.blockedSegment,u=eN(e,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(u),l.lastPushedText=!1,e=ez(e,t.node,t.blockedBoundary,u,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,en(a)}else throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,en(a),s}}function eU(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,eZ(this,t,e)}function eW(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&eW(e,n)}else e.completedSegments.push(t)}function eZ(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=eD,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&eW(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(eU,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(eW(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function eG(e){if(2!==e.status){var t=ee,n=eM.current;eM.current=eP;var r=eI;eI=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var l=a[o],u=l.blockedSegment;if(0===u.status){en(l.context);try{ej(e,l,l.node),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),l.abortSet.delete(l),u.status=1,eZ(e,l.blockedBoundary,u)}catch(t){if(ew(),"object"==typeof t&&null!==t&&"function"==typeof t.then){var s=l.ping;t.then(s,s)}else{l.abortSet.delete(l),u.status=4;var i=l.blockedBoundary,c=eV(e,t);null===i?e$(e,t):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,i.errorDigest=c,i.parentFlushed&&e.clientRenderedBoundaries.push(i))),e.allPendingTasks--,0===e.allPendingTasks&&(0,e.onAllReady)()}}finally{}}}a.splice(0,o),null!==e.destination&&e0(e,e.destination)}catch(t){eV(e,t),e$(e,t)}finally{eI=r,eM.current=n,n===eP&&en(t)}}}function eX(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var a=!0;r=n.chunks;var l=0;n=n.children;for(var u=0;u<n.length;u++){for(a=n[u];l<a.index;l++)t.push(r[l]);a=eJ(e,t,a)}for(;l<r.length-1;l++)t.push(r[l]);return l<r.length&&(a=t.push(r[l])),a;default:throw Error(o(390))}}function eJ(e,t,n){var r=n.boundary;if(null===r)return eX(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=y(r),t.push(r),t.push('"')),t.push("></template>")),eX(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,l=a.nextSuspenseID++;return a=a.boundaryPrefix+l.toString(16),r=r.id=a,P(t,e.responseState,r),eX(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),P(t,e.responseState,r.id),eX(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(o(391));return eJ(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function eY(e,t,n){switch(!function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),eJ(e,t,n),n.formatContext.insertionMode){case 0:case 1:return t.push("</div>");case 2:return t.push("</svg>");case 3:return t.push("</math>");case 4:return t.push("</table>");case 5:return t.push("</tbody></table>");case 6:return t.push("</tr></table>");case 7:return t.push("</colgroup></table>");default:throw Error(o(397))}}function eK(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)eQ(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(o(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function eQ(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return eY(e,t,r)}return eY(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t.push('")<\/script>')}function e0(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){eJ(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var a,l=e.clientRenderedBoundaries;for(a=0;a<l.length;a++){var u=l[a];r=t;var s=e.responseState,i=u.id,c=u.errorDigest,d=u.errorMessage,f=u.errorComponentStack;if(r.push(s.startInlineScript),s.sentClientRenderFunction?r.push('$RX("'):(s.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===i)throw Error(o(395));if(r.push(i),r.push('"'),c||d||f){r.push(",");var p=M(c||"");r.push(p)}if(d||f){r.push(",");var h=M(d||"");r.push(h)}if(f){r.push(",");var g=M(f);r.push(g)}if(!r.push(")<\/script>")){e.destination=null,a++,l.splice(0,a);return}}l.splice(0,a);var m=e.completedBoundaries;for(a=0;a<m.length;a++)if(!eK(e,t,m[a])){e.destination=null,a++,m.splice(0,a);return}m.splice(0,a);var y=e.partialBoundaries;for(a=0;a<y.length;a++){var b=y[a];e:{l=e,u=t;var v=b.completedSegments;for(s=0;s<v.length;s++)if(!eQ(l,u,b,v[s])){s++,v.splice(0,s);var S=!1;break e}v.splice(0,s),S=!0}if(!S){e.destination=null,a++,y.splice(0,a);return}}y.splice(0,a);var k=e.completedBoundaries;for(a=0;a<k.length;a++)if(!eK(e,t,k[a])){e.destination=null,a++,k.splice(0,a);return}k.splice(0,a)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function e1(){}function e2(e,t,n,r){var a,l,u,s,i,c,d,f,p,h,g,m=!1,y=null,b="",v={push:function(e){return null!==e&&(b+=e),!0},destroy:function(e){m=!0,y=e}},S=!1;l=e,u={bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(a=void 0===(a=t?t.identifierPrefix:void 0)?"":a)+"P:",segmentPrefix:a+"S:",boundaryPrefix:a+"B:",idPrefix:a,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:n},s={insertionMode:1,selectedValue:null},i=1/0,c=void 0,d=function(){S=!0},f=void 0,p=void 0,h=[],(s=eN(u={destination:null,responseState:u,progressiveChunkSize:void 0===i?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:g=new Set,pingedTasks:h,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===e1?eB:e1,onAllReady:void 0===c?eD:c,onShellReady:void 0===d?eD:d,onShellError:void 0===f?eD:f,onFatalError:void 0===p?eD:p},0,null,s,!1,!1)).parentFlushed=!0,l=ez(u,l,null,s,g,K,null,ea),h.push(l),eG(e=u);var k=e;try{var x=k.abortableTasks;x.forEach(function(e){return function e(t,n,r){var a=t.blockedBoundary;t.blockedSegment.status=3,null===a?(n.allPendingTasks--,2!==n.status&&(n.status=2,null!==n.destination&&n.destination.push(null))):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,t=void 0===r?Error(o(432)):r,a.errorDigest=n.onError(t),a.parentFlushed&&n.clientRenderedBoundaries.push(a)),a.fallbackAbortableTasks.forEach(function(t){return e(t,n,r)}),a.fallbackAbortableTasks.clear(),n.allPendingTasks--,0===n.allPendingTasks&&(a=n.onAllReady)())}(e,k,r)}),x.clear(),null!==k.destination&&e0(k,k.destination)}catch(e){eV(k,e),e$(k,e)}if(1===e.status)e.status=2,v.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=v;try{e0(e,v)}catch(t){eV(e,t),e$(e,t)}}if(m)throw y;if(!S)throw Error(o(426));return b}t.renderToNodeStream=function(){throw Error(o(207))},t.renderToStaticMarkup=function(e,t){return e2(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(o(208))},t.renderToString=function(e,t){return e2(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},6440:function(e,t,n){var r=n(9155);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=null,l=0;function u(e,t){if(0!==t.length)if(512<t.length)0<l&&(e.enqueue(new Uint8Array(a.buffer,0,l)),a=new Uint8Array(512),l=0),e.enqueue(t);else{var n=a.length-l;n<t.length&&(0===n?e.enqueue(a):(a.set(t.subarray(0,n),l),e.enqueue(a),t=t.subarray(n)),a=new Uint8Array(512),l=0),a.set(t,l),l+=t.length}}function s(e,t){return u(e,t),!0}function i(e){a&&0<l&&(e.enqueue(new Uint8Array(a.buffer,0,l)),a=null,l=0)}var c=new TextEncoder;function d(e){return c.encode(e)}function f(e){return c.encode(e)}function p(e,t){"function"==typeof e.error?e.error(t):e.close()}var h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},y={};function b(e){return!!h.call(y,e)||!h.call(m,e)&&(g.test(e)?y[e]=!0:(m[e]=!0,!1))}function v(e,t,n,r,o,a,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new v(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new v(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new v(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new v(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new v(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new v(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(k,x);S[t]=new v(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(k,x);S[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(k,x);S[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});var w={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C=["Webkit","ms","Moz","O"];Object.keys(w).forEach(function(e){C.forEach(function(t){w[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=w[e]})});var E=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=E.exec(e);if(t){var n,r="",o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var T=/([A-Z])/g,R=/^ms-/,_=Array.isArray,P=f("<script>"),I=f("<\/script>"),M=f('<script src="'),B=f('<script type="module" src="'),D=f('" async=""><\/script>'),z=/(<\/|<)(s)(cript)/gi;function N(e,t,n,r){return""+t+("s"===n?"\\u0073":"\\u0053")+r}function V(e,t){return{insertionMode:e,selectedValue:t}}var $=f("\x3c!-- --\x3e");function L(e,t,n,r){return""===t?r:(r&&e.push($),e.push(d(F(t))),!0)}var O=new Map,A=f(' style="'),j=f(":"),q=f(";");function H(e,t,n){if("object"!=typeof n)throw Error(o(62));for(var r in t=!0,n)if(h.call(n,r)){var a=n[r];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===r.indexOf("--")){var l=d(F(r));a=d(F((""+a).trim()))}else{l=r;var u=O.get(l);void 0!==u||(u=f(F(l.replace(T,"-$1").toLowerCase().replace(R,"-ms-"))),O.set(l,u)),l=u,a="number"==typeof a?0===a||h.call(w,r)?d(""+a):d(a+"px"):d(F((""+a).trim()))}t?(t=!1,e.push(A,l,j,a)):e.push(q,l,j,a)}}t||e.push(Z)}var U=f(" "),W=f('="'),Z=f('"'),G=f('=""');function X(e,t,n,r){switch(n){case"style":H(e,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]){if(null!==(t=S.hasOwnProperty(n)?S[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(U,n,G);break;case 4:!0===r?e.push(U,n,G):!1!==r&&e.push(U,n,W,d(F(r)),Z);break;case 5:isNaN(r)||e.push(U,n,W,d(F(r)),Z);break;case 6:!isNaN(r)&&1<=r&&e.push(U,n,W,d(F(r)),Z);break;default:t.sanitizeURL&&(r=""+r),e.push(U,n,W,d(F(r)),Z)}}else if(b(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(U,d(n),W,d(F(r)),Z)}}}var J=f(">"),Y=f("/>");function K(e,t,n){if(null!=t){if(null!=n)throw Error(o(60));if("object"!=typeof t||!("__html"in t))throw Error(o(61));null!=(t=t.__html)&&e.push(d(""+t))}}var Q=f(' selected=""');function ee(e,t,n,r){e.push(eo(n));var o,a=n=null;for(o in t)if(h.call(t,o)){var l=t[o];if(null!=l)switch(o){case"children":n=l;break;case"dangerouslySetInnerHTML":a=l;break;default:X(e,r,o,l)}}return e.push(J),K(e,a,n),"string"==typeof n?(e.push(d(F(n))),null):n}var et=f("\n"),en=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,er=new Map;function eo(e){var t=er.get(e);if(void 0===t){if(!en.test(e))throw Error(o(65,e));t=f("<"+e),er.set(e,t)}return t}var ea=f("<!DOCTYPE html>"),el=f("</"),eu=f(">"),es=f('<template id="'),ei=f('"></template>'),ec=f("\x3c!--$--\x3e"),ed=f('\x3c!--$?--\x3e<template id="'),ef=f('"></template>'),ep=f("\x3c!--$!--\x3e"),eh=f("\x3c!--/$--\x3e"),eg=f("<template"),em=f('"'),ey=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var eb=f("></template>");function ev(e,t,n){if(u(e,ed),null===n)throw Error(o(395));return u(e,n),s(e,ef)}var eS=f('<div hidden id="'),ek=f('">'),ex=f("</div>"),ew=f('<svg aria-hidden="true" style="display:none" id="'),eC=f('">'),eE=f("</svg>"),eF=f('<math aria-hidden="true" style="display:none" id="'),eT=f('">'),eR=f("</math>"),e_=f('<table hidden id="'),eP=f('">'),eI=f("</table>"),eM=f('<table hidden><tbody id="'),eB=f('">'),eD=f("</tbody></table>"),ez=f('<table hidden><tr id="'),eN=f('">'),eV=f("</tr></table>"),e$=f('<table hidden><colgroup id="'),eL=f('">'),eO=f("</colgroup></table>"),eA=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ej=f('$RS("'),eq=f('","'),eH=f('")<\/script>'),eU=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),eW=f('$RC("'),eZ=f('","'),eG=f('")<\/script>'),eX=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),eJ=f('$RX("'),eY=f('"'),eK=f(")<\/script>"),eQ=f(","),e0=/[<\u2028\u2029]/g;function e1(e){return JSON.stringify(e).replace(e0,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var e2=Object.assign,e3=Symbol.for("react.element"),e9=Symbol.for("react.portal"),e6=Symbol.for("react.fragment"),e4=Symbol.for("react.strict_mode"),e8=Symbol.for("react.profiler"),e7=Symbol.for("react.provider"),e5=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),tt=Symbol.for("react.suspense"),tn=Symbol.for("react.suspense_list"),tr=Symbol.for("react.memo"),to=Symbol.for("react.lazy"),ta=Symbol.for("react.scope"),tl=Symbol.for("react.debug_trace_mode"),tu=Symbol.for("react.legacy_hidden"),ts=Symbol.for("react.default_value"),ti=Symbol.iterator,tc={};function td(e,t){if(!(e=e.contextTypes))return tc;var n,r={};for(n in e)r[n]=t[n];return r}var tf=null;function tp(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(o(401))}else{if(null===n)throw Error(o(401));tp(e,n)}t.context._currentValue=t.value}}function th(e){var t=tf;t!==e&&(null===t?function e(t){var n=t.parent;null!==n&&e(n),t.context._currentValue=t.value}(e):null===e?function e(t){t.context._currentValue=t.parentValue,null!==(t=t.parent)&&e(t)}(t):t.depth===e.depth?tp(t,e):t.depth>e.depth?function e(t,n){if(t.context._currentValue=t.parentValue,null===(t=t.parent))throw Error(o(402));t.depth===n.depth?tp(t,n):e(t,n)}(t,e):function e(t,n){var r=n.parent;if(null===r)throw Error(o(402));t.depth===r.depth?tp(t,r):e(t,r),n.context._currentValue=n.value}(t,e),tf=e)}var tg={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function tm(e,t,n,r){var o=void 0!==e.state?e.state:null;e.updater=tg,e.props=n,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue:r,"function"==typeof(l=t.getDerivedStateFromProps)&&(e.state=o=null==(l=l(n,o))?o:e2({},o,l)),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&tg.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,l=a.replace,a.queue=null,a.replace=!1,l&&1===t.length)e.state=t[0];else{for(a=l?t[0]:e.state,o=!0,l=+!!l;l<t.length;l++){var u=t[l];null!=(u="function"==typeof u?u.call(e,a,n,r):u)&&(o?(o=!1,a=e2({},a,u)):e2(a,u))}e.state=a}else a.queue=null}var ty={id:1,overflow:""};function tb(e,t,n){var r=e.id;e=e.overflow;var o=32-tv(r)-1;r&=~(1<<o),n+=1;var a=32-tv(t)+o;if(30<a){var l=o-o%5;return a=(r&(1<<l)-1).toString(32),r>>=l,o-=l,{id:1<<32-tv(t)+o|n<<o|r,overflow:a+e}}return{id:1<<a|n<<o|r,overflow:e}}var tv=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(tS(e)/tk|0)|0},tS=Math.log,tk=Math.LN2,tx="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},tw=null,tC=null,tE=null,tF=null,tT=!1,tR=!1,t_=0,tP=null,tI=0;function tM(){if(null===tw)throw Error(o(321));return tw}function tB(){if(0<tI)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function tD(){return null===tF?null===tE?(tT=!1,tE=tF=tB()):(tT=!0,tF=tE):null===tF.next?(tT=!1,tF=tF.next=tB()):(tT=!0,tF=tF.next),tF}function tz(){tC=tw=null,tR=!1,tE=null,tI=0,tF=tP=null}function tN(e,t){return"function"==typeof t?t(e):t}function tV(e,t,n){if(tw=tM(),tF=tD(),tT){var r=tF.queue;if(t=r.dispatch,null!==tP&&void 0!==(n=tP.get(r))){tP.delete(r),r=tF.memoizedState;do r=e(r,n.action),n=n.next;while(null!==n);return tF.memoizedState=r,[r,t]}return[tF.memoizedState,t]}return e=e===tN?"function"==typeof t?t():t:void 0!==n?n(t):t,tF.memoizedState=e,e=(e=tF.queue={last:null,dispatch:null}).dispatch=tL.bind(null,tw,e),[tF.memoizedState,e]}function t$(e,t){if(tw=tM(),tF=tD(),t=void 0===t?null:t,null!==tF){var n=tF.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var o=0;o<r.length&&o<t.length;o++)if(!tx(t[o],r[o])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),tF.memoizedState=[e,t],e}function tL(e,t,n){if(25<=tI)throw Error(o(301));if(e===tw)if(tR=!0,e={action:n,next:null},null===tP&&(tP=new Map),void 0===(n=tP.get(t)))tP.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tO(){throw Error(o(394))}function tA(){}var tj={readContext:function(e){return e._currentValue},useContext:function(e){return tM(),e._currentValue},useMemo:t$,useReducer:tV,useRef:function(e){tw=tM();var t=(tF=tD()).memoizedState;return null===t?(e={current:e},tF.memoizedState=e):t},useState:function(e){return tV(tN,e)},useInsertionEffect:tA,useLayoutEffect:function(){},useCallback:function(e,t){return t$(function(){return e},t)},useImperativeHandle:tA,useEffect:tA,useDebugValue:tA,useDeferredValue:function(e){return tM(),e},useTransition:function(){return tM(),[!1,tO]},useId:function(){var e=tC.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-tv(e)-1)).toString(32)+t;var n=tq;if(null===n)throw Error(o(404));return t=t_++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return tM(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(o(407));return n()}},tq=null,tH=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function tU(e){return console.error(e),null}function tW(){}function tZ(e,t,n,r,o,a,l,u){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&t4(e)},blockedBoundary:n,blockedSegment:r,abortSet:o,legacyContext:a,context:l,treeContext:u};return o.add(s),s}function tG(e,t,n,r,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:o,textEmbedded:a}}function tX(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function tJ(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,p(e.destination,t)):(e.status=1,e.fatalError=t)}function tY(e,t,n,r,o){for(tw={},tC=t,t_=0,e=n(r,o);tR;)tR=!1,t_=0,tI+=1,tF=null,e=n(r,o);return tz(),e}function tK(e,t,n,r){var a=n.render(),l=r.childContextTypes;if(null!=l){var u=t.legacyContext;if("function"!=typeof n.getChildContext)r=u;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(o(108,function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e6:return"Fragment";case e9:return"Portal";case e8:return"Profiler";case e4:return"StrictMode";case tt:return"Suspense";case tn:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case e5:return(t.displayName||"Context")+".Consumer";case e7:return(t._context.displayName||"Context")+".Provider";case te:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case tr:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case to:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(r)||"Unknown",s));r=e2({},u,n)}t.legacyContext=r,t0(e,t,a),t.legacyContext=u}else t0(e,t,a)}function tQ(e,t){if(e&&e.defaultProps)for(var n in t=e2({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function t0(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case e3:!function e(t,n,a,l,u){if("function"==typeof a)if(a.prototype&&a.prototype.isReactComponent){u=td(a,n.legacyContext);var s=a.contextType;tm(s=new a(l,"object"==typeof s&&null!==s?s._currentValue:u),a,l,u),tK(t,n,s,a)}else{s=td(a,n.legacyContext),u=tY(t,n,a,l,s);var i=0!==t_;if("object"==typeof u&&null!==u&&"function"==typeof u.render&&void 0===u.$$typeof)tm(u,a,l,s),tK(t,n,u,a);else if(i){l=n.treeContext,n.treeContext=tb(l,1,0);try{t0(t,n,u)}finally{n.treeContext=l}}else t0(t,n,u)}else if("string"==typeof a){switch(s=function(e,t,n,a,l){switch(t){case"select":e.push(eo("select"));var u=null,s=null;for(m in n)if(h.call(n,m)){var i=n[m];if(null!=i)switch(m){case"children":u=i;break;case"dangerouslySetInnerHTML":s=i;break;case"defaultValue":case"value":break;default:X(e,a,m,i)}}return e.push(J),K(e,s,u),u;case"option":s=l.selectedValue,e.push(eo("option"));var c,f,p=i=null,g=null,m=null;for(u in n)if(h.call(n,u)){var y=n[u];if(null!=y)switch(u){case"children":i=y;break;case"selected":g=y;break;case"dangerouslySetInnerHTML":m=y;break;case"value":p=y;default:X(e,a,u,y)}}if(null!=s)if(n=null!==p?""+p:(c=i,f="",r.Children.forEach(c,function(e){null!=e&&(f+=e)}),f),_(s)){for(a=0;a<s.length;a++)if(""+s[a]===n){e.push(Q);break}}else""+s===n&&e.push(Q);else g&&e.push(Q);return e.push(J),K(e,m,i),i;case"textarea":for(i in e.push(eo("textarea")),m=s=u=null,n)if(h.call(n,i)&&null!=(p=n[i]))switch(i){case"children":m=p;break;case"value":u=p;break;case"defaultValue":s=p;break;case"dangerouslySetInnerHTML":throw Error(o(91));default:X(e,a,i,p)}if(null===u&&null!==s&&(u=s),e.push(J),null!=m){if(null!=u)throw Error(o(92));if(_(m)&&1<m.length)throw Error(o(93));u=""+m}return"string"==typeof u&&"\n"===u[0]&&e.push(et),null!==u&&e.push(d(F(""+u))),null;case"input":for(s in e.push(eo("input")),p=m=i=u=null,n)if(h.call(n,s)&&null!=(g=n[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,"input"));case"defaultChecked":p=g;break;case"defaultValue":i=g;break;case"checked":m=g;break;case"value":u=g;break;default:X(e,a,s,g)}return null!==m?X(e,a,"checked",m):null!==p&&X(e,a,"checked",p),null!==u?X(e,a,"value",u):null!==i&&X(e,a,"value",i),e.push(Y),null;case"menuitem":for(var v in e.push(eo("menuitem")),n)if(h.call(n,v)&&null!=(u=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(o(400));default:X(e,a,v,u)}return e.push(J),null;case"title":for(y in e.push(eo("title")),u=null,n)if(h.call(n,y)&&null!=(s=n[y]))switch(y){case"children":u=s;break;case"dangerouslySetInnerHTML":throw Error(o(434));default:X(e,a,y,s)}return e.push(J),u;case"listing":case"pre":for(p in e.push(eo(t)),s=u=null,n)if(h.call(n,p)&&null!=(i=n[p]))switch(p){case"children":u=i;break;case"dangerouslySetInnerHTML":s=i;break;default:X(e,a,p,i)}if(e.push(J),null!=s){if(null!=u)throw Error(o(60));if("object"!=typeof s||!("__html"in s))throw Error(o(61));null!=(n=s.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(et,d(n)):e.push(d(""+n)))}return"string"==typeof u&&"\n"===u[0]&&e.push(et),u;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var S in e.push(eo(t)),n)if(h.call(n,S)&&null!=(u=n[S]))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(o(399,t));default:X(e,a,S,u)}return e.push(Y),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,a);case"html":return 0===l.insertionMode&&e.push(ea),ee(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,a);for(g in e.push(eo(t)),s=u=null,n)if(h.call(n,g)&&null!=(i=n[g]))switch(g){case"children":u=i;break;case"dangerouslySetInnerHTML":s=i;break;case"style":H(e,a,i);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:b(g)&&"function"!=typeof i&&"symbol"!=typeof i&&e.push(U,d(g),W,d(F(i)),Z)}return e.push(J),K(e,s,u),u}}((u=n.blockedSegment).chunks,a,l,t.responseState,u.formatContext),u.lastPushedText=!1,i=u.formatContext,u.formatContext=function(e,t,n){switch(t){case"select":return V(1,null!=n.value?n.value:n.defaultValue);case"svg":return V(2,null);case"math":return V(3,null);case"foreignObject":return V(1,null);case"table":return V(4,null);case"thead":case"tbody":case"tfoot":return V(5,null);case"colgroup":return V(7,null);case"tr":return V(6,null)}return 4<=e.insertionMode||0===e.insertionMode?V(1,null):e}(i,a,l),t2(t,n,s),u.formatContext=i,a){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:u.chunks.push(el,d(a),eu)}u.lastPushedText=!1}else{switch(a){case tu:case tl:case e4:case e8:case e6:case tn:t0(t,n,l.children);return;case ta:throw Error(o(343));case tt:e:{a=n.blockedBoundary,u=n.blockedSegment,s=l.fallback,l=l.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:i=new Set,errorDigest:null},f=tG(t,u.chunks.length,c,u.formatContext,!1,!1);u.children.push(f),u.lastPushedText=!1;var p=tG(t,0,null,u.formatContext,!1,!1);p.parentFlushed=!0,n.blockedBoundary=c,n.blockedSegment=p;try{if(t2(t,n,l),p.lastPushedText&&p.textEmbedded&&p.chunks.push($),p.status=1,t9(c,p),0===c.pendingTasks)break e}catch(e){p.status=4,c.forceClientRender=!0,c.errorDigest=tX(t,e)}finally{n.blockedBoundary=a,n.blockedSegment=u}n=tZ(t,s,a,f,i,n.legacyContext,n.context,n.treeContext),t.pingedTasks.push(n)}return}if("object"==typeof a&&null!==a)switch(a.$$typeof){case te:if(l=tY(t,n,a.render,l,u),0!==t_){a=n.treeContext,n.treeContext=tb(a,1,0);try{t0(t,n,l)}finally{n.treeContext=a}}else t0(t,n,l);return;case tr:l=tQ(a=a.type,l),e(t,n,a,l,u);return;case e7:if(u=l.children,a=a._context,l=l.value,s=a._currentValue,a._currentValue=l,tf=l={parent:i=tf,depth:null===i?0:i.depth+1,context:a,parentValue:s,value:l},n.context=l,t0(t,n,u),null===(t=tf))throw Error(o(403));l=t.parentValue,t.context._currentValue=l===ts?t.context._defaultValue:l,t=tf=t.parent,n.context=t;return;case e5:t0(t,n,l=(l=l.children)(a._currentValue));return;case to:l=tQ(a=(u=a._init)(a._payload),l),e(t,n,a,l,void 0);return}throw Error(o(130,null==a?a:typeof a,""))}}(e,t,n.type,n.props,n.ref);return;case e9:throw Error(o(257));case to:var a=n._init;t0(e,t,n=a(n._payload));return}if(_(n))return void t1(e,t,n);if((a=null===n||"object"!=typeof n?null:"function"==typeof(a=ti&&n[ti]||n["@@iterator"])?a:null)&&(a=a.call(n))){if(!(n=a.next()).done){var l=[];do l.push(n.value),n=a.next();while(!n.done);t1(e,t,l)}return}throw Error(o(31,"[object Object]"===(e=Object.prototype.toString.call(n))?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(a=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,n,e.responseState,a.lastPushedText):"number"==typeof n&&((a=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,""+n,e.responseState,a.lastPushedText))}function t1(e,t,n){for(var r=n.length,o=0;o<r;o++){var a=t.treeContext;t.treeContext=tb(a,r,o);try{t2(e,t,n[o])}finally{t.treeContext=a}}}function t2(e,t,n){var r=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return t0(e,t,n)}catch(s){if(tz(),"object"==typeof s&&null!==s&&"function"==typeof s.then){n=s;var l=t.blockedSegment,u=tG(e,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(u),l.lastPushedText=!1,e=tZ(e,t.node,t.blockedBoundary,u,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,th(a)}else throw t.blockedSegment.formatContext=r,t.legacyContext=o,t.context=a,th(a),s}}function t3(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,t6(this,t,e)}function t9(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&t9(e,n)}else e.completedSegments.push(t)}function t6(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(o(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=tW,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&t9(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(t3,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(t9(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function t4(e){if(2!==e.status){var t=tf,n=tH.current;tH.current=tj;var r=tq;tq=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var l=a[o],u=l.blockedSegment;if(0===u.status){th(l.context);try{t0(e,l,l.node),u.lastPushedText&&u.textEmbedded&&u.chunks.push($),l.abortSet.delete(l),u.status=1,t6(e,l.blockedBoundary,u)}catch(t){if(tz(),"object"==typeof t&&null!==t&&"function"==typeof t.then){var s=l.ping;t.then(s,s)}else{l.abortSet.delete(l),u.status=4;var i=l.blockedBoundary,c=tX(e,t);null===i?tJ(e,t):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,i.errorDigest=c,i.parentFlushed&&e.clientRenderedBoundaries.push(i))),e.allPendingTasks--,0===e.allPendingTasks&&(0,e.onAllReady)()}}finally{}}}a.splice(0,o),null!==e.destination&&nn(e,e.destination)}catch(t){tX(e,t),tJ(e,t)}finally{tq=r,tH.current=n,n===tj&&th(t)}}}function t8(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,u(t,es),u(t,e.placeholderPrefix),u(t,e=d(r.toString(16))),s(t,ei);case 1:n.status=2;var a=!0;r=n.chunks;var l=0;n=n.children;for(var i=0;i<n.length;i++){for(a=n[i];l<a.index;l++)u(t,r[l]);a=t7(e,t,a)}for(;l<r.length-1;l++)u(t,r[l]);return l<r.length&&(a=s(t,r[l])),a;default:throw Error(o(390))}}function t7(e,t,n){var r=n.boundary;if(null===r)return t8(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,s(t,ep),u(t,eg),r&&(u(t,ey),u(t,d(F(r))),u(t,em)),s(t,eb),t8(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var a=e.responseState,l=a.nextSuspenseID++;a=f(a.boundaryPrefix+l.toString(16)),r=r.id=a,ev(t,e.responseState,r),t8(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),ev(t,e.responseState,r.id),t8(e,t,n);else{if(s(t,ec),1!==(n=r.completedSegments).length)throw Error(o(391));t7(e,t,n[0])}return s(t,eh)}function t5(e,t,n){switch(!function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return u(e,eS),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,ek);case 2:return u(e,ew),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eC);case 3:return u(e,eF),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eT);case 4:return u(e,e_),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eP);case 5:return u(e,eM),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eB);case 6:return u(e,ez),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eN);case 7:return u(e,e$),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eL);default:throw Error(o(397))}}(t,e.responseState,n.formatContext,n.id),t7(e,t,n),n.formatContext.insertionMode){case 0:case 1:return s(t,ex);case 2:return s(t,eE);case 3:return s(t,eR);case 4:return s(t,eI);case 5:return s(t,eD);case 6:return s(t,eV);case 7:return s(t,eO);default:throw Error(o(397))}}function ne(e,t,n){for(var r=n.completedSegments,a=0;a<r.length;a++)nt(e,t,n,r[a]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,u(t,e.startInlineScript),e.sentCompleteBoundaryFunction?u(t,eW):(e.sentCompleteBoundaryFunction=!0,u(t,eU)),null===r)throw Error(o(395));return n=d(n.toString(16)),u(t,r),u(t,eZ),u(t,e.segmentPrefix),u(t,n),s(t,eG)}function nt(e,t,n,r){if(2===r.status)return!0;var a=r.id;if(-1===a){if(-1===(r.id=n.rootSegmentID))throw Error(o(392));return t5(e,t,r)}return t5(e,t,r),u(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?u(t,ej):(e.sentCompleteSegmentFunction=!0,u(t,eA)),u(t,e.segmentPrefix),u(t,a=d(a.toString(16))),u(t,eq),u(t,e.placeholderPrefix),u(t,a),s(t,eH)}function nn(e,t){a=new Uint8Array(512),l=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){t7(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)u(t,r[n]);n<r.length&&s(t,r[n])}var c,f=e.clientRenderedBoundaries;for(c=0;c<f.length;c++){var p=f[c];r=t;var h=e.responseState,g=p.id,m=p.errorDigest,y=p.errorMessage,b=p.errorComponentStack;if(u(r,h.startInlineScript),h.sentClientRenderFunction?u(r,eJ):(h.sentClientRenderFunction=!0,u(r,eX)),null===g)throw Error(o(395));if(u(r,g),u(r,eY),(m||y||b)&&(u(r,eQ),u(r,d(e1(m||"")))),(y||b)&&(u(r,eQ),u(r,d(e1(y||"")))),b&&(u(r,eQ),u(r,d(e1(b)))),!s(r,eK)){e.destination=null,c++,f.splice(0,c);return}}f.splice(0,c);var v=e.completedBoundaries;for(c=0;c<v.length;c++)if(!ne(e,t,v[c])){e.destination=null,c++,v.splice(0,c);return}v.splice(0,c),i(t),a=new Uint8Array(512),l=0;var S=e.partialBoundaries;for(c=0;c<S.length;c++){var k=S[c];e:{f=e,p=t;var x=k.completedSegments;for(h=0;h<x.length;h++)if(!nt(f,p,k,x[h])){h++,x.splice(0,h);var w=!1;break e}x.splice(0,h),w=!0}if(!w){e.destination=null,c++,S.splice(0,c);return}}S.splice(0,c);var C=e.completedBoundaries;for(c=0;c<C.length;c++)if(!ne(e,t,C[c])){e.destination=null,c++,C.splice(0,c);return}C.splice(0,c)}finally{i(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function nr(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return function e(t,n,r){var a=t.blockedBoundary;t.blockedSegment.status=3,null===a?(n.allPendingTasks--,2!==n.status&&(n.status=2,null!==n.destination&&n.destination.close())):(a.pendingTasks--,a.forceClientRender||(a.forceClientRender=!0,t=void 0===r?Error(o(432)):r,a.errorDigest=n.onError(t),a.parentFlushed&&n.clientRenderedBoundaries.push(a)),a.fallbackAbortableTasks.forEach(function(t){return e(t,n,r)}),a.fallbackAbortableTasks.clear(),n.allPendingTasks--,0===n.allPendingTasks&&(a=n.onAllReady)())}(n,e,t)}),n.clear(),null!==e.destination&&nn(e,e.destination)}catch(t){tX(e,t),tJ(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var o,a,l,u,s,i,c,h,g,m,y,b,v,S,k=new Promise(function(e,t){S=e,v=t}),x=(a=e,l=function(e,t,n,r,o){e=void 0===e?"":e,t=void 0===t?P:f('<script nonce="'+F(t)+'">');var a=[];if(void 0!==n&&a.push(t,d((""+n).replace(z,N)),I),void 0!==r)for(n=0;n<r.length;n++)a.push(M,d(F(r[n])),D);if(void 0!==o)for(r=0;r<o.length;r++)a.push(B,d(F(o[r])),D);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:f(e+"P:"),segmentPrefix:f(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=V("http://www.w3.org/2000/svg"===(o=t?t.namespaceURI:void 0)?2:3*("http://www.w3.org/1998/Math/MathML"===o),null),s=t?t.progressiveChunkSize:void 0,i=t?t.onError:void 0,c=S,h=function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===x.status)x.status=2,p(e,x.fatalError);else if(2!==x.status&&null===x.destination){x.destination=e;try{nn(x,e)}catch(e){tX(x,e),tJ(x,e)}}},cancel:function(){nr(x)}},{highWaterMark:0});e.allReady=k,n(e)},g=function(e){k.catch(function(){}),r(e)},m=v,y=[],(u=tG(l={destination:null,responseState:l,progressiveChunkSize:void 0===s?12800:s,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:b=new Set,pingedTasks:y,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?tU:i,onAllReady:void 0===c?tW:c,onShellReady:void 0===h?tW:h,onShellError:void 0===g?tW:g,onFatalError:void 0===m?tW:m},0,null,u,!1,!1)).parentFlushed=!0,a=tZ(l,a,null,u,b,tc,null,ty),y.push(a),l);if(t&&t.signal){var w=t.signal,C=function(){nr(x,w.reason),w.removeEventListener("abort",C)};w.addEventListener("abort",C)}t4(x)})},t.version="18.2.0"},5897:function(e,t,n){var r,o;r=n(244),o=n(6440),r.version,r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,o.renderToReadableStream},8668:function(e,t,n){n.d(t,{tH:function(){return l}});var r=n(9155);let o=(0,r.createContext)(null),a={didCatch:!1,error:null};class l extends r.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=a}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];null==(t=(n=this.props).onReset)||t.call(n,{args:o,reason:"imperative-api"}),this.setState(a)}}componentDidCatch(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;if(n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)){var o,l;null==(o=(l=this.props).onReset)||o.call(l,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(a)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:a}=this.props,{didCatch:l,error:u}=this.state,s=e;if(l){let e={error:u,resetErrorBoundary:this.resetErrorBoundary};if((0,r.isValidElement)(a))s=a;else if("function"==typeof t)s=t(e);else if(n)s=(0,r.createElement)(n,e);else throw u}return(0,r.createElement)(o.Provider,{value:{didCatch:l,error:u,resetErrorBoundary:this.resetErrorBoundary}},s)}}}}]);
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["170"],{244:function(e,t,n){var r=n(9155);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},s={};function i(e){return!!o.call(s,e)||!o.call(u,e)&&(l.test(e)?s[e]=!0:(u[e]=!0,!1))}function c(e,t,n,r,a,o,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){d[e]=new c(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];d[t]=new c(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){d[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){d[e]=new c(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){d[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){d[e]=new c(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){d[e]=new c(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){d[e]=new c(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){d[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)});var f=/[\-:]([a-z])/g;function p(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(f,p);d[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)}),d.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){d[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)});var h={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(h).forEach(function(e){g.forEach(function(t){h[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=h[e]})});var m=/["'&<>]/;function b(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=m.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(r+=e.substring(a,n)),a=n+1,r+=t}e=a!==n?r+e.substring(a,n):r}return e}var y=/([A-Z])/g,v=/^ms-/,S=Array.isArray;function k(e,t){return{insertionMode:e,selectedValue:t}}var x=new Map;function w(e,t,n){if("object"!=typeof n)throw Error(a(62));for(var r in t=!0,n)if(o.call(n,r)){var l=n[r];if(null!=l&&"boolean"!=typeof l&&""!==l){if(0===r.indexOf("--")){var u=b(r);l=b((""+l).trim())}else{u=r;var s=x.get(u);void 0!==s||(s=b(u.replace(y,"-$1").toLowerCase().replace(v,"-ms-")),x.set(u,s)),u=s,l="number"==typeof l?0===l||o.call(h,r)?""+l:l+"px":b((""+l).trim())}t?(t=!1,e.push(' style="',u,":",l)):e.push(";",u,":",l)}}t||e.push('"')}function C(e,t,n,r){switch(n){case"style":w(e,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]){if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:r&&e.push(" ",n,'=""');break;case 4:!0===r?e.push(" ",n,'=""'):!1!==r&&e.push(" ",n,'="',b(r),'"');break;case 5:isNaN(r)||e.push(" ",n,'="',b(r),'"');break;case 6:!isNaN(r)&&1<=r&&e.push(" ",n,'="',b(r),'"');break;default:t.sanitizeURL&&(r=""+r),e.push(" ",n,'="',b(r),'"')}}else if(i(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',b(r),'"')}}}function E(e,t,n){if(null!=t){if(null!=n)throw Error(a(60));if("object"!=typeof t||!("__html"in t))throw Error(a(61));null!=(t=t.__html)&&e.push(""+t)}}function F(e,t,n,r){e.push(_(n));var a,l=n=null;for(a in t)if(o.call(t,a)){var u=t[a];if(null!=u)switch(a){case"children":n=u;break;case"dangerouslySetInnerHTML":l=u;break;default:C(e,r,a,u)}}return e.push(">"),E(e,l,n),"string"==typeof n?(e.push(b(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,R=new Map;function _(e){var t=R.get(e);if(void 0===t){if(!T.test(e))throw Error(a(65,e));t="<"+e,R.set(e,t)}return t}function P(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(a(395));return e.push(n),e.push('"></template>')}var I=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(I,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function B(e,t,n,r){return n.generateStaticMarkup?(e.push(b(t)),!1):(""===t?e=r:(r&&e.push("\x3c!-- --\x3e"),e.push(b(t)),e=!0),e)}var D=Object.assign,z=Symbol.for("react.element"),N=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),A=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Z=Symbol.for("react.scope"),G=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),J=Symbol.for("react.default_value"),Y=Symbol.iterator,K={};function Q(e,t){if(!(e=e.contextTypes))return K;var n,r={};for(n in e)r[n]=t[n];return r}var ee=null;function et(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(a(401))}else{if(null===n)throw Error(a(401));et(e,n)}t.context._currentValue2=t.value}}function en(e){var t=ee;t!==e&&(null===t?function e(t){var n=t.parent;null!==n&&e(n),t.context._currentValue2=t.value}(e):null===e?function e(t){t.context._currentValue2=t.parentValue,null!==(t=t.parent)&&e(t)}(t):t.depth===e.depth?et(t,e):t.depth>e.depth?function e(t,n){if(t.context._currentValue2=t.parentValue,null===(t=t.parent))throw Error(a(402));t.depth===n.depth?et(t,n):e(t,n)}(t,e):function e(t,n){var r=n.parent;if(null===r)throw Error(a(402));t.depth===r.depth?et(t,r):e(t,r),n.context._currentValue2=n.value}(t,e),ee=e)}var er={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ea(e,t,n,r){var a=void 0!==e.state?e.state:null;e.updater=er,e.props=n,e.state=a;var o={queue:[],replace:!1};e._reactInternals=o;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue2:r,"function"==typeof(l=t.getDerivedStateFromProps)&&(e.state=a=null==(l=l(n,a))?a:D({},a,l)),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&er.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,l=o.replace,o.queue=null,o.replace=!1,l&&1===t.length)e.state=t[0];else{for(o=l?t[0]:e.state,a=!0,l=+!!l;l<t.length;l++){var u=t[l];null!=(u="function"==typeof u?u.call(e,o,n,r):u)&&(a?(a=!1,o=D({},o,u)):D(o,u))}e.state=o}else o.queue=null}var eo={id:1,overflow:""};function el(e,t,n){var r=e.id;e=e.overflow;var a=32-eu(r)-1;r&=~(1<<a),n+=1;var o=32-eu(t)+a;if(30<o){var l=a-a%5;return o=(r&(1<<l)-1).toString(32),r>>=l,a-=l,{id:1<<32-eu(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var eu=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(es(e)/ei|0)|0},es=Math.log,ei=Math.LN2,ec="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ed=null,ef=null,ep=null,eh=null,eg=!1,em=!1,eb=0,ey=null,ev=0;function eS(){if(null===ed)throw Error(a(321));return ed}function ek(){if(0<ev)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function ex(){return null===eh?null===ep?(eg=!1,ep=eh=ek()):(eg=!0,eh=ep):null===eh.next?(eg=!1,eh=eh.next=ek()):(eg=!0,eh=eh.next),eh}function ew(){ef=ed=null,em=!1,ep=null,ev=0,eh=ey=null}function eC(e,t){return"function"==typeof t?t(e):t}function eE(e,t,n){if(ed=eS(),eh=ex(),eg){var r=eh.queue;if(t=r.dispatch,null!==ey&&void 0!==(n=ey.get(r))){ey.delete(r),r=eh.memoizedState;do r=e(r,n.action),n=n.next;while(null!==n);return eh.memoizedState=r,[r,t]}return[eh.memoizedState,t]}return e=e===eC?"function"==typeof t?t():t:void 0!==n?n(t):t,eh.memoizedState=e,e=(e=eh.queue={last:null,dispatch:null}).dispatch=eT.bind(null,ed,e),[eh.memoizedState,e]}function eF(e,t){if(ed=eS(),eh=ex(),t=void 0===t?null:t,null!==eh){var n=eh.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!ec(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),eh.memoizedState=[e,t],e}function eT(e,t,n){if(25<=ev)throw Error(a(301));if(e===ed)if(em=!0,e={action:n,next:null},null===ey&&(ey=new Map),void 0===(n=ey.get(t)))ey.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function eR(){throw Error(a(394))}function e_(){}var eP={readContext:function(e){return e._currentValue2},useContext:function(e){return eS(),e._currentValue2},useMemo:eF,useReducer:eE,useRef:function(e){ed=eS();var t=(eh=ex()).memoizedState;return null===t?(e={current:e},eh.memoizedState=e):t},useState:function(e){return eE(eC,e)},useInsertionEffect:e_,useLayoutEffect:function(){},useCallback:function(e,t){return eF(function(){return e},t)},useImperativeHandle:e_,useEffect:e_,useDebugValue:e_,useDeferredValue:function(e){return eS(),e},useTransition:function(){return eS(),[!1,eR]},useId:function(){var e=ef.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-eu(e)-1)).toString(32)+t;var n=eI;if(null===n)throw Error(a(404));return t=eb++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return eS(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(a(407));return n()}},eI=null,eM=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function eB(e){return console.error(e),null}function eD(){}function ez(e,t,n,r,a,o,l,u){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&eG(e)},blockedBoundary:n,blockedSegment:r,abortSet:a,legacyContext:o,context:l,treeContext:u};return a.add(s),s}function eN(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function eV(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function e$(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function eL(e,t,n,r,a){for(ed={},ef=t,eb=0,e=n(r,a);em;)em=!1,eb=0,ev+=1,eh=null,e=n(r,a);return ew(),e}function eO(e,t,n,r){var o=n.render(),l=r.childContextTypes;if(null!=l){var u=t.legacyContext;if("function"!=typeof n.getChildContext)r=u;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(a(108,function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case V:return"Fragment";case N:return"Portal";case L:return"Profiler";case $:return"StrictMode";case q:return"Suspense";case H:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case A:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case j:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case U:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case W:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(r)||"Unknown",s));r=D({},u,n)}t.legacyContext=r,ej(e,t,o),t.legacyContext=u}else ej(e,t,o)}function eA(e,t){if(e&&e.defaultProps)for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function ej(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case z:!function e(t,n,l,u,s){if("function"==typeof l)if(l.prototype&&l.prototype.isReactComponent){s=Q(l,n.legacyContext);var c=l.contextType;ea(c=new l(u,"object"==typeof c&&null!==c?c._currentValue2:s),l,u,s),eO(t,n,c,l)}else{c=Q(l,n.legacyContext),s=eL(t,n,l,u,c);var d=0!==eb;if("object"==typeof s&&null!==s&&"function"==typeof s.render&&void 0===s.$$typeof)ea(s,l,u,c),eO(t,n,s,l);else if(d){u=n.treeContext,n.treeContext=el(u,1,0);try{ej(t,n,s)}finally{n.treeContext=u}}else ej(t,n,s)}else if("string"==typeof l){switch(c=function(e,t,n,l,u){switch(t){case"select":e.push(_("select"));var s=null,c=null;for(m in n)if(o.call(n,m)){var d=n[m];if(null!=d)switch(m){case"children":s=d;break;case"dangerouslySetInnerHTML":c=d;break;case"defaultValue":case"value":break;default:C(e,l,m,d)}}return e.push(">"),E(e,c,s),s;case"option":c=u.selectedValue,e.push(_("option"));var f,p,h=d=null,g=null,m=null;for(s in n)if(o.call(n,s)){var y=n[s];if(null!=y)switch(s){case"children":d=y;break;case"selected":g=y;break;case"dangerouslySetInnerHTML":m=y;break;case"value":h=y;default:C(e,l,s,y)}}if(null!=c)if(n=null!==h?""+h:(f=d,p="",r.Children.forEach(f,function(e){null!=e&&(p+=e)}),p),S(c)){for(l=0;l<c.length;l++)if(""+c[l]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else g&&e.push(' selected=""');return e.push(">"),E(e,m,d),d;case"textarea":for(d in e.push(_("textarea")),m=c=s=null,n)if(o.call(n,d)&&null!=(h=n[d]))switch(d){case"children":m=h;break;case"value":s=h;break;case"defaultValue":c=h;break;case"dangerouslySetInnerHTML":throw Error(a(91));default:C(e,l,d,h)}if(null===s&&null!==c&&(s=c),e.push(">"),null!=m){if(null!=s)throw Error(a(92));if(S(m)&&1<m.length)throw Error(a(93));s=""+m}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),null!==s&&e.push(b(""+s)),null;case"input":for(c in e.push(_("input")),h=m=d=s=null,n)if(o.call(n,c)&&null!=(g=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,"input"));case"defaultChecked":h=g;break;case"defaultValue":d=g;break;case"checked":m=g;break;case"value":s=g;break;default:C(e,l,c,g)}return null!==m?C(e,l,"checked",m):null!==h&&C(e,l,"checked",h),null!==s?C(e,l,"value",s):null!==d&&C(e,l,"value",d),e.push("/>"),null;case"menuitem":for(var v in e.push(_("menuitem")),n)if(o.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(a(400));default:C(e,l,v,s)}return e.push(">"),null;case"title":for(y in e.push(_("title")),s=null,n)if(o.call(n,y)&&null!=(c=n[y]))switch(y){case"children":s=c;break;case"dangerouslySetInnerHTML":throw Error(a(434));default:C(e,l,y,c)}return e.push(">"),s;case"listing":case"pre":for(h in e.push(_(t)),c=s=null,n)if(o.call(n,h)&&null!=(d=n[h]))switch(h){case"children":s=d;break;case"dangerouslySetInnerHTML":c=d;break;default:C(e,l,h,d)}if(e.push(">"),null!=c){if(null!=s)throw Error(a(60));if("object"!=typeof c||!("__html"in c))throw Error(a(61));null!=(n=c.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var k in e.push(_(t)),n)if(o.call(n,k)&&null!=(s=n[k]))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,t));default:C(e,l,k,s)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return F(e,n,t,l);case"html":return 0===u.insertionMode&&e.push("<!DOCTYPE html>"),F(e,n,t,l);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return F(e,n,t,l);for(g in e.push(_(t)),c=s=null,n)if(o.call(n,g)&&null!=(d=n[g]))switch(g){case"children":s=d;break;case"dangerouslySetInnerHTML":c=d;break;case"style":w(e,l,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:i(g)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",g,'="',b(d),'"')}return e.push(">"),E(e,c,s),s}}((s=n.blockedSegment).chunks,l,u,t.responseState,s.formatContext),s.lastPushedText=!1,d=s.formatContext,s.formatContext=function(e,t,n){switch(t){case"select":return k(1,null!=n.value?n.value:n.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=e.insertionMode||0===e.insertionMode?k(1,null):e}(d,l,u),eH(t,n,c),s.formatContext=d,l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.chunks.push("</",l,">")}s.lastPushedText=!1}else{switch(l){case X:case G:case $:case L:case V:case H:ej(t,n,u.children);return;case Z:throw Error(a(343));case q:e:{l=n.blockedBoundary,s=n.blockedSegment,c=u.fallback,u=u.children;var f={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d=new Set,errorDigest:null},p=eN(t,s.chunks.length,f,s.formatContext,!1,!1);s.children.push(p),s.lastPushedText=!1;var h=eN(t,0,null,s.formatContext,!1,!1);h.parentFlushed=!0,n.blockedBoundary=f,n.blockedSegment=h;try{if(eH(t,n,u),t.responseState.generateStaticMarkup||h.lastPushedText&&h.textEmbedded&&h.chunks.push("\x3c!-- --\x3e"),h.status=1,eW(f,h),0===f.pendingTasks)break e}catch(e){h.status=4,f.forceClientRender=!0,f.errorDigest=eV(t,e)}finally{n.blockedBoundary=l,n.blockedSegment=s}n=ez(t,c,l,p,d,n.legacyContext,n.context,n.treeContext),t.pingedTasks.push(n)}return}if("object"==typeof l&&null!==l)switch(l.$$typeof){case j:if(u=eL(t,n,l.render,u,s),0!==eb){l=n.treeContext,n.treeContext=el(l,1,0);try{ej(t,n,u)}finally{n.treeContext=l}}else ej(t,n,u);return;case U:u=eA(l=l.type,u),e(t,n,l,u,s);return;case O:if(s=u.children,l=l._context,u=u.value,c=l._currentValue2,l._currentValue2=u,ee=u={parent:d=ee,depth:null===d?0:d.depth+1,context:l,parentValue:c,value:u},n.context=u,ej(t,n,s),null===(t=ee))throw Error(a(403));u=t.parentValue,t.context._currentValue2=u===J?t.context._defaultValue:u,t=ee=t.parent,n.context=t;return;case A:ej(t,n,u=(u=u.children)(l._currentValue2));return;case W:u=eA(l=(s=l._init)(l._payload),u),e(t,n,l,u,void 0);return}throw Error(a(130,null==l?l:typeof l,""))}}(e,t,n.type,n.props,n.ref);return;case N:throw Error(a(257));case W:var l=n._init;ej(e,t,n=l(n._payload));return}if(S(n))return void eq(e,t,n);if((l=null===n||"object"!=typeof n?null:"function"==typeof(l=Y&&n[Y]||n["@@iterator"])?l:null)&&(l=l.call(n))){if(!(n=l.next()).done){var u=[];do u.push(n.value),n=l.next();while(!n.done);eq(e,t,u)}return}throw Error(a(31,"[object Object]"===(e=Object.prototype.toString.call(n))?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(l=t.blockedSegment).lastPushedText=B(t.blockedSegment.chunks,n,e.responseState,l.lastPushedText):"number"==typeof n&&((l=t.blockedSegment).lastPushedText=B(t.blockedSegment.chunks,""+n,e.responseState,l.lastPushedText))}function eq(e,t,n){for(var r=n.length,a=0;a<r;a++){var o=t.treeContext;t.treeContext=el(o,r,a);try{eH(e,t,n[a])}finally{t.treeContext=o}}}function eH(e,t,n){var r=t.blockedSegment.formatContext,a=t.legacyContext,o=t.context;try{return ej(e,t,n)}catch(s){if(ew(),"object"==typeof s&&null!==s&&"function"==typeof s.then){n=s;var l=t.blockedSegment,u=eN(e,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(u),l.lastPushedText=!1,e=ez(e,t.node,t.blockedBoundary,u,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=a,t.context=o,en(o)}else throw t.blockedSegment.formatContext=r,t.legacyContext=a,t.context=o,en(o),s}}function eU(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,eZ(this,t,e)}function eW(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&eW(e,n)}else e.completedSegments.push(t)}function eZ(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(a(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=eD,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&eW(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(eU,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(eW(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function eG(e){if(2!==e.status){var t=ee,n=eM.current;eM.current=eP;var r=eI;eI=e.responseState;try{var a,o=e.pingedTasks;for(a=0;a<o.length;a++){var l=o[a],u=l.blockedSegment;if(0===u.status){en(l.context);try{ej(e,l,l.node),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),l.abortSet.delete(l),u.status=1,eZ(e,l.blockedBoundary,u)}catch(t){if(ew(),"object"==typeof t&&null!==t&&"function"==typeof t.then){var s=l.ping;t.then(s,s)}else{l.abortSet.delete(l),u.status=4;var i=l.blockedBoundary,c=eV(e,t);null===i?e$(e,t):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,i.errorDigest=c,i.parentFlushed&&e.clientRenderedBoundaries.push(i))),e.allPendingTasks--,0===e.allPendingTasks&&(0,e.onAllReady)()}}finally{}}}o.splice(0,a),null!==e.destination&&e0(e,e.destination)}catch(t){eV(e,t),e$(e,t)}finally{eI=r,eM.current=n,n===eP&&en(t)}}}function eX(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var o=!0;r=n.chunks;var l=0;n=n.children;for(var u=0;u<n.length;u++){for(o=n[u];l<o.index;l++)t.push(r[l]);o=eJ(e,t,o)}for(;l<r.length-1;l++)t.push(r[l]);return l<r.length&&(o=t.push(r[l])),o;default:throw Error(a(390))}}function eJ(e,t,n){var r=n.boundary;if(null===r)return eX(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)return e.responseState.generateStaticMarkup||(r=r.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),r&&(t.push(' data-dgst="'),r=b(r),t.push(r),t.push('"')),t.push("></template>")),eX(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,l=o.nextSuspenseID++;return o=o.boundaryPrefix+l.toString(16),r=r.id=o,P(t,e.responseState,r),eX(e,t,n),t.push("\x3c!--/$--\x3e")}if(r.byteSize>e.progressiveChunkSize)return r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),P(t,e.responseState,r.id),eX(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=r.completedSegments).length)throw Error(a(391));return eJ(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function eY(e,t,n){switch(!function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push('">');default:throw Error(a(397))}}(t,e.responseState,n.formatContext,n.id),eJ(e,t,n),n.formatContext.insertionMode){case 0:case 1:return t.push("</div>");case 2:return t.push("</svg>");case 3:return t.push("</math>");case 4:return t.push("</table>");case 5:return t.push("</tbody></table>");case 6:return t.push("</tr></table>");case 7:return t.push("</colgroup></table>");default:throw Error(a(397))}}function eK(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)eQ(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===r)throw Error(a(395));return n=n.toString(16),t.push(r),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function eQ(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(a(392));return eY(e,t,r)}return eY(e,t,r),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function e0(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){eJ(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)t.push(r[n]);n<r.length&&t.push(r[n])}var o,l=e.clientRenderedBoundaries;for(o=0;o<l.length;o++){var u=l[o];r=t;var s=e.responseState,i=u.id,c=u.errorDigest,d=u.errorMessage,f=u.errorComponentStack;if(r.push(s.startInlineScript),s.sentClientRenderFunction?r.push('$RX("'):(s.sentClientRenderFunction=!0,r.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===i)throw Error(a(395));if(r.push(i),r.push('"'),c||d||f){r.push(",");var p=M(c||"");r.push(p)}if(d||f){r.push(",");var h=M(d||"");r.push(h)}if(f){r.push(",");var g=M(f);r.push(g)}if(!r.push(")<\/script>")){e.destination=null,o++,l.splice(0,o);return}}l.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)if(!eK(e,t,m[o])){e.destination=null,o++,m.splice(0,o);return}m.splice(0,o);var b=e.partialBoundaries;for(o=0;o<b.length;o++){var y=b[o];e:{l=e,u=t;var v=y.completedSegments;for(s=0;s<v.length;s++)if(!eQ(l,u,y,v[s])){s++,v.splice(0,s);var S=!1;break e}v.splice(0,s),S=!0}if(!S){e.destination=null,o++,b.splice(0,o);return}}b.splice(0,o);var k=e.completedBoundaries;for(o=0;o<k.length;o++)if(!eK(e,t,k[o])){e.destination=null,o++,k.splice(0,o);return}k.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function e1(){}function e2(e,t,n,r){var o,l,u,s,i,c,d,f,p,h,g,m=!1,b=null,y="",v={push:function(e){return null!==e&&(y+=e),!0},destroy:function(e){m=!0,b=e}},S=!1;l=e,u={bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(o=void 0===(o=t?t.identifierPrefix:void 0)?"":o)+"P:",segmentPrefix:o+"S:",boundaryPrefix:o+"B:",idPrefix:o,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:n},s={insertionMode:1,selectedValue:null},i=1/0,c=void 0,d=function(){S=!0},f=void 0,p=void 0,h=[],(s=eN(u={destination:null,responseState:u,progressiveChunkSize:void 0===i?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:g=new Set,pingedTasks:h,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===e1?eB:e1,onAllReady:void 0===c?eD:c,onShellReady:void 0===d?eD:d,onShellError:void 0===f?eD:f,onFatalError:void 0===p?eD:p},0,null,s,!1,!1)).parentFlushed=!0,l=ez(u,l,null,s,g,K,null,eo),h.push(l),eG(e=u);var k=e;try{var x=k.abortableTasks;x.forEach(function(e){return function e(t,n,r){var o=t.blockedBoundary;t.blockedSegment.status=3,null===o?(n.allPendingTasks--,2!==n.status&&(n.status=2,null!==n.destination&&n.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,t=void 0===r?Error(a(432)):r,o.errorDigest=n.onError(t),o.parentFlushed&&n.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach(function(t){return e(t,n,r)}),o.fallbackAbortableTasks.clear(),n.allPendingTasks--,0===n.allPendingTasks&&(o=n.onAllReady)())}(e,k,r)}),x.clear(),null!==k.destination&&e0(k,k.destination)}catch(e){eV(k,e),e$(k,e)}if(1===e.status)e.status=2,v.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=v;try{e0(e,v)}catch(t){eV(e,t),e$(e,t)}}if(m)throw b;if(!S)throw Error(a(426));return y}t.renderToNodeStream=function(){throw Error(a(207))},t.renderToStaticMarkup=function(e,t){return e2(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(a(208))},t.renderToString=function(e,t){return e2(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},6440:function(e,t,n){var r=n(9155);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=null,l=0;function u(e,t){if(0!==t.length)if(512<t.length)0<l&&(e.enqueue(new Uint8Array(o.buffer,0,l)),o=new Uint8Array(512),l=0),e.enqueue(t);else{var n=o.length-l;n<t.length&&(0===n?e.enqueue(o):(o.set(t.subarray(0,n),l),e.enqueue(o),t=t.subarray(n)),o=new Uint8Array(512),l=0),o.set(t,l),l+=t.length}}function s(e,t){return u(e,t),!0}function i(e){o&&0<l&&(e.enqueue(new Uint8Array(o.buffer,0,l)),o=null,l=0)}var c=new TextEncoder;function d(e){return c.encode(e)}function f(e){return c.encode(e)}function p(e,t){"function"==typeof e.error?e.error(t):e.close()}var h=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},b={};function y(e){return!!h.call(b,e)||!h.call(m,e)&&(g.test(e)?b[e]=!0:(m[e]=!0,!1))}function v(e,t,n,r,a,o,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new v(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new v(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new v(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){S[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new v(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new v(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new v(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var k=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(k,x);S[t]=new v(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(k,x);S[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(k,x);S[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});var w={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C=["Webkit","ms","Moz","O"];Object.keys(w).forEach(function(e){C.forEach(function(t){w[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=w[e]})});var E=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=E.exec(e);if(t){var n,r="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==n&&(r+=e.substring(a,n)),a=n+1,r+=t}e=a!==n?r+e.substring(a,n):r}return e}var T=/([A-Z])/g,R=/^ms-/,_=Array.isArray,P=f("<script>"),I=f("<\/script>"),M=f('<script src="'),B=f('<script type="module" src="'),D=f('" async=""><\/script>'),z=/(<\/|<)(s)(cript)/gi;function N(e,t,n,r){return""+t+("s"===n?"\\u0073":"\\u0053")+r}function V(e,t){return{insertionMode:e,selectedValue:t}}var $=f("\x3c!-- --\x3e");function L(e,t,n,r){return""===t?r:(r&&e.push($),e.push(d(F(t))),!0)}var O=new Map,A=f(' style="'),j=f(":"),q=f(";");function H(e,t,n){if("object"!=typeof n)throw Error(a(62));for(var r in t=!0,n)if(h.call(n,r)){var o=n[r];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===r.indexOf("--")){var l=d(F(r));o=d(F((""+o).trim()))}else{l=r;var u=O.get(l);void 0!==u||(u=f(F(l.replace(T,"-$1").toLowerCase().replace(R,"-ms-"))),O.set(l,u)),l=u,o="number"==typeof o?0===o||h.call(w,r)?d(""+o):d(o+"px"):d(F((""+o).trim()))}t?(t=!1,e.push(A,l,j,o)):e.push(q,l,j,o)}}t||e.push(Z)}var U=f(" "),W=f('="'),Z=f('"'),G=f('=""');function X(e,t,n,r){switch(n){case"style":H(e,t,r);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]){if(null!==(t=S.hasOwnProperty(n)?S[n]:null)){switch(typeof r){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:r&&e.push(U,n,G);break;case 4:!0===r?e.push(U,n,G):!1!==r&&e.push(U,n,W,d(F(r)),Z);break;case 5:isNaN(r)||e.push(U,n,W,d(F(r)),Z);break;case 6:!isNaN(r)&&1<=r&&e.push(U,n,W,d(F(r)),Z);break;default:t.sanitizeURL&&(r=""+r),e.push(U,n,W,d(F(r)),Z)}}else if(y(n)){switch(typeof r){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(U,d(n),W,d(F(r)),Z)}}}var J=f(">"),Y=f("/>");function K(e,t,n){if(null!=t){if(null!=n)throw Error(a(60));if("object"!=typeof t||!("__html"in t))throw Error(a(61));null!=(t=t.__html)&&e.push(d(""+t))}}var Q=f(' selected=""');function ee(e,t,n,r){e.push(ea(n));var a,o=n=null;for(a in t)if(h.call(t,a)){var l=t[a];if(null!=l)switch(a){case"children":n=l;break;case"dangerouslySetInnerHTML":o=l;break;default:X(e,r,a,l)}}return e.push(J),K(e,o,n),"string"==typeof n?(e.push(d(F(n))),null):n}var et=f("\n"),en=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,er=new Map;function ea(e){var t=er.get(e);if(void 0===t){if(!en.test(e))throw Error(a(65,e));t=f("<"+e),er.set(e,t)}return t}var eo=f("<!DOCTYPE html>"),el=f("</"),eu=f(">"),es=f('<template id="'),ei=f('"></template>'),ec=f("\x3c!--$--\x3e"),ed=f('\x3c!--$?--\x3e<template id="'),ef=f('"></template>'),ep=f("\x3c!--$!--\x3e"),eh=f("\x3c!--/$--\x3e"),eg=f("<template"),em=f('"'),eb=f(' data-dgst="');f(' data-msg="'),f(' data-stck="');var ey=f("></template>");function ev(e,t,n){if(u(e,ed),null===n)throw Error(a(395));return u(e,n),s(e,ef)}var eS=f('<div hidden id="'),ek=f('">'),ex=f("</div>"),ew=f('<svg aria-hidden="true" style="display:none" id="'),eC=f('">'),eE=f("</svg>"),eF=f('<math aria-hidden="true" style="display:none" id="'),eT=f('">'),eR=f("</math>"),e_=f('<table hidden id="'),eP=f('">'),eI=f("</table>"),eM=f('<table hidden><tbody id="'),eB=f('">'),eD=f("</tbody></table>"),ez=f('<table hidden><tr id="'),eN=f('">'),eV=f("</tr></table>"),e$=f('<table hidden><colgroup id="'),eL=f('">'),eO=f("</colgroup></table>"),eA=f('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ej=f('$RS("'),eq=f('","'),eH=f('")<\/script>'),eU=f('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),eW=f('$RC("'),eZ=f('","'),eG=f('")<\/script>'),eX=f('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),eJ=f('$RX("'),eY=f('"'),eK=f(")<\/script>"),eQ=f(","),e0=/[<\u2028\u2029]/g;function e1(e){return JSON.stringify(e).replace(e0,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var e2=Object.assign,e3=Symbol.for("react.element"),e9=Symbol.for("react.portal"),e6=Symbol.for("react.fragment"),e4=Symbol.for("react.strict_mode"),e7=Symbol.for("react.profiler"),e8=Symbol.for("react.provider"),e5=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),tt=Symbol.for("react.suspense"),tn=Symbol.for("react.suspense_list"),tr=Symbol.for("react.memo"),ta=Symbol.for("react.lazy"),to=Symbol.for("react.scope"),tl=Symbol.for("react.debug_trace_mode"),tu=Symbol.for("react.legacy_hidden"),ts=Symbol.for("react.default_value"),ti=Symbol.iterator,tc={};function td(e,t){if(!(e=e.contextTypes))return tc;var n,r={};for(n in e)r[n]=t[n];return r}var tf=null;function tp(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(a(401))}else{if(null===n)throw Error(a(401));tp(e,n)}t.context._currentValue=t.value}}function th(e){var t=tf;t!==e&&(null===t?function e(t){var n=t.parent;null!==n&&e(n),t.context._currentValue=t.value}(e):null===e?function e(t){t.context._currentValue=t.parentValue,null!==(t=t.parent)&&e(t)}(t):t.depth===e.depth?tp(t,e):t.depth>e.depth?function e(t,n){if(t.context._currentValue=t.parentValue,null===(t=t.parent))throw Error(a(402));t.depth===n.depth?tp(t,n):e(t,n)}(t,e):function e(t,n){var r=n.parent;if(null===r)throw Error(a(402));t.depth===r.depth?tp(t,r):e(t,r),n.context._currentValue=n.value}(t,e),tf=e)}var tg={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function tm(e,t,n,r){var a=void 0!==e.state?e.state:null;e.updater=tg,e.props=n,e.state=a;var o={queue:[],replace:!1};e._reactInternals=o;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue:r,"function"==typeof(l=t.getDerivedStateFromProps)&&(e.state=a=null==(l=l(n,a))?a:e2({},a,l)),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&tg.enqueueReplaceState(e,e.state,null),null!==o.queue&&0<o.queue.length)if(t=o.queue,l=o.replace,o.queue=null,o.replace=!1,l&&1===t.length)e.state=t[0];else{for(o=l?t[0]:e.state,a=!0,l=+!!l;l<t.length;l++){var u=t[l];null!=(u="function"==typeof u?u.call(e,o,n,r):u)&&(a?(a=!1,o=e2({},o,u)):e2(o,u))}e.state=o}else o.queue=null}var tb={id:1,overflow:""};function ty(e,t,n){var r=e.id;e=e.overflow;var a=32-tv(r)-1;r&=~(1<<a),n+=1;var o=32-tv(t)+a;if(30<o){var l=a-a%5;return o=(r&(1<<l)-1).toString(32),r>>=l,a-=l,{id:1<<32-tv(t)+a|n<<a|r,overflow:o+e}}return{id:1<<o|n<<a|r,overflow:e}}var tv=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(tS(e)/tk|0)|0},tS=Math.log,tk=Math.LN2,tx="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},tw=null,tC=null,tE=null,tF=null,tT=!1,tR=!1,t_=0,tP=null,tI=0;function tM(){if(null===tw)throw Error(a(321));return tw}function tB(){if(0<tI)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function tD(){return null===tF?null===tE?(tT=!1,tE=tF=tB()):(tT=!0,tF=tE):null===tF.next?(tT=!1,tF=tF.next=tB()):(tT=!0,tF=tF.next),tF}function tz(){tC=tw=null,tR=!1,tE=null,tI=0,tF=tP=null}function tN(e,t){return"function"==typeof t?t(e):t}function tV(e,t,n){if(tw=tM(),tF=tD(),tT){var r=tF.queue;if(t=r.dispatch,null!==tP&&void 0!==(n=tP.get(r))){tP.delete(r),r=tF.memoizedState;do r=e(r,n.action),n=n.next;while(null!==n);return tF.memoizedState=r,[r,t]}return[tF.memoizedState,t]}return e=e===tN?"function"==typeof t?t():t:void 0!==n?n(t):t,tF.memoizedState=e,e=(e=tF.queue={last:null,dispatch:null}).dispatch=tL.bind(null,tw,e),[tF.memoizedState,e]}function t$(e,t){if(tw=tM(),tF=tD(),t=void 0===t?null:t,null!==tF){var n=tF.memoizedState;if(null!==n&&null!==t){var r=n[1];e:if(null===r)r=!1;else{for(var a=0;a<r.length&&a<t.length;a++)if(!tx(t[a],r[a])){r=!1;break e}r=!0}if(r)return n[0]}}return e=e(),tF.memoizedState=[e,t],e}function tL(e,t,n){if(25<=tI)throw Error(a(301));if(e===tw)if(tR=!0,e={action:n,next:null},null===tP&&(tP=new Map),void 0===(n=tP.get(t)))tP.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tO(){throw Error(a(394))}function tA(){}var tj={readContext:function(e){return e._currentValue},useContext:function(e){return tM(),e._currentValue},useMemo:t$,useReducer:tV,useRef:function(e){tw=tM();var t=(tF=tD()).memoizedState;return null===t?(e={current:e},tF.memoizedState=e):t},useState:function(e){return tV(tN,e)},useInsertionEffect:tA,useLayoutEffect:function(){},useCallback:function(e,t){return t$(function(){return e},t)},useImperativeHandle:tA,useEffect:tA,useDebugValue:tA,useDeferredValue:function(e){return tM(),e},useTransition:function(){return tM(),[!1,tO]},useId:function(){var e=tC.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-tv(e)-1)).toString(32)+t;var n=tq;if(null===n)throw Error(a(404));return t=t_++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return tM(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(a(407));return n()}},tq=null,tH=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function tU(e){return console.error(e),null}function tW(){}function tZ(e,t,n,r,a,o,l,u){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&t4(e)},blockedBoundary:n,blockedSegment:r,abortSet:a,legacyContext:o,context:l,treeContext:u};return a.add(s),s}function tG(e,t,n,r,a,o){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:r,boundary:n,lastPushedText:a,textEmbedded:o}}function tX(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function tJ(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,p(e.destination,t)):(e.status=1,e.fatalError=t)}function tY(e,t,n,r,a){for(tw={},tC=t,t_=0,e=n(r,a);tR;)tR=!1,t_=0,tI+=1,tF=null,e=n(r,a);return tz(),e}function tK(e,t,n,r){var o=n.render(),l=r.childContextTypes;if(null!=l){var u=t.legacyContext;if("function"!=typeof n.getChildContext)r=u;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(a(108,function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e6:return"Fragment";case e9:return"Portal";case e7:return"Profiler";case e4:return"StrictMode";case tt:return"Suspense";case tn:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case e5:return(t.displayName||"Context")+".Consumer";case e8:return(t._context.displayName||"Context")+".Provider";case te:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case tr:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case ta:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(r)||"Unknown",s));r=e2({},u,n)}t.legacyContext=r,t0(e,t,o),t.legacyContext=u}else t0(e,t,o)}function tQ(e,t){if(e&&e.defaultProps)for(var n in t=e2({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function t0(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case e3:!function e(t,n,o,l,u){if("function"==typeof o)if(o.prototype&&o.prototype.isReactComponent){u=td(o,n.legacyContext);var s=o.contextType;tm(s=new o(l,"object"==typeof s&&null!==s?s._currentValue:u),o,l,u),tK(t,n,s,o)}else{s=td(o,n.legacyContext),u=tY(t,n,o,l,s);var i=0!==t_;if("object"==typeof u&&null!==u&&"function"==typeof u.render&&void 0===u.$$typeof)tm(u,o,l,s),tK(t,n,u,o);else if(i){l=n.treeContext,n.treeContext=ty(l,1,0);try{t0(t,n,u)}finally{n.treeContext=l}}else t0(t,n,u)}else if("string"==typeof o){switch(s=function(e,t,n,o,l){switch(t){case"select":e.push(ea("select"));var u=null,s=null;for(m in n)if(h.call(n,m)){var i=n[m];if(null!=i)switch(m){case"children":u=i;break;case"dangerouslySetInnerHTML":s=i;break;case"defaultValue":case"value":break;default:X(e,o,m,i)}}return e.push(J),K(e,s,u),u;case"option":s=l.selectedValue,e.push(ea("option"));var c,f,p=i=null,g=null,m=null;for(u in n)if(h.call(n,u)){var b=n[u];if(null!=b)switch(u){case"children":i=b;break;case"selected":g=b;break;case"dangerouslySetInnerHTML":m=b;break;case"value":p=b;default:X(e,o,u,b)}}if(null!=s)if(n=null!==p?""+p:(c=i,f="",r.Children.forEach(c,function(e){null!=e&&(f+=e)}),f),_(s)){for(o=0;o<s.length;o++)if(""+s[o]===n){e.push(Q);break}}else""+s===n&&e.push(Q);else g&&e.push(Q);return e.push(J),K(e,m,i),i;case"textarea":for(i in e.push(ea("textarea")),m=s=u=null,n)if(h.call(n,i)&&null!=(p=n[i]))switch(i){case"children":m=p;break;case"value":u=p;break;case"defaultValue":s=p;break;case"dangerouslySetInnerHTML":throw Error(a(91));default:X(e,o,i,p)}if(null===u&&null!==s&&(u=s),e.push(J),null!=m){if(null!=u)throw Error(a(92));if(_(m)&&1<m.length)throw Error(a(93));u=""+m}return"string"==typeof u&&"\n"===u[0]&&e.push(et),null!==u&&e.push(d(F(""+u))),null;case"input":for(s in e.push(ea("input")),p=m=i=u=null,n)if(h.call(n,s)&&null!=(g=n[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,"input"));case"defaultChecked":p=g;break;case"defaultValue":i=g;break;case"checked":m=g;break;case"value":u=g;break;default:X(e,o,s,g)}return null!==m?X(e,o,"checked",m):null!==p&&X(e,o,"checked",p),null!==u?X(e,o,"value",u):null!==i&&X(e,o,"value",i),e.push(Y),null;case"menuitem":for(var v in e.push(ea("menuitem")),n)if(h.call(n,v)&&null!=(u=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(a(400));default:X(e,o,v,u)}return e.push(J),null;case"title":for(b in e.push(ea("title")),u=null,n)if(h.call(n,b)&&null!=(s=n[b]))switch(b){case"children":u=s;break;case"dangerouslySetInnerHTML":throw Error(a(434));default:X(e,o,b,s)}return e.push(J),u;case"listing":case"pre":for(p in e.push(ea(t)),s=u=null,n)if(h.call(n,p)&&null!=(i=n[p]))switch(p){case"children":u=i;break;case"dangerouslySetInnerHTML":s=i;break;default:X(e,o,p,i)}if(e.push(J),null!=s){if(null!=u)throw Error(a(60));if("object"!=typeof s||!("__html"in s))throw Error(a(61));null!=(n=s.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(et,d(n)):e.push(d(""+n)))}return"string"==typeof u&&"\n"===u[0]&&e.push(et),u;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var S in e.push(ea(t)),n)if(h.call(n,S)&&null!=(u=n[S]))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,t));default:X(e,o,S,u)}return e.push(Y),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,o);case"html":return 0===l.insertionMode&&e.push(eo),ee(e,n,t,o);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,o);for(g in e.push(ea(t)),s=u=null,n)if(h.call(n,g)&&null!=(i=n[g]))switch(g){case"children":u=i;break;case"dangerouslySetInnerHTML":s=i;break;case"style":H(e,o,i);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(g)&&"function"!=typeof i&&"symbol"!=typeof i&&e.push(U,d(g),W,d(F(i)),Z)}return e.push(J),K(e,s,u),u}}((u=n.blockedSegment).chunks,o,l,t.responseState,u.formatContext),u.lastPushedText=!1,i=u.formatContext,u.formatContext=function(e,t,n){switch(t){case"select":return V(1,null!=n.value?n.value:n.defaultValue);case"svg":return V(2,null);case"math":return V(3,null);case"foreignObject":return V(1,null);case"table":return V(4,null);case"thead":case"tbody":case"tfoot":return V(5,null);case"colgroup":return V(7,null);case"tr":return V(6,null)}return 4<=e.insertionMode||0===e.insertionMode?V(1,null):e}(i,o,l),t2(t,n,s),u.formatContext=i,o){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:u.chunks.push(el,d(o),eu)}u.lastPushedText=!1}else{switch(o){case tu:case tl:case e4:case e7:case e6:case tn:t0(t,n,l.children);return;case to:throw Error(a(343));case tt:e:{o=n.blockedBoundary,u=n.blockedSegment,s=l.fallback,l=l.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:i=new Set,errorDigest:null},f=tG(t,u.chunks.length,c,u.formatContext,!1,!1);u.children.push(f),u.lastPushedText=!1;var p=tG(t,0,null,u.formatContext,!1,!1);p.parentFlushed=!0,n.blockedBoundary=c,n.blockedSegment=p;try{if(t2(t,n,l),p.lastPushedText&&p.textEmbedded&&p.chunks.push($),p.status=1,t9(c,p),0===c.pendingTasks)break e}catch(e){p.status=4,c.forceClientRender=!0,c.errorDigest=tX(t,e)}finally{n.blockedBoundary=o,n.blockedSegment=u}n=tZ(t,s,o,f,i,n.legacyContext,n.context,n.treeContext),t.pingedTasks.push(n)}return}if("object"==typeof o&&null!==o)switch(o.$$typeof){case te:if(l=tY(t,n,o.render,l,u),0!==t_){o=n.treeContext,n.treeContext=ty(o,1,0);try{t0(t,n,l)}finally{n.treeContext=o}}else t0(t,n,l);return;case tr:l=tQ(o=o.type,l),e(t,n,o,l,u);return;case e8:if(u=l.children,o=o._context,l=l.value,s=o._currentValue,o._currentValue=l,tf=l={parent:i=tf,depth:null===i?0:i.depth+1,context:o,parentValue:s,value:l},n.context=l,t0(t,n,u),null===(t=tf))throw Error(a(403));l=t.parentValue,t.context._currentValue=l===ts?t.context._defaultValue:l,t=tf=t.parent,n.context=t;return;case e5:t0(t,n,l=(l=l.children)(o._currentValue));return;case ta:l=tQ(o=(u=o._init)(o._payload),l),e(t,n,o,l,void 0);return}throw Error(a(130,null==o?o:typeof o,""))}}(e,t,n.type,n.props,n.ref);return;case e9:throw Error(a(257));case ta:var o=n._init;t0(e,t,n=o(n._payload));return}if(_(n))return void t1(e,t,n);if((o=null===n||"object"!=typeof n?null:"function"==typeof(o=ti&&n[ti]||n["@@iterator"])?o:null)&&(o=o.call(n))){if(!(n=o.next()).done){var l=[];do l.push(n.value),n=o.next();while(!n.done);t1(e,t,l)}return}throw Error(a(31,"[object Object]"===(e=Object.prototype.toString.call(n))?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(o=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"==typeof n&&((o=t.blockedSegment).lastPushedText=L(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function t1(e,t,n){for(var r=n.length,a=0;a<r;a++){var o=t.treeContext;t.treeContext=ty(o,r,a);try{t2(e,t,n[a])}finally{t.treeContext=o}}}function t2(e,t,n){var r=t.blockedSegment.formatContext,a=t.legacyContext,o=t.context;try{return t0(e,t,n)}catch(s){if(tz(),"object"==typeof s&&null!==s&&"function"==typeof s.then){n=s;var l=t.blockedSegment,u=tG(e,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(u),l.lastPushedText=!1,e=tZ(e,t.node,t.blockedBoundary,u,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=r,t.legacyContext=a,t.context=o,th(o)}else throw t.blockedSegment.formatContext=r,t.legacyContext=a,t.context=o,th(o),s}}function t3(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,t6(this,t,e)}function t9(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&t9(e,n)}else e.completedSegments.push(t)}function t6(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(a(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=tW,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&t9(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(t3,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(t9(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function t4(e){if(2!==e.status){var t=tf,n=tH.current;tH.current=tj;var r=tq;tq=e.responseState;try{var a,o=e.pingedTasks;for(a=0;a<o.length;a++){var l=o[a],u=l.blockedSegment;if(0===u.status){th(l.context);try{t0(e,l,l.node),u.lastPushedText&&u.textEmbedded&&u.chunks.push($),l.abortSet.delete(l),u.status=1,t6(e,l.blockedBoundary,u)}catch(t){if(tz(),"object"==typeof t&&null!==t&&"function"==typeof t.then){var s=l.ping;t.then(s,s)}else{l.abortSet.delete(l),u.status=4;var i=l.blockedBoundary,c=tX(e,t);null===i?tJ(e,t):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,i.errorDigest=c,i.parentFlushed&&e.clientRenderedBoundaries.push(i))),e.allPendingTasks--,0===e.allPendingTasks&&(0,e.onAllReady)()}}finally{}}}o.splice(0,a),null!==e.destination&&nn(e,e.destination)}catch(t){tX(e,t),tJ(e,t)}finally{tq=r,tH.current=n,n===tj&&th(t)}}}function t7(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var r=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,u(t,es),u(t,e.placeholderPrefix),u(t,e=d(r.toString(16))),s(t,ei);case 1:n.status=2;var o=!0;r=n.chunks;var l=0;n=n.children;for(var i=0;i<n.length;i++){for(o=n[i];l<o.index;l++)u(t,r[l]);o=t8(e,t,o)}for(;l<r.length-1;l++)u(t,r[l]);return l<r.length&&(o=s(t,r[l])),o;default:throw Error(a(390))}}function t8(e,t,n){var r=n.boundary;if(null===r)return t7(e,t,n);if(r.parentFlushed=!0,r.forceClientRender)r=r.errorDigest,s(t,ep),u(t,eg),r&&(u(t,eb),u(t,d(F(r))),u(t,em)),s(t,ey),t7(e,t,n);else if(0<r.pendingTasks){r.rootSegmentID=e.nextSegmentId++,0<r.completedSegments.length&&e.partialBoundaries.push(r);var o=e.responseState,l=o.nextSuspenseID++;o=f(o.boundaryPrefix+l.toString(16)),r=r.id=o,ev(t,e.responseState,r),t7(e,t,n)}else if(r.byteSize>e.progressiveChunkSize)r.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(r),ev(t,e.responseState,r.id),t7(e,t,n);else{if(s(t,ec),1!==(n=r.completedSegments).length)throw Error(a(391));t8(e,t,n[0])}return s(t,eh)}function t5(e,t,n){switch(!function(e,t,n,r){switch(n.insertionMode){case 0:case 1:return u(e,eS),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,ek);case 2:return u(e,ew),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eC);case 3:return u(e,eF),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eT);case 4:return u(e,e_),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eP);case 5:return u(e,eM),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eB);case 6:return u(e,ez),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eN);case 7:return u(e,e$),u(e,t.segmentPrefix),u(e,d(r.toString(16))),s(e,eL);default:throw Error(a(397))}}(t,e.responseState,n.formatContext,n.id),t8(e,t,n),n.formatContext.insertionMode){case 0:case 1:return s(t,ex);case 2:return s(t,eE);case 3:return s(t,eR);case 4:return s(t,eI);case 5:return s(t,eD);case 6:return s(t,eV);case 7:return s(t,eO);default:throw Error(a(397))}}function ne(e,t,n){for(var r=n.completedSegments,o=0;o<r.length;o++)nt(e,t,n,r[o]);if(r.length=0,e=e.responseState,r=n.id,n=n.rootSegmentID,u(t,e.startInlineScript),e.sentCompleteBoundaryFunction?u(t,eW):(e.sentCompleteBoundaryFunction=!0,u(t,eU)),null===r)throw Error(a(395));return n=d(n.toString(16)),u(t,r),u(t,eZ),u(t,e.segmentPrefix),u(t,n),s(t,eG)}function nt(e,t,n,r){if(2===r.status)return!0;var o=r.id;if(-1===o){if(-1===(r.id=n.rootSegmentID))throw Error(a(392));return t5(e,t,r)}return t5(e,t,r),u(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?u(t,ej):(e.sentCompleteSegmentFunction=!0,u(t,eA)),u(t,e.segmentPrefix),u(t,o=d(o.toString(16))),u(t,eq),u(t,e.placeholderPrefix),u(t,o),s(t,eH)}function nn(e,t){o=new Uint8Array(512),l=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){t8(e,t,n),e.completedRootSegment=null;var r=e.responseState.bootstrapChunks;for(n=0;n<r.length-1;n++)u(t,r[n]);n<r.length&&s(t,r[n])}var c,f=e.clientRenderedBoundaries;for(c=0;c<f.length;c++){var p=f[c];r=t;var h=e.responseState,g=p.id,m=p.errorDigest,b=p.errorMessage,y=p.errorComponentStack;if(u(r,h.startInlineScript),h.sentClientRenderFunction?u(r,eJ):(h.sentClientRenderFunction=!0,u(r,eX)),null===g)throw Error(a(395));if(u(r,g),u(r,eY),(m||b||y)&&(u(r,eQ),u(r,d(e1(m||"")))),(b||y)&&(u(r,eQ),u(r,d(e1(b||"")))),y&&(u(r,eQ),u(r,d(e1(y)))),!s(r,eK)){e.destination=null,c++,f.splice(0,c);return}}f.splice(0,c);var v=e.completedBoundaries;for(c=0;c<v.length;c++)if(!ne(e,t,v[c])){e.destination=null,c++,v.splice(0,c);return}v.splice(0,c),i(t),o=new Uint8Array(512),l=0;var S=e.partialBoundaries;for(c=0;c<S.length;c++){var k=S[c];e:{f=e,p=t;var x=k.completedSegments;for(h=0;h<x.length;h++)if(!nt(f,p,k,x[h])){h++,x.splice(0,h);var w=!1;break e}x.splice(0,h),w=!0}if(!w){e.destination=null,c++,S.splice(0,c);return}}S.splice(0,c);var C=e.completedBoundaries;for(c=0;c<C.length;c++)if(!ne(e,t,C[c])){e.destination=null,c++,C.splice(0,c);return}C.splice(0,c)}finally{i(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function nr(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return function e(t,n,r){var o=t.blockedBoundary;t.blockedSegment.status=3,null===o?(n.allPendingTasks--,2!==n.status&&(n.status=2,null!==n.destination&&n.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,t=void 0===r?Error(a(432)):r,o.errorDigest=n.onError(t),o.parentFlushed&&n.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach(function(t){return e(t,n,r)}),o.fallbackAbortableTasks.clear(),n.allPendingTasks--,0===n.allPendingTasks&&(o=n.onAllReady)())}(n,e,t)}),n.clear(),null!==e.destination&&nn(e,e.destination)}catch(t){tX(e,t),tJ(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,r){var a,o,l,u,s,i,c,h,g,m,b,y,v,S,k=new Promise(function(e,t){S=e,v=t}),x=(o=e,l=function(e,t,n,r,a){e=void 0===e?"":e,t=void 0===t?P:f('<script nonce="'+F(t)+'">');var o=[];if(void 0!==n&&o.push(t,d((""+n).replace(z,N)),I),void 0!==r)for(n=0;n<r.length;n++)o.push(M,d(F(r[n])),D);if(void 0!==a)for(r=0;r<a.length;r++)o.push(B,d(F(a[r])),D);return{bootstrapChunks:o,startInlineScript:t,placeholderPrefix:f(e+"P:"),segmentPrefix:f(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=V("http://www.w3.org/2000/svg"===(a=t?t.namespaceURI:void 0)?2:3*("http://www.w3.org/1998/Math/MathML"===a),null),s=t?t.progressiveChunkSize:void 0,i=t?t.onError:void 0,c=S,h=function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===x.status)x.status=2,p(e,x.fatalError);else if(2!==x.status&&null===x.destination){x.destination=e;try{nn(x,e)}catch(e){tX(x,e),tJ(x,e)}}},cancel:function(){nr(x)}},{highWaterMark:0});e.allReady=k,n(e)},g=function(e){k.catch(function(){}),r(e)},m=v,b=[],(u=tG(l={destination:null,responseState:l,progressiveChunkSize:void 0===s?12800:s,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:y=new Set,pingedTasks:b,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===i?tU:i,onAllReady:void 0===c?tW:c,onShellReady:void 0===h?tW:h,onShellError:void 0===g?tW:g,onFatalError:void 0===m?tW:m},0,null,u,!1,!1)).parentFlushed=!0,o=tZ(l,o,null,u,y,tc,null,tb),b.push(o),l);if(t&&t.signal){var w=t.signal,C=function(){nr(x,w.reason),w.removeEventListener("abort",C)};w.addEventListener("abort",C)}t4(x)})},t.version="18.2.0"},5897:function(e,t,n){var r,a;r=n(244),a=n(6440),r.version,r.renderToString,t.renderToStaticMarkup=r.renderToStaticMarkup,r.renderToNodeStream,r.renderToStaticNodeStream,a.renderToReadableStream}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["699"],{8668:function(e,t,r){r.d(t,{tH:function(){return a}});var n=r(9155);let o=(0,n.createContext)(null),l={didCatch:!1,error:null};class a extends n.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=l}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,r,n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];null==(t=(r=this.props).onReset)||t.call(r,{args:o,reason:"imperative-api"}),this.setState(l)}}componentDidCatch(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)}componentDidUpdate(e,t){let{didCatch:r}=this.state,{resetKeys:n}=this.props;if(r&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}(e.resetKeys,n)){var o,a;null==(o=(a=this.props).onReset)||o.call(a,{next:n,prev:e.resetKeys,reason:"keys"}),this.setState(l)}}render(){let{children:e,fallbackRender:t,FallbackComponent:r,fallback:l}=this.props,{didCatch:a,error:i}=this.state,u=e;if(a){let e={error:i,resetErrorBoundary:this.resetErrorBoundary};if((0,n.isValidElement)(l))u=l;else if("function"==typeof t)u=t(e);else if(r)u=(0,n.createElement)(r,e);else throw i}return(0,n.createElement)(o.Provider,{value:{didCatch:a,error:i,resetErrorBoundary:this.resetErrorBoundary}},u)}}},4150:function(e,t,r){r.r(t),r.d(t,{BusinessReportModal:function(){return O},BusinessReportModalFooter:function(){return k}});var n=r(9155),o=r.n(n),l=r(2059),a=r(7375),i=r(3342),u=r(8668),s=r(3079),c=r(931),d=r(779);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r,n,o,l,a){try{var i=e[l](a),u=i.value}catch(e){r(e);return}i.done?t(u):Promise.resolve(u).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var l=e.apply(t,r);function a(e){f(l,n,o,a,i,"next",e)}function i(e){f(l,n,o,a,i,"throw",e)}a(void 0)})}}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function v(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var l=[],a=!0,i=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(l.push(r.value),!t||l.length!==t);a=!0);}catch(e){i=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(i)throw n}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var r,n,o,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(a,"next",{value:u(0)}),i(a,"throw",{value:u(1)}),i(a,"return",{value:u(2)}),"function"==typeof Symbol&&i(a,Symbol.iterator,{value:function(){return this}}),a;function u(i){return function(u){var s=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(l=0)),l;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return l.label++,{value:s[1],done:!1};case 5:l.label++,n=s[1],s=[0];continue;case 7:s=l.ops.pop(),l.trys.pop();continue;default:if(!(o=(o=l.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){l=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){l.label=s[1];break}if(6===s[0]&&l.label<o[1]){l.label=o[1],o=s;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(s);break}o[2]&&l.ops.pop(),l.trys.pop();continue}s=t.call(e,l)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}var g="calc(100vh - 420px)",w=function(e){var t,r,u,p,f,w,k,E,O,S,P,M,j,B,T,x,A,C,R,I,D,L,F,G,_,H=(t=e.tool,r=(0,s.kj)(),u=(0,i.useToken)().token,p=(0,i.useAPIClient)().auth.getLocale(),f=(0,n.useMemo)(function(){return(0,d.cZ)(v(y({},null==t?void 0:t.args),{generatedAt:null==t?void 0:t.invokeEndTime}))},[null==t?void 0:t.args,null==t?void 0:t.invokeEndTime]),w=(0,n.useMemo)(function(){return JSON.stringify({title:(null==f?void 0:f.title)||"",summary:(null==f?void 0:f.summary)||"",markdown:(null==f?void 0:f.markdown)||"",charts:(null==f?void 0:f.charts)||[],generatedAt:(null==f?void 0:f.generatedAt)||null})},[f]),k=!["done","confirmed"].includes(t.invokeStatus),E=!!((null==f?void 0:f.title)||(null==f?void 0:f.summary)||(null==f?void 0:f.markdown)),S=(O=h((0,n.useState)(null),2))[0],P=O[1],j=(M=h((0,n.useState)(""),2))[0],B=M[1],x=(T=h((0,n.useState)(null),2))[0],A=T[1],(0,n.useEffect)(function(){P(null),A(null)},[t.id]),(0,n.useEffect)(function(){"success"===t.status&&"done"===t.invokeStatus&&E&&w!==x&&(P(f),A(w))},[E,f,w,x,t.invokeStatus,t.status]),C=S||f,R=S&&x||w,I=(null==C?void 0:C.title)||r("Business analysis report"),D=(0,n.useMemo)(function(){return k?v(y({},C),{charts:[]}):C},[C,k]),L=(0,n.useMemo)(function(){return(0,d.wP)(C,{locale:p})},[R,p]),F=(0,n.useMemo)(function(){return(0,d.e4)(C)},[C]),G=(0,n.useMemo)(function(){return{content:(null==D?void 0:D.markdown)?(0,d.wP)(D,{locale:p}):"# ".concat(I,"\n\n").concat((null==C?void 0:C.summary)||r("Generating business analysis report...")),type:"text",messageId:t.id}},[null==C?void 0:C.summary,R,p,D,r,I,t.id]),(0,n.useEffect)(function(){var e=!1;return m(function(){var t,r;return b(this,function(n){switch(n.label){case 0:if(!(null==C?void 0:C.markdown)||k)return B(""),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(0,d.UV)(C,{locale:p})];case 2:if(t=n.sent(),e)return[2];return B(function(e){return e===t?e:t}),[3,4];case 3:return r=n.sent(),e||(console.error("Failed to build business report HTML:",r),B("")),[3,4];case 4:return[2]}})})(),function(){e=!0}},[R,k,p]),_={t:r,token:u,displayReport:C,isGenerating:k,markdown:L,fileName:F,htmlPreview:j,previewMessage:G,title:I,locale:"string"==typeof p?p:void 0,invalid:!1,loading:!1},!E&&k?v(y({},_),{loading:!0}):(null==C?void 0:C.title)||(null==C?void 0:C.markdown)||k?_:v(y({},_),{invalid:!0})),U=H.t,K=H.token,V=H.previewMessage,N=H.htmlPreview,z=H.displayReport,J=H.isGenerating,Q=H.title,Y=H.invalid;return H.loading?o().createElement(l.Result,{icon:o().createElement(a.LoadingOutlined,{spin:!0}),title:U("Generating business analysis report..."),subTitle:U("The report modal will update in real time as new content arrives.")}):Y?o().createElement(l.Alert,{type:"error",showIcon:!0,message:U("Invalid report definition")}):o().createElement("div",null,o().createElement("div",null,o().createElement("div",{style:{paddingRight:K.paddingSM}},o().createElement(l.Typography.Title,{level:4,style:{marginBottom:4}},Q,J?o().createElement(l.Spin,{indicator:o().createElement(a.LoadingOutlined,{spin:!0}),size:"small",style:{marginLeft:12}}):null),z.summary?o().createElement(l.Typography.Paragraph,{type:"secondary",style:{marginBottom:0}},z.summary):J?o().createElement(l.Typography.Paragraph,{type:"secondary",style:{marginBottom:0}},U("The report modal will update in real time as new content arrives.")):null)),o().createElement(l.Tabs,{style:{height:g},tabBarStyle:{marginBottom:K.marginSM},items:[{key:"preview",label:U("Preview"),children:o().createElement("div",{style:{height:g,overflow:"auto",padding:16,border:"1px solid ".concat(K.colorBorderSecondary),borderRadius:K.borderRadiusLG,background:K.colorBgContainer,color:K.colorText,boxShadow:"inset 0 1px 0 ".concat(K.colorFillQuaternary)}},o().createElement(c.Markdown,{message:V}))},{key:"markdown",label:U("Markdown"),children:o().createElement("pre",{style:{height:g,overflow:"auto",padding:16,borderRadius:12,background:"#0f172a",color:"#e2e8f0",whiteSpace:"pre-wrap",wordBreak:"break-word"}},(null==z?void 0:z.markdown)||U("Generating business analysis report..."))},{key:"html",label:U("HTML"),children:N?o().createElement("iframe",{title:Q,srcDoc:N,style:{width:"100%",height:g,border:"1px solid ".concat(K.colorBorderSecondary),borderRadius:K.borderRadiusLG,background:K.colorBgContainer}}):o().createElement(l.Result,{icon:o().createElement(a.LoadingOutlined,{spin:!0}),title:U("Generating business analysis report...")})}]}))},k=function(e){var t=e.tool,r=(0,s.kj)(),u=l.App.useApp().message,c=(0,i.useAPIClient)().auth.getLocale(),p=(0,n.useMemo)(function(){return v(y({},null==t?void 0:t.args),{generatedAt:null==t?void 0:t.invokeEndTime})},[null==t?void 0:t.args,null==t?void 0:t.invokeEndTime]),f=!["done","confirmed"].includes(t.invokeStatus),g=(0,n.useMemo)(function(){return(0,d.wP)(p,{locale:c})},[p,c]),w=(0,n.useMemo)(function(){return(0,d.e4)(p)},[p]),k=h((0,n.useState)(!1),2),E=k[0],O=k[1];return o().createElement(l.Space,{wrap:!0,style:{justifyContent:"flex-end",width:"100%"}},o().createElement(l.Button,{icon:o().createElement(a.FileMarkdownOutlined,null),disabled:f||!(null==p?void 0:p.markdown),onClick:function(){return(0,d.MT)("".concat(w,".md"),g,"text/markdown;charset=utf-8")}},r("Download Markdown")),o().createElement(l.Button,{icon:o().createElement(a.FileTextOutlined,null),disabled:f||!(null==p?void 0:p.markdown)||E,onClick:function(){return m(function(){var e;return b(this,function(t){switch(t.label){case 0:O(!0),t.label=1;case 1:return t.trys.push([1,,3,4]),[4,(0,d.UV)(p,{printMode:!0,locale:c})];case 2:return e=t.sent(),(0,d.MT)("".concat(w,".html"),e,"text/html;charset=utf-8"),[3,4];case 3:return O(!1),[7];case 4:return[2]}})})()}},r("Download HTML")),o().createElement(l.Button,{type:"primary",icon:o().createElement(a.FilePdfOutlined,null),loading:E,disabled:f||!(null==p?void 0:p.markdown)||E,onClick:function(){return m(function(){return b(this,function(e){switch(e.label){case 0:O(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,(0,d.Y_)(p,{locale:c})];case 2:return e.sent()||u.error(r("Popup blocked. Please allow popups and try again.")),[3,5];case 3:return console.error("Failed to print business report:",e.sent()),u.error(r("Popup blocked. Please allow popups and try again.")),[3,5];case 4:return O(!1),[7];case 5:return[2]}})})()}},r("Print PDF")))},E=function(e){var t=e.error,r=(0,s.kj)();return o().createElement(l.Alert,{type:"error",showIcon:!0,message:r("Invalid report definition"),description:t.message})},O=function(e){var t=e.tool;return o().createElement(u.tH,{FallbackComponent:E,onError:function(e){return console.error("Business report modal render error:",e,t)},resetKeys:[t.id,t.invokeStatus,t.args]},o().createElement(w,{tool:t}))}}}]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["280"],{779:function(e,t,r){r.d(t,{MT:function(){return j},UV:function(){return O},Y_:function(){return N},cZ:function(){return x},e4:function(){return S},wP:function(){return k}});var n=r(9155),o=r.n(n),a=r(3342),i=r(9557),c=r(9597),s=r(7916),l=r(1210),u=r(9256),p=r(1465),d=r(5897);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(e){r(e);return}c.done?t(s):Promise.resolve(s).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){h(a,n,o,i,c,"next",e)}function c(e){h(a,n,o,i,c,"throw",e)}i(void 0)})}}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function g(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),c=Object.defineProperty;return c(i,"next",{value:s(0)}),c(i,"throw",{value:s(1)}),c(i,"return",{value:s(2)}),"function"==typeof Symbol&&c(i,Symbol.iterator,{value:function(){return this}}),i;function s(c){return function(s){var l=[c,s];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function w(e){return!!e&&(void 0===e?"undefined":g(e))==="object"&&"object"===g(e.options)}function x(e){return e?y(b({},e),{markdown:e.markdown,charts:function(e){if(Array.isArray(e))return e.filter(w);if("string"!=typeof e)return[];var t=e.trim();if(!t)return[];try{var r=JSON.parse(t);return Array.isArray(r)?r.filter(w):[]}catch(e){return[]}}(e.charts)}):{}}function S(e){var t=x(e);return(t.fileName||t.title||"business-analysis-report").replace(/[\\/:*?"<>|]+/g,"-").trim()}function k(e,t){var r,n,o,i=x(e),c=["# ".concat(i.title)],s=function(e,t){var r=function(e){if(null==e||""===e)return null;if(null!=(t=Date)&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t)return Number.isNaN(e.getTime())?null:e;if("number"==typeof e)return U(e);var t,r=e.trim();if(!r)return null;if(/^\d+$/.test(r))return U(Number(r));var n=new Date(r);return Number.isNaN(n.getTime())?null:n}(e);if(!r)return null;var n=F(t)||"en-US";try{return new Intl.DateTimeFormat(n,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(r)}catch(e){return console.error("Failed to format business report generatedAt:",e),r.toLocaleString()}}(i.generatedAt,null==t?void 0:t.locale);return s&&c.push("_".concat(a.i18n.t("Generated at"),": ").concat(s,"_")),i.summary&&c.push("> ".concat(i.summary)),(null==(o=i.markdown)?void 0:o.trim())&&c.push((r=i.markdown.trim(),n=i.charts||[],r&&n.length?r.replace(/\{\{\s*chart\s*:\s*(\d+)\s*\}\}/gi,function(e,t){var r,o,a,i=Number(t)-1,c=n[i];return c?(r=c,o=i,a=["## ".concat(r.title||"Chart ".concat(o+1))],r.summary&&a.push(r.summary),a.push("<echarts>".concat(JSON.stringify(r.options,null,2),"</echarts>")),a.join("\n\n")):e}):r)),(function(e,t){if(!t.length)return[];for(var r,n=new Set,o=/\{\{\s*chart\s*:\s*(\d+)\s*\}\}/gi,a=e||"";r=o.exec(a);){var i=Number(r[1])-1;i>=0&&i<t.length&&n.add(i)}return t.filter(function(e,t){return!n.has(t)})})(i.markdown,i.charts||[]).forEach(function(e,t){c.push("## ".concat(e.title||"Chart ".concat(t+1))),e.summary&&c.push(e.summary),c.push("<echarts>".concat(JSON.stringify(e.options,null,2),"</echarts>"))}),c.filter(Boolean).join("\n\n")}function O(e,t){return m(function(){var r,n,a,h,w,x,S,O,j,N,U,M;return v(this,function(C){var I,L,R,E,T,D,H,_,z,J;switch(C.label){case 0:return I=k(e,{locale:null==t?void 0:t.locale}),L=[],R=0,n=(r={body:(0,d.renderToStaticMarkup)(o().createElement(c.oz,{components:{echarts:function(e){var t=e.children,r=Array.isArray(t)?t.join(""):String(null!=t?t:""),n="report-chart-".concat(R++),a=function(e){try{var t=JSON.parse(e);if(t&&(void 0===t?"undefined":g(t))==="object")return t}catch(e){console.error("Failed to parse business report chart options:",e)}return null}(r);return a&&L.push({id:n,options:a}),o().createElement("div",{id:n,className:"report-chart"})}},rehypePlugins:[l.A,[u.A,y(b({},p.j),{tagNames:((function(e){if(Array.isArray(e))return f(e)})(E=p.j.tagNames)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(E)||function(e){if(e){if("string"==typeof e)return f(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return f(e,void 0)}}(E)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(["echarts"])})]],remarkPlugins:[s.A]},I)),charts:L}).body,a=r.charts,h=(null==t?void 0:t.printMode)===!0,x=(D=w=(T=F(null==t?void 0:t.locale))||"en-US").startsWith("zh")?'"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif':D.startsWith("ja")?'"Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Source Han Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif':D.startsWith("ko")?'"Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Source Han Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif':'"Inter", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif',S=h?"#ffffff":"#f5f7fb",O=h?"max-width: 190mm; margin: 0 auto; padding: 0;":"max-width: 960px; margin: 0 auto; padding: 32px 24px 64px;",j=h?"background: #fff; border: 0; border-radius: 0; padding: 0; box-shadow: none; width: 100%;":"background: #fff; border: 1px solid #d0d5dd; border-radius: 20px; padding: 40px 48px; box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);",[4,(H=a,_={chartHeight:N=h?320:360,fontFamily:x,printMode:h},m(function(){var e,t,r,n,o,a,c,s,l,u,p,d;return v(this,function(f){var h,m,g;switch(f.label){case 0:if("u"<typeof document||!H.length)return[2,new Map];e=new Map,(t=document.createElement("div")).style.position="fixed",t.style.left="-100000px",t.style.top="0",t.style.width="".concat(_.printMode?718:960,"px"),t.style.pointerEvents="none",t.style.opacity="0",t.style.zIndex="-1",document.body.appendChild(t),f.label=1;case 1:f.trys.push([1,,15,16]),r=!0,n=!1,o=void 0,f.label=2;case 2:f.trys.push([2,12,13,14]),a=H[Symbol.iterator](),f.label=3;case 3:if(r=(c=a.next()).done)return[3,11];s=c.value,(l=document.createElement("div")).style.width=t.style.width,l.style.height="".concat(_.chartHeight,"px"),t.appendChild(l),f.label=4;case 4:return f.trys.push([4,8,9,10]),(p=i.init(l,"default",{renderer:"canvas"})).setOption(y(b({},(m=y(b({},h=s.options),{animation:!1,toolbox:{show:!1}}),h.grid&&(m.grid=Array.isArray(h.grid)?h.grid.map(function(e){return b({containLabel:!0},e)}):b({containLabel:!0},h.grid)),m)),{textStyle:y(b({},(null==(u=s.options)?void 0:u.textStyle)||{}),{fontFamily:_.fontFamily})}),!0),p.resize({width:l.clientWidth||parseInt(t.style.width,10),height:_.chartHeight,silent:!0}),[4,A()];case 5:return f.sent(),[4,A()];case 6:return f.sent(),[4,(g=p,new Promise(function(e){var t=!1,r=function(){t||(t=!0,g.off("finished",r),e())};g.on("finished",r),window.setTimeout(r,400)}))];case 7:return f.sent(),e.set(s.id,p.getDataURL({type:"png",pixelRatio:3,backgroundColor:"#ffffff",excludeComponents:["toolbox"]})),p.dispose(),[3,10];case 8:return console.error("Failed to render business report chart image:",f.sent()),[3,10];case 9:return l.remove(),[7];case 10:return r=!0,[3,3];case 11:return[3,14];case 12:return d=f.sent(),n=!0,o=d,[3,14];case 13:try{r||null==a.return||a.return()}finally{if(n)throw o}return[7];case 14:return[3,16];case 15:return t.remove(),[7];case 16:return[2,e]}})})())];case 1:return U=C.sent(),z=n,J=U,M=z.replace(/<div id="([^"]+)" class="report-chart"><\/div>/g,function(e,t){var r=J.get(t);return r?'<img class="report-chart-image" src="'.concat(r,'" alt="" />'):e}),[2,'<!DOCTYPE html>\n<html lang="'.concat(P(w),'">\n <head>\n <meta charset="UTF-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n <title>').concat(P(e.title),"</title>\n <style>\n * { box-sizing: border-box; }\n html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }\n html, body { font-family: ").concat(x,"; }\n body { margin: 0; color: #1f2937; background: ").concat(S,"; }\n .report-shell { ").concat(O," }\n .report-paper { ").concat(j," }\n h1, h2, h3 { color: #101828; }\n h1 { margin-top: 0; font-size: 32px; }\n h2, h3 { break-after: avoid-page; }\n p, li { line-height: 1.7; }\n blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid #0f766e; background: #f0fdfa; color: #667085; }\n pre, blockquote, table, .report-chart { break-inside: avoid; page-break-inside: avoid; }\n table { width: 100%; border-collapse: collapse; }\n th, td { border: 1px solid #d0d5dd; padding: 10px 12px; text-align: left; }\n .report-chart { width: 100%; min-height: ").concat(N,"px; height: ").concat(N,"px; margin: 24px 0 32px; border: 1px solid #d0d5dd; border-radius: ").concat(16*!h,"px; overflow: hidden; background: #fff; }\n .report-chart-image { display: block; width: 100%; height: auto; border: 1px solid #d0d5dd; background: #fff; margin: 24px 0 32px; break-inside: avoid; page-break-inside: avoid; }\n .report-paper > *:first-child { margin-top: 0; }\n .report-paper > *:last-child { margin-bottom: 0; }\n img, svg, canvas { max-width: 100%; }\n svg, svg text, svg tspan, canvas { font-family: ").concat(x,'; }\n @page { size: A4; margin: 12mm; }\n @media print {\n body { background: #fff; }\n .report-shell { max-width: 100%; padding: 0; margin: 0; }\n .report-paper { border: 0; border-radius: 0; box-shadow: none; padding: 0; width: 100%; }\n .report-chart { margin: 16px 0 24px; height: 320px; min-height: 320px; }\n .report-chart-image { margin: 16px 0 24px; }\n }\n </style>\n </head>\n <body>\n <div class="report-shell">\n <article class="report-paper">').concat(M,"</article>\n </div>\n ").concat((null==t?void 0:t.autoPrint)?"<script>\n window.addEventListener('load', async () => {\n if (document.fonts?.ready) {\n try {\n await document.fonts.ready;\n } catch (error) {\n console.error('Failed to wait for fonts before printing:', error);\n }\n }\n requestAnimationFrame(() => {\n requestAnimationFrame(() => {\n window.print();\n });\n });\n });\n <\/script>":"","\n </body>\n</html>")]}})})()}function j(e,t,r){var n=new Blob([t],{type:r}),o=URL.createObjectURL(n),a=document.createElement("a");a.href=o,a.download=e,a.click(),URL.revokeObjectURL(o)}function N(e,t){return m(function(){var r,n;return v(this,function(o){switch(o.label){case 0:if("u"<typeof window)return[2,!1];return[4,O(e,{autoPrint:!0,printMode:!0,locale:null==t?void 0:t.locale})];case 1:if(r=new Blob([o.sent()],{type:"text/html;charset=utf-8"}),n=URL.createObjectURL(r),!window.open(n,"_blank","noopener,noreferrer"))return URL.revokeObjectURL(n),[2,!1];return window.setTimeout(function(){URL.revokeObjectURL(n)},6e4),[2,!0]}})})()}function A(){return new Promise(function(e){return requestAnimationFrame(function(){return e()})})}function P(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function U(e){if(!Number.isFinite(e))return null;var t=new Date(e<1e12?1e3*e:e);return Number.isNaN(t.getTime())?null:t}function F(e){if(!e)return null;var t=e.trim().replace(/_/g,"-");if(!t||!/^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i.test(t))return null;try{return Intl.DateTimeFormat.supportedLocalesOf([t])[0]||t}catch(e){return t}}}}]);
|
|
@@ -24,6 +24,8 @@ export type BusinessReportRenderState = BusinessReport & {
|
|
|
24
24
|
type ReportRenderOptions = {
|
|
25
25
|
locale?: string;
|
|
26
26
|
};
|
|
27
|
+
export declare function normalizeBusinessReportCharts(charts: unknown): BusinessReportChart[];
|
|
28
|
+
export declare function normalizeBusinessReport<T extends Partial<BusinessReportRenderState> | undefined | null>(report: T): Partial<BusinessReportRenderState>;
|
|
27
29
|
export declare function getReportFileName(report: BusinessReport): string;
|
|
28
30
|
export declare function buildReportMarkdown(report: BusinessReportRenderState, options?: ReportRenderOptions): string;
|
|
29
31
|
export declare function buildReportHtml(report: BusinessReportRenderState, options?: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
"use strict";(self.webpackChunk_nocobase_plugin_ai=self.webpackChunk_nocobase_plugin_ai||[]).push([["768"],{7611:function(e,t,r){r.r(t),r.d(t,{BusinessReportCard:function(){return g}});var n=r(9155),o=r.n(n),i=r(2059),a=r(7375),s=r(5477),l=r(3342),c=r(3079),u=r(7596),d=r(107),f=r(26),m=r(779);function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(){var e,t,r=(e=["\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(220%);\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return v=function(){return r},r}var b=new(function(){var e;function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");p(this,"maxSize",void 0),p(this,"items",void 0),this.maxSize=e,this.items=new Set}return e=[{key:"has",value:function(e){return this.items.has(e)}},{key:"add",value:function(e){if(this.items.has(e))return this;if(this.items.size>=this.maxSize){var t=this.items.values().next().value;void 0!==t&&this.items.delete(t)}return this.items.add(e),this}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}())(200),y=(0,s.keyframes)(v()),g=function(e){var t,r,v,g,h,O,w,k=e.messageId,j=e.toolCall,P=(0,c.kj)(),E=(0,l.useToken)().token,S=u.J.use.currentConversation(),C=f.H.use.messages(),T=f.H.use.responseLoading(),x=d.y.use.setOpenToolModal(),z=d.y.use.setActiveTool(),B=d.y.use.setActiveMessageId(),M=(0,n.useMemo)(function(){return(0,m.cZ)(j.args||{})},[j.args]),_=!["done","confirmed"].includes(j.invokeStatus),D="success"===j.status&&["done","confirmed"].includes(j.invokeStatus),F=null==(r=C[C.length-1])||null==(t=r.content)?void 0:t.messageId,R=!!((null==M?void 0:M.title)||(null==M?void 0:M.summary)||(null==M||null==(v=M.markdown)?void 0:v.trim())||(null==M||null==(g=M.charts)?void 0:g.length)),I=(0,n.useRef)({}),A=(0,n.useMemo)(function(){return(0,s.css)({position:"relative",overflow:"hidden",height:4,borderRadius:999,background:E.colorFillSecondary,"&::after":{content:'""',position:"absolute",inset:0,width:"45%",borderRadius:999,background:"linear-gradient(90deg, ".concat(E.colorPrimaryBg," 0%, ").concat(E.colorPrimary," 100%)"),animation:"".concat(y," 1.2s ease-in-out infinite")}})},[E.colorFillSecondary,E.colorPrimary,E.colorPrimaryBg]),G=(0,n.useCallback)(function(){z(j),B(k),x(!0)},[k,B,z,x,j]);(0,n.useEffect)(function(){if(T&&F===k&&"success"===j.status&&"done"===j.invokeStatus){var e="".concat(S||"global",":").concat(j.id);b.has(e)||(b.add(e),G())}},[S,F,k,G,T,j.id,j.status,j.invokeStatus]),(0,n.useEffect)(function(){if(R){var e,t;e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){p(e,t,r[t])})}return e}({},I.current,M),t=t={charts:(null==M?void 0:M.charts)||I.current.charts},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),I.current=e}},[R,M]);var H=(0,m.cZ)(R?M:I.current),L=(null==H?void 0:H.summary)||((null==H||null==(h=H.markdown)?void 0:h.trim())?H.markdown.trim().split("\n").filter(Boolean).slice(0,2).join(" "):P(_?"Generating business analysis report...":"Open the report to preview, export, or print it.")),X=(null==H||null==(w=H.markdown)||null==(O=w.trim())?void 0:O.split("\n").filter(Boolean).slice(0,3).join(" "))||"",Z=(null==H?void 0:H.title)||P("Business analysis report");return o().createElement(i.Card,{hoverable:D,style:{margin:"16px 0",cursor:D?"pointer":_?"progress":"default"},onClick:function(){D&&G()}},o().createElement(i.Card.Meta,{avatar:_?o().createElement(a.LoadingOutlined,{spin:!0}):o().createElement(a.FileTextOutlined,null),title:Z,description:o().createElement(i.Space,{direction:"vertical",size:10,style:{width:"100%"}},o().createElement("div",null,L),X?o().createElement(i.Typography.Paragraph,{ellipsis:{rows:3,expandable:!1},style:{marginBottom:0,color:E.colorTextSecondary}},X):null,o().createElement(i.Space,{wrap:!0,size:[8,8]},o().createElement(i.Tag,{bordered:!1,color:_?"warning":"processing"},P(_?"Generating":"Markdown")),o().createElement(i.Tag,{bordered:!1,color:D?"success":"default"},((null==H?void 0:H.charts)||[]).length," ",P("Charts")),o().createElement(i.Tag,{bordered:!1,style:{background:E.colorFillTertiary,color:E.colorTextSecondary}},o().createElement(a.BarChartOutlined,null)," ",P("Preview and export"))),_?o().createElement("div",{className:A}):null)}))}}}]);
|