chatgpt-plugin/server/static/js/app.eaab4ef2.js
HalcyonAlcedo 0926009bb3
新的图片模式页面缓存和配套的API系统 (#315)
* 修复引用转发,默认bing模式并发

* 开启stream增加稳定性

* fix: remove queue element only in non-bing mode

* 使用chatgpt-api自带的超时逻辑,文字过多时启动切换到图片输出防止被吞

* Update chat.js

* 添加Bing专用的图片输出样式

* 添加chatgpt的新图片模式,临时处理切换api导致的对话异常

* 修改bing样式表

* 为图片添加外部页面缓存

* 为图片模式添加MathJax

* feat: add switch for qrcode

* 防止script攻击

* 修复网页模板错误

* 修复bing页面引用错误

* 缓存服务器异常时处理

* 添加默认配置加载

* 修复配置文件路径错误

* 删除重复的模板文件,修复二维码地址错误

* 修正图片渲染错误

* 修复引用渲染错误

* 二维码网址统一改为使用本地配置

* 添加关闭思考提示的配置项

* 修复在Windows上无法载入配置文件的问题

* 修复关闭qr的情况下渲染错误

* 改为使用base64传递返回数据

* 当异常过多时使用图片输出

* 添加锅巴面板配置支持

* 补充遗漏的默认配置

* 修复qr模式下引用未被传递的问题

* 修复未将引用数据传输给缓存服务器的问题

* 删除无用的bingTimeoutMs配置项

* 添加消息队列超时弹出

* 优化图片模式处理,解决对话队列卡住的问题

* 添加对图片ocr的支持

* 添加图片识别配置项

* 添加黑名单配置项

* 修复一些bug

* 修改锅巴配置格式和描述

* 传入数据也使用markdown

* 图片识别换行改为marked兼容

* 添加绘图CD配置项

* 独立render模块,添加图片回复引用

* 添加必应风格

* 修复上下文,修改bing样式

* 修复上下文

* 添加Sydney上下文支持

* 调整不同模式下的bing渲染颜色

* 修复样式

* 修复无法结束会话的问题

* fix: 更新版本号

* 修复无法结束对话的问题

* 向缓存服务器传送样式

* 为网址格式的配置添加验证

* 去除重复的Keyv删除,取消锅巴配置格式检查

* 闭合中断的代码块

* 试添加Sydney图片模式的情感显示

* 修复at不兼容

* 处理意外的markdown包裹和结构解析修复

* 修复markdown处理的顺序错误

* 兼容json换行

* 重写completeJSON和使用

* 修复换行格式异常

* 均衡BingToken使用

* 修复删除token的数组处理错误

* 修改token文字描述

* 创建本地缓存服务

* 修复首次使用无法添加bingtoken的问题

* 修复意外的删除格式问题,添加查看token功能

* 修复路由错误,暂时固定ip测试

* 恢复引用功能

* 更新渲染页面

* 更换缓存目录

* 清除调试用消息

* 调整屏幕分辨率

* 使用服务器生成的访问地址

* 改为使用api获取公网ip

* 修复引用显示

* 添加依赖需求

* 更新渲染页面和渲染api

* 修复渲染页面错误

* 修复建议字符串切割,添加帮助路由

* 添加内容中图片数据获取功能

* 试修复suggestbug

* 修复图片导致服务器卡死的问题

* 暂时禁用图片

* 尝试恢复图片

* 添加链接图片识别

* 替换掉request

* 修复可能的responseUrls空值

* 优化格式

* 更新渲染页面

* 尝试新的引用索引

* 取消渲染时旧的策略

* 更新帮助页面

* 修复帮助路由

* 修复渲染页面错误

* 修复错误的正则

* 修改系统api服务

* 添加配置项

* 将新渲染方式加入配置并还原原渲染方式,进行并存

* 暂时取消端口设置功能

* 重新开启端口设置

* 修复旧渲染引用

* 更新帮助样式

---------

Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
2023-04-06 23:52:33 +08:00

21 lines
No EOL
27 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
=========================================================
* Vue Notus - v1.1.0 based on Tailwind Starter Kit by Creative Tim
=========================================================
* Product Page: https://www.creative-tim.com/product/vue-notus
* Copyright 2021 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/creativetimofficial/vue-notus/blob/main/LICENSE.md)
* Tailwind Starter Kit Page: https://www.creative-tim.com/learning-lab/tailwind-starter-kit/presentation
* Coded by Creative Tim
=========================================================
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
(function(){"use strict";var e={42280:function(e,t,a){a(48096),a(60394),a(26845),a(14017);var l=a(5166),o=a(42119),r={id:"app"};function s(e,t){var a=(0,l.resolveComponent)("router-view");return(0,l.openBlock)(),(0,l.createBlock)("div",r,[(0,l.createVNode)(a)])}var n=a(83744);const c={},i=(0,n.Z)(c,[["render",s]]);var u=i,d=(0,l.createVNode)("section",{class:"pb-16 relative block bg-blueGray-800"},null,-1),p={class:"pb-20 bg-blueGray-200 -mt-24"},m={class:"container mx-auto px-4"},x=(0,l.createVNode)("div",{class:"flex flex-wrap"},null,-1),f={class:"flex flex-wrap items-center mt-32"},b={class:"w-full lg:w-9/12 px-4 mr-auto ml-auto mb-4"},v={class:"text-blueGray-500 p-3 text-center inline-flex items-center justify-center w-16 h-16 mb-6 shadow-lg rounded-full bg-white"},g={key:1,class:"fas fa-user-friends text-xl"},h={class:"text-3xl mb-2 font-semibold leading-normal"},w={class:"w-full lg:w-3/12 px-4 mr-auto ml-auto"},y={class:"relative flex flex-col min-w-0 break-words bg-white w-full mb-2 shadow-lg rounded-lg items-center"},N={class:"mt-4"},V={class:"relative p-4 mb-1"},k=(0,l.createVNode)("h4",{class:"text-xl text-center font-bold"}," 访问代码 ",-1),B={class:"text-md text-center font-light mt-2"},G={class:"relative py-20"},C=(0,l.createVNode)("div",{class:"bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden -mt-20 h-20",style:{transform:"translateZ(0)"}},[(0,l.createVNode)("svg",{class:"absolute bottom-0 overflow-hidden",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 2560 100",x:"0",y:"0"},[(0,l.createVNode)("polygon",{class:"text-white fill-current",points:"2560 0 2560 100 0 100"})])],-1),D={class:"container mx-auto px-4"},S={class:"items-center flex flex-wrap"},O={class:"w-full md:w-12/12 ml-auto mr-auto px-4"},j={class:"md:pr-12"},Z={class:"text-emerald-600 p-3 text-center inline-flex items-center justify-center w-16 h-16 mb-6 shadow-lg rounded-full bg-emerald-300"},I={key:1,class:"fas fa-comment text-xl"},T={class:"text-3xl font-semibold"},F={class:"w-full md:w-12/12 ml-auto mr-auto px-4"},P={class:"list-none mt-6"},q={class:"flex items-center"},A=(0,l.createVNode)("div",null,[(0,l.createVNode)("span",{class:"text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-emerald-600 bg-emerald-200 mr-3"},[(0,l.createVNode)("i",{class:"fas fa-info"})])],-1),L={class:"text-blueGray-500"},M={class:"text-xs font-semibold inline-block py-1 px-4 mx-4 uppercase rounded text-lightBlue-600 bg-lightBlue-200 uppercase last:mr-0 mr-1"};function z(e,t,a,o,r,s){var n=(0,l.resolveComponent)("navbar"),c=(0,l.resolveComponent)("v-md-preview"),i=(0,l.resolveComponent)("qrcode-vue"),u=(0,l.resolveComponent)("footer-small");return(0,l.openBlock)(),(0,l.createBlock)("div",null,[(0,l.createVNode)(n,{group:r.group,time:r.time},null,8,["group","time"]),(0,l.createVNode)("main",null,[d,(0,l.createVNode)("section",p,[(0,l.createVNode)("div",m,[x,(0,l.createVNode)("div",f,[(0,l.createVNode)("div",b,[(0,l.createVNode)("div",v,[r.userImg?((0,l.openBlock)(),(0,l.createBlock)("img",{key:0,src:r.userImg,class:"shadow-lg rounded-full mx-auto max-w-100-px"},null,8,["src"])):((0,l.openBlock)(),(0,l.createBlock)("i",g))]),(0,l.createVNode)("h3",h,(0,l.toDisplayString)(r.user),1),(0,l.createVNode)(c,{class:"mdcode whitespace-pre-wrap break-all",text:r.question},null,8,["text"])]),(0,l.createVNode)("div",w,[(0,l.createVNode)("div",y,[(0,l.createVNode)("div",N,[(0,l.createVNode)(i,{value:r.herf,size:150},null,8,["value"])]),(0,l.createVNode)("blockquote",V,[k,(0,l.createVNode)("p",B,(0,l.toDisplayString)(this.$route.params.code),1)])])])])])]),(0,l.createVNode)("section",G,[C,(0,l.createVNode)("div",D,[(0,l.createVNode)("div",S,[(0,l.createVNode)("div",O,[(0,l.createVNode)("div",j,[(0,l.createVNode)("div",Z,[r.botImg?((0,l.openBlock)(),(0,l.createBlock)("img",{key:0,src:r.botImg,class:"shadow-lg rounded-full mx-auto max-w-100-px"},null,8,["src"])):((0,l.openBlock)(),(0,l.createBlock)("i",I))]),(0,l.createVNode)("h3",T,(0,l.toDisplayString)(r.bot),1),(0,l.createVNode)(c,{class:"mdcode whitespace-pre-wrap break-all",text:r.message},null,8,["text"])])]),((0,l.openBlock)(!0),(0,l.createBlock)(l.Fragment,null,(0,l.renderList)(r.images,(function(e){return(0,l.openBlock)(),(0,l.createBlock)("div",{class:"w-full md:w-".concat(e.size||12,"/12 ml-auto mr-auto px-4 pb-4"),key:e},[(0,l.createVNode)("img",{class:"max-w-full rounded-lg shadow-lg",src:e.src},null,8,["src"])],2)})),128)),(0,l.createVNode)("div",F,[(0,l.createVNode)("ul",P,[((0,l.openBlock)(!0),(0,l.createBlock)(l.Fragment,null,(0,l.renderList)(r.quote,(function(e){return(0,l.openBlock)(),(0,l.createBlock)("li",{class:"py-2",key:e},[(0,l.createVNode)("div",q,[A,(0,l.createVNode)("div",null,[(0,l.createVNode)("h4",L,[(0,l.createVNode)("a",{href:e.url},(0,l.toDisplayString)(e.text.length>30?e.text.substr(1,30)+"...":e.text),9,["href"])])])])])})),128))])]),((0,l.openBlock)(!0),(0,l.createBlock)(l.Fragment,null,(0,l.renderList)(r.suggest,(function(e){return(0,l.openBlock)(),(0,l.createBlock)("div",{class:"flex flex-wrap mt-10",key:e},[(0,l.createVNode)("span",M,(0,l.toDisplayString)(e),1)])})),128))])])])]),(0,l.createVNode)(u)])}a(21249);var _={class:"top-0 absolute z-50 w-full flex flex-wrap items-center justify-between px-2 py-3 navbar-expand-lg"},R={class:"container px-4 mx-auto flex flex-wrap items-center justify-between"},Y={class:"relative flex justify-between lg:w-auto lg:static lg:block lg:justify-start"},$=(0,l.createTextVNode)(" ChatGPT-Plugin "),H={class:"flex flex-grow items-center bg-opacity-0 lg:shadow-none"},E={class:"flex flex-col flex-row list-none ml-auto"},Q={key:0,class:"text-teal-500 flex items-center mr-4"},J={class:"text-teal-500 flex items-center mr-4"};function K(e,t,a,o,r,s){var n=(0,l.resolveComponent)("router-link");return(0,l.openBlock)(),(0,l.createBlock)("nav",_,[(0,l.createVNode)("div",R,[(0,l.createVNode)("div",Y,[(0,l.createVNode)(n,{class:"text-white text-sm font-bold leading-relaxed inline-block mr-4 py-2 whitespace-nowrap uppercase",to:"/"},{default:(0,l.withCtx)((function(){return[$]})),_:1})]),(0,l.createVNode)("div",H,[(0,l.createVNode)("ul",E,[a.group?((0,l.openBlock)(),(0,l.createBlock)("li",Q," 来自群: "+(0,l.toDisplayString)(a.group),1)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)("li",J," 时间:"+(0,l.toDisplayString)(s.dateFormat(a.time)),1)])])])])}var U={props:["group","time"],data:function(){return{navbarOpen:!1}},methods:{setNavbarOpen:function(){this.navbarOpen=!this.navbarOpen},dateFormat:function(e){var t=e?new Date(e):new Date,a=t.getFullYear(),l=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();return a+"年"+l+"月"+o+"日 "+r+":"+s}}};const W=(0,n.Z)(U,[["render",K]]);var X=W,ee={class:"container mx-auto px-4"},te=(0,l.createVNode)("hr",{class:"mb-6 border-b-1 border-blueGray-600"},null,-1),ae={class:"flex flex-wrap items-center md:justify-between justify-center"},le={class:"w-full md:w-12/12 px-4"},oe={class:"text-sm text-blueGray-500 font-semibold py-1 text-center md:text-left"},re=(0,l.createVNode)("a",{href:"https://github.com/ikechan8370/chatgpt-plugin",class:"text-emerald-600 hover:text-blueGray-300 text-sm font-semibold py-1"}," chatgpt-plugin ",-1),se=(0,l.createTextVNode)(" by Creative ikechan8370 ");function ne(e,t,a,o,r,s){return(0,l.openBlock)(),(0,l.createBlock)("footer",{class:["pb-6",[e.absolute?"absolute w-full bottom-0 bg-blueGray-800":"relative"]]},[(0,l.createVNode)("div",ee,[te,(0,l.createVNode)("div",ae,[(0,l.createVNode)("div",le,[(0,l.createVNode)("div",oe,[(0,l.createTextVNode)(" Copyright © "+(0,l.toDisplayString)(r.date)+" ",1),re,se])])])])],2)}var ce={data:function(){return{date:(new Date).getFullYear()}}};const ie=(0,n.Z)(ce,[["render",ne]]);var ue=ie,de=a(47929),pe=a(52861),me=a(52300),xe={data:function(){return{user:"Alcedo",userImg:"",bot:"Bing",botImg:"",question:"",message:"",group:"",quote:[],images:[],herf:"",time:"",suggest:[]}},components:{Navbar:X,FooterSmall:ue,QrcodeVue:de.Z},created:function(){this.getData()},methods:{getData:function(){var e=this;pe.Z.post("".concat(window.location.origin,"/page"),{code:this.$route.params.code}).then((function(t){e.user=t.data.user,e.userImg=t.data.userImg,e.bot=t.data.bot,e.botImg=t.data.botImg,e.question=me.DS.decode(t.data.question),e.message=me.DS.decode(t.data.message),e.quote=t.data.quote,e.images=t.data.images.map((function(e){return{size:12,src:e}})),e.suggest=t.data.suggest,e.group=t.data.group,e.herf=t.data.herf,e.time=t.data.time})).catch((function(e){console.log(e)}))}}};const fe=(0,n.Z)(xe,[["render",z]]);var be=fe,ve={class:"header relative items-center flex h-screen max-h-860-px"},ge={class:"container mx-auto pt-48"},he=(0,l.createVNode)("div",{class:"w-full md:w-8/12 lg:w-6/12 xl:w-6/12 px-4"},[(0,l.createVNode)("h2",{class:"font-semibold text-4xl text-blueGray-600"}," 使用帮助 ")],-1),we={class:"flex flex-wrap items-center"},ye={class:"w-full md:w-6/12 px-4"},Ne={class:"flex flex-wrap"},Ve={class:"relative flex flex-col"},ke={class:"text-blueGray-500 p-3 text-center inline-flex items-center justify-center w-12 h-12 mb-5 shadow-lg rounded-full bg-white"},Be={class:"text-xl mb-1 font-semibold"},Ge={key:0,class:"text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-orange-600 bg-orange-200 uppercase last:mr-0 mr-1"},Ce={class:"text-blueGray-500"},De=(0,l.createStaticVNode)('<ul class="list-none"><li class="py-2"><div class="flex items-center"><div><span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-blueGray-500 bg-blueGray-50 mr-3"><i class="fas fa-info"></i></span></div><div><h4 class="text-blueGray-500"> 输入 <span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-blueGray-600 bg-blueGray-200 uppercase last:mr-0 mr-1"> #帮助-[功能] </span> 获取对应功能的帮助 </h4></div></div></li><li class="py-2"><div class="flex items-center"><div><span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded-full text-blueGray-500 bg-blueGray-50 mr-3"><i class="fas fa-info"></i></span></div><div><h4 class="text-blueGray-500"> 系统配置推荐使用 <span class="text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-blueGray-600 bg-blueGray-200 uppercase last:mr-0 mr-1"> 锅巴面板 </span> 进行操作 </h4></div></div></li></ul>',1),Se={key:0,class:"mt-48 md:mt-40 pb-16 relative bg-blueGray-100"},Oe=(0,l.createVNode)("div",{class:"-mt-20 top-0 bottom-auto left-0 right-0 w-full absolute h-20",style:{transform:"translateZ(0)"}},[(0,l.createVNode)("svg",{class:"absolute bottom-0 overflow-hidden",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 2560 100",x:"0",y:"0"},[(0,l.createVNode)("polygon",{class:"text-blueGray-100 fill-current",points:"2560 0 2560 100 0 100"})])],-1),je={class:"justify-center text-center flex flex-wrap mt-24"},Ze={class:"w-full px-12 md:px-4"},Ie={class:"font-semibold text-4xl"},Te={class:"container mx-auto px-4 pt-16"},Fe={class:"items-center flex flex-wrap"},Pe={class:"md:pr-12"},qe={class:"text-3xl font-semibold"},Ae=(0,l.createVNode)("i",{class:"fas fa-file-alt text-xl"},null,-1),Le={key:0,class:"text-xs font-semibold inline-block py-1 px-2 uppercase rounded text-orange-600 bg-orange-200 uppercase last:mr-0 mr-1"},Me={class:"block pb-3"};function ze(e,t,a,o,r,s){var n=(0,l.resolveComponent)("index-navbar"),c=(0,l.resolveComponent)("v-md-preview"),i=(0,l.resolveComponent)("footer-small");return(0,l.openBlock)(),(0,l.createBlock)("div",null,[(0,l.createVNode)(n),(0,l.createVNode)("section",ve,[(0,l.createVNode)("div",ge,[he,(0,l.createVNode)("div",we,[(0,l.createVNode)("div",ye,[(0,l.createVNode)("div",Ne,[(0,l.createVNode)("div",Ve,[((0,l.openBlock)(!0),(0,l.createBlock)(l.Fragment,null,(0,l.renderList)(r.helpIndexList,(function(e){return(0,l.openBlock)(),(0,l.createBlock)("div",{class:"px-4 py-5 flex-auto",key:e.title},[(0,l.createVNode)("div",ke,[(0,l.createVNode)("i",{class:e.icon},null,2)]),(0,l.createVNode)("h6",Be,[(0,l.createTextVNode)((0,l.toDisplayString)(e.title)+" ",1),e.tip?((0,l.openBlock)(),(0,l.createBlock)("span",Ge,(0,l.toDisplayString)(e.tip),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createVNode)("p",Ce,(0,l.toDisplayString)(e.text),1)])})),128))])])])]),De]),(0,l.createVNode)("img",{class:"absolute top-0 b-auto right-0 pt-16 sm:w-6/12 -mt-48 sm:mt-0 w-10/12 max-h-860-px",src:r.patternVue,alt:"..."},null,8,["src"])]),this.$route.params.use?((0,l.openBlock)(),(0,l.createBlock)("section",Se,[Oe,(0,l.createVNode)("div",je,[(0,l.createVNode)("div",Ze,[(0,l.createVNode)("h2",Ie,(0,l.toDisplayString)(this.$route.params.use),1)])]),(0,l.createVNode)("div",Te,[(0,l.createVNode)("div",Fe,[((0,l.openBlock)(!0),(0,l.createBlock)(l.Fragment,null,(0,l.renderList)(r.helpList,(function(e){return(0,l.openBlock)(),(0,l.createBlock)("div",{class:"w-full mb-6 ml-auto px-12 md:px-4",key:e.title},[(0,l.createVNode)("div",Pe,[(0,l.createVNode)("h3",qe,[Ae,(0,l.createTextVNode)(" "+(0,l.toDisplayString)(e.title)+" ",1),e.tip?((0,l.openBlock)(),(0,l.createBlock)("span",Le,(0,l.toDisplayString)(e.tip),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createVNode)(c,{class:"mt-4",text:e.text},null,8,["text"]),(0,l.createVNode)("div",Me,[((0,l.openBlock)(!0),(0,l.createBlock)(l.Fragment,null,(0,l.renderList)(e.list,(function(e){return(0,l.openBlock)(),(0,l.createBlock)("span",{key:e,class:"font-semibold inline-block py-1 px-2 uppercase rounded-full text-blueGray-500 bg-white uppercase last:mr-0 mr-2 mt-2"},(0,l.toDisplayString)(e),1)})),128))])])])})),128))])])])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(i,{class:"mt-32"})])}var _e={class:"top-0 fixed z-50 w-full flex flex-wrap items-center justify-between px-2 py-3 navbar-expand-lg bg-white shadow"},Re={class:"container px-4 mx-auto flex flex-wrap items-center justify-between"},Ye={class:"w-full relative flex justify-between lg:w-auto lg:static lg:block lg:justify-start"},$e=(0,l.createVNode)("a",{class:"text-blueGray-700 text-sm font-bold leading-relaxed inline-block mr-4 py-2 whitespace-nowrap uppercase",href:"#pablo"}," ChatGPT-Plugin ",-1),He=(0,l.createVNode)("i",{class:"fas fa-bars"},null,-1),Ee=(0,l.createStaticVNode)('<ul class="flex flex-col lg:flex-row list-none mr-auto"><li class="flex items-center"><a class="hover:text-blueGray-500 text-blueGray-700 px-3 py-2 flex items-center text-xs uppercase font-bold" href="https://github.com/ikechan8370/chatgpt-plugin"><i class="text-blueGray-400 fab fa-github text-lg leading-lg mr-2"></i> 项目地址 </a></li></ul><ul class="flex flex-col lg:flex-row list-none lg:ml-auto"></ul>',2);function Qe(e,t,a,o,r,s){var n=(0,l.resolveComponent)("router-link");return(0,l.openBlock)(),(0,l.createBlock)("nav",_e,[(0,l.createVNode)("div",Re,[(0,l.createVNode)("div",Ye,[(0,l.createVNode)(n,{to:"/"},{default:(0,l.withCtx)((function(){return[$e]})),_:1}),(0,l.createVNode)("button",{class:"cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none",type:"button",onClick:t[1]||(t[1]=function(){return s.setNavbarOpen&&s.setNavbarOpen.apply(s,arguments)})},[He])]),(0,l.createVNode)("div",{class:["lg:flex flex-grow items-center",[r.navbarOpen?"block":"hidden"]],id:"example-navbar-warning"},[Ee],2)])])}var Je={data:function(){return{navbarOpen:!1}},methods:{setNavbarOpen:function(){this.navbarOpen=!this.navbarOpen}}};const Ke=(0,n.Z)(Je,[["render",Qe]]);var Ue=Ke,We=a.p+"img/pattern_vue.723fd347.png",Xe={data:function(){return{patternVue:We,helpIndexList:[{icon:"fas fa-comments",title:"AI聊天",text:"基于ChatGPT、必应、ChatGLM模型进行AI问答形式的聊天。"},{icon:"fas fa-paint-brush",title:"AI画图",text:"使用Dalle接口进行图片绘制和修改。"},{icon:"fas fa-wrench",title:"插件管理",text:"可快捷设置机器人的一些运行参数。",tip:"管理功能"}],helpList:[]}},components:{IndexNavbar:Ue,FooterSmall:ue},created:function(){this.getData()},methods:{getData:function(){var e=this;pe.Z.post("".concat(window.location.origin,"/help"),{use:this.$route.params.use}).then((function(t){e.helpList=t.data})).catch((function(e){console.log(e)}))}}};const et=(0,n.Z)(Xe,[["render",ze]]);var tt=et,at={class:"header relative pt-16 items-center flex h-screen max-h-860-px"},lt=(0,l.createStaticVNode)('<div class="container mx-auto items-center flex flex-wrap"><div class="w-full md:w-8/12 lg:w-6/12 xl:w-6/12 px-4"><div class="pt-32 sm:pt-0"><h2 class="font-semibold text-4xl text-blueGray-600"> 云崽ChatGPT插件 </h2><p class="mt-4 text-lg leading-relaxed text-blueGray-500"> 当前页面发生错误,请联系服务管理人员检查后台错误信息! </p></div></div></div>',1),ot=(0,l.createVNode)("section",{class:"mt-48 md:mt-40 pb-40 relative bg-blueGray-100"},[(0,l.createVNode)("div",{class:"-mt-20 top-0 bottom-auto left-0 right-0 w-full absolute h-20",style:{transform:"translateZ(0)"}},[(0,l.createVNode)("svg",{class:"absolute bottom-0 overflow-hidden",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 2560 100",x:"0",y:"0"},[(0,l.createVNode)("polygon",{class:"text-blueGray-100 fill-current",points:"2560 0 2560 100 0 100"})])])],-1),rt=(0,l.createVNode)("section",{class:"pb-16 bg-blueGray-200 relative pt-32"},[(0,l.createVNode)("div",{class:"-mt-20 top-0 bottom-auto left-0 right-0 w-full absolute h-20",style:{transform:"translateZ(0)"}},[(0,l.createVNode)("svg",{class:"absolute bottom-0 overflow-hidden",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 2560 100",x:"0",y:"0"},[(0,l.createVNode)("polygon",{class:"text-blueGray-200 fill-current",points:"2560 0 2560 100 0 100"})])])],-1);function st(e,t,a,o,r,s){var n=(0,l.resolveComponent)("index-navbar");return(0,l.openBlock)(),(0,l.createBlock)("div",null,[(0,l.createVNode)(n),(0,l.createVNode)("section",at,[lt,(0,l.createVNode)("img",{class:"absolute top-0 b-auto right-0 pt-16 sm:w-6/12 -mt-48 sm:mt-0 w-10/12 max-h-860-px",src:r.patternVue,alt:"..."},null,8,["src"])]),ot,rt])}var nt={data:function(){return{patternVue:We}},components:{IndexNavbar:Ue}};const ct=(0,n.Z)(nt,[["render",st]]);var it=ct,ut={class:"header relative pt-16 items-center flex h-screen max-h-860-px"},dt=(0,l.createStaticVNode)('<div class="container mx-auto items-center flex flex-wrap"><div class="w-full md:w-8/12 lg:w-6/12 xl:w-6/12 px-4"><div class="pt-32 sm:pt-0"><h2 class="font-semibold text-4xl text-blueGray-600"> 云崽ChatGPT插件 </h2><p class="mt-4 text-lg leading-relaxed text-blueGray-500"> 欢迎使用chatgpt-plugin插件 </p></div></div></div>',1),pt=(0,l.createVNode)("section",{class:"pb-16 bg-blueGray-200 relative pt-32"},[(0,l.createVNode)("div",{class:"-mt-20 top-0 bottom-auto left-0 right-0 w-full absolute h-20",style:{transform:"translateZ(0)"}},[(0,l.createVNode)("svg",{class:"absolute bottom-0 overflow-hidden",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 2560 100",x:"0",y:"0"},[(0,l.createVNode)("polygon",{class:"text-blueGray-200 fill-current",points:"2560 0 2560 100 0 100"})])])],-1);function mt(e,t,a,o,r,s){var n=(0,l.resolveComponent)("index-navbar"),c=(0,l.resolveComponent)("footer-component");return(0,l.openBlock)(),(0,l.createBlock)("div",null,[(0,l.createVNode)(n),(0,l.createVNode)("section",ut,[dt,(0,l.createVNode)("img",{class:"absolute top-0 b-auto right-0 pt-16 sm:w-6/12 -mt-48 sm:mt-0 w-10/12 max-h-860-px",src:r.patternVue,alt:"..."},null,8,["src"])]),pt,(0,l.createVNode)(c)])}var xt={class:"relative bg-blueGray-200 pt-8 pb-6"},ft=(0,l.createVNode)("div",{class:"bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden -mt-20 h-20",style:{transform:"translateZ(0)"}},[(0,l.createVNode)("svg",{class:"absolute bottom-0 overflow-hidden",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 2560 100",x:"0",y:"0"},[(0,l.createVNode)("polygon",{class:"text-blueGray-200 fill-current",points:"2560 0 2560 100 0 100"})])],-1),bt={class:"container mx-auto px-4"},vt=(0,l.createStaticVNode)('<div class="flex flex-wrap text-center lg:text-left"><div class="w-full lg:w-6/12 px-4"><h4 class="text-3xl font-semibold">遇到问题?</h4><h5 class="text-lg mt-0 mb-2 text-blueGray-600"> 如果在使用过程中遇到问题请来qq群559567232交流。 </h5></div><div class="w-full lg:w-6/12 px-4"><div class="flex flex-wrap items-top mb-6"><div class="w-full lg:w-4/12 px-4 ml-auto"><span class="block uppercase text-blueGray-500 text-sm font-semibold mb-2"> 相关链接 </span><ul class="list-unstyled"><li><a class="text-blueGray-600 hover:text-blueGray-800 font-semibold block pb-2 text-sm" href="https://gitee.com/yoimiya-kokomi/Miao-Yunzai"> Yunzai </a></li><li><a class="text-blueGray-600 hover:text-blueGray-800 font-semibold block pb-2 text-sm" href="https://gitee.com/yhArcadia/Yunzai-Bot-plugins-index"> 插件库 </a></li><li><a class="text-blueGray-600 hover:text-blueGray-800 font-semibold block pb-2 text-sm" href="https://gitee.com/guoba-yunzai/guoba-plugin"> 锅巴 </a></li></ul></div></div></div></div><hr class="my-6 border-blueGray-300">',2),gt={class:"flex flex-wrap items-center md:justify-between justify-center"},ht={class:"w-full md:w-6/12 px-6 mx-auto text-center"},wt={class:"text-sm text-blueGray-500 font-semibold py-1"},yt=(0,l.createVNode)("a",{href:"https://github.com/ikechan8370",class:"text-blueGray-500 hover:text-blueGray-800"}," Creative ikechan8370 ",-1),Nt=(0,l.createTextVNode)(" . ");function Vt(e,t,a,o,r,s){return(0,l.openBlock)(),(0,l.createBlock)("footer",xt,[ft,(0,l.createVNode)("div",bt,[vt,(0,l.createVNode)("div",gt,[(0,l.createVNode)("div",ht,[(0,l.createVNode)("div",wt,[(0,l.createTextVNode)(" Copyright © "+(0,l.toDisplayString)(r.date)+" chatgpt-plugin by ",1),yt,Nt])])])])])}var kt={data:function(){return{date:(new Date).getFullYear()}}};const Bt=(0,n.Z)(kt,[["render",Vt]]);var Gt=Bt,Ct={data:function(){return{patternVue:We}},components:{IndexNavbar:Ue,FooterComponent:Gt}};const Dt=(0,n.Z)(Ct,[["render",mt]]);var St=Dt,Ot=a(42104),jt=a.n(Ot),Zt=a(31986),It=a.n(Zt),Tt=a(58043),Ft=a(27543),Pt=a(35245),qt=a(28325),At=a.n(qt);a(24335),a(15251),a(35433),a(49299),a(39980),a(86405),a(68758),a(35249),a(85795),a(47231),a(42273),a(44852),a(77533),a(35266),a(72594),a(18508),a(31093),a(25691),a(4279),a(2731),a(51849),a(73253),a(24029),a(57874),a(73358),a(24064),a(2481),a(10856),a(79016),a(54019),a(36972),a(36430),a(92776),a(24940),a(58060),a(639),a(84126),a(94446),a(53292),a(46428),a(27308),a(86043),a(69104),a(97861),a(24115),a(50331),a(15827),a(21275),a(76609),a(61354),a(86902),a(64681),a(4677),a(99114),a(5798),a(52812),a(44225),a(57649),a(46213),a(29467),a(4412),a(52990),a(74307),a(59385),a(18980),a(80871),a(97899),a(2946),a(30258),a(58149),a(57065),a(73162),a(90827),a(24370),a(40728),a(96854),a(54409),a(68483),a(77158),a(60397),a(68232),a(22456),a(59979),a(70060),a(68805),a(75041),a(66841),a(79958),a(66512),a(8956),a(51039),a(75045),a(50171),a(10427),a(6634),a(9220),a(27915),a(72778),a(71828),a(91709),a(28407),a(65276),a(66857),a(51315),a(49472),a(79787),a(79812),a(1415),a(47362),a(27046),a(77346),a(31565),a(17117),a(40485),a(37802),a(92447),a(60075),a(39181),a(70110),a(81295),a(14324),a(24677),a(5578),a(88161),a(26203),a(17786),a(74277),a(65503),a(50057),a(77460),a(54263),a(90175),a(16150),a(10880),a(56521),a(29525),a(48942),a(18848),a(52503),a(99945),a(54884),a(12886),a(52008),a(81454),a(55314),a(68874),a(96342),a(38885),a(96836),a(68915),a(88651),a(46690),a(22444),a(64488),a(81917),a(56543),a(71643),a(82821),a(32334),a(69486),a(31634),a(90319),a(87442),a(51412),a(61719),a(150),a(45520),a(76347),a(85153),a(93335),a(26555),a(6004),a(48443),a(86268),a(61169),a(33965),a(16185),a(23099),a(16554),a(15101),a(89134),a(80676),a(61899),a(55949),a(80454),a(17898),a(52353),a(77661),a(677),a(33436),a(35743),a(58704),a(74876),a(11426),a(24371),a(35577),a(13144),a(85513),a(903),a(47511),a(40780),a(13210),a(54332),a(70942),a(52892),a(74984),a(20288),a(26280),a(89425),a(79457),a(92927),a(63887),a(86862),a(97353),a(43932),a(17929),a(45820),a(37345),a(24906),a(71429),a(93381),a(24319),a(9753),a(92168),a(89485),a(80366),a(26896),a(82939),a(84891),a(94933),a(54803),a(24540),a(63326),a(62356),a(21029),a(28439),a(2040),a(38512),a(50096),a(76577),a(40998),a(94840),a(23449),a(70767),a(71384),a(89865),a(42963),a(10509),a(22738),a(89281),a(9983),a(30893),a(37485),a(84435),a(68092),a(71327),a(612),a(83113),a(34229),a(65683),a(12788),a(55689),a(8571),a(90874),a(48598),a(89239),a(20601),a(65398),a(16241),a(46193),a(1607),a(37838),a(9930),a(84315),a(14032),a(10196),a(52467),a(14641),a(30035),a(70981),a(47251),a(38564),a(34438),a(83082),a(10008),a(5774),a(64040),a(10230),a(31693),a(99729),a(45682),a(10504),a(62349),a(22449),a(19938),a(2982),a(857);jt().use(It(),{Prism:At()}),jt().use((0,Tt.Z)()),jt().use((0,Ft.Z)()),jt().use((0,Pt.Z)());var Lt=[{path:"/page/",component:it},{path:"/page/:code",component:be},{path:"/help/",component:tt},{path:"/help/:use",component:tt},{path:"/",component:St}],Mt=(0,o.p7)({history:(0,o.PO)(),routes:Lt});(0,l.createApp)(u).use(Mt).use(jt()).mount("#app")}},t={};function a(l){var o=t[l];if(void 0!==o)return o.exports;var r=t[l]={exports:{}};return e[l].call(r.exports,r,r.exports,a),r.exports}a.m=e,function(){var e=[];a.O=function(t,l,o,r){if(!l){var s=1/0;for(u=0;u<e.length;u++){l=e[u][0],o=e[u][1],r=e[u][2];for(var n=!0,c=0;c<l.length;c++)(!1&r||s>=r)&&Object.keys(a.O).every((function(e){return a.O[e](l[c])}))?l.splice(c--,1):(n=!1,r<s&&(s=r));if(n){e.splice(u--,1);var i=o();void 0!==i&&(t=i)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[l,o,r]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.p="/"}(),function(){var e={143:0};a.O.j=function(t){return 0===e[t]};var t=function(t,l){var o,r,s=l[0],n=l[1],c=l[2],i=0;if(s.some((function(t){return 0!==e[t]}))){for(o in n)a.o(n,o)&&(a.m[o]=n[o]);if(c)var u=c(a)}for(t&&t(l);i<s.length;i++)r=s[i],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(u)},l=self["webpackChunkvue_notus"]=self["webpackChunkvue_notus"]||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))}();var l=a.O(void 0,[998],(function(){return a(42280)}));l=a.O(l)})();
//# sourceMappingURL=app.eaab4ef2.js.map