Spaces:
Running
Running
bioinfoark
commited on
Commit
•
7a54320
1
Parent(s):
20f40be
Upload 28 files
Browse files- asset-manifest.json +13 -13
- ddea4ad991e53a438854.module.wasm +3 -0
- default.json +8 -2
- exp.png +0 -0
- exp@2x.png +0 -0
- expired.png +0 -0
- index.html +1 -1
- logo192.png +0 -0
- logo512.png +0 -0
- precache-manifest.a5813d09c5ea24fb073c8f2e42af96dd.js +58 -0
- service-worker.js +1 -1
- static/css/2.66ed8187.chunk.css +0 -0
- static/css/main.6ffabf6e.chunk.css +1 -0
- static/js/2.7a8eba66.chunk.js +0 -0
- static/js/3.1a7543f7.chunk.js +1 -0
- static/js/main.bd0d86e3.chunk.js +0 -0
- static/js/runtime-main.6ca45cf6.js +1 -0
asset-manifest.json
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
{
|
2 |
"files": {
|
3 |
-
"main.css": "./static/css/main.
|
4 |
-
"main.js": "./static/js/main.
|
5 |
-
"runtime-main.js": "./static/js/runtime-main.
|
6 |
-
"static/css/2.
|
7 |
-
"static/js/2.
|
8 |
-
"static/js/3.
|
9 |
-
"
|
10 |
"index.html": "./index.html",
|
11 |
-
"precache-manifest.
|
12 |
"service-worker.js": "./service-worker.js",
|
13 |
"static/media/index.scss": "./static/media/icons-20.cef8cdbb.woff"
|
14 |
},
|
15 |
"entrypoints": [
|
16 |
-
"static/js/runtime-main.
|
17 |
-
"static/css/2.
|
18 |
-
"static/js/2.
|
19 |
-
"static/css/main.
|
20 |
-
"static/js/main.
|
21 |
]
|
22 |
}
|
|
|
1 |
{
|
2 |
"files": {
|
3 |
+
"main.css": "./static/css/main.6ffabf6e.chunk.css",
|
4 |
+
"main.js": "./static/js/main.bd0d86e3.chunk.js",
|
5 |
+
"runtime-main.js": "./static/js/runtime-main.6ca45cf6.js",
|
6 |
+
"static/css/2.66ed8187.chunk.css": "./static/css/2.66ed8187.chunk.css",
|
7 |
+
"static/js/2.7a8eba66.chunk.js": "./static/js/2.7a8eba66.chunk.js",
|
8 |
+
"static/js/3.1a7543f7.chunk.js": "./static/js/3.1a7543f7.chunk.js",
|
9 |
+
"ddea4ad991e53a438854.module.wasm": "./ddea4ad991e53a438854.module.wasm",
|
10 |
"index.html": "./index.html",
|
11 |
+
"precache-manifest.a5813d09c5ea24fb073c8f2e42af96dd.js": "./precache-manifest.a5813d09c5ea24fb073c8f2e42af96dd.js",
|
12 |
"service-worker.js": "./service-worker.js",
|
13 |
"static/media/index.scss": "./static/media/icons-20.cef8cdbb.woff"
|
14 |
},
|
15 |
"entrypoints": [
|
16 |
+
"static/js/runtime-main.6ca45cf6.js",
|
17 |
+
"static/css/2.66ed8187.chunk.css",
|
18 |
+
"static/js/2.7a8eba66.chunk.js",
|
19 |
+
"static/css/main.6ffabf6e.chunk.css",
|
20 |
+
"static/js/main.bd0d86e3.chunk.js"
|
21 |
]
|
22 |
}
|
ddea4ad991e53a438854.module.wasm
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c64f96f7838699d1e88ace1140ebe243de91ba5e8dcd1839815a8eebc7b4bacb
|
3 |
+
size 2981407
|
default.json
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
{
|
2 |
-
"app_name": "",
|
3 |
"api_key": "",
|
4 |
"api_url": "",
|
5 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
"chat_max_tokens": "",
|
7 |
"chat_temperature": "",
|
8 |
"chat_timeout": "",
|
|
|
1 |
{
|
2 |
+
"app_name": "BioinfoArk",
|
3 |
"api_key": "",
|
4 |
"api_url": "",
|
5 |
+
"chat_model_options": [
|
6 |
+
{"label":"GPT3.5+","value":"gpt-3.5-turbo"},
|
7 |
+
{"label":"GPT4om","value":"gpt-4o-mini"},
|
8 |
+
{"label":"GPT4o","value":"gpt-4o"},
|
9 |
+
{"label":"GPT4","value":"gpt-4"},
|
10 |
+
{"label":"GPT4+","value":"gpt-4-turbo"},
|
11 |
+
],
|
12 |
"chat_max_tokens": "",
|
13 |
"chat_temperature": "",
|
14 |
"chat_timeout": "",
|
exp.png
ADDED
exp@2x.png
ADDED
expired.png
ADDED
index.html
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<!doctype html><html lang="zh-cn"><head><meta charset="utf-8"/><link rel="icon" href="./logo512.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Chat app support openai and api2d key"/><link rel="apple-touch-icon" href="logo192.png"/><link rel="manifest" href="./manifest.json"/><link rel="stylesheet" href="./tailwind.min.css"><title>...</title><link href="./static/css/2.
|
|
|
1 |
+
<!doctype html><html lang="zh-cn"><head><meta charset="utf-8"/><link rel="icon" href="./logo512.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Chat app support openai and api2d key"/><link rel="apple-touch-icon" href="logo192.png"/><link rel="manifest" href="./manifest.json"/><link rel="stylesheet" href="./tailwind.min.css"><title>...</title><link href="./static/css/2.66ed8187.chunk.css" rel="stylesheet"><link href="./static/css/main.6ffabf6e.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(s){function e(e){for(var t,n,r=e[0],o=e[1],i=e[2],u=0,a=[];u<r.length;u++)n=r[u],Object.prototype.hasOwnProperty.call(f,n)&&f[n]&&a.push(f[n][0]),f[n]=0;for(t in o)Object.prototype.hasOwnProperty.call(o,t)&&(s[t]=o[t]);for(h&&h(e);a.length;)a.shift()();return l.push.apply(l,i||[]),c()}function c(){for(var e,t=0;t<l.length;t++){for(var n=l[t],r=!0,o=1;o<n.length;o++){var i=n[o];0!==f[i]&&(r=!1)}r&&(l.splice(t--,1),e=d(d.s=n[0]))}return e}var n={},f={1:0},l=[],p={},b={1694:function(){return{"./tiktoken_bg.js":{__wbindgen_object_drop_ref:function(e){return n[1693].exports.g(e)},__wbindgen_is_undefined:function(e){return n[1693].exports.f(e)},__wbg_stringify_029a979dfb73aa17:function(e){return n[1693].exports.d(e)},__wbindgen_string_get:function(e,t){return n[1693].exports.h(e,t)},__wbindgen_error_new:function(e,t){return n[1693].exports.e(e,t)},__wbg_parse_3ac95b51fc312db8:function(e,t){return n[1693].exports.b(e,t)},__wbindgen_throw:function(e,t){return n[1693].exports.i(e,t)}}}}};function d(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return s[e].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(o){var i=[],n=f[o];if(0!==n)if(n)i.push(n[2]);else{var e=new Promise(function(e,t){n=f[o]=[e,t]});i.push(n[2]=e);var t,u=document.createElement("script");u.charset="utf-8",u.timeout=120,d.nc&&u.setAttribute("nonce",d.nc),u.src=d.p+"static/js/"+({}[o]||o)+"."+{3:"1a7543f7"}[o]+".chunk.js";var a=new Error;t=function(e){u.onerror=u.onload=null,clearTimeout(s);var t=f[o];if(0!==t){if(t){var n=e&&("load"===e.type?"missing":e.type),r=e&&e.target&&e.target.src;a.message="Loading chunk "+o+" failed.\n("+n+": "+r+")",a.name="ChunkLoadError",a.type=n,a.request=r,t[1](a)}f[o]=void 0}};var s=setTimeout(function(){t({type:"timeout",target:u})},12e4);u.onerror=u.onload=t,document.head.appendChild(u)}return({3:[1694]}[o]||[]).forEach(function(t){var e=p[t];if(e)i.push(e);else{var n,r=b[t](),o=fetch(d.p+""+{1694:"ddea4ad991e53a438854"}[t]+".module.wasm");n=r instanceof Promise&&"function"==typeof WebAssembly.compileStreaming?Promise.all([WebAssembly.compileStreaming(o),r]).then(function(e){return WebAssembly.instantiate(e[0],e[1])}):"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(o,r):o.then(function(e){return e.arrayBuffer()}).then(function(e){return WebAssembly.instantiate(e,r)}),i.push(p[t]=n.then(function(e){return d.w[t]=(e.instance||e).exports}))}}),Promise.all(i)},d.m=s,d.c=n,d.d=function(e,t,n){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(t,e){if(1&e&&(t=d(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)d.d(n,r,function(e){return t[e]}.bind(null,r));return n},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="./",d.oe=function(e){throw console.error(e),e},d.w={};var t=this.webpackJsonpchatchan=this.webpackJsonpchatchan||[],r=t.push.bind(t);t.push=e,t=t.slice();for(var o=0;o<t.length;o++)e(t[o]);var h=r;c()}([])</script><script src="./static/js/2.7a8eba66.chunk.js"></script><script src="./static/js/main.bd0d86e3.chunk.js"></script></body></html>
|
logo192.png
CHANGED
logo512.png
CHANGED
precache-manifest.a5813d09c5ea24fb073c8f2e42af96dd.js
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
self.__precacheManifest = (self.__precacheManifest || []).concat([
|
2 |
+
{
|
3 |
+
"revision": "708ec48b090b684afa67",
|
4 |
+
"url": "./ddea4ad991e53a438854.module.wasm"
|
5 |
+
},
|
6 |
+
{
|
7 |
+
"revision": "bf15f288eeee899c82f13bd075ab83fd",
|
8 |
+
"url": "./index.html"
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"revision": "8b69a490642893fb0549",
|
12 |
+
"url": "./static/css/2.66ed8187.chunk.css"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"revision": "ef7d02446cf146787199",
|
16 |
+
"url": "./static/css/main.6ffabf6e.chunk.css"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"revision": "8b69a490642893fb0549",
|
20 |
+
"url": "./static/js/2.7a8eba66.chunk.js"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"revision": "708ec48b090b684afa67",
|
24 |
+
"url": "./static/js/3.1a7543f7.chunk.js"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"revision": "ef7d02446cf146787199",
|
28 |
+
"url": "./static/js/main.bd0d86e3.chunk.js"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"revision": "37b377970eed78dbd812",
|
32 |
+
"url": "./static/js/runtime-main.6ca45cf6.js"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"revision": "05f1cdadfe476395f60e233b15c22155",
|
36 |
+
"url": "./static/media/icons-16.05f1cdad.eot"
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"revision": "3c1c220e7a18286503fb431c7a7fe183",
|
40 |
+
"url": "./static/media/icons-16.3c1c220e.woff"
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"revision": "3cde8748332d1de6b1ae1c2dc5850754",
|
44 |
+
"url": "./static/media/icons-16.3cde8748.ttf"
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"revision": "0a5c76518a68c185baa2c6744456918c",
|
48 |
+
"url": "./static/media/icons-20.0a5c7651.eot"
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"revision": "51ec31f302d0072808e1f83f85fea4cd",
|
52 |
+
"url": "./static/media/icons-20.51ec31f3.ttf"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"revision": "cef8cdbb9d0ba82e6e19fb0eeba2ac3d",
|
56 |
+
"url": "./static/media/icons-20.cef8cdbb.woff"
|
57 |
+
}
|
58 |
+
]);
|
service-worker.js
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
15 |
|
16 |
importScripts(
|
17 |
-
"./precache-manifest.
|
18 |
);
|
19 |
|
20 |
self.addEventListener('message', (event) => {
|
|
|
14 |
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
15 |
|
16 |
importScripts(
|
17 |
+
"./precache-manifest.a5813d09c5ea24fb073c8f2e42af96dd.js"
|
18 |
);
|
19 |
|
20 |
self.addEventListener('message', (event) => {
|
static/css/2.66ed8187.chunk.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
static/css/main.6ffabf6e.chunk.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;background-color:hsla(0,0%,100%,.7)}body:hover{background-color:#fff}#root,body,html{min-height:100vh}.header{z-index:9;position:fixed;background-color:hsla(0,0%,100%,.95);left:0;right:0;margin-left:auto;margin-right:auto;height:50px;box-shadow:0 0 1px 0 rgba(0,0,0,.3),0 0 6px 2px rgba(0,0,0,.15)}.header,.header .container{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.header .container{padding:.5rem}.header .container .right{display:flex;flex-direction:row;align-items:center}.body{overflow:hidden}.footer{padding:.5rem;text-align:center;color:#ccc}.center-box{left:0;right:0;margin:10% auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;flex-direction:column}.center-box,.user-span{display:flex;align-items:center}.user-span{flex-direction:row}.user-span img.avatar{max-width:24px;max-height:24px;margin-right:.5rem;border-radius:50%}.user-span span.coin{margin-left:.2rem;padding-left:5px;padding-right:5px;border-radius:.2rem}.recharge-page .price{font-family:Georgia,Times,Times New Roman,serif;font-size:36px}.profile-page .profile{text-align:center}.profile-page .profile .avatar{display:flex;flex-direction:column;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:auto}.profile-page .profile .avatar img{border-radius:50%;margin:10px;max-width:100px}.profile-page .detail .row{width:50%;margin:20px auto 0;text-align:center;display:flex;flex-direction:row;justify-content:space-between;padding:10px;border-bottom:1px solid #eee}.nav-menu{padding-left:1rem;padding-right:1rem;display:flex;align-items:center;height:50px}.nav-menu.active{background-color:#eee}.chat-box{margin-top:10px;width:100%}.chat-box .input-box{min-height:100px;max-height:400px;background-color:hsla(0,0%,100%,.6)}.chat-box .input-box:hover{background-color:hsla(0,0%,100%,.8)}.chat-list{background-color:hsla(0,0%,100%,.6);margin-top:20px;overflow-y:auto;border:1px solid #eee;padding:20px 10px;border-radius:2px;flex:1 1}.chat-list:hover{background-color:hsla(0,0%,100%,.8)}.chat-item{display:flex;flex-direction:row;align-items:center;margin-bottom:10px;margin-left:10px;margin-right:10px}.chat-item .avatar{width:40px;height:40px;border-radius:50%;margin-right:10px}.chat-item .content{display:flex;flex-direction:row;align-items:center;line-height:1.8;background-color:#fff;border-radius:5px;padding:10px;margin-right:10px;max-width:calc(100% - 100px);overflow-x:auto;position:relative}.chat-item .content .float-icons{display:none;position:absolute;right:2px;bottom:2px}.chat-item .content:hover .float-icons{display:block;opacity:.5}.chat-item .content p{margin:0}.chat-item .content pre{overflow-x:auto;word-break:break-all}.chat-item .content pre code{white-space:pre-wrap!important}.chat-item .content .name{font-size:12px;color:#ccc}.chat-item .content .text{font-size:14px}.chat-item.me{flex-direction:row-reverse}.chat-item.me .content{align-items:center;background-color:#faebd7;margin-left:50px}.chat-item.robot .content{background-color:#eee;margin-right:50px}.chat-page{padding-left:5px;padding-right:5px;margin-top:20px;height:calc(100vh - 20px)}.chat-page .left-box{padding-right:30px;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}.chat-page .right-box{width:720px;display:flex;flex-direction:column}.char-box{width:200px;position:fixed;bottom:0}.char-box .slider{display:none;position:absolute;width:100%;bottom:0}.char-box:hover .slider{display:block}@media screen and (max-width:1024px){.chat-page{padding:10px}.chat-page .left-box{display:none}.chat-page .right-box{width:100%}}pre{white-space:pre-wrap;word-wrap:break-word}.xs-btn svg{color:#ccc;width:12px}.xs-btn .bp3-button-text{color:#ccc;font-size:12px}.gray-btn .bp3-button-text,.gray-btn svg{color:#ccc}.gray-btn:hover .bp3-button-text,.gray-btn:hover svg{color:#000}.history-list,.prompt-list{max-height:calc(100vh - 320px);overflow-y:auto;padding-left:5px;padding-right:5px;position:relative}.history-list .bottom-effect,.prompt-list .bottom-effect{display:block;position:-webkit-sticky;position:sticky;bottom:0;left:0;right:0;height:32px;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.history-list:hover,.prompt-list:hover{z-index:2}.history-list:hover .bottom-effect,.prompt-list:hover .bottom-effect{display:none}.history-list .history-item,.history-list .prompt-item,.prompt-list .history-item,.prompt-list .prompt-item{background-color:hsla(0,0%,100%,.6);color:#000}.history-list .history-item .action-icon,.history-list .prompt-item .action-icon,.prompt-list .history-item .action-icon,.prompt-list .prompt-item .action-icon{visibility:hidden}.history-list .history-item:hover,.history-list .prompt-item:hover,.prompt-list .history-item:hover,.prompt-list .prompt-item:hover{background-color:hsla(0,0%,100%,.95)}.history-list .history-item:hover .action-icon,.history-list .prompt-item:hover .action-icon,.prompt-list .history-item:hover .action-icon,.prompt-list .prompt-item:hover .action-icon{visibility:visible}::-webkit-scrollbar-thumb{background-color:hsla(0,0%,80%,.2);border-radius:3px}::-webkit-scrollbar{width:3px;height:3px}.container{max-width:1000px!important}.box-footer{border-top:1px dotted #ccc;margin-top:30px;padding-top:20px}.markdown-text ol{margin-left:18px}.markdown-text ol li{list-style:decimal}.markdown-text ul{margin-left:18px}.markdown-text ul li{list-style:disc}.drag-handle{-webkit-app-region:drag}.chat-bg{position:fixed;top:0;left:0;z-index:-1}.chat-bg,.chat-bg img{height:100%;width:100%}.chat-bg img{object-fit:cover}.no-margin .bp3-control{margin-bottom:0!important}:focus{outline:none!important}
|
static/js/2.7a8eba66.chunk.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
static/js/3.1a7543f7.chunk.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
(this.webpackJsonpchatchan=this.webpackJsonpchatchan||[]).push([[3],{1655:function(n,e,t){"use strict";t.r(e);var r=t(1694),i=t(1693);t.d(e,"__wbg_set_wasm",(function(){return i.c})),t.d(e,"get_encoding",(function(){return i.k})),t.d(e,"encoding_for_model",(function(){return i.j})),t.d(e,"Tiktoken",(function(){return i.a})),t.d(e,"__wbindgen_object_drop_ref",(function(){return i.g})),t.d(e,"__wbindgen_is_undefined",(function(){return i.f})),t.d(e,"__wbg_stringify_029a979dfb73aa17",(function(){return i.d})),t.d(e,"__wbindgen_string_get",(function(){return i.h})),t.d(e,"__wbindgen_error_new",(function(){return i.e})),t.d(e,"__wbg_parse_3ac95b51fc312db8",(function(){return i.b})),t.d(e,"__wbindgen_throw",(function(){return i.i})),Object(i.c)(r)},1693:function(n,e,t){"use strict";(function(n){t.d(e,"c",(function(){return o})),t.d(e,"k",(function(){return q})),t.d(e,"j",(function(){return S})),t.d(e,"a",(function(){return z})),t.d(e,"g",(function(){return W})),t.d(e,"f",(function(){return j})),t.d(e,"d",(function(){return O})),t.d(e,"h",(function(){return T})),t.d(e,"e",(function(){return P})),t.d(e,"b",(function(){return J})),t.d(e,"i",(function(){return D}));var r,i=t(16),_=t(21);function o(n){r=n}var d=new Array(128).fill(void 0);function a(n){return d[n]}d.push(void 0,null,!0,!1);var u=d.length;function c(n){var e=a(n);return function(n){n<132||(d[n]=u,u=n)}(n),e}var f=0,l=null;function b(){return null!==l&&0!==l.byteLength||(l=new Uint8Array(r.memory.buffer)),l}var w=new("undefined"===typeof TextEncoder?(0,n.require)("util").TextEncoder:TextEncoder)("utf-8"),p="function"===typeof w.encodeInto?function(n,e){return w.encodeInto(n,e)}:function(n,e){var t=w.encode(n);return e.set(t),{read:n.length,written:t.length}};function s(n,e,t){if(void 0===t){var r=w.encode(n),i=e(r.length);return b().subarray(i,i+r.length).set(r),f=r.length,i}for(var _=n.length,o=e(_),d=b(),a=0;a<_;a++){var u=n.charCodeAt(a);if(u>127)break;d[o+a]=u}if(a!==_){0!==a&&(n=n.slice(a)),o=t(o,_,_=a+3*n.length);var c=b().subarray(o+a,o+_);a+=p(n,c).written}return f=a,o}var k=null;function y(){return null!==k&&0!==k.byteLength||(k=new Int32Array(r.memory.buffer)),k}var g=new("undefined"===typeof TextDecoder?(0,n.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function h(n,e){return g.decode(b().subarray(n,n+e))}function v(n){u===d.length&&d.push(d.length+1);var e=u;return u=d[e],d[e]=n,e}g.decode();var x=null;function A(){return null!==x&&0!==x.byteLength||(x=new Uint32Array(r.memory.buffer)),x}function E(n,e){return A().subarray(n/4,n/4+e)}function m(n,e){return b().subarray(n/1,n/1+e)}function q(n,e){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var t=r.__wbindgen_add_to_stack_pointer(-16),i=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),_=f;r.get_encoding(t,i,_,v(e));var o=y()[t/4+0],d=y()[t/4+1];if(y()[t/4+2])throw c(d);return z.__wrap(o)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function S(n,e){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var t=r.__wbindgen_add_to_stack_pointer(-16),i=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),_=f;r.encoding_for_model(t,i,_,v(e));var o=y()[t/4+0],d=y()[t/4+1];if(y()[t/4+2])throw c(d);return z.__wrap(o)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function M(n,e){try{return n.apply(this,e)}catch(t){r.__wbindgen_export_3(v(t))}}var z=function(){function n(e,t,_){if(Object(i.a)(this,n),null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var o=s(e,r.__wbindgen_export_0,r.__wbindgen_export_1),d=f,a=s(_,r.__wbindgen_export_0,r.__wbindgen_export_1),u=f,c=r.tiktoken_new(o,d,v(t),a,u);return n.__wrap(c)}return Object(_.a)(n,[{key:"__destroy_into_raw",value:function(){var n=this.ptr;return this.ptr=0,n}},{key:"free",value:function(){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var n=this.__destroy_into_raw();r.__wbg_tiktoken_free(n)}},{key:"name",get:function(){try{var n=r.__wbindgen_add_to_stack_pointer(-16);r.tiktoken_name(n,this.ptr);var e,t=y()[n/4+0],i=y()[n/4+1];return 0!==t&&(e=h(t,i).slice(),r.__wbindgen_export_2(t,1*i)),e}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode",value:function(n,e,t){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var i=r.__wbindgen_add_to_stack_pointer(-16),_=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),o=f;r.tiktoken_encode(i,this.ptr,_,o,v(e),v(t));var d=y()[i/4+0],a=y()[i/4+1],u=y()[i/4+2];if(y()[i/4+3])throw c(u);var l=E(d,a).slice();return r.__wbindgen_export_2(d,4*a),l}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode_ordinary",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var e=r.__wbindgen_add_to_stack_pointer(-16),t=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),i=f;r.tiktoken_encode_ordinary(e,this.ptr,t,i);var _=y()[e/4+0],o=y()[e/4+1],d=E(_,o).slice();return r.__wbindgen_export_2(_,4*o),d}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode_with_unstable",value:function(n,e,t){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var i=r.__wbindgen_add_to_stack_pointer(-16),_=s(n,r.__wbindgen_export_0,r.__wbindgen_export_1),o=f;r.tiktoken_encode_with_unstable(i,this.ptr,_,o,v(e),v(t));var d=y()[i/4+0],a=y()[i/4+1];if(y()[i/4+2])throw c(a);return c(d)}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"encode_single_token",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var e=function(n,e){var t=e(1*n.length);return b().set(n,t/1),f=n.length,t}(n,r.__wbindgen_export_0),t=f;return r.tiktoken_encode_single_token(this.ptr,e,t)>>>0}},{key:"decode",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var e=r.__wbindgen_add_to_stack_pointer(-16),t=function(n,e){var t=e(4*n.length);return A().set(n,t/4),f=n.length,t}(n,r.__wbindgen_export_0),i=f;r.tiktoken_decode(e,this.ptr,t,i);var _=y()[e/4+0],o=y()[e/4+1],d=m(_,o).slice();return r.__wbindgen_export_2(_,1*o),d}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"decode_single_token_bytes",value:function(n){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");try{var e=r.__wbindgen_add_to_stack_pointer(-16);r.tiktoken_decode_single_token_bytes(e,this.ptr,n);var t=y()[e/4+0],i=y()[e/4+1],_=m(t,i).slice();return r.__wbindgen_export_2(t,1*i),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}},{key:"token_byte_values",value:function(){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");return c(r.tiktoken_token_byte_values(this.ptr))}}],[{key:"__wrap",value:function(e){var t=Object.create(n.prototype);return t.ptr=e,t}}]),n}();function W(n){c(n)}function j(n){return void 0===a(n)}function O(){return M((function(n){return v(JSON.stringify(a(n)))}),arguments)}function T(n,e){if(null==r)throw new Error("@dqbd/tiktoken: WASM binary has not been propery initialized.");var t,i=a(e),_="string"===typeof i?i:void 0,o=void 0===(t=_)||null===t?0:s(_,r.__wbindgen_export_0,r.__wbindgen_export_1),d=f;y()[n/4+1]=d,y()[n/4+0]=o}function P(n,e){return v(new Error(h(n,e)))}function J(){return M((function(n,e){return v(JSON.parse(h(n,e)))}),arguments)}function D(n,e){throw new Error(h(n,e))}}).call(this,t(1695)(n))},1694:function(n,e,t){"use strict";var r=t.w[n.i];for(var i in t.r(e),r)"__webpack_init__"!=i&&(e[i]=r[i]);t(1693);r.__webpack_init__()},1695:function(n,e){n.exports=function(n){if(!n.webpackPolyfill){var e=Object.create(n);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}}}]);
|
static/js/main.bd0d86e3.chunk.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
static/js/runtime-main.6ca45cf6.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
!function(e){function n(n){for(var r,u,a=n[0],s=n[1],c=n[2],f=0,l=[];f<a.length;f++)u=a[f],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&l.push(o[u][0]),o[u]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);for(p&&p(n);l.length;)l.shift()();return i.push.apply(i,c||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],r=!0,u=1;u<t.length;u++){var a=t[u];0!==o[a]&&(r=!1)}r&&(i.splice(n--,1),e=s(s.s=t[0]))}return e}var r={},o={1:0},i=[];var u={};var a={1694:function(){return{"./tiktoken_bg.js":{__wbindgen_object_drop_ref:function(e){return r[1693].exports.g(e)},__wbindgen_is_undefined:function(e){return r[1693].exports.f(e)},__wbg_stringify_029a979dfb73aa17:function(e){return r[1693].exports.d(e)},__wbindgen_string_get:function(e,n){return r[1693].exports.h(e,n)},__wbindgen_error_new:function(e,n){return r[1693].exports.e(e,n)},__wbg_parse_3ac95b51fc312db8:function(e,n){return r[1693].exports.b(e,n)},__wbindgen_throw:function(e,n){return r[1693].exports.i(e,n)}}}}};function s(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(e){var n=[],t=o[e];if(0!==t)if(t)n.push(t[2]);else{var r=new Promise((function(n,r){t=o[e]=[n,r]}));n.push(t[2]=r);var i,c=document.createElement("script");c.charset="utf-8",c.timeout=120,s.nc&&c.setAttribute("nonce",s.nc),c.src=function(e){return s.p+"static/js/"+({}[e]||e)+"."+{3:"1a7543f7"}[e]+".chunk.js"}(e);var f=new Error;i=function(n){c.onerror=c.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;f.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",f.name="ChunkLoadError",f.type=r,f.request=i,t[1](f)}o[e]=void 0}};var l=setTimeout((function(){i({type:"timeout",target:c})}),12e4);c.onerror=c.onload=i,document.head.appendChild(c)}return({3:[1694]}[e]||[]).forEach((function(e){var t=u[e];if(t)n.push(t);else{var r,o=a[e](),i=fetch(s.p+""+{1694:"ddea4ad991e53a438854"}[e]+".module.wasm");if(o instanceof Promise&&"function"===typeof WebAssembly.compileStreaming)r=Promise.all([WebAssembly.compileStreaming(i),o]).then((function(e){return WebAssembly.instantiate(e[0],e[1])}));else if("function"===typeof WebAssembly.instantiateStreaming)r=WebAssembly.instantiateStreaming(i,o);else{r=i.then((function(e){return e.arrayBuffer()})).then((function(e){return WebAssembly.instantiate(e,o)}))}n.push(u[e]=r.then((function(n){return s.w[e]=(n.instance||n).exports})))}})),Promise.all(n)},s.m=e,s.c=r,s.d=function(e,n,t){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,n){if(1&n&&(e=s(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)s.d(t,r,function(n){return e[n]}.bind(null,r));return t},s.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="./",s.oe=function(e){throw console.error(e),e},s.w={};var c=this.webpackJsonpchatchan=this.webpackJsonpchatchan||[],f=c.push.bind(c);c.push=n,c=c.slice();for(var l=0;l<c.length;l++)n(c[l]);var p=f;t()}([]);
|