rhua-chatgpt-web 1.0.70 → 1.0.71
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/{api_chain-Bs9zeF4Q.cjs → api_chain-DWzbSi-i.cjs} +1 -1
- package/dist/{api_chain-D_DKKKML.js → api_chain-az5O0iur.js} +2 -2
- package/dist/{combine_docs_chain-DBzqoF6r.js → combine_docs_chain-DBvbvV9R.js} +2 -2
- package/dist/{combine_docs_chain-DG5xsH7t.cjs → combine_docs_chain-Djkk8Z_G.cjs} +1 -1
- package/dist/{few_shot-CHjiBZNX.cjs → few_shot-DmOWFNfa.cjs} +1 -1
- package/dist/{few_shot-BLMcAOLE.js → few_shot-FVKfGO2B.js} +1 -1
- package/dist/index-9O8s7LFU.js +4 -0
- package/dist/{index-DViO1T8g.js → index-B6xWr5Zf.js} +79 -52
- package/dist/{index-Dj2iXUCq.cjs → index-BHoa4w5S.cjs} +1 -1
- package/dist/{index-BfWtmB7t.js → index-BLeCw5PW.js} +1 -1
- package/dist/index-BQuYHzH2.js +4 -0
- package/dist/{index-Lh5dFf8v.js → index-BWcNq4BC.js} +1 -1
- package/dist/{index-DcC3IFVQ.cjs → index-BmesU4Kl.cjs} +3 -3
- package/dist/{index-Cvc3Mbi1.js → index-C0a1PVq_.js} +1 -1
- package/dist/{index-CTHtOLBc.cjs → index-CAiZU-7u.cjs} +1 -1
- package/dist/{index-DkfAYsne.js → index-CEwhUeDC.js} +1 -1
- package/dist/index-CXrNQFwm.js +4 -0
- package/dist/{index-CQ_JQ4Zo.cjs → index-CdmQlNDr.cjs} +1 -1
- package/dist/index-CuNrj8LF.js +4 -0
- package/dist/{index-Cas96T51.js → index-D9GT1Ven.js} +2 -2
- package/dist/{index-FK2WsnoY.cjs → index-DM5F4gjn.cjs} +1 -1
- package/dist/{index-CjJP_X8X.js → index-Dey7sLCv.js} +2 -2
- package/dist/{index-ByG4RVoo.cjs → index-DoUab5_1.cjs} +1 -1
- package/dist/{index-wqLxPSaT.cjs → index-DsLTGPJj.cjs} +1 -1
- package/dist/{index-D1wMXDmO.cjs → index-DzgP-G8i.cjs} +1 -1
- package/dist/{index-B7-KSktq.cjs → index-LCxqiYNt.cjs} +1 -1
- package/dist/{index-DUXPgPdH.cjs → index-Nzjw5csY.cjs} +1 -1
- package/dist/{index-DR4mIYJP.cjs → index-UY81HV4L.cjs} +1 -1
- package/dist/{index-AuGlEhPu.cjs → index-X_e9uZpm.cjs} +1 -1
- package/dist/{index-DhKH9Xxu.js → index-vuFhHG98.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/{index.es-BG6obdNm.cjs → index.es-ALHjT1Ph.cjs} +2 -2
- package/dist/{index.es-CVAKK9N_.js → index.es-DK7Qsd3x.js} +11 -11
- package/dist/index.esm.js +1 -1
- package/dist/{llm_chain-MngDpu6v.js → llm_chain-Bv7-GEoy.js} +1 -1
- package/dist/{llm_chain-Clt46kZj.cjs → llm_chain-DRyAC1xu.cjs} +1 -1
- package/dist/{sequential_chain-DWvJCRMx.js → sequential_chain-BkxcjcrW.js} +1 -1
- package/dist/{sequential_chain-DIu14Ez0.cjs → sequential_chain-E4U6MCHJ.cjs} +1 -1
- package/dist/{vector_db_qa-DZHA8BEV.js → vector_db_qa-DIMXpxyh.js} +3 -3
- package/dist/{vector_db_qa-oiHynrI6.cjs → vector_db_qa-qIPAlHGK.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-10bb9tcR.js +0 -4
- package/dist/index-DF4f3zzv.js +0 -4
- package/dist/index-DaIdphPT.js +0 -4
- package/dist/index-iWg_0U5B.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BmesU4Kl.cjs"),i=require("./llm_chain-DRyAC1xu.cjs");require("zod");const t="You are given the below API Documentation:\n{api_docs}\nUsing this documentation, generate the full API url to call for answering the user question.\nYou should build the API url in order to get a response that is as short as possible, while still getting the necessary information to answer the question. Pay attention to deliberately exclude any unnecessary pieces of data in the API call.\n\nQuestion:{question}\nAPI url:",a=new e.PromptTemplate({inputVariables:["api_docs","question"],template:t}),n=`${t} {api_url}\n\nHere is the response from the API:\n\n{api_response}\n\nSummarize this response to answer the original question.\n\nSummary:`,s=new e.PromptTemplate({inputVariables:["api_docs","question","api_url","api_response"],template:n});class r extends e.BaseChain{get inputKeys(){return[this.inputKey]}get outputKeys(){return[this.outputKey]}constructor(e){super(e),Object.defineProperty(this,"apiAnswerChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"apiRequestChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"apiDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"inputKey",{enumerable:!0,configurable:!0,writable:!0,value:"question"}),Object.defineProperty(this,"outputKey",{enumerable:!0,configurable:!0,writable:!0,value:"output"}),this.apiRequestChain=e.apiRequestChain,this.apiAnswerChain=e.apiAnswerChain,this.apiDocs=e.apiDocs,this.inputKey=e.inputKey??this.inputKey,this.outputKey=e.outputKey??this.outputKey,this.headers=e.headers??this.headers}async _call(e,i){const t=e[this.inputKey],a=await this.apiRequestChain.predict({question:t,api_docs:this.apiDocs},null==i?void 0:i.getChild("request")),n=await fetch(a,{headers:this.headers}),s=await n.text(),r=await this.apiAnswerChain.predict({question:t,api_docs:this.apiDocs,api_url:a,api_response:s},null==i?void 0:i.getChild("response"));return{[this.outputKey]:r}}_chainType(){return"api_chain"}static async deserialize(e){const{api_request_chain:t,api_answer_chain:a,api_docs:n}=e;if(!t)throw new Error("LLMChain must have api_request_chain");if(!a)throw new Error("LLMChain must have api_answer_chain");if(!n)throw new Error("LLMChain must have api_docs");return new r({apiAnswerChain:await i.LLMChain.deserialize(a),apiRequestChain:await i.LLMChain.deserialize(t),apiDocs:n})}serialize(){return{_type:this._chainType(),api_answer_chain:this.apiAnswerChain.serialize(),api_request_chain:this.apiRequestChain.serialize(),api_docs:this.apiDocs}}static fromLLMAndAPIDocs(e,t,n={}){const{apiUrlPrompt:r=a,apiResponsePrompt:o=s}=n,u=new i.LLMChain({prompt:r,llm:e});return new this({apiAnswerChain:new i.LLMChain({prompt:o,llm:e}),apiRequestChain:u,apiDocs:t,...n})}}exports.APIChain=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PromptTemplate, i as BaseChain } from "./index-
|
|
2
|
-
import { LLMChain } from "./llm_chain-
|
|
1
|
+
import { P as PromptTemplate, i as BaseChain } from "./index-B6xWr5Zf.js";
|
|
2
|
+
import { LLMChain } from "./llm_chain-Bv7-GEoy.js";
|
|
3
3
|
import "zod";
|
|
4
4
|
const API_URL_RAW_PROMPT_TEMPLATE = `You are given the below API Documentation:
|
|
5
5
|
{api_docs}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "zod";
|
|
2
|
-
import { i as BaseChain, P as PromptTemplate } from "./index-
|
|
3
|
-
import { LLMChain } from "./llm_chain-
|
|
2
|
+
import { i as BaseChain, P as PromptTemplate } from "./index-B6xWr5Zf.js";
|
|
3
|
+
import { LLMChain } from "./llm_chain-Bv7-GEoy.js";
|
|
4
4
|
class StuffDocumentsChain extends BaseChain {
|
|
5
5
|
static lc_name() {
|
|
6
6
|
return "StuffDocumentsChain";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("zod");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("zod");const e=require("./index-BmesU4Kl.cjs"),t=require("./llm_chain-DRyAC1xu.cjs");class i extends e.BaseChain{static lc_name(){return"StuffDocumentsChain"}get inputKeys(){return[this.inputKey,...this.llmChain.inputKeys].filter(e=>e!==this.documentVariableName)}get outputKeys(){return this.llmChain.outputKeys}constructor(e){super(e),Object.defineProperty(this,"llmChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inputKey",{enumerable:!0,configurable:!0,writable:!0,value:"input_documents"}),Object.defineProperty(this,"documentVariableName",{enumerable:!0,configurable:!0,writable:!0,value:"context"}),this.llmChain=e.llmChain,this.documentVariableName=e.documentVariableName??this.documentVariableName,this.inputKey=e.inputKey??this.inputKey}_prepInputs(e){if(!(this.inputKey in e))throw new Error(`Document key ${this.inputKey} not found.`);const{[this.inputKey]:t,...i}=e,n=t.map(({pageContent:e})=>e).join("\n\n");return{...i,[this.documentVariableName]:n}}async _call(e,t){return await this.llmChain.call(this._prepInputs(e),null==t?void 0:t.getChild("combine_documents"))}_chainType(){return"stuff_documents_chain"}static async deserialize(e){if(!e.llm_chain)throw new Error("Missing llm_chain");return new i({llmChain:await t.LLMChain.deserialize(e.llm_chain)})}serialize(){return{_type:this._chainType(),llm_chain:this.llmChain.serialize()}}}class n extends e.BaseChain{static lc_name(){return"MapReduceDocumentsChain"}get inputKeys(){return[this.inputKey,...this.combineDocumentChain.inputKeys]}get outputKeys(){return this.combineDocumentChain.outputKeys}constructor(e){super(e),Object.defineProperty(this,"llmChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inputKey",{enumerable:!0,configurable:!0,writable:!0,value:"input_documents"}),Object.defineProperty(this,"documentVariableName",{enumerable:!0,configurable:!0,writable:!0,value:"context"}),Object.defineProperty(this,"returnIntermediateSteps",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"maxTokens",{enumerable:!0,configurable:!0,writable:!0,value:3e3}),Object.defineProperty(this,"maxIterations",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(this,"ensureMapStep",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"combineDocumentChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.llmChain=e.llmChain,this.combineDocumentChain=e.combineDocumentChain,this.documentVariableName=e.documentVariableName??this.documentVariableName,this.ensureMapStep=e.ensureMapStep??this.ensureMapStep,this.inputKey=e.inputKey??this.inputKey,this.maxTokens=e.maxTokens??this.maxTokens,this.maxIterations=e.maxIterations??this.maxIterations,this.returnIntermediateSteps=e.returnIntermediateSteps??!1}async _call(e,t){if(!(this.inputKey in e))throw new Error(`Document key ${this.inputKey} not found.`);const{[this.inputKey]:i,...n}=e;let a=i,r=[];for(let o=0;o<this.maxIterations;o+=1){const e=a.map(e=>({[this.documentVariableName]:e.pageContent,...n}));if(0!==o||!this.ensureMapStep){const e=await this.combineDocumentChain.llmChain.prompt.format(this.combineDocumentChain._prepInputs({[this.combineDocumentChain.inputKey]:a,...n}));if(await this.combineDocumentChain.llmChain._getNumTokens(e)<this.maxTokens)break}const i=await this.llmChain.apply(e,t?Array.from({length:e.length},(e,i)=>t.getChild(`map_${i+1}`)):void 0),{outputKey:s}=this.llmChain;this.returnIntermediateSteps&&(r=r.concat(i.map(e=>e[s]))),a=i.map(e=>({pageContent:e[s],metadata:{}}))}const s={[this.combineDocumentChain.inputKey]:a,...n},u=await this.combineDocumentChain.call(s,null==t?void 0:t.getChild("combine_documents"));return this.returnIntermediateSteps?{...u,intermediateSteps:r}:u}_chainType(){return"map_reduce_documents_chain"}static async deserialize(e){if(!e.llm_chain)throw new Error("Missing llm_chain");if(!e.combine_document_chain)throw new Error("Missing combine_document_chain");return new n({llmChain:await t.LLMChain.deserialize(e.llm_chain),combineDocumentChain:await i.deserialize(e.combine_document_chain)})}serialize(){return{_type:this._chainType(),llm_chain:this.llmChain.serialize(),combine_document_chain:this.combineDocumentChain.serialize()}}}class a extends e.BaseChain{static lc_name(){return"RefineDocumentsChain"}get defaultDocumentPrompt(){return new e.PromptTemplate({inputVariables:["page_content"],template:"{page_content}"})}get inputKeys(){return[...new Set([this.inputKey,...this.llmChain.inputKeys,...this.refineLLMChain.inputKeys])].filter(e=>e!==this.documentVariableName&&e!==this.initialResponseName)}get outputKeys(){return[this.outputKey]}constructor(e){super(e),Object.defineProperty(this,"llmChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inputKey",{enumerable:!0,configurable:!0,writable:!0,value:"input_documents"}),Object.defineProperty(this,"outputKey",{enumerable:!0,configurable:!0,writable:!0,value:"output_text"}),Object.defineProperty(this,"documentVariableName",{enumerable:!0,configurable:!0,writable:!0,value:"context"}),Object.defineProperty(this,"initialResponseName",{enumerable:!0,configurable:!0,writable:!0,value:"existing_answer"}),Object.defineProperty(this,"refineLLMChain",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"documentPrompt",{enumerable:!0,configurable:!0,writable:!0,value:this.defaultDocumentPrompt}),this.llmChain=e.llmChain,this.refineLLMChain=e.refineLLMChain,this.documentVariableName=e.documentVariableName??this.documentVariableName,this.inputKey=e.inputKey??this.inputKey,this.outputKey=e.outputKey??this.outputKey,this.documentPrompt=e.documentPrompt??this.documentPrompt,this.initialResponseName=e.initialResponseName??this.initialResponseName}async _constructInitialInputs(e,t){const i={page_content:e.pageContent,...e.metadata},n={};this.documentPrompt.inputVariables.forEach(e=>{n[e]=i[e]});return{...{[this.documentVariableName]:await this.documentPrompt.format({...n})},...t}}async _constructRefineInputs(e,t){const i={page_content:e.pageContent,...e.metadata},n={};this.documentPrompt.inputVariables.forEach(e=>{n[e]=i[e]});const a={[this.documentVariableName]:await this.documentPrompt.format({...n})};return{[this.initialResponseName]:t,...a}}async _call(e,t){if(!(this.inputKey in e))throw new Error(`Document key ${this.inputKey} not found.`);const{[this.inputKey]:i,...n}=e,a=i,r=await this._constructInitialInputs(a[0],n);let s=await this.llmChain.predict({...r},null==t?void 0:t.getChild("answer"));for(let u=1;u<a.length;u+=1){const e={...await this._constructRefineInputs(a[u],s),...n};s=await this.refineLLMChain.predict({...e},null==t?void 0:t.getChild("refine"))}return{[this.outputKey]:s}}_chainType(){return"refine_documents_chain"}static async deserialize(e){const i=e.llm_chain;if(!i)throw new Error("Missing llm_chain");const n=e.refine_llm_chain;if(!n)throw new Error("Missing refine_llm_chain");return new a({llmChain:await t.LLMChain.deserialize(i),refineLLMChain:await t.LLMChain.deserialize(n)})}serialize(){return{_type:this._chainType(),llm_chain:this.llmChain.serialize(),refine_llm_chain:this.refineLLMChain.serialize()}}}exports.MapReduceDocumentsChain=n,exports.RefineDocumentsChain=a,exports.StuffDocumentsChain=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BmesU4Kl.cjs");require("zod");class t extends e.BaseStringPromptTemplate{constructor(t){if(super(t),Object.defineProperty(this,"lc_serializable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"examples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exampleSelector",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"examplePrompt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"suffix",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"exampleSeparator",{enumerable:!0,configurable:!0,writable:!0,value:"\n\n"}),Object.defineProperty(this,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"templateFormat",{enumerable:!0,configurable:!0,writable:!0,value:"f-string"}),Object.defineProperty(this,"validateTemplate",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.assign(this,t),void 0!==this.examples&&void 0!==this.exampleSelector)throw new Error("Only one of 'examples' and 'example_selector' should be provided");if(void 0===this.examples&&void 0===this.exampleSelector)throw new Error("One of 'examples' and 'example_selector' should be provided");if(this.validateTemplate){let t=this.inputVariables;this.partialVariables&&(t=t.concat(Object.keys(this.partialVariables))),e.checkValidTemplate(this.prefix+this.suffix,this.templateFormat,t)}}_getPromptType(){return"few_shot"}static lc_name(){return"FewShotPromptTemplate"}async getExamples(e){if(void 0!==this.examples)return this.examples;if(void 0!==this.exampleSelector)return this.exampleSelector.selectExamples(e);throw new Error("One of 'examples' and 'example_selector' should be provided")}async partial(e){const r=this.inputVariables.filter(t=>!(t in e)),a={...this.partialVariables??{},...e},i={...this,inputVariables:r,partialVariables:a};return new t(i)}async format(t){const r=await this.mergePartialAndUserVariables(t),a=await this.getExamples(r),i=await Promise.all(a.map(e=>this.examplePrompt.format(e))),l=[this.prefix,...i,this.suffix].join(this.exampleSeparator);return e.renderTemplate(l,this.templateFormat,r)}serialize(){if(this.exampleSelector||!this.examples)throw new Error("Serializing an example selector is not currently supported");if(void 0!==this.outputParser)throw new Error("Serializing an output parser is not currently supported");return{_type:this._getPromptType(),input_variables:this.inputVariables,example_prompt:this.examplePrompt.serialize(),example_separator:this.exampleSeparator,suffix:this.suffix,prefix:this.prefix,template_format:this.templateFormat,examples:this.examples}}static async deserialize(r){const{example_prompt:a}=r;if(!a)throw new Error("Missing example prompt");const i=await e.PromptTemplate.deserialize(a);let l;if(!Array.isArray(r.examples))throw new Error("Invalid examples format. Only list or string are supported.");return l=r.examples,new t({inputVariables:r.input_variables,examplePrompt:i,examples:l,exampleSeparator:r.example_separator,prefix:r.prefix,suffix:r.suffix,templateFormat:r.template_format})}}exports.FewShotPromptTemplate=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseStringPromptTemplate, e as checkValidTemplate, g as renderTemplate, P as PromptTemplate } from "./index-
|
|
1
|
+
import { B as BaseStringPromptTemplate, e as checkValidTemplate, g as renderTemplate, P as PromptTemplate } from "./index-B6xWr5Zf.js";
|
|
2
2
|
import "zod";
|
|
3
3
|
class FewShotPromptTemplate extends BaseStringPromptTemplate {
|
|
4
4
|
constructor(input) {
|
|
@@ -517,7 +517,7 @@ function requireReactJsxRuntime_development() {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
function checkPropTypes(typeSpecs, values,
|
|
520
|
+
function checkPropTypes(typeSpecs, values, location2, componentName, element2) {
|
|
521
521
|
{
|
|
522
522
|
var has2 = Function.call.bind(hasOwnProperty2);
|
|
523
523
|
for (var typeSpecName in typeSpecs) {
|
|
@@ -525,23 +525,23 @@ function requireReactJsxRuntime_development() {
|
|
|
525
525
|
var error$1 = void 0;
|
|
526
526
|
try {
|
|
527
527
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
528
|
-
var err = Error((componentName || "React class") + ": " +
|
|
528
|
+
var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
529
529
|
err.name = "Invariant Violation";
|
|
530
530
|
throw err;
|
|
531
531
|
}
|
|
532
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName,
|
|
532
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
533
533
|
} catch (ex) {
|
|
534
534
|
error$1 = ex;
|
|
535
535
|
}
|
|
536
536
|
if (error$1 && !(error$1 instanceof Error)) {
|
|
537
537
|
setCurrentlyValidatingElement(element2);
|
|
538
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class",
|
|
538
|
+
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
|
|
539
539
|
setCurrentlyValidatingElement(null);
|
|
540
540
|
}
|
|
541
541
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
542
542
|
loggedTypeFailures[error$1.message] = true;
|
|
543
543
|
setCurrentlyValidatingElement(element2);
|
|
544
|
-
error("Failed %s type: %s",
|
|
544
|
+
error("Failed %s type: %s", location2, error$1.message);
|
|
545
545
|
setCurrentlyValidatingElement(null);
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -1274,8 +1274,9 @@ const convertDifyAppToAgent = (difyApp) => {
|
|
|
1274
1274
|
};
|
|
1275
1275
|
const allAgentList = agentList;
|
|
1276
1276
|
const getAgentList = async (type = "app") => {
|
|
1277
|
-
let
|
|
1278
|
-
let
|
|
1277
|
+
let preApi = location.hostname === "localhost" ? "http://111.6.44.42:30001" : location.origin;
|
|
1278
|
+
let baseApi = `${preApi}/prod-api/system/apps/list?pageNum=1&pageSize=100&type=${type}`;
|
|
1279
|
+
let token = "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImxvZ2luX3VzZXJfa2V5IjoiNjg3MGQ5OWEtODgyYS00OGI5LTllN2YtNjE0YzRlZTA3MjNmIn0.13eL7VgD1rhtqI3zi-AYyvx7_dT1k2FqYW4Zl-jzykbU_2GL7LYS2LGFoqi2RfwbtmRByMMKJ7LMb6MsD6d82Q";
|
|
1279
1280
|
try {
|
|
1280
1281
|
const cacheData = localStorage.getItem("agentWebCache");
|
|
1281
1282
|
console.log("cacheData", cacheData);
|
|
@@ -1297,7 +1298,7 @@ const getAgentList = async (type = "app") => {
|
|
|
1297
1298
|
}
|
|
1298
1299
|
}
|
|
1299
1300
|
} else {
|
|
1300
|
-
baseApi =
|
|
1301
|
+
baseApi = `${preApi}/prod-api/system/apps/list?pageNum=1&pageSize=100&type=${type}`;
|
|
1301
1302
|
}
|
|
1302
1303
|
token = parsed.token || token;
|
|
1303
1304
|
}
|
|
@@ -27251,6 +27252,39 @@ const getModelTopPByPrecision = (precision) => {
|
|
|
27251
27252
|
return 0.8;
|
|
27252
27253
|
}
|
|
27253
27254
|
};
|
|
27255
|
+
class CommonUtil {
|
|
27256
|
+
static getDateString() {
|
|
27257
|
+
const currentDate = /* @__PURE__ */ new Date();
|
|
27258
|
+
return currentDate.getFullYear() + "/" + (currentDate.getMonth() + 1) + "/" + currentDate.getDate();
|
|
27259
|
+
}
|
|
27260
|
+
static mergeAndDeduplication(...arrays) {
|
|
27261
|
+
return [...new Set(arrays.flat())];
|
|
27262
|
+
}
|
|
27263
|
+
/**
|
|
27264
|
+
* 获取 Dify API 基础地址
|
|
27265
|
+
* 优先从 localStorage 的 VUE_APP_DIFY_API 获取
|
|
27266
|
+
* 如果没有,则从 agentwebcache 的 difyApi 获取
|
|
27267
|
+
* 如果都没有,返回默认值
|
|
27268
|
+
*/
|
|
27269
|
+
static getDifyApiBaseUrl() {
|
|
27270
|
+
const vueAppDifyApi = localStorage.getItem("VUE_APP_DIFY_API");
|
|
27271
|
+
if (vueAppDifyApi) {
|
|
27272
|
+
return vueAppDifyApi;
|
|
27273
|
+
}
|
|
27274
|
+
try {
|
|
27275
|
+
const agentwebcache = localStorage.getItem("agentwebcache");
|
|
27276
|
+
if (agentwebcache) {
|
|
27277
|
+
const cacheData = JSON.parse(agentwebcache);
|
|
27278
|
+
if (cacheData && cacheData.difyApi) {
|
|
27279
|
+
return cacheData.difyApi;
|
|
27280
|
+
}
|
|
27281
|
+
}
|
|
27282
|
+
} catch (e) {
|
|
27283
|
+
console.error("Failed to parse agentwebcache:", e);
|
|
27284
|
+
}
|
|
27285
|
+
return "http://111.6.44.42:30000";
|
|
27286
|
+
}
|
|
27287
|
+
}
|
|
27254
27288
|
class MessageUtil {
|
|
27255
27289
|
/**
|
|
27256
27290
|
* 转换聊天内容
|
|
@@ -27300,6 +27334,7 @@ class MessageUtil {
|
|
|
27300
27334
|
return inputMessage.additions.some((addition) => addition.type === "image");
|
|
27301
27335
|
}
|
|
27302
27336
|
static async getSessionTitle(sessionSetting, apiKey, userMessage, botMessage) {
|
|
27337
|
+
const baseUrl = CommonUtil.getDifyApiBaseUrl();
|
|
27303
27338
|
const model = new ChatOpenAI({
|
|
27304
27339
|
temperature: 0.3,
|
|
27305
27340
|
topP: 0.2,
|
|
@@ -27307,9 +27342,7 @@ class MessageUtil {
|
|
|
27307
27342
|
// 固定使用 deepseek-r1 模型
|
|
27308
27343
|
openAIApiKey: apiKey
|
|
27309
27344
|
}, {
|
|
27310
|
-
|
|
27311
|
-
baseURL: "http://111.6.44.42:30000/v1"
|
|
27312
|
-
// 固定 baseURL
|
|
27345
|
+
baseURL: `${baseUrl}/v1`
|
|
27313
27346
|
});
|
|
27314
27347
|
const chatHistory = [];
|
|
27315
27348
|
chatHistory.push(new HumanMessage({
|
|
@@ -42782,14 +42815,14 @@ const FileUploadBox = ({
|
|
|
42782
42815
|
title = "",
|
|
42783
42816
|
onUploadSuccess,
|
|
42784
42817
|
onUploadError,
|
|
42785
|
-
|
|
42786
|
-
uploadUrl = "http://111.6.44.42:30000/v1/files/upload",
|
|
42818
|
+
uploadUrl,
|
|
42787
42819
|
apiKey,
|
|
42788
42820
|
accept = "*/*",
|
|
42789
42821
|
multiple = false,
|
|
42790
42822
|
uploadedFiles: externalUploadedFiles,
|
|
42791
42823
|
onFileDelete
|
|
42792
42824
|
}) => {
|
|
42825
|
+
const defaultUploadUrl = uploadUrl || `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`;
|
|
42793
42826
|
const { Text } = Typography;
|
|
42794
42827
|
const fileInputRef = useRef(null);
|
|
42795
42828
|
const [uploading, setUploading] = useState(false);
|
|
@@ -42824,7 +42857,7 @@ const FileUploadBox = ({
|
|
|
42824
42857
|
if (apiKey) {
|
|
42825
42858
|
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
42826
42859
|
}
|
|
42827
|
-
const response = await fetch(
|
|
42860
|
+
const response = await fetch(defaultUploadUrl, {
|
|
42828
42861
|
method: "POST",
|
|
42829
42862
|
headers,
|
|
42830
42863
|
body: formData
|
|
@@ -42937,12 +42970,12 @@ const FileUploadBox = ({
|
|
|
42937
42970
|
const ForensicForm = ({
|
|
42938
42971
|
onUploadSuccess,
|
|
42939
42972
|
onUploadError,
|
|
42940
|
-
|
|
42941
|
-
uploadUrl = "http://111.6.44.42:30000/v1/files/upload",
|
|
42973
|
+
uploadUrl,
|
|
42942
42974
|
apiKey,
|
|
42943
42975
|
onTextChange,
|
|
42944
42976
|
getFormData
|
|
42945
42977
|
}) => {
|
|
42978
|
+
const defaultUploadUrl = uploadUrl || `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`;
|
|
42946
42979
|
const { Text } = Typography;
|
|
42947
42980
|
const appraisalInputRef = useRef(null);
|
|
42948
42981
|
const medicalInputRef = useRef(null);
|
|
@@ -42979,7 +43012,7 @@ const ForensicForm = ({
|
|
|
42979
43012
|
if (apiKey) {
|
|
42980
43013
|
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
42981
43014
|
}
|
|
42982
|
-
const response = await fetch(
|
|
43015
|
+
const response = await fetch(defaultUploadUrl, {
|
|
42983
43016
|
method: "POST",
|
|
42984
43017
|
headers,
|
|
42985
43018
|
body: formData
|
|
@@ -43184,11 +43217,12 @@ const ForensicForm = ({
|
|
|
43184
43217
|
const AutopsyForm = ({
|
|
43185
43218
|
onUploadSuccess,
|
|
43186
43219
|
onUploadError,
|
|
43187
|
-
uploadUrl
|
|
43220
|
+
uploadUrl,
|
|
43188
43221
|
apiKey,
|
|
43189
43222
|
getFormData,
|
|
43190
43223
|
initialData
|
|
43191
43224
|
}) => {
|
|
43225
|
+
const defaultUploadUrl = uploadUrl || `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`;
|
|
43192
43226
|
const { Text } = Typography;
|
|
43193
43227
|
const confirmationInputRef = useRef(null);
|
|
43194
43228
|
const medicalInputRef = useRef(null);
|
|
@@ -43223,7 +43257,7 @@ const AutopsyForm = ({
|
|
|
43223
43257
|
if (apiKey) {
|
|
43224
43258
|
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
43225
43259
|
}
|
|
43226
|
-
const response = await fetch(
|
|
43260
|
+
const response = await fetch(defaultUploadUrl, {
|
|
43227
43261
|
method: "POST",
|
|
43228
43262
|
headers,
|
|
43229
43263
|
body: formData
|
|
@@ -43409,12 +43443,13 @@ const AutopsyForm = ({
|
|
|
43409
43443
|
const ReportVerificationForm = ({
|
|
43410
43444
|
onUploadSuccess,
|
|
43411
43445
|
onUploadError,
|
|
43412
|
-
uploadUrl
|
|
43446
|
+
uploadUrl,
|
|
43413
43447
|
apiKey,
|
|
43414
43448
|
getFormData,
|
|
43415
43449
|
initialData,
|
|
43416
43450
|
onDataChange
|
|
43417
43451
|
}) => {
|
|
43452
|
+
const defaultUploadUrl = uploadUrl || `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`;
|
|
43418
43453
|
const { Text } = Typography;
|
|
43419
43454
|
const fileInputRef = useRef(null);
|
|
43420
43455
|
const [uploading, setUploading] = useState(false);
|
|
@@ -43484,7 +43519,7 @@ const ReportVerificationForm = ({
|
|
|
43484
43519
|
if (apiKey) {
|
|
43485
43520
|
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
43486
43521
|
}
|
|
43487
|
-
const response = await fetch(
|
|
43522
|
+
const response = await fetch(defaultUploadUrl, {
|
|
43488
43523
|
method: "POST",
|
|
43489
43524
|
headers,
|
|
43490
43525
|
body: formData
|
|
@@ -43742,10 +43777,11 @@ const WritingForm = ({
|
|
|
43742
43777
|
const DualFileUploadBox = ({
|
|
43743
43778
|
onUploadSuccess,
|
|
43744
43779
|
onUploadError,
|
|
43745
|
-
uploadUrl
|
|
43780
|
+
uploadUrl,
|
|
43746
43781
|
apiKey,
|
|
43747
43782
|
getFormData
|
|
43748
43783
|
}) => {
|
|
43784
|
+
const defaultUploadUrl = uploadUrl || `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`;
|
|
43749
43785
|
const { Text } = Typography;
|
|
43750
43786
|
const fileOneInputRef = useRef(null);
|
|
43751
43787
|
const fileTwoInputRef = useRef(null);
|
|
@@ -43780,7 +43816,7 @@ const DualFileUploadBox = ({
|
|
|
43780
43816
|
if (apiKey) {
|
|
43781
43817
|
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
43782
43818
|
}
|
|
43783
|
-
const response = await fetch(
|
|
43819
|
+
const response = await fetch(defaultUploadUrl, {
|
|
43784
43820
|
method: "POST",
|
|
43785
43821
|
headers,
|
|
43786
43822
|
body: formData
|
|
@@ -44184,7 +44220,7 @@ const FORM_CONFIGS = {
|
|
|
44184
44220
|
}
|
|
44185
44221
|
};
|
|
44186
44222
|
},
|
|
44187
|
-
apiEndpoint:
|
|
44223
|
+
apiEndpoint: `${CommonUtil.getDifyApiBaseUrl()}/v1/completion-messages`
|
|
44188
44224
|
},
|
|
44189
44225
|
// 2: 智能写作表单
|
|
44190
44226
|
2: {
|
|
@@ -44566,7 +44602,7 @@ const FORM_CONFIGS = {
|
|
|
44566
44602
|
function getFormConfig(formId) {
|
|
44567
44603
|
return FORM_CONFIGS[formId];
|
|
44568
44604
|
}
|
|
44569
|
-
const DEFAULT_API_ENDPOINT =
|
|
44605
|
+
const DEFAULT_API_ENDPOINT = `${CommonUtil.getDifyApiBaseUrl()}/v1/chat-messages`;
|
|
44570
44606
|
function CommentIndex({
|
|
44571
44607
|
onBackToAiList,
|
|
44572
44608
|
onNavigateView,
|
|
@@ -44754,7 +44790,7 @@ function CommentIndex({
|
|
|
44754
44790
|
if (!files || files.length === 0 || !currentCommentSessionId) {
|
|
44755
44791
|
return;
|
|
44756
44792
|
}
|
|
44757
|
-
const uploadUrl =
|
|
44793
|
+
const uploadUrl = `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`;
|
|
44758
44794
|
const file = files[0];
|
|
44759
44795
|
try {
|
|
44760
44796
|
let apiKey;
|
|
@@ -45881,7 +45917,7 @@ function CommentIndex({
|
|
|
45881
45917
|
return null;
|
|
45882
45918
|
}
|
|
45883
45919
|
try {
|
|
45884
|
-
const response = await fetch(
|
|
45920
|
+
const response = await fetch(`${CommonUtil.getDifyApiBaseUrl()}/v1/parameters`, {
|
|
45885
45921
|
method: "GET",
|
|
45886
45922
|
headers: {
|
|
45887
45923
|
Authorization: `Bearer ${apiKey}`,
|
|
@@ -46764,7 +46800,7 @@ function CommentIndex({
|
|
|
46764
46800
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46765
46801
|
FormComponent,
|
|
46766
46802
|
{
|
|
46767
|
-
uploadUrl:
|
|
46803
|
+
uploadUrl: `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`,
|
|
46768
46804
|
apiKey: sessionAgent == null ? void 0 : sessionAgent.apiKeys,
|
|
46769
46805
|
getFormData: (getData) => {
|
|
46770
46806
|
getForensicFormDataRef.current = getData;
|
|
@@ -46831,7 +46867,7 @@ function CommentIndex({
|
|
|
46831
46867
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46832
46868
|
FormComponent,
|
|
46833
46869
|
{
|
|
46834
|
-
uploadUrl:
|
|
46870
|
+
uploadUrl: `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`,
|
|
46835
46871
|
apiKey: sessionAgent == null ? void 0 : sessionAgent.apiKeys,
|
|
46836
46872
|
getFormData: (getData) => {
|
|
46837
46873
|
getAutopsyFormDataRef.current = getData;
|
|
@@ -46895,7 +46931,7 @@ function CommentIndex({
|
|
|
46895
46931
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46896
46932
|
FormComponent,
|
|
46897
46933
|
{
|
|
46898
|
-
uploadUrl:
|
|
46934
|
+
uploadUrl: `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`,
|
|
46899
46935
|
apiKey: sessionAgent == null ? void 0 : sessionAgent.apiKeys,
|
|
46900
46936
|
getFormData: (getData) => {
|
|
46901
46937
|
getDualFileUploadDataRef.current = getData;
|
|
@@ -46958,7 +46994,7 @@ function CommentIndex({
|
|
|
46958
46994
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46959
46995
|
FormComponent,
|
|
46960
46996
|
{
|
|
46961
|
-
uploadUrl:
|
|
46997
|
+
uploadUrl: `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`,
|
|
46962
46998
|
apiKey: sessionAgent == null ? void 0 : sessionAgent.apiKeys,
|
|
46963
46999
|
getFormData: (getData) => {
|
|
46964
47000
|
getReportVerificationFormDataRef.current = getData;
|
|
@@ -47181,7 +47217,7 @@ function CommentIndex({
|
|
|
47181
47217
|
FormComponent,
|
|
47182
47218
|
{
|
|
47183
47219
|
title: getFileUploadTitle(),
|
|
47184
|
-
uploadUrl:
|
|
47220
|
+
uploadUrl: `${CommonUtil.getDifyApiBaseUrl()}/v1/files/upload`,
|
|
47185
47221
|
apiKey: sessionAgent == null ? void 0 : sessionAgent.apiKeys,
|
|
47186
47222
|
accept: formConfig.id === 10 ? "audio/*" : "*/*",
|
|
47187
47223
|
multiple: isMultiple,
|
|
@@ -47609,7 +47645,7 @@ const BlockEdit = ({
|
|
|
47609
47645
|
const initVueEditor = async () => {
|
|
47610
47646
|
if (editorRef.current) {
|
|
47611
47647
|
try {
|
|
47612
|
-
const BlockNoteEditorModule = await import("./index.es-
|
|
47648
|
+
const BlockNoteEditorModule = await import("./index.es-DK7Qsd3x.js");
|
|
47613
47649
|
const BlockNoteEditor = BlockNoteEditorModule.BlockNoteEditor;
|
|
47614
47650
|
const theme = {
|
|
47615
47651
|
colors: {
|
|
@@ -48427,7 +48463,7 @@ const AiBlockEdit = ({
|
|
|
48427
48463
|
const initVueEditor = async () => {
|
|
48428
48464
|
if (editorRef.current) {
|
|
48429
48465
|
try {
|
|
48430
|
-
const BlockNoteEditorModule = await import("./index.es-
|
|
48466
|
+
const BlockNoteEditorModule = await import("./index.es-DK7Qsd3x.js");
|
|
48431
48467
|
const BlockNoteEditor = BlockNoteEditorModule.BlockNoteEditor;
|
|
48432
48468
|
const theme = {
|
|
48433
48469
|
colors: {
|
|
@@ -49171,7 +49207,7 @@ class BasePromptTemplate extends Runnable {
|
|
|
49171
49207
|
return PromptTemplate2.deserialize({ ...data, _type: "prompt" });
|
|
49172
49208
|
}
|
|
49173
49209
|
case "few_shot": {
|
|
49174
|
-
const { FewShotPromptTemplate } = await import("./few_shot-
|
|
49210
|
+
const { FewShotPromptTemplate } = await import("./few_shot-FVKfGO2B.js");
|
|
49175
49211
|
return FewShotPromptTemplate.deserialize(data);
|
|
49176
49212
|
}
|
|
49177
49213
|
default:
|
|
@@ -50743,35 +50779,35 @@ class BaseChain extends BaseLangChain {
|
|
|
50743
50779
|
static async deserialize(data, values = {}) {
|
|
50744
50780
|
switch (data._type) {
|
|
50745
50781
|
case "llm_chain": {
|
|
50746
|
-
const { LLMChain } = await import("./llm_chain-
|
|
50782
|
+
const { LLMChain } = await import("./llm_chain-Bv7-GEoy.js");
|
|
50747
50783
|
return LLMChain.deserialize(data);
|
|
50748
50784
|
}
|
|
50749
50785
|
case "sequential_chain": {
|
|
50750
|
-
const { SequentialChain } = await import("./sequential_chain-
|
|
50786
|
+
const { SequentialChain } = await import("./sequential_chain-BkxcjcrW.js");
|
|
50751
50787
|
return SequentialChain.deserialize(data);
|
|
50752
50788
|
}
|
|
50753
50789
|
case "simple_sequential_chain": {
|
|
50754
|
-
const { SimpleSequentialChain } = await import("./sequential_chain-
|
|
50790
|
+
const { SimpleSequentialChain } = await import("./sequential_chain-BkxcjcrW.js");
|
|
50755
50791
|
return SimpleSequentialChain.deserialize(data);
|
|
50756
50792
|
}
|
|
50757
50793
|
case "stuff_documents_chain": {
|
|
50758
|
-
const { StuffDocumentsChain } = await import("./combine_docs_chain-
|
|
50794
|
+
const { StuffDocumentsChain } = await import("./combine_docs_chain-DBvbvV9R.js");
|
|
50759
50795
|
return StuffDocumentsChain.deserialize(data);
|
|
50760
50796
|
}
|
|
50761
50797
|
case "map_reduce_documents_chain": {
|
|
50762
|
-
const { MapReduceDocumentsChain } = await import("./combine_docs_chain-
|
|
50798
|
+
const { MapReduceDocumentsChain } = await import("./combine_docs_chain-DBvbvV9R.js");
|
|
50763
50799
|
return MapReduceDocumentsChain.deserialize(data);
|
|
50764
50800
|
}
|
|
50765
50801
|
case "refine_documents_chain": {
|
|
50766
|
-
const { RefineDocumentsChain } = await import("./combine_docs_chain-
|
|
50802
|
+
const { RefineDocumentsChain } = await import("./combine_docs_chain-DBvbvV9R.js");
|
|
50767
50803
|
return RefineDocumentsChain.deserialize(data);
|
|
50768
50804
|
}
|
|
50769
50805
|
case "vector_db_qa": {
|
|
50770
|
-
const { VectorDBQAChain } = await import("./vector_db_qa-
|
|
50806
|
+
const { VectorDBQAChain } = await import("./vector_db_qa-DIMXpxyh.js");
|
|
50771
50807
|
return VectorDBQAChain.deserialize(data, values);
|
|
50772
50808
|
}
|
|
50773
50809
|
case "api_chain": {
|
|
50774
|
-
const { APIChain } = await import("./api_chain-
|
|
50810
|
+
const { APIChain } = await import("./api_chain-az5O0iur.js");
|
|
50775
50811
|
return APIChain.deserialize(data);
|
|
50776
50812
|
}
|
|
50777
50813
|
default:
|
|
@@ -51644,15 +51680,6 @@ class PluginExecutor {
|
|
|
51644
51680
|
}
|
|
51645
51681
|
}
|
|
51646
51682
|
}
|
|
51647
|
-
class CommonUtil {
|
|
51648
|
-
static getDateString() {
|
|
51649
|
-
const currentDate = /* @__PURE__ */ new Date();
|
|
51650
|
-
return currentDate.getFullYear() + "/" + (currentDate.getMonth() + 1) + "/" + currentDate.getDate();
|
|
51651
|
-
}
|
|
51652
|
-
static mergeAndDeduplication(...arrays) {
|
|
51653
|
-
return [...new Set(arrays.flat())];
|
|
51654
|
-
}
|
|
51655
|
-
}
|
|
51656
51683
|
export {
|
|
51657
51684
|
AgentWebIndex as $,
|
|
51658
51685
|
svg as A,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BmesU4Kl.cjs");exports.unified=e.unified;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as svg, D as html, E as webNamespaces, F as s, G as h, I as find, J as ok, V as VFile, K as VFileMessage } from "./index-
|
|
1
|
+
import { A as svg, D as html, E as webNamespaces, F as s, G as h, I as find, J as ok, V as VFile, K as VFileMessage } from "./index-B6xWr5Zf.js";
|
|
2
2
|
function location(file) {
|
|
3
3
|
const value = String(file);
|
|
4
4
|
const indices = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as whitespace, A as svg, I as find, L as stringify, M as stringify$1, N as ccount, D as html$2 } from "./index-
|
|
1
|
+
import { w as whitespace, A as svg, I as find, L as stringify, M as stringify$1, N as ccount, D as html$2 } from "./index-B6xWr5Zf.js";
|
|
2
2
|
import { z as zwitch } from "./index-BEZf1ZPW.js";
|
|
3
3
|
const htmlVoidElements = [
|
|
4
4
|
"area",
|