├── conf.d └── openai.conf.template ├── docker-compose.yaml ├── html ├── index.html └── static │ ├── 1f110208-44a6f43ddc5e9011.js │ ├── 271-47b1899a62a6d998.js │ ├── 358-b6c60d8f4986d481.js │ ├── 424-7f7835d330adbaab.js │ ├── 501-ef4ff1cd9d76b348.js │ ├── 544-11adb675082500d6.js │ ├── 762-8a07cc8650f560d4.js │ ├── 798-92621067ddb78625.js │ ├── 814-f4965bec58d0356a.js │ ├── 875-7f46e56c461a6f28.js │ ├── 979-429205346ba16ee3.js │ ├── [[...chatId]]-c18e9cd293a366ce.js │ ├── _app-dedfe8ecfffebe40.js │ ├── _buildManifest.js │ ├── _ssgManifest.js │ ├── a.html │ ├── a_data │ └── invisible.js │ ├── fd90e1beb9859392.css │ ├── framework-7a789ee31d2a7534.js │ ├── main-149b337e061b4d04.js │ ├── polyfills-c67a75d1b6f99dc8.js │ └── webpack-d6a410b1bf4d686f.js ├── readme.md └── youdomain.conf.trash /conf.d/openai.conf.template: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default_server; 3 | server_name _; 4 | return 444; 5 | } 6 | server 7 | { 8 | listen 80; 9 | server_name ${DOMAIN}; 10 | location /api/auth/session { 11 | default_type application/json; 12 | return 200 '{"user":{"id":"?","name":"","email":"","image":"","picture":"","groups":[]},"expires":"2023-03-30T06:13:35.538Z","accessToken":"fuck"}'; 13 | } 14 | set $token ${ACCESS_TOKEN}; 15 | location = /backend-api/conversations { 16 | default_type application/json; 17 | if ($request_method = GET) { 18 | return 200 '{"items":[{"id":"a8b7ed54-529b-4360-882c-c8a410410000","title":"历史会话功能不可用","create_time":"2023-02-28T06:37:40.999323"}],"total":1,"limit":20,"offset":0}'; 19 | } 20 | proxy_pass https://apps.openai.com/api/; 21 | proxy_set_header Host apps.openai.com; 22 | proxy_set_header Origin 'https://home.apps.openai.com'; 23 | proxy_set_header 'Referer' 'https://home.apps.openai.com/'; 24 | proxy_set_header Authorization "Bearer $token"; 25 | proxy_hide_header access-control-allow-credentials; 26 | proxy_hide_header access-control-allow-origin; 27 | proxy_hide_header strict-transport-security; 28 | } 29 | location /backend-api/ { 30 | proxy_pass https://apps.openai.com/api/; 31 | proxy_set_header Host apps.openai.com; 32 | proxy_set_header Origin 'https://home.apps.openai.com'; 33 | proxy_set_header 'Referer' 'https://home.apps.openai.com/'; 34 | proxy_set_header Authorization "Bearer $token"; 35 | proxy_hide_header access-control-allow-credentials; 36 | proxy_hide_header access-control-allow-origin; 37 | proxy_hide_header strict-transport-security; 38 | } 39 | location = / { 40 | rewrite ^/(.*) /chat/ permanent; 41 | } 42 | location /chat/ { 43 | alias /var/www/html/; 44 | sub_filter 'help us improve.' 'help us improve.Blog'; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | nginx: 4 | image: nginx:stable-alpine 5 | restart: always 6 | ports: 7 | - 127.0.0.1:30050:80 8 | volumes: 9 | - "./conf.d:/etc/nginx/templates/" 10 | - "./html:/var/www/html" 11 | environment: 12 | NGINX_ENVSUBST_TEMPLATE_SUFFIX: ".template" 13 | ACCESS_TOKEN: you_token 14 | DOMAIN: chat.yourdomain.com 15 | -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | New chat 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 |
38 | 39 |
40 |
41 |
43 |
44 |
45 |
46 |
47 |
49 |

51 | ChatGPT

52 |
53 |
54 |

56 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | Examples

70 |
78 |
79 |
80 |

82 | Capabilities

89 |
    90 |
  • 91 | Remembers what user said earlier in the conversation
  • 92 |
  • Allows 93 | user to provide follow-up corrections
  • 94 |
  • Trained 95 | to decline inappropriate requests
  • 96 |
97 |
98 |
99 |

101 | 105 | 107 | 108 | 109 | 110 | Limitations

111 |
    112 |
  • May 113 | occasionally generate incorrect information
  • 114 |
  • May 115 | occasionally produce harmful instructions or biased content
  • 116 |
  • Limited 117 | knowledge of world and events after 2021
  • 118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
129 |
131 |
132 |
133 |
134 |
136 |
146 |
147 |
148 |
150 | ChatGPT Feb 13 Version. 152 | Free Research Preview. Our goal is to make AI systems more natural and 153 | safe to interact with. Your feedback will help us improve.
154 |
155 |
156 |
157 |
158 |
159 | 160 |
161 | 162 | 164 | 165 | 168 | 169 |
171 |
172 | 173 | 174 | -------------------------------------------------------------------------------- /html/static/271-47b1899a62a6d998.js: -------------------------------------------------------------------------------- 1 | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[271],{84251:function(t,e,n){"use strict";var r=n(24638);function o(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var u="object"==typeof r;function i(t,e){if(!t){if(u)throw Error("Invariant failed");throw Error(e())}}e.invariant=i;var a=Object.prototype.hasOwnProperty,c=Array.prototype.splice,f=Object.prototype.toString;function s(t){return f.call(t).slice(8,-1)}var p=Object.assign||function(t,e){return l(e).forEach(function(n){a.call(e,n)&&(t[n]=e[n])}),t},l="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function d(t){return Array.isArray(t)?p(t.constructor(t.length),t):"Map"===s(t)?new Map(t):"Set"===s(t)?new Set(t):t&&"object"==typeof t?p(Object.create(Object.getPrototypeOf(t)),t):t}var y=function(){function t(){this.commands=p({},v),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return new t().update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&Array.isArray(r)||i(!Array.isArray(r),function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."}),i("object"==typeof r&&null!==r,function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."});var o=t;return l(r).forEach(function(e){if(a.call(n.commands,e)){var u=t===o;o=n.commands[e](r[e],o,r,t),u&&n.isEquals(o,t)&&(o=t)}else{var i="Map"===s(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),c="Map"===s(o)?o.get(e):o[e];n.isEquals(i,c)&&(void 0!==i||a.call(t,e))||(o===t&&(o=d(t)),"Map"===s(o)?o.set(e,i):o[e]=i)}}),o},t}();e.Context=y;var v={$push:function(t,e,n){return g(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return g(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,n,r){var u,a;return u=e,a=n,i(Array.isArray(u),function(){return"Expected $splice target to be an array; got "+o(u)}),m(a.$splice),t.forEach(function(t){m(t),e===r&&t.length&&(e=d(r)),c.apply(e,t)}),e},$set:function(t,e,n){var r;return i(1===Object.keys(r=n).length,function(){return"Cannot have more than one key in an object with $set"}),t},$toggle:function(t,e){h(t,"$toggle");var n=t.length?d(e):e;return t.forEach(function(t){n[t]=!e[t]}),n},$unset:function(t,e,n,r){return h(t,"$unset"),t.forEach(function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=d(r)),delete e[t])}),e},$add:function(t,e,n,r){return j(e,"$add"),h(t,"$add"),"Map"===s(e)?t.forEach(function(t){var n=t[0],o=t[1];e===r&&e.get(n)!==o&&(e=d(r)),e.set(n,o)}):t.forEach(function(t){e!==r||e.has(t)||(e=d(r)),e.add(t)}),e},$remove:function(t,e,n,r){return j(e,"$remove"),h(t,"$remove"),t.forEach(function(t){e===r&&e.has(t)&&(e=d(r)),e.delete(t)}),e},$merge:function(t,e,n,r){var u,a;return u=e,i((a=t)&&"object"==typeof a,function(){return"update(): $merge expects a spec of type 'object'; got "+o(a)}),i(u&&"object"==typeof u,function(){return"update(): $merge expects a target of type 'object'; got "+o(u)}),l(t).forEach(function(n){t[n]!==e[n]&&(e===r&&(e=d(r)),e[n]=t[n])}),e},$apply:function(t,e){var n;return i("function"==typeof(n=t),function(){return"update(): expected spec of $apply to be a function; got "+o(n)+"."}),t(e)}},b=new y;function g(t,e,n){i(Array.isArray(t),function(){return"update(): expected target of "+o(n)+" to be an array; got "+o(t)+"."}),h(e[n],n)}function h(t,e){i(Array.isArray(t),function(){return"update(): expected spec of "+o(e)+" to be an array; got "+o(t)+". Did you forget to wrap your parameter in an array?"})}function m(t){i(Array.isArray(t),function(){return"update(): expected spec of $splice to be an array of arrays; got "+o(t)+". Did you forget to wrap your parameters in an array?"})}function j(t,e){var n=s(t);i("Map"===n||"Set"===n,function(){return"update(): "+o(e)+" expects a target of type Set or Map; got "+o(n)})}e.isEquals=b.update.isEquals,e.extend=b.extend,e.default=b.update,e.default.default=t.exports=p(e.default,e)},66293:function(t,e,n){var r=n(73401).Symbol;t.exports=r},70331:function(t){t.exports=function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}},57398:function(t,e,n){var r=n(66293),o=n(46945),u=n(51584),i=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):u(t)}},33897:function(t,e,n){var r=n(15012),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},40151:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},46945:function(t,e,n){var r=n(66293),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=u.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(o){}var c=i.call(t);return r&&(e?t[a]=n:delete t[a]),c}},51584:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},73401:function(t,e,n){var r=n(40151),o="object"==typeof self&&self&&self.Object===Object&&self,u=r||o||Function("return this")();t.exports=u},15012:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},95182:function(t,e,n){var r=n(70331),o=n(67948);t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=o(n))==n?n:0),void 0!==e&&(e=(e=o(e))==e?e:0),r(o(t),e,n)}},6627:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},89109:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},42848:function(t,e,n){var r=n(57398),o=n(89109);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},67948:function(t,e,n){var r=n(33897),o=n(6627),u=n(42848),i=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(u(t))return i;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=c.test(t);return n||f.test(t)?s(t.slice(2),n?2:8):a.test(t)?i:+t}},8844:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});let r="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var o={randomUUID:r};let u,i=new Uint8Array(16);function a(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(i)}let c=[];for(let f=0;f<256;++f)c.push((f+256).toString(16).slice(1));var s=function(t,e,n){if(o.randomUUID&&!e&&!t)return o.randomUUID();t=t||{};let r=t.random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let u=0;u<16;++u)e[n+u]=r[u];return e}return function(t,e=0){return(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase()}(r)}},81729:function(t,e,n){"use strict";function r(t,e,n){if(!e.has(t))throw TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}n.d(e,{Z:function(){return r}})},33468:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(81729);function o(t,e){var n,o,u=(0,r.Z)(t,e,"get");return u.get?u.get.call(t):u.value}},37495:function(t,e,n){"use strict";function r(t,e,n){!function(t,e){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}n.d(e,{Z:function(){return r}})},75106:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(81729);function o(t,e,n){var o=(0,r.Z)(t,e,"set");return!function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw TypeError("attempted to set read only private field");e.value=n}}(t,o,n),n}},43905:function(t,e,n){"use strict";function r(t,e){for(var n=0;n 2 && void 0 !== arguments[2] && arguments[2], o = function (t) { var n = t.message, r = e.getMessageType(n), o = t.message.author.role === y.uU.System, i = t.message.author.role === y.uU.Tool; return o || i && !("code" === r || "execution_output" === r || "system_error" === r) }; return this.getConversationTurns(t, o).slice(-n).map(function (t) { var n = t.messages.map(function (t) { return e.getTextFromMessage(t.message) }).filter(function (e) { return "" !== e }).join("\n"); return r ? "[".concat(t.role, "]\n").concat(n) : n }).join("\n") }, t.getConversationTurns = function (t, n) { var r = this, o = []; return this.getBranchFromLeaf(t).forEach(function (t) { var i = t.id, a = t.parentId, u = t.message, d = t.metadata; if (null == n || !n(t)) { var l = o[o.length - 1]; (null == l ? void 0 : l.role) === e.getRoleFromMessage(u) || e.getRoleFromMessage(u) === y.uU.Tool ? o[o.length - 1].messages.push((0, c.Z)({ nodeId: i, parentId: a, message: u }, d)) : o.push({ role: e.getRoleFromMessage(u), messages: [(0, c.Z)({ nodeId: i, parentId: a, message: u }, d),], variantIds: a ? Array.from((0, s.Z)(r, I)[a].children) : [i] }) } }), o }, t.getParentPromptNode = function (e) { for (var t, n, r = this.getNode(e); r && r && (null === (t = r.message) || void 0 === t ? void 0 : null === (n = t.author) || void 0 === n ? void 0 : n.role) !== y.uU.User;)r = this.getNode(r.parentId); return r }, e.createTree = function () { return { root: { id: "root", children: [], parentId: "", type: y.Jq.Root, message: e.createRootMessage() } } }, e.createRootMessage = function () { return { id: (0, v.Z)(), author: { role: M[y.Jq.Root] }, role: M[y.Jq.Root], content: { content_type: "text", parts: [] } } }, e.getIsIncompleteFromMessage = function (e) { var t, n; return (null === (t = e.metadata) || void 0 === t ? void 0 : null === (n = t.finish_details) || void 0 === n ? void 0 : n.type) === "max_tokens" }, e.getWasInterruptedFromMessage = function (e) { var t, n; return (null === (t = e.metadata) || void 0 === t ? void 0 : null === (n = t.finish_details) || void 0 === n ? void 0 : n.type) === "interrupted" }, e.getIsContinuedFromMessage = function (e) { var t; return (null === (t = e.metadata) || void 0 === t ? void 0 : t.message_type) === "continue" }, e.getModelFromMessage = function (e) { var t; return null === (t = e.metadata) || void 0 === t ? void 0 : t.model_slug }, e.getTextFromMessage = function (e) { if (e.content.content_type.startsWith("tether_b")) return e.content.text; switch (e.content.content_type) { case "text": return e.content.parts.join(""); case "code": case "execution_output": case "system_error": return e.content.text; default: return "" } }, e.getMessageType = function (e) { return e.content.content_type }, e.getIsTextTypeFromMessage = function (t) { return "text" === e.getMessageType(t) }, e.getRequestIdFromConversationTurn = function (e) { var t = e.messages[e.messages.length - 1]; return this.getIsContinuedFromMessage(t.message) ? t.nodeId : e.messages[0].nodeId }, e.getRoleFromMessage = function (e) { var t; return (null === (t = e.author) || void 0 === t ? void 0 : t.role) || e.role }, e.getNameFromMessage = function (e) { var t, n; return (null === (t = e.author) || void 0 === t ? void 0 : t.name) || (null === (n = e.author) || void 0 === n ? void 0 : n.role) || e.role }, e.getRecipientFromMessage = function (e) { return e.recipient || "" }, (0, d.Z)(e, [{ key: "isFirstCompletion", get: function () { var e = this.getFirstPrompt(); if (e) { var t = (0, s.Z)(this, I)[e.children[0]]; if (t && 0 === t.children.length) return !0 } return !1 } }]), e }() }, 82018: function (e, t, n) { n.d(t, { kP: function () { return g }, w7: function () { return d } }); var r = n(61706), o = n(31501), i = n(45813), s = n(87762), a = n(44928), u = n(61432); function d(e) { (0, a.signOut)((0, o.Z)({ callbackUrl: window.location.origin + "/api/auth/logout" }, e)) } function l() { return c.apply(this, arguments) } function c() { return (c = (0, r.Z)(function () { var e, t; return (0, i.__generator)(this, function (e) { switch (e.label) { case 0: return [4, fetch("/api/auth/session")]; case 1: return [4, e.sent().json()]; case 2: if (Object.keys(t = e.sent()).length) return [2, t]; return [2, null] } }) })).apply(this, arguments) } function g(e) { var t = e || {}, n = t.required, r = t.redirectTo, o = t.queryConfig, i = (0, u.useRouter)(), a = (0, s.a)(["session"], l, { onSettled: function (e, t) { (null == o ? void 0 : o.onSettled) && (null == o || o.onSettled(e, t)), !e && n && i.push(r) } }); return { session: (null == a ? void 0 : a.data) || null, loading: (null == a ? void 0 : a.status) === "loading" } } }, 36613: function (e, t, n) { n.d(t, { Dd: function () { return s }, Mf: function () { return a }, _I: function () { return d }, sK: function () { return u } }); var r = n(95182), o = n.n(r), i = n(60814), s = "content_policy", a = { errType: "warning", errCode: s }, u = { err: "Contents may violate our content policy", errType: "danger", errCode: s }; function d(e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, s = o()(e.length, 0, 4e3), a = o()(e.length - s, 0, e.length - 1), u = t ? e.substring(a, e.length) : e; return u ? i.ZP.runModerationApi(u, n, r).then(function (e) { var t, n; return { isBlocked: Boolean(e.blocked), isFlagged: Boolean(e.flagged) } }).catch(function (e) { return console.error(e), { isBlocked: !1, isFlagged: !1, error: e } }) : Promise.resolve({ isBlocked: !1, isFlagged: !1 }) } } }]); -------------------------------------------------------------------------------- /html/static/424-7f7835d330adbaab.js: -------------------------------------------------------------------------------- 1 | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[424],{63561:function(e,t){"use strict";t.Z=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},68561:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(63561).Z,o=i(95781).Z,a=i(89478).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,i,l=e.src,c=e.sizes,h=e.unoptimized,p=void 0!==h&&h,w=e.priority,k=void 0!==w&&w,E=e.loading,I=e.lazyRoot,R=e.lazyBoundary,_=e.className,L=e.quality,q=e.width,C=e.height,O=e.style,N=e.objectFit,P=e.objectPosition,W=e.onLoadingComplete,B=e.placeholder,M=void 0===B?"empty":B,Z=e.blurDataURL,D=s(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]),U=d.useContext(m.ImageConfigContext),V=d.useMemo(function(){var e=y||U||f.imageConfigDefault,t=a(e.deviceSizes).concat(a(e.imageSizes)).sort(function(e,t){return e-t}),i=e.deviceSizes.sort(function(e,t){return e-t});return r({},e,{allSizes:t,deviceSizes:i})},[U]),F=c?"responsive":"intrinsic";"layout"in D&&(D.layout&&(F=D.layout),delete D.layout);var H=x;if("loader"in D){if(D.loader){var G=D.loader;H=function(e){e.config;var t=s(e,["config"]);return G(t)}}delete D.loader}var T="";if(function(e){var t;return"object"==typeof e&&(z(e)||void 0!==e.src)}(l)){var J=z(l)?l.default:l;if(!J.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(J)));if(Z=Z||J.blurDataURL,T=J.src,(!F||"fill"!==F)&&(C=C||J.height,q=q||J.width,!J.height||!J.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(J)))}l="string"==typeof l?l:T;var Q=!k&&("lazy"===E||void 0===E);(l.startsWith("data:")||l.startsWith("blob:"))&&(p=!0,Q=!1),b.has(l)&&(Q=!1),V.unoptimized&&(p=!0);var K=o(d.useState(!1),2),X=K[0],Y=K[1],$=o(g.useIntersection({rootRef:void 0===I?null:I,rootMargin:R||"200px",disabled:!Q}),3),ee=$[0],et=$[1],ei=$[2],en=!Q||et,eo={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ea={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},er=!1,el=A(q),ec=A(C),es=A(L),ed=Object.assign({},O,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:N,objectPosition:P}),eu="blur"!==M||X?{}:{backgroundSize:N||"cover",backgroundPosition:P||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'.concat(Z,'")')};if("fill"===F)eo.display="block",eo.position="absolute",eo.top=0,eo.left=0,eo.bottom=0,eo.right=0;else if(void 0!==el&&void 0!==ec){var ef=ec/el,eg=isNaN(ef)?"100%":"".concat(100*ef,"%");"responsive"===F?(eo.display="block",eo.position="relative",er=!0,ea.paddingTop=eg):"intrinsic"===F?(eo.display="inline-block",eo.position="relative",eo.maxWidth="100%",er=!0,ea.maxWidth="100%",t="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(el,"%27%20height=%27").concat(ec,"%27/%3e")):"fixed"===F&&(eo.display="inline-block",eo.position="relative",eo.width=el,eo.height=ec)}var em={src:v,srcSet:void 0,sizes:void 0};en&&(em=S({config:V,src:l,unoptimized:p,layout:F,width:el,quality:es,sizes:c,loader:H}));var eh=l,ep="imagesizes";ep="imageSizes";var ey=(n(i={},"imageSrcSet",em.srcSet),n(i,ep,em.sizes),n(i,"crossOrigin",D.crossOrigin),i),eb=d.default.useLayoutEffect,ev=d.useRef(W),ew=d.useRef(l);d.useEffect(function(){ev.current=W},[W]),eb(function(){ew.current!==l&&(ei(),ew.current=l)},[ei,l]);var ez=r({isLazy:Q,imgAttributes:em,heightInt:ec,widthInt:el,qualityInt:es,layout:F,className:_,imgStyle:ed,blurStyle:eu,loading:E,config:V,unoptimized:p,placeholder:M,loader:H,srcString:eh,onLoadingCompleteRef:ev,setBlurComplete:Y,setIntersection:ee,isVisible:en,noscriptSizes:c},D);return d.default.createElement(d.default.Fragment,null,d.default.createElement("span",{style:eo},er?d.default.createElement("span",{style:ea},t?d.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:t}):null):null,d.default.createElement(j,Object.assign({},ez))),k?d.default.createElement(u.default,null,d.default.createElement("link",Object.assign({key:"__nimg-"+em.src+em.srcSet+em.sizes,rel:"preload",as:"image",href:em.srcSet?void 0:em.src},ey))):null)};var r=i(17858).Z,l=i(16922).Z,c=i(86905).Z,s=i(31080).Z,d=c(i(70079)),u=l(i(76109)),f=i(60239),g=i(26790),m=i(94136);i(13279);var h=i(5189);function p(e){return"/"===e[0]?e.slice(1):e}var y={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},b=new Set,v="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",w=new Map([["default",function(e){var t=e.config,i=e.src,n=e.width,o=e.quality;return i.endsWith(".svg")&&!t.dangerouslyAllowSVG?i:"".concat(h.normalizePathTrailingSlash(t.path),"?url=").concat(encodeURIComponent(i),"&w=").concat(n,"&q=").concat(o||75)}],["imgix",function(e){var t=e.config,i=e.src,n=e.width,o=e.quality,a=new URL("".concat(t.path).concat(p(i))),r=a.searchParams;return r.set("auto",r.getAll("auto").join(",")||"format"),r.set("fit",r.get("fit")||"max"),r.set("w",r.get("w")||n.toString()),o&&r.set("q",o.toString()),a.href}],["cloudinary",function(e){var t,i=e.config,n=e.src,o=e.width,a=["f_auto","c_limit","w_"+o,"q_"+(e.quality||"auto")].join(",")+"/";return"".concat(i.path).concat(a).concat(p(n))}],["akamai",function(e){var t=e.config,i=e.src,n=e.width;return"".concat(t.path).concat(p(i),"?imwidth=").concat(n)}],["custom",function(e){var t=e.src;throw Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}],]);function z(e){return void 0!==e.default}function S(e){var t=e.config,i=e.src,n=e.unoptimized,o=e.layout,r=e.width,l=e.quality,c=e.sizes,s=e.loader;if(n)return{src:i,srcSet:void 0,sizes:void 0};var d=function(e,t,i,n){var o=e.deviceSizes,r=e.allSizes;if(n&&("fill"===i||"responsive"===i)){for(var l=/(^|\s)(1?\d?\d)vw/g,c=[];s=l.exec(n);s)c.push(parseInt(s[2]));if(c.length){var s,d,u=.01*(d=Math).min.apply(d,a(c));return{widths:r.filter(function(e){return e>=o[0]*u}),kind:"w"}}return{widths:r,kind:"w"}}return"number"!=typeof t||"fill"===i||"responsive"===i?{widths:o,kind:"w"}:{widths:a(new Set([t,2*t].map(function(e){return r.find(function(t){return t>=e})||r[r.length-1]}))),kind:"x"}}(t,r,o,c),u=d.widths,f=d.kind,g=u.length-1;return{sizes:c||"w"!==f?c:"100vw",srcSet:u.map(function(e,n){return"".concat(s({config:t,src:i,quality:l,width:e})," ").concat("w"===f?e:n+1).concat(f)}).join(", "),src:s({config:t,src:i,quality:l,width:u[g]})}}function A(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function x(e){var t,i=(null==(t=e.config)?void 0:t.loader)||"default",n=w.get(i);if(n)return n(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '.concat(f.VALID_LOADERS.join(", "),". Received: ").concat(i))}function k(e,t,i,n,o,a){e&&e.src!==v&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch(function(){}).then(function(){if(e.parentNode&&(b.add(t),"blur"===n&&a(!0),null==o?void 0:o.current)){var i=e.naturalWidth,r=e.naturalHeight;o.current({naturalWidth:i,naturalHeight:r})}}))}var j=function(e){var t=e.imgAttributes,i=(e.heightInt,e.widthInt),n=e.qualityInt,o=e.layout,a=e.className,l=e.imgStyle,c=e.blurStyle,u=e.isLazy,f=e.placeholder,g=e.loading,m=e.srcString,h=e.config,p=e.unoptimized,y=e.loader,b=e.onLoadingCompleteRef,v=e.setBlurComplete,w=e.setIntersection,z=e.onLoad,A=e.onError,x=(e.isVisible,e.noscriptSizes),j=s(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible","noscriptSizes"]);return g=u?"lazy":g,d.default.createElement(d.default.Fragment,null,d.default.createElement("img",Object.assign({},j,t,{decoding:"async","data-nimg":o,className:a,style:r({},l,c),ref:d.useCallback(function(e){w(e),(null==e?void 0:e.complete)&&k(e,m,o,f,b,v)},[w,m,o,f,b,v,]),onLoad:function(e){k(e.currentTarget,m,o,f,b,v),z&&z(e)},onError:function(e){"blur"===f&&v(!0),A&&A(e)}})),(u||"blur"===f)&&d.default.createElement("noscript",null,d.default.createElement("img",Object.assign({},j,S({config:h,src:m,unoptimized:p,layout:o,width:i,quality:n,sizes:x,loader:y}),{decoding:"async","data-nimg":o,style:l,className:a,loading:g}))))};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96424:function(e,t,i){e.exports=i(68561)}}]); -------------------------------------------------------------------------------- /html/static/501-ef4ff1cd9d76b348.js: -------------------------------------------------------------------------------- 1 | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[501],{23119:function(e,n,t){t.d(n,{Ph:function(){return v},Yt:function(){return k},k$:function(){return g}});var r=t(14806),i=t(35250),a=t(19841),o=t(96424),c=t.n(o),s=t(48240),u=t(34303),l=t(79876);function f(){var e=(0,r.Z)(["relative h-[30px] w-[30px] p-1 rounded-sm text-white flex items-center justify-center"]);return f=function(){return e},e}function d(){var e=(0,r.Z)(["\n absolute w-4 h-4 rounded-full text-[10px] text-white flex justify-center items-center right-0 top-[20px] -mr-2 border border-white\n ","\n ","\n"]);return d=function(){return e},e}function h(){var e=(0,r.Z)(["bg-[#5436DA] rounded-sm text-white flex justify-center items-center relative tracking-widest"]);return h=function(){return e},e}function m(){var e=(0,r.Z)(["relative flex"]);return m=function(){return e},e}var p=u.Z.div(f()),x=u.Z.span(d(),function(e){return"warning"===e.$type&&"bg-orange-500 text-white"},function(e){return"danger"===e.$type&&"bg-red-500 text-white"}),g=function(e){var n=e.iconName,t=e.background,r=e.notice,a=l.nI;switch(n){case"globe":a=s.RsK;break;case"terminal":a=s.cDN;break;case"t":a=s.RUS;break;case"s":a=s.jRj;break;case"c":a=s.CFv;break;case"p":a=s.yG}return(0,i.jsxs)(p,{style:{backgroundColor:t},children:[(0,i.jsx)(l.ZP,{icon:a,size:"medium"}),r&&(0,i.jsx)(x,{$type:r,children:"!"})]})},v=function(e){var n=e.plugin,t=e.notice;return(0,i.jsxs)(p,{className:"p-0",children:[(0,i.jsx)("img",{src:n.manifest.logo_url,alt:"".concat(n.manifest.name_for_human," logo"),className:"h-full w-full rounded-sm"}),t&&(0,i.jsx)(x,{$type:t,children:"!"})]})},b=u.Z.div(h()),w=u.Z.div(m()),k=function(e){var n=e.user,t=e.size,r=void 0===t?"small":t,o=e.notice,u=o&&(0,i.jsx)(x,{$type:o,children:"!"});if(null==n?void 0:n.picture)return(0,i.jsxs)(w,{children:[(0,i.jsx)(c(),{src:n.picture,alt:n.name,width:"small"===r?30:38,height:"small"===r?30:38,className:"rounded-sm"}),u]});var f=((null==n?void 0:n.name)||"").split(" ").map(function(e){return e[0]}).join("");return(0,i.jsxs)(b,{className:(0,a.Z)("small"===r?"h-8 w-8 text-xs":"h-10 w-10 text-lg"),children:[f||(0,i.jsx)(l.ZP,{icon:s.fzv,size:"medium"}),u]})}},35873:function(e,n,t){t.d(n,{Z:function(){return f}});var r=t(14806),i=t(35250),a=t(70079),o=t(48240),c=t(34303),s=t(60612),u=t(79876);function l(){var e=(0,r.Z)(["flex ml-auto gap-2"]);return l=function(){return e},e}function f(e){var n=e.text,t=e.onCopy,r=(0,a.useState)(!1),c=r[0],l=r[1],f=(0,s.Z)(),h=(0,a.useCallback)(function(){t(),l(!0),setTimeout(function(){f()&&l(!1)},2e3)},[f,t]);return(0,i.jsxs)(i.Fragment,{children:[!c&&(0,i.jsxs)(d,{onClick:h,children:[(0,i.jsx)(u.ZP,{icon:o.j4u}),n]}),c&&(0,i.jsxs)(d,{children:[(0,i.jsx)(u.ZP,{icon:o.UgA}),n&&"Copied!"]})]})}var d=c.Z.button(l())},77064:function(e,n,t){t.d(n,{$:function(){return m},u:function(){return h}});var r=t(31501),i=t(61079),a=t(14806),o=t(35250),c=t(19841),s=t(70079),u=t(65921),l=t(34303);function f(){var e=(0,a.Z)(['\nbefore:absolute before:w-2 before:h-2 before:visible before:content-[""] before:bg-gray-100 before:border-b before:border-r before:border-black/10\n',"\n","\n"]);return f=function(){return e},e}function d(){var e=(0,a.Z)(["absolute w-2 h-2 -z-10"]);return d=function(){return e},e}function h(e){var n=e.text,t=e.children;return(0,o.jsx)("div",{className:"tooltip-label flex items-center whitespace-pre-wrap py-1 px-2 text-center text-sm font-medium normal-case text-gray-700","data-content":n,children:t})}var m=function(e){var n=e.children,t=e.label,a=e.enterDelay,l=void 0===a?0:a,f=e.leaveDelay,d=void 0===f?50:f,h=e.placement,m=void 0===h?"bottom":h,p=e.offset,g=e.withArrow,v=e.interactive,b=void 0!==v&&v,w=e.wide,k=(0,s.useState)(!1),y=k[0],j=k[1],q=(0,s.useState)(null),F=q[0],Z=q[1],C=(0,s.useState)(null),S=C[0],N=C[1],T=(0,s.useState)(null),E=T[0],V=T[1],P=(0,u.D)(F,S,{placement:m,modifiers:[{name:"offset",options:{offset:void 0===p?[0,14]:p}},{name:"arrow",options:{element:E}},]}),z=P.styles,_=P.attributes,I=P.forceUpdate,$=(0,s.useRef)(),M=(0,s.useRef)(),D=(0,s.useCallback)(function(){null==I||I(),M.current&&clearTimeout(M.current),$.current=setTimeout(function(){return j(!0)},l)},[l,I]),R=(0,s.useCallback)(function(){$.current&&clearTimeout($.current),M.current=setTimeout(function(){return j(!1)},d)},[d]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{ref:Z,onMouseEnter:D,onMouseLeave:R,children:n}),(0,o.jsxs)("div",(0,i.Z)((0,r.Z)({ref:N,style:z.popper},_.popper),{className:(0,c.Z)("relative z-10 m-0 rounded p-1 transition-opacity",y?"opacity-100":"pointer-events-none opacity-0",void 0!==w&&w?"max-w-sm":"max-w-xs","border border-black/10 bg-gray-100"),onMouseEnter:b?D:void 0,onMouseLeave:b?R:void 0,children:[t,(void 0===g||g)&&(0,o.jsx)(x,{ref:V,style:z.arrow,$placement:m})]}))]})},p=l.Z.div(f(),function(e){return"bottom"===e.$placement&&"before:rotate-45 before:-top-7 before:-translate-y-1/2 before:-translate-x-1/2"},function(e){return"top"===e.$placement&&"before:top-0 before:rotate-45"}),x=(0,l.Z)(p)(d())},75310:function(e,n,t){t.d(n,{Z:function(){return J}});var r=t(35250),i=t(19841),a=t(15762),o=t(24804),c=t(61110),s=t(55975),u=t(46050),l=t(29874),f=t(8449),d=t(15472);function h(e,n,t){}function m(e,n){}let p={tokenize:function(e,n,t){let r=this,i=this.events[this.events.length-1],a=i&&i[1].type===d.V.linePrefix?i[2].sliceSerialize(i[1],!0).length:0,o=[];return function(n){return n!==s.q.backslash&&h("expected `\\`",n),e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function n(r){return(h("sequenceOpen",r),r===s.q.backslash||r===s.q.leftSquareBracket&&o[0]===s.q.backslash)?(e.consume(r),o.push(r),n):(e.exit("mathFlowFenceSequence"),o.length<2?t(r):(0,u.f)(e,c,d.V.whitespace)(r))}(n)};function c(n){return(h("metaOpen",n),n===s.q.eof||(0,l.Ch)(n))?m(n):(e.enter("mathFlowFenceMeta"),e.enter(d.V.chunkString,{contentType:f._.contentTypeString}),function n(r){return(h("meta",r),r===s.q.eof||(0,l.Ch)(r))?(e.exit(d.V.chunkString),e.exit("mathFlowFenceMeta"),m(r)):r===s.q.rightSquareBracket?t(r):(e.consume(r),n)}(n))}function m(t){return h("openAfter",t),e.exit("mathFlowFence"),r.interrupt?n(t):function n(t){return(h("contentStart",t),t===s.q.eof)?p(t):(0,l.Ch)(t)?e.attempt(x,e.attempt({tokenize:g,partial:!0},p,a?(0,u.f)(e,n,d.V.linePrefix,a+1):n),p)(t):(e.enter("mathFlowValue"),function t(r){return(h("contentContinue",r),r===s.q.eof||(0,l.Ch)(r))?(e.exit("mathFlowValue"),n(r)):(e.consume(r),t)}(t))}(t)}function p(t){return h("after",t),e.exit("mathFlow"),n(t)}function g(e,n,t){let r=[];return(0,u.f)(e,function(n){return h("closingPrefixAfter",n),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function n(a){return(h("closingSequence",a),a===s.q.backslash&&0===r.length||a===s.q.rightSquareBracket&&r[0]===s.q.backslash)?(e.consume(a),r.push(a),n):r=0;t--){var r=n[t],i=r.start_ix,a=r.end_ix,o=r.metadata,c=r.invalid_reason,s={index:t};o?s.metadata=o:c&&(s.invalid_reason=c),e=e.slice(0,i)+"".concat(l,"`").concat(f).concat(JSON.stringify(s),"`").concat(l)+e.slice(a)}return e}function h(e){if(!e.startsWith(f))return null;try{return JSON.parse(e.slice(f.length))}catch(n){return{index:-1}}}function m(e){var n,t=e.displayInfo;return(0,r.jsx)(u.$,{label:(0,r.jsx)(p,{pageInfo:t.metadata,invalidReason:t.invalid_reason}),placement:"top",offset:[0,3],leaveDelay:150,withArrow:!1,interactive:!0,wide:!0,children:(0,r.jsx)("a",{href:null===(n=t.metadata)||void 0===n?void 0:n.url,target:"_blank",rel:"noreferrer",className:"text-green-600 !no-underline",children:(0,r.jsx)("sup",{children:t.index+1})})})}function p(e){var n=e.pageInfo,t=e.invalidReason;return(0,r.jsx)("a",{href:null==n?void 0:n.url,target:"_blank",rel:"noreferrer",className:"!no-underline",children:(0,r.jsx)(u.u,{children:n?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"flex shrink-0 items-center justify-center",children:(0,r.jsx)(c,{url:n.url})}),(0,r.jsx)("div",{className:"max-w-xs truncate text-xs",children:n.title}),(0,r.jsx)("div",{className:"shrink-0",children:(0,r.jsx)(s.ZP,{icon:i.AlO,size:"xsmall"})})]}):(0,r.jsx)("div",{className:"text-red-500",children:t||"Invalid citation"})})})}},57218:function(e,n,t){t.d(n,{G:function(){return r}});var r={id:"chat",name:"ChatGPT",href:"/chat",theme:{icon:"openai",color:"#10a37f",activeColor:"#1a7f64"}}},60612:function(e,n,t){var r=t(70079);n.Z=function(){var e=(0,r.useRef)(!1);return(0,r.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),(0,r.useCallback)(function(){return e.current},[])}}}]); -------------------------------------------------------------------------------- /html/static/544-11adb675082500d6.js: -------------------------------------------------------------------------------- 1 | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544],{86885:function(e,n,r){r.d(n,{Z:function(){return h}});var t=r(61706),a=r(45813),s=r(35250),o=r(61432),i=r(70079),l=r(48240),c=r(12762),u=r(98943),d=r(60814),p=r(74516),f=r(35e3),m=r(69858),v=r(77507);function h(e){var n=e.isOpen,r=e.onClose,h=(0,i.useRef)(null),x=(0,c.WS)(),g=(0,i.useState)(!1),b=g[0],y=g[1],w=(0,o.useRouter)(),j=(0,i.useCallback)(function(){x(u.s6.closeAccountPaymentModal),r()},[r,x]),Z=(0,i.useCallback)((0,t.Z)(function(){var e;return(0,a.__generator)(this,function(n){switch(n.label){case 0:y(!0),x(u.s6.clickAccountPaymentCheckout),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,d.ZP.submitCheckoutForm()];case 2:return e=n.sent(),w.push(e.url),[3,5];case 3:return n.sent(),p.m.warning("The payments page encountered an error. Please try again. If the problem continues, please email support@openai.com.",{hasCloseButton:!0}),[3,5];case 4:return y(!1),[7];case 5:return[2]}})}),[w,x,y]);return(0,s.jsxs)(f.x,{isOpen:n,onClose:r,focusRef:h,children:[(0,s.jsxs)("div",{className:"flex w-full flex-row items-center justify-between border-b py-3 px-4 dark:border-gray-700",children:[(0,s.jsx)("span",{className:"text-base font-semibold sm:text-base",children:"Your Account"}),(0,s.jsx)("button",{className:"text-gray-700 opacity-50 transition hover:opacity-75 dark:text-white",onClick:j,children:(0,s.jsx)(l.q5L,{className:"h-6 w-6"})})]}),(0,s.jsxs)("div",{className:"grid sm:grid-cols-2",children:[(0,s.jsx)("div",{className:"relative order-2 col-span-1 border-t border-r-0 dark:border-gray-700 sm:order-1 sm:border-t-0 sm:border-r",children:(0,s.jsx)(m.Oi,{rowElements:[(0,s.jsx)(m.Cu,{text:"Free Plan"},"row-free-plan-name"),(0,s.jsx)(m.hi,{variant:"disabled",disabled:!0,text:v.S.free.callToAction.active},"row-free-plan-button"),(0,s.jsx)(m.G,{variant:"secondary",text:v.S.free.demandAccess},"row-free-plan-demand"),(0,s.jsx)(m.G,{variant:"secondary",text:v.S.free.responseSpeed},"row-free-plan-speed"),(0,s.jsx)(m.G,{className:"sm:pb-2",variant:"secondary",text:v.S.free.modelFeatures},"row-free-plan-updates"),]})}),(0,s.jsx)("div",{className:"relative order-1 col-span-1 sm:order-2",children:(0,s.jsx)(m.Oi,{rowElements:[(0,s.jsx)(m.Cu,{text:v.S.plus.name,children:(0,s.jsx)("span",{className:"font-semibold text-gray-500",children:v.S.plus.costInDollars})},"row-plus-plan-title"),(0,s.jsx)(m.hi,{variant:"primary",disabled:b,isLoading:b,ref:h,onClick:Z,text:v.S.plus.callToAction.inactivePayment},"row-plus-plan-button"),(0,s.jsx)(m.G,{variant:"primary",text:v.S.plus.demandAccess},"row-plus-plan-demand"),(0,s.jsx)(m.G,{variant:"primary",text:v.S.plus.responseSpeed},"row-plus-plan-speed"),(0,s.jsx)(m.G,{className:"sm:pb-2",variant:"primary",text:v.S.plus.modelFeatures},"row-plus-plan-updates"),]})})]})]})}},35e3:function(e,n,r){r.d(n,{x:function(){return l}});var t=r(14806),a=r(35250),s=r(34303),o=r(73925);function i(){var e=(0,t.Z)(["flex grow items-center justify-center bg-white dark:bg-gray-900 rounded-md flex flex-col items-start overflow-hidden border shadow-md dark:border-gray-700"]);return i=function(){return e},e}var l=function(e){var n=e.children,r=e.isOpen,t=e.onClose,s=e.focusRef;return(0,a.jsx)(o.Z,{size:"fullscreen",isOpen:r,onModalClose:t,type:"success",title:"",className:"bg-transparent dark:bg-transparent",initialFocusRef:s,children:(0,a.jsx)("div",{className:"flex h-full flex-col items-center justify-start",children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)(c,{children:n})})})})},c=s.Z.div(i())},69858:function(e,n,r){r.d(n,{Cu:function(){return m},G:function(){return x},Oi:function(){return f},hi:function(){return h},nR:function(){return g}});var t=r(14806),a=r(35250),s=r(19841),o=r(48240),i=r(34303),l=r(39690),c=r(79876);function u(){var e=(0,t.Z)(["p-4 flex flex-col gap-3 bg-white z-20 relative dark:bg-gray-900"]);return u=function(){return e},e}function d(){var e=(0,t.Z)(["gap-2 flex flex-row justify-start items-center text-sm"]);return d=function(){return e},e}function p(){var e=(0,t.Z)(["text-xl font-semibold justify-between items-center flex"]);return p=function(){return e},e}var f=function(e){var n=e.rowElements;return(0,a.jsx)(b,{children:n.map(function(e){return e})})},m=function(e){var n=e.className,r=e.text,t=e.children;return(0,a.jsxs)(w,{className:n,children:[(0,a.jsx)("span",{children:r}),t]})},v={"primary-disabled":"border-none bg-gray-200 py-3 font-semibold hover:bg-gray-200",primary:"border-none py-3 font-semibold",disabled:"dark:text-gray-white border-none bg-gray-300 py-3 font-semibold text-gray-800 hover:bg-gray-300 dark:bg-gray-500 dark:opacity-100"},h=function(e){var n=e.isLoading,r=e.disabled,t=e.onClick,i=(e.className,e.variant),u=void 0===i?"primary":i,d=e.text,p=e.ref;return(0,a.jsxs)(l.z,{disabled:void 0!==r&&r,onClick:t,openNewTab:!0,ref:p,as:"button",className:(0,s.Z)(v[u]),children:[(0,a.jsx)("span",{className:(0,s.Z)({"text-gray-700":"primary-disabled"===u,"text-white":"primary"===u}),children:d}),void 0!==n&&n&&(0,a.jsx)(c.ZP,{className:"animate-spin",icon:o.dAq})]})},x=function(e){var n=e.variant,r=void 0===n?"primary":n,t=e.className,i=e.text;return(0,a.jsxs)(y,{className:t,children:[(0,a.jsx)(c.ZP,{icon:o._rq,className:(0,s.Z)("h-5 w-5",{"text-green-700":"primary"==r,"text-gray-400":"secondary"==r})}),(0,a.jsx)("span",{children:i})]})},g=function(e){var n=e.className,r=e.text,t=e.isLoading,s=e.onClick;return(0,a.jsx)(y,{className:n,children:(0,a.jsxs)("button",{onClick:s,className:"flex flex-row items-center space-x-1 underline",children:[(0,a.jsx)("span",{children:r}),t&&(0,a.jsx)(c.ZP,{className:"animate-spin",icon:o.dAq})]})})},b=i.Z.div(u()),y=i.Z.div(d()),w=i.Z.div(p())},77507:function(e,n,r){r.d(n,{S:function(){return t}});var t={free:{name:"Free Plan",callToAction:{active:"Your Current Plan",inactive:"Your Current Plan"},costInDollars:"",demandAccess:"Available when demand is low",responseSpeed:"Standard response speed",modelFeatures:"Regular model updates"},plus:{name:"ChatGPT Plus",callToAction:{active:"Your current plan",inactive:"I'm Interested",inactivePayment:"Upgrade plan"},costInDollars:"USD $20/mo",demandAccess:"Available even when demand is high",responseSpeed:"Faster response speed",modelFeatures:"Priority access to new features"},manageSubscription:{callToAction:"Manage my subscription"}}},32329:function(e,n,r){r.d(n,{Z:function(){return m},n:function(){return v}});var t=r(87762),a=r(62906),s=r(61432),o=r(70079),i=r(31501),l=r(61079),c=r(89874),u=r(60814),d=r(80836),p=r(36613),f=r(74516);function m(e){var n=e.threadId,r=e.accessToken,a=(0,s.useRouter)(),m=(0,t.a)(["conversation",n],function(){return u.ZP.getConversation(n,r,!1)},{enabled:Boolean(n),onError:function(){a.replace("/chat"),f.m.danger("Unable to load conversation ".concat(n))}}),v=m.data,h=m.isLoading,x=(0,o.useMemo)(function(){if(!v)return{thread:d.Cv.createTree(),currentLeafId:"root",threadId:null,title:"New chat",lastModelUsed:null};var e,n,r,t,s,o,u=(r=null===(n=Object.values(v.mapping).find(function(e){return null===e.parent}))||void 0===n?void 0:n.id,t=new Set,s=new Set,(v.moderation_results||[]).forEach(function(e){e.blocked?s.add(e.message_id):e.flagged&&t.add(e.message_id)}),{rootId:r,mapping:Object.keys(v.mapping).reduce(function(e,n){var r,a=v.mapping[n],o=a.parent,u=a.children,f=(0,c.Z)(a,["parent","children"]),m=v.mapping[n].message||d.Cv.createRootMessage();return s.has(m.id)?r=p.sK:t.has(m.id)&&(r=p.Mf),e[n]=(0,i.Z)((0,l.Z)((0,i.Z)({},f),{message:m,children:u||[],parentId:o||"",type:d.uV[d.Cv.getRoleFromMessage(m)]}),r&&{metadata:r}),e},{}),currentLeafId:v.current_node});return{thread:u.mapping||d.Cv.createTree(),currentLeafId:u.currentLeafId||u.rootId||"root",threadId:null===(o=a.query.chatId)||void 0===o?void 0:o[0],title:v.title||null,lastModelUsed:function e(n,r){var t,a,s=n[r];return(null==s?void 0:null===(t=s.message)||void 0===t?void 0:null===(a=t.metadata)||void 0===a?void 0:a.model_slug)?s.message.metadata.model_slug:(null==s?void 0:s.parentId)?e(n,s.parentId):(console.log("No model found in conversation tree"),null)}(u.mapping,u.currentLeafId)}},[v,a.query.chatId]);return(0,o.useMemo)(function(){return{threadData:x,isLoading:Boolean(n&&h)}},[h,x,n])}function v(){var e=(0,a.NL)();return(0,o.useCallback)(function(n){e.removeQueries(["conversation",n])},[e])}},49690:function(e,n,r){r.d(n,{Z:function(){return l}});var t=r(70079),a=r(12762),s=r(98943),o=r(82018),i=r(60814);function l(e,n,r,l,c,u,d){var p=(0,o.kP)().session,f=(0,a.WS)(l);(0,t.useEffect)(function(){i.ZP.setAccessToken(r),a.ZP.setUser(n,c,u,d),f(s.s6.pageLoad)},[]),(0,t.useEffect)(function(){(null==p?void 0:p.accessToken)&&i.ZP.setAccessToken(p.accessToken),(null==p?void 0:p.error)==="RefreshAccessTokenError"&&(console.error(p.error),window._oaiHandleSessionExpired("page load",p.error))},[p]),(0,t.useEffect)(function(){document.title=e},[e])}},66285:function(e,n,r){r.d(n,{hz:function(){return u},mA:function(){return l},nR:function(){return c}});var t=r(31501),a=r(61079),s=r(70079),o=r(59268),i={lastUpdated:Date.now()},l=(0,o.ZP)()(function(e){return(0,a.Z)((0,t.Z)({},i),{resetAccount:function(){e(i)},updateAccountPlanWithResponse:function(n){var r,t,a;e({accountPlan:{hasPaidSubscription:(null==n?void 0:null===(r=n.account_plan)||void 0===r?void 0:r.is_paid_subscription_active)||!1,subscriptionPlan:(null==n?void 0:null===(t=n.account_plan)||void 0===t?void 0:t.subscription_plan)||"chatgptplusfreeplan",accountUserRole:(null==n?void 0:null===(a=n.account_plan)||void 0===a?void 0:a.account_user_role)||"account-owner"},features:(null==n?void 0:n.features)||[]})}})}),c=function(){return l(function(e){var n;return null===(n=e.accountPlan)||void 0===n?void 0:n.hasPaidSubscription})},u=function(){var e=l(function(e){return e.features});return(0,s.useMemo)(function(){return new Set(e)},[e])}},27252:function(e,n,r){r.d(n,{g:function(){return l}});var t=r(33861),a=r(31501),s=r(61079),o=r(59268),i={flags:{isUserInCanPayGroup:!1,projectWish:!1,highlightPlusUpgrade:!1,failwhaleBypassEnabled:!1}},l=(0,o.ZP)()(function(e,n){return(0,s.Z)((0,a.Z)({},i),{updateFlagValue:function(r,o){var i=n().flags;e({flags:(0,s.Z)((0,a.Z)({},i),(0,t.Z)({},r,o))})}})})}}]); -------------------------------------------------------------------------------- /html/static/762-8a07cc8650f560d4.js: -------------------------------------------------------------------------------- 1 | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[762],{10538:function(t,e,r){/** 2 | * @license React 3 | * use-sync-external-store-shim.production.min.js 4 | * 5 | * Copyright (c) Facebook, Inc. and its affiliates. 6 | * 7 | * This source code is licensed under the MIT license found in the 8 | * LICENSE file in the root directory of this source tree. 9 | */ var s=r(70079),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=s.useState,u=s.useEffect,o=s.useLayoutEffect,l=s.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!i(t,r)}catch(s){return!0}}function a(t,e){return e()}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?a:function(t,e){var r=e(),s=n({inst:{value:r,getSnapshot:e}}),i=s[0].inst,a=s[1];return o(function(){i.value=r,i.getSnapshot=e,c(i)&&a({inst:i})},[t,r,e]),u(function(){return c(i)&&a({inst:i}),t(function(){c(i)&&a({inst:i})})},[t]),l(r),r};e.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:h},31178:function(t,e,r){t.exports=r(10538)},89335:function(t,e,r){r.d(e,{z:function(){return l}});var s=r(49043),i=r(42422),n=r(31406),u=r(94521),o=r(99695);class l extends u.l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.length&&(this.currentQuery.addObserver(this),c(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return a(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return a(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),(0,s.VS)(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();let n=this.hasListeners();n&&h(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(e),n&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();let u=this.computeRefetchInterval();n&&(this.currentQuery!==i||this.options.enabled!==r.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)}getOptimisticResult(t){let e=this.client.getQueryCache().build(this.client,t);return this.createResult(e,t)}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(r=>{Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,e);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(s.ZT)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),s.sk||this.currentResult.isStale||!(0,s.PN)(this.options.staleTime))return;let t=(0,s.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!s.sk&&!1!==this.options.enabled&&(0,s.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||n.j.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let r=this.currentQuery,i=this.options,n=this.currentResult,u=this.currentResultState,l=this.currentResultOptions,a=t!==r,p=a?t.state:this.currentQueryInitialState,f=a?this.currentResult:this.previousQueryResult,{state:y}=t,{dataUpdatedAt:v,error:R,errorUpdatedAt:b,fetchStatus:m,status:S}=y,E=!1,Q=!1,g;if(e._optimisticResults){let I=this.hasListeners(),C=!I&&c(t,e),O=I&&h(t,r,e,i);(C||O)&&(m=(0,o.Kw)(t.options.networkMode)?"fetching":"paused",v||(S="loading")),"isRestoring"===e._optimisticResults&&(m="idle")}if(e.keepPreviousData&&!y.dataUpdatedAt&&null!=f&&f.isSuccess&&"error"!==S)g=f.data,v=f.dataUpdatedAt,S=f.status,E=!0;else if(e.select&&void 0!==y.data){if(n&&y.data===(null==u?void 0:u.data)&&e.select===this.selectFn)g=this.selectResult;else try{this.selectFn=e.select,g=e.select(y.data),g=(0,s.oE)(null==n?void 0:n.data,g,e),this.selectResult=g,this.selectError=null}catch(T){this.selectError=T}}else g=y.data;if(void 0!==e.placeholderData&&void 0===g&&"loading"===S){let w;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==l?void 0:l.placeholderData))w=n.data;else if(w="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==w)try{w=e.select(w),this.selectError=null}catch(F){this.selectError=F}void 0!==w&&(S="success",g=(0,s.oE)(null==n?void 0:n.data,w,e),Q=!0)}this.selectError&&(R=this.selectError,g=this.selectResult,b=Date.now(),S="error");let U="fetching"===m,k="loading"===S,x="error"===S,P={status:S,fetchStatus:m,isLoading:k,isSuccess:"success"===S,isError:x,isInitialLoading:k&&U,data:g,dataUpdatedAt:v,error:R,errorUpdatedAt:b,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!k,isLoadingError:x&&0===y.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:Q,isPreviousData:E,isRefetchError:x&&0!==y.dataUpdatedAt,isStale:d(t,e),refetch:this.refetch,remove:this.remove};return P}updateResult(t){let e=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,(0,s.VS)(r,e))return;this.currentResult=r;let i={cache:!0};(null==t?void 0:t.listeners)!==!1&&(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options;if("all"===t||!t&&!this.trackedProps.size)return!0;let r=new Set(null!=t?t:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(t=>{let s=this.currentResult[t]!==e[t];return s&&r.has(t)})})()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||(0,o.DV)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){i.V.batch(()=>{var e,r,s,i,n,u,o,l;t.onSuccess?(null==(e=(r=this.options).onSuccess)||e.call(r,this.currentResult.data),null==(s=(i=this.options).onSettled)||s.call(i,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(o=(l=this.options).onSettled)||o.call(l,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(t=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function c(t,e){var r,s;return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&a(t,e,e.refetchOnMount)}function a(t,e,r){if(!1!==e.enabled){let s="function"==typeof r?r(t):r;return"always"===s||!1!==s&&d(t,e)}return!1}function h(t,e,r,s){return!1!==r.enabled&&(t!==e||!1===s.enabled)&&(!r.suspense||"error"!==t.state.status)&&d(t,r)}function d(t,e){return t.isStaleByTime(e.staleTime)}},56137:function(t,e,r){r.d(e,{r:function(){return S}});var s=r(70079),i=r(39858),n=r(42422);let u,o=s.createContext((u=!1,{clearReset(){u=!1},reset(){u=!0},isReset:()=>u})),l=()=>s.useContext(o);var c=r(62906);let a=s.createContext(!1),h=()=>s.useContext(a);a.Provider;var d=r(83793);let p=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},f=t=>{s.useEffect(()=>{t.clearReset()},[t])},y=({result:t,errorResetBoundary:e,useErrorBoundary:r,query:s})=>t.isError&&!e.isReset()&&!t.isFetching&&(0,d.L)(r,[t.error,s]),v=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},R=(t,e)=>t.isLoading&&t.isFetching&&!e,b=(t,e,r)=>(null==t?void 0:t.suspense)&&R(e,r),m=(t,e,r)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{r.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function S(t,e){let r=(0,c.NL)({context:t.context}),u=h(),o=l(),a=r.defaultQueryOptions(t);a._optimisticResults=u?"isRestoring":"optimistic",a.onError&&(a.onError=n.V.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=n.V.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=n.V.batchCalls(a.onSettled)),v(a),p(a,o),f(o);let[d]=s.useState(()=>new e(r,a)),R=d.getOptimisticResult(a);if((0,i.$)(s.useCallback(t=>u?()=>void 0:d.subscribe(n.V.batchCalls(t)),[d,u]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),s.useEffect(()=>{d.setOptions(a,{listeners:!1})},[a,d]),b(a,R,u))throw m(a,d,o);if(y({result:R,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:d.getCurrentQuery()}))throw R.error;return a.notifyOnChangeProps?R:d.trackResult(R)}},87762:function(t,e,r){r.d(e,{a:function(){return u}});var s=r(49043),i=r(89335),n=r(56137);function u(t,e,r){let u=(0,s._v)(t,e,r);return(0,n.r)(u,i.z)}},39858:function(t,e,r){r.d(e,{$:function(){return i}});var s=r(31178);let i=s.useSyncExternalStore},83793:function(t,e,r){r.d(e,{L:function(){return s}});function s(t,e){return"function"==typeof t?t(...e):!!t}}}]); -------------------------------------------------------------------------------- /html/static/814-f4965bec58d0356a.js: -------------------------------------------------------------------------------- 1 | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[814],{60814:function(e,t,n){n.d(t,{ZP:function(){return C}});var o=n(61706),i=n(35025),r=n(9135),a=n(31501),s=n(61079),c=n(42928),h=n(45813),u=n(48879),d=n(44928);n(138);var l=n(34388),p=n(22832),f=n(25829),g=n(19818),m=function(e){(0,p.Z)(n,e);var t=(0,g.Z)(n);function n(e,o,r,a){var s;return(0,i.Z)(this,n),(s=t.call(this,e)).name="UserError",s.userMessage=e,s.status=o||400,s.code=r||null,s.type=a||null,s}return n}((0,f.Z)(Error)),y=function(e){(0,p.Z)(n,e);var t=(0,g.Z)(n);function n(){var e,o,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"An error occurred. If this issue persists please contact us through our help center at help.openai.com.",a=arguments.length>1?arguments[1]:void 0;return(0,i.Z)(this,n),(e=t.call(this,(o=r,o&&(o.startsWith("Rate limit reached for")||o.startsWith("End-user exceeded rate-limit"))?"We're sorry, but we limit the number of requests one user can make in a certain timeframe. Please hang tight and try again in a little while.":o))).name="FatalError",e.type=a||null,e}return n}((0,f.Z)(Error)),v=n(24638),T="/backend-api",_=["cf-ipcountry"],A=function(){function e(){(0,i.Z)(this,e)}return e.setAccessToken=function(e){this.accessToken=e},e.getAuthHeader=function(e){return{Authorization:"Bearer ".concat(e||this.accessToken)}},e.refreshApiKey=function(){var e=this;if(this.apiKeyRefreshing)return this.apiKeyRefreshing;var t=this;return this.apiKeyRefreshing=(0,o.Z)(function(){var e;return(0,h.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,d.getSession)()];case 1:return(e=n.sent())&&t.setAccessToken(e.accessToken),[2];case 2:throw Error("Cannot refresh access token outside of browser");case 3:return[2]}})})(),setTimeout(function(){e.apiKeyRefreshing=null},6e4),this.apiKeyRefreshing},e.fetch=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this;return(0,o.Z)(function(){var o,r,c,u,d,l;return(0,h.__generator)(this,function(h){switch(h.label){case 0:return[4,fetch(e,o=(0,a.Z)({credentials:"include"},t))];case 1:if((r=h.sent()).status>=500)throw new y;if(!(r.status>=400))return[3,12];h.label=2;case 2:return h.trys.push([2,4,,5]),[4,r.json()];case 3:return c=(null==(u=h.sent())?void 0:u.detail)||(null==u?void 0:u.error),[3,5];case 4:return d=h.sent(),console.error("Failed to parse error response",d),[3,5];case 5:if(console.error("API error",e,c),!((null==c?void 0:c.code)==="expired_session_key"||(null==c?void 0:c.code)==="token_expired"))return[3,11];h.label=6;case 6:if(h.trys.push([6,9,,10]),n.isRetry)return[3,8];return[4,i.refreshApiKey()];case 7:return h.sent(),[2,i.fetch(e,o,(0,s.Z)((0,a.Z)({},n),{isRetry:!0}))];case 8:return[3,10];case 9:return l=h.sent(),console.error("Failed to refresh expired access token: ".concat(l)),[3,10];case 10:console.error("Refresh access token failed when retrieving",e,c),window._oaiHandleSessionExpired("fetch",JSON.stringify(c)),h.label=11;case 11:if(null==c?void 0:c.type)throw new m((null==c?void 0:c.message)||c,r.status,null==c?void 0:c.code,null==c?void 0:c.type);throw new y;case 12:if(204===r.status)return[2,{}];return[2,r.json()]}})})()},e.getArtifacts=function(){return this.fetch("".concat(T,"/artifacts"),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader())})},e.createArtifact=function(e){return this.fetch("".concat(T,"/artifacts"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify({url:e,contents:"\n"})})},e.sendDocument=function(){return this.fetch("".concat(T,"/private"),{method:"GET",headers:{"Content-Type":"application/json"}})},e.getRetrievalResults=function(e){return this.fetch("".concat(T,"/retrieval/public_data"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify({query:e})})},e.getModels=function(e){return this.fetch("".concat(T,"/models"),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(e))})},e.getConversations=function(e,t,n){var o=new URLSearchParams({offset:e.toString(),limit:t.toString()});return this.fetch("".concat(T,"/conversations?").concat(o),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(n))})},e.getConversation=function(e,t,n){var o=n?"".concat(v.env.INTERNAL_API_URL,"/api"):T;return this.fetch("".concat(o,"/conversation/").concat(e),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(t))})},e.generateTitle=function(e,t,n){return this.fetch("".concat(T,"/conversation/gen_title/").concat(e),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify({message_id:t,model:n})})},e.patchConversation=function(e,t){return this.fetch("".concat(T,"/conversation/").concat(e),{method:"PATCH",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify(t)})},e.deleteConversations=function(){return this.fetch("".concat(T,"/conversations"),{method:"PATCH",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify({is_visible:!1})})},e.getLoginLink=function(e){return this.fetch("".concat(T,"/bypass/link"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})})},e.publicApiCompletionStream=function(e,t,n){var i=this;return(0,o.Z)(function(){var s,c,d;return(0,h.__generator)(this,function(d){return s=new AbortController,c={action:t.completionType,messages:t.messages.length>0?t.messages:void 0,conversation_id:t.threadId,parent_message_id:t.parentMessageId,model:e.model,plugins:t.threadId?void 0:t.enabledPluginIds},(0,u.L)("".concat("/backend-api","/conversation"),{method:"POST",credentials:"include",headers:(0,a.Z)({"Content-Type":"application/json"},i.getAuthHeader()),body:JSON.stringify(c),signal:s.signal,openWhenHidden:!0,onopen:function(e){return(0,o.Z)(function(){var t,n,o;return(0,h.__generator)(this,function(i){switch(i.label){case 0:if(t=e.headers.get("content-type")||"",e.ok&&t.includes("text/event-stream"))return[2];if(!t.includes("application/json"))return[3,2];return[4,e.json()];case 1:if(n=i.sent(),console.error(n),o=(null==n?void 0:n.error)||(null==n?void 0:n.detail)){if(e.status>=500)throw new y((null==o?void 0:o.message)||o);throw((null==o?void 0:o.code)==="expired_session_key"||(null==o?void 0:o.code)==="invalid_api_key"||(null==o?void 0:o.code)==="token_expired")&&window._oaiHandleSessionExpired("stream",JSON.stringify(o)),new m((null==o?void 0:o.message)||o,e.status,null==o?void 0:o.code,null==o?void 0:o.type)}i.label=2;case 2:throw new y}})})()},onmessage:function(e){if("[DONE]"===e.data)s.abort(),n({finish_reason:"stop"});else if("ping"===e.event);else try{var t=JSON.parse(e.data);if(t.error)throw new y(t.error.message);n({message:t.message,threadId:t.conversation_id})}catch(o){if((0,l.TV)(o))throw new y(o.message)}},onerror:function(e){throw"Failed to fetch"===e.message&&(e=new y("An error occurred. Either the engine you requested does not exist or there was another issue processing your request. If this issue persists please contact us through our help center at help.openai.com.")),n({err:e}),e}}).catch(function(e){(0,r.Z)(e,m)||(0,r.Z)(e,y)||console.error(e)}),[2,s]})})()},e.runModerationApi=function(e,t,n){return this.fetch("".concat("/backend-api","/moderations"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify({input:e,model:"text-moderation-playground",conversation_id:t,message_id:n})})},e.submitMessageFeedback=function(e){return this.fetch("".concat(T,"/conversation/message_feedback"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader()),body:JSON.stringify(e)})},e.getRateLimitCaptchaId=function(e){var t=this;return(0,o.Z)(function(){return(0,h.__generator)(this,function(n){switch(n.label){case 0:return[4,t.fetch("".concat(T,"/check_data_captcha"),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},t.getAuthHeader(e))})];case 1:return[2,n.sent()]}})})()},e.getRateLimitCaptchaItem=function(e,t){return this.fetch("".concat(T,"/data_captcha/").concat(e),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(t))})},e.getCaptchaDisplayStatus=function(e){return this.fetch("".concat(T,"/crosswalk"),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(e))})},e.submitRateLimitCaptchaResponse=function(e,t){return this.fetch("".concat(T,"/data_captcha/").concat(e.captchaId),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(t)),body:JSON.stringify({payload:e.payload,metadata:e.metadata})})},e.submitCheckoutForm=function(){return this.fetch("".concat(T,"/payments/checkout"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader())})},e.fetchCustomerPortalUrl=function(e){return this.fetch("".concat(T,"/payments/customer_portal"),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(e))})},e.getAccountStatus=function(e,t,n){var o=n?"".concat(v.env.INTERNAL_API_URL,"/api"):T,i=(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(e));if(t){var r={},s=!0,h=!1,u=void 0;try{for(var d,l=Object.entries(t)[Symbol.iterator]();!(s=(d=l.next()).done);s=!0){var p=(0,c.Z)(d.value,2),f=p[0],g=p[1];_.includes(f.toLowerCase())&&(r[f]=g)}}catch(m){h=!0,u=m}finally{try{s||null==l.return||l.return()}finally{if(h)throw u}}i=(0,a.Z)({},r,i)}return this.fetch("".concat(o,"/accounts/check"),{method:"GET",headers:i})},e.postAccountStatusWithCustomerSessionId=function(e,t){return this.fetch("".concat(v.env.INTERNAL_API_URL,"/api/payments/checkout_session"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(t)),body:JSON.stringify({stripe_checkout_session_id:e})})},e.getPlugins=function(e){var t=e.offset,n=e.limit,o=e.isInstalled,i=e.accessToken,r={offset:t.toString(),limit:n.toString()};o&&(r.is_installed="true");var s=new URLSearchParams(r);return this.fetch("".concat(T,"/aip?").concat(s),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(i))})},e.getPluginByDomain=function(e){var t=e.domain,n=e.accessToken,o=new URLSearchParams({offset:"0",limit:"1",domains:t});return this.fetch("".concat(T,"/aip?").concat(o),{method:"GET",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(n))}).then(function(e){return 0===e.items.length?null:e.items[0]})},e.getOrCreatePlugin=function(e){var t=e.domain,n=e.manifestAccessToken,o=e.accessToken;return this.fetch("".concat(T,"/aip"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(o)),body:JSON.stringify({domain:t,manifest_access_token:n})})},e.updatePlugin=function(e){var t=e.id,n=e.isInstalled,o=e.accessToken;return this.fetch("".concat(T,"/aip/").concat(t),{method:"PATCH",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(o)),body:JSON.stringify({is_installed:n})})},e.setPluginUserHttpToken=function(e){var t=e.id,n=e.userAccessToken,o=e.accessToken;return this.fetch("".concat(T,"/aip/").concat(t,"/auth/user_http"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(o)),body:JSON.stringify({access_token:n})})},e.setPluginServiceHttpToken=function(e){var t=e.id,n=e.serviceAccessToken,o=e.accessToken;return this.fetch("".concat(T,"/aip/").concat(t,"/auth/service_http"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(o)),body:JSON.stringify({access_token:n})})},e.setPluginOauthInfo=function(e){var t=e.id,n=e.clientId,o=e.clientSecret,i=e.accessToken;return this.fetch("".concat(T,"/aip/").concat(t,"/auth/oauth"),{method:"POST",headers:(0,a.Z)({"Content-Type":"application/json"},this.getAuthHeader(i)),body:JSON.stringify({client_id:n,client_secret:o})})},e}();A.auth0Client=null;var C=A}}]); -------------------------------------------------------------------------------- /html/static/979-429205346ba16ee3.js: -------------------------------------------------------------------------------- 1 | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[979],{48879:function(t,e,r){"use strict";async function n(t,e){let r=t.getReader(),n;for(;!(n=await r.read()).done;)e(n.value)}function i(){return{data:"",event:"",id:"",retry:void 0}}r.d(e,{L:function(){return l}});var o=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);ie.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r};let a="text/event-stream",s="last-event-id";function l(t,e){var{signal:r,headers:l,onopen:u,onmessage:f,onclose:g,onerror:d,openWhenHidden:p,fetch:h}=e,m=o(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((e,o)=>{let b=Object.assign({},l);b.accept||(b.accept=a);let v;function w(){v.abort(),document.hidden||T()}p||document.addEventListener("visibilitychange",w);let y=1e3,x=0;function k(){document.removeEventListener("visibilitychange",w),window.clearTimeout(x),v.abort()}null==r||r.addEventListener("abort",()=>{k(),e()});let A=null!=h?h:window.fetch,S=null!=u?u:c;async function T(){var r,a;v=new AbortController;try{let l=await A(t,Object.assign(Object.assign({},m),{headers:b,signal:v.signal}));await S(l);let c,u,p,h;await n(l.body,(a=function(t,e,r){let n=i(),o=new TextDecoder;return function(a,s){if(0===a.length)null==r||r(n),n=i();else if(s>0){let l=o.decode(a.subarray(0,s)),c=s+(32===a[s+1]?2:1),u=o.decode(a.subarray(c));switch(l){case"data":n.data=n.data?n.data+"\n"+u:u;break;case"event":n.event=u;break;case"id":t(n.id=u);break;case"retry":let f=parseInt(u,10);isNaN(f)||e(n.retry=f)}}}}(t=>{t?b[s]=t:delete b[s]},t=>{y=t},f),h=!1,function(t){void 0===c?(c=t,u=0,p=-1):c=function(t,e){let r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}(c,t);let e=c.length,r=0;for(;u/g,f=/"/g,g=/"/g,d=/&#([a-zA-Z0-9]*);?/gim,p=/:?/gim,h=/&newline;?/gim,m=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,b=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/u\s*r\s*l\s*\(.*/gi;function w(t){return t.replace(f,""")}function y(t){return t.replace(g,'"')}function x(t){return t.replace(d,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})}function k(t){return t.replace(p,":").replace(h," ")}function A(t){for(var e="",r=0,n=t.length;rt.charCodeAt(r)?" ":t.charAt(r);return o.trim(e)}function S(t){return t=A(t=k(t=x(t=y(t))))}function T(t){return t=l(t=w(t))}function I(){return""}e.whiteList=a(),e.getDefaultWhiteList=a,e.onTag=function(t,e,r){},e.onIgnoreTag=function(t,e,r){},e.onTagAttr=function(t,e,r){},e.onIgnoreTagAttr=function(t,e,r){},e.safeAttrValue=function(t,e,r,n){if(r=S(r),"href"===e||"src"===e){if("#"===(r=o.trim(r)))return"#";if(!("http://"===r.substr(0,7)||"https://"===r.substr(0,8)||"mailto:"===r.substr(0,7)||"tel:"===r.substr(0,4)||"data:image/"===r.substr(0,11)||"ftp://"===r.substr(0,6)||"./"===r.substr(0,2)||"../"===r.substr(0,3)||"#"===r[0]||"/"===r[0]))return""}else if("background"===e){if(m.lastIndex=0,m.test(r))return""}else if("style"===e){if(b.lastIndex=0,b.test(r)||(v.lastIndex=0,v.test(r)&&(m.lastIndex=0,m.test(r))))return"";!1!==n&&(r=(n=n||s).process(r))}return r=T(r)},e.escapeHtml=l,e.escapeQuote=w,e.unescapeQuote=y,e.escapeHtmlEntities=x,e.escapeDangerHtml5Entities=k,e.clearNonPrintableCharacter=A,e.friendlyAttrValue=S,e.escapeAttrValue=T,e.onIgnoreTagStripAll=I,e.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var r=!Array.isArray(t),n=[],i=!1;return{onIgnoreTag:function(a,s,l){if(c=a,r?0:-1===o.indexOf(t,c))return e(a,s,l);if(!l.isClosing)return i||(i=l.position),"[removed]";var c,u="[/removed]",f=l.position+u.length;return n.push([!1!==i?i:l.position,f,]),i=!1,u},remove:function(t){var e="",r=0;return o.forEach(n,function(n){e+=t.slice(r,n[0]),r=n[1]}),e+=t.slice(r)}}},e.stripCommentTag=function(t){for(var e="",r=0;r",n);if(-1===i)break;r=i+3}return e},e.stripBlankChar=function(t){var e=t.split("");return(e=e.filter(function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||10===e||13===e)})).join("")},e.cssFilter=s,e.getDefaultCSSWhiteList=i},138:function(t,e,r){var n=r(56855),i=r(43310),o=r(91611);function a(t,e){return new o(e).process(t)}(e=t.exports=a).filterXSS=a,e.FilterXSS=o,function(){for(var t in n)e[t]=n[t];for(var r in i)e[r]=i[r]}(),"undefined"!=typeof window&&(window.filterXSS=t.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)},43310:function(t,e,r){var n=r(12665);function i(t){var e,r=n.spaceIndex(t);return e=-1===r?t.slice(1,-1):t.slice(1,r+1),"/"===(e=n.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}function o(t){return"0;e--){var r=t[e];if(" "!==r){if("="===r)return e;return -1}}}function u(t){var e;return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]?t.substr(1,t.length-2):t}e.parseTag=function(t,e,r){"use strict";var n="",a=0,s=!1,l=!1,c=0,u=t.length,f="",g="";chariterator:for(c=0;c"===d||c===u-1){n+=r(t.slice(a,s)),f=i(g=t.slice(s,c+1)),n+=e(s,n.length,f,g,o(g)),a=c+1,s=!1;continue}if('"'===d||"'"===d)for(var p=1,h=t.charAt(c-p);""===h.trim()||"="===h;){if("="===h){l=d;continue chariterator}h=t.charAt(c-++p)}}else if(d===l){l=!1;continue}}return a";var v=function t(e){var r=l.spaceIndex(e);if(-1===r)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=l.trim(e.slice(r+1,-1)))[e.length-1];return n&&(e=l.trim(e.slice(0,-1))),{html:e,closing:n}}(a),w=r[i],y=s(v.html,function(t,e){var r=-1!==l.indexOf(w,t),n=u(i,t,e,r);return c(n)?r?(e=g(i,t,e,p))?t+'="'+e+'"':t:(n=f(i,t,e,r),c(n))?void 0:n:n});return a="<"+i,y&&(a+=" "+y),v.closing&&(a+=" /"),a+=">"}return(b=o(i,a,m),c(b))?d(a):b},d);return h&&(m=h.remove(m)),m},t.exports=u},59268:function(t,e,r){"use strict";r.d(e,{ZP:function(){return c}});let n=t=>{let e,r=new Set,n=(t,n)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let o=e;e=(null!=n?n:"object"!=typeof i)?i:Object.assign({},e,i),r.forEach(t=>t(e,o))}},i=()=>e,o=t=>(r.add(t),()=>r.delete(t)),a=()=>r.clear(),s={setState:n,getState:i,subscribe:o,destroy:a};return e=t(n,i,s),s},i=t=>t?n(t):n;var o=r(70079),a=r(92280);let{useSyncExternalStoreWithSelector:s}=a,l=t=>{let e="function"==typeof t?i(t):t,r=(t,r)=>(function(t,e=t.getState,r){let n=s(t.subscribe,t.getState,t.getServerState||t.getState,e,r);return(0,o.useDebugValue)(n),n})(e,t,r);return Object.assign(r,e),r},c=t=>t?l(t):l}}]); -------------------------------------------------------------------------------- /html/static/_buildManifest.js: -------------------------------------------------------------------------------- 1 | self.__BUILD_MANIFEST=function(a,c,s,t,e,u,h,n,i,p,d){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[a,t,"static/chunks/pages/index-922fe4b221d3abad.js"],"/_error":["static/chunks/pages/_error-786d27d84962122a.js"],"/account/cancel":["static/chunks/pages/account/cancel-1c0d62f7e98cea5a.js"],"/account/manage":["static/chunks/pages/account/manage-515510f9fdcd7b92.js"],"/account/upgrade":[a,c,e,s,u,h,"static/chunks/pages/account/upgrade-99f3f002f49dd620.js"],"/auth/error":["static/chunks/pages/auth/error-31ef8e5e6df49f9f.js"],"/auth/ext_callback":["static/chunks/pages/auth/ext_callback-baf79c4e561306c1.js"],"/auth/login":[c,s,n,"static/chunks/pages/auth/login-d0b0e0f80c0ac0b6.js"],"/auth/logout":[a,"static/chunks/pages/auth/logout-0abf409a2bbf22c9.js"],"/auth/mocked_login":[a,"static/chunks/pages/auth/mocked_login-28119a8b1a5c2bce.js"],"/bypass":["static/chunks/pages/bypass-df27e0f8a3e360f1.js"],"/captcha/queue-empty":["static/chunks/pages/captcha/queue-empty-8e14c71d88e32267.js"],"/captcha/[captchaId]/processing":[a,c,s,"static/chunks/pages/captcha/[captchaId]/processing-65893bb25c2e69fd.js"],"/captcha/[...captchaId]":[i,a,c,t,e,p,s,u,d,"static/chunks/pages/captcha/[...captchaId]-c2d8cbf7a75baca8.js"],"/chat/[[...chatId]]":[i,a,c,t,e,p,"static/chunks/798-92621067ddb78625.js",s,u,d,h,"static/chunks/pages/chat/[[...chatId]]-c18e9cd293a366ce.js"],"/error":[a,t,"static/chunks/pages/error-d9c1856486df653e.js"],"/payments/success":[a,c,"static/chunks/597-49cb14d11dcc6a86.js",s,"static/chunks/pages/payments/success-b6506de7d9d5f99e.js"],"/rate-limit":[a,c,s,"static/chunks/pages/rate-limit-dc45693764df2371.js"],"/status":[c,s,n,"static/chunks/pages/status-c21fbedbcbc28112.js"],sortedPages:["/","/_app","/_error","/account/cancel","/account/manage","/account/upgrade","/auth/error","/auth/ext_callback","/auth/login","/auth/logout","/auth/mocked_login","/bypass","/captcha/queue-empty","/captcha/[captchaId]/processing","/captcha/[...captchaId]","/chat/[[...chatId]]","/error","/payments/success","/rate-limit","/status"]}}("static/chunks/762-8a07cc8650f560d4.js","static/chunks/979-429205346ba16ee3.js","static/chunks/814-f4965bec58d0356a.js","static/chunks/424-7f7835d330adbaab.js","static/chunks/271-47b1899a62a6d998.js","static/chunks/358-b6c60d8f4986d481.js","static/chunks/544-11adb675082500d6.js","static/chunks/745-f60cd68f2406c19f.js","static/chunks/1f110208-44a6f43ddc5e9011.js","static/chunks/875-7f46e56c461a6f28.js","static/chunks/501-ef4ff1cd9d76b348.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); -------------------------------------------------------------------------------- /html/static/_ssgManifest.js: -------------------------------------------------------------------------------- 1 | self.__SSG_MANIFEST=new Set,self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB(); -------------------------------------------------------------------------------- /html/static/a.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /html/static/a_data/invisible.js: -------------------------------------------------------------------------------- 1 | ~function(eV,eA,eB,eG,eL,eM,eN,eO,eP,eQ,eS){eV=b,function(c,d,eU,e,f){for(eU=b,e=c();!![];)try{if(f=parseInt(eU(359))/1*(-parseInt(eU(371))/2)+-parseInt(eU(517))/3*(parseInt(eU(419))/4)+parseInt(eU(365))/5*(-parseInt(eU(463))/6)+-parseInt(eU(279))/7+parseInt(eU(185))/8*(-parseInt(eU(592))/9)+parseInt(eU(298))/10*(-parseInt(eU(173))/11)+parseInt(eU(301))/12,f===d)break;else e.push(e.shift())}catch(g){e.push(e.shift())}}(a,630302),eA=this||self,eB=eA[eV(363)],eG=function(c,f6,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){for(f6=eV,d={'RsiNZ':function(u,v,w,x,y,z,A,B){return u(v,w,x,y,z,A,B)},'ozWUT':function(u,v,w,x,y,z,A,B){return u(v,w,x,y,z,A,B)},'kPztP':function(u,v){return v|u},'cRLWM':function(u,v){return u-v},'Cvtvt':function(u,v,w){return u(v,w)},'jVciT':function(u,v){return u&v},'epcGn':function(u,v){return u!=v}},e=f6(580)[f6(374)]('|'),f=0;!![];){switch(e[f++]){case'0':g={'qDOqg':f6(401),'UDCgI':function(u,v,w,x,y,z,A,B,f7){return f7=f6,d[f7(395)](u,v,w,x,y,z,A,B)},'ZWBPl':function(u,v,w,x,y,z,A,B,f8){return f8=f6,d[f8(395)](u,v,w,x,y,z,A,B)},'DGojv':function(u,v,w,x,y,z,A,B,f9){return f9=f6,d[f9(395)](u,v,w,x,y,z,A,B)},'TQclG':function(u,v,w,x,y,z,A,B){return u(v,w,x,y,z,A,B)},'lgXdg':function(u,v,w,x,y,z,A,B){return u(v,w,x,y,z,A,B)},'iBkaR':function(u,v,w,x,y,z,A,B,fa){return fa=f6,d[fa(395)](u,v,w,x,y,z,A,B)},'QYHzP':function(u,v,w){return u(v,w)},'ORdrs':function(u,v,w,x,y,z,A,B){return u(v,w,x,y,z,A,B)},'MkzKp':function(u,v,w,x,y,z,A,B,fb){return fb=f6,d[fb(222)](u,v,w,x,y,z,A,B)},'EzAnz':function(u,v,w){return u(v,w)},'NZMQX':function(u,v,w){return u(v,w)},'fOyJz':function(u,v){return u<>v},'GwmDg':function(u,v){return u<>v},'IxvVT':function(u,v,w,fe){return fe=f6,d[fe(307)](u,v,w)},'AZByy':function(u,v,w){return u(v,w)},'ABFra':function(u,v){return u+v},'dblqq':function(u,v){return u+v},'IfWHx':function(u,v){return u+v},'BqYaq':function(u,v){return u<>v},'MnFGh':function(u,v){return u(v)},'rFZnI':function(u,v){return u+v},'bipQQ':function(u,v){return u>>v}};continue;case'1':h=function(u,v,w,y,z,A,B,fg){return fg=f6,g[fg(133)](n,g[fg(167)](v,w)^y,u,v,z,A,B)};continue;case'2':return p(c);case'3':i=function(u,fh,v,w){for(fh=f6,v=[],w=0;w<64;v[w>>2]=g[fh(480)](g[fh(468)](u[fh(515)](w),u[fh(515)](w+1)<<8.9)+(u[fh(515)](g[fh(494)](w,2))<<16),g[fh(570)](u[fh(515)](g[fh(468)](w,3)),24)),w+=4);return v};continue;case'4':j=function(u,fi,v,w){for(fi=f6,v='',w=0;g[fi(135)](w,4);v+=o[g[fi(152)](g[fi(187)](u,g[fi(343)](8*w,4)),15)]+o[g[fi(152)](g[fi(492)](u,w*8),15)],w++);return v};continue;case'5':k=function(u,v,w,y,z,A,B,fj){return fj=f6,n(g[fj(576)](g[fj(157)](v,w),~v&y),u,v,z,A,B)};continue;case'6':l=function(u,fk,v,w,x,y){for(fk=f6,v=u[fk(237)],w=[1732584193,-271733879,-1732584194,271733878],x=64;x<=u[fk(237)];r(w,i(u[fk(605)](x-64,x))),x+=64);for(u=u[fk(605)](g[fk(403)](x,64)),y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;g[fk(565)](x,u[fk(237)]);y[g[fk(417)](x,2)]|=g[fk(478)](u[fk(515)](x),g[fk(376)](x,4)<<3),x++);if(y[g[fk(187)](x,2)]|=128<55){for(g[fk(306)](r,w,y),x=0;x<16;y[x]=0,x++);}return y[14]=v*8,g[fk(514)](r,w,y),w};continue;case'7':m=function(u,fl,v){for(fl=f6,v=0;v>>32-z,w)};continue;case'9':o=f6(181)[f6(374)]('');continue;case'10':p=function(u){return m(l(u))};continue;case'11':q=function(u,v,w,y,z,A,B,fn){return fn=f6,n(v&y|g[fn(157)](w,~y),u,v,z,A,B)};continue;case'12':r=function(u,v,fo,w,y,z,A,B,C){for(fo=f6,w=g[fo(268)][fo(374)]('|'),y=0;!![];){switch(w[y++]){case'0':C=g[fo(577)](h,C,z,A,B,v[0],11,-358537222);continue;case'1':B=k(B,C,z,A,v[10],17,-42063);continue;case'2':A=h(A,B,C,z,v[2],23,-995338651);continue;case'3':C=(z=u[0],A=u[1],B=u[2],u[3]);continue;case'4':z=q(z,A,B,C,v[9],5,568446438);continue;case'5':C=s(C,z,A,B,v[11],10,-1120210379);continue;case'6':A=h(A,B,C,z,v[6],23,76029189);continue;case'7':C=s(C,z,A,B,v[3],10,-1894986606);continue;case'8':C=g[fo(170)](s,C,z,A,B,v[15],10,-30611744);continue;case'9':A=q(A,B,C,z,v[4],20,-405537848);continue;case'10':A=k(A,B,C,z,v[7],22,-45705983);continue;case'11':C=g[fo(577)](q,C,z,A,B,v[6],9,-1069501632);continue;case'12':A=k(A,B,C,z,v[11],22,-1990404162);continue;case'13':C=q(C,z,A,B,v[10],9,38016083);continue;case'14':A=s(A,B,C,z,v[5],21,-57434055);continue;case'15':z=q(z,A,B,C,v[5],5,-701558691);continue;case'16':z=h(z,A,B,C,v[1],4,-1530992060);continue;case'17':B=q(B,C,z,A,v[11],14,643717713);continue;case'18':z=q(z,A,B,C,v[1],5,-165796510);continue;case'19':u[0]=t(z,u[0]);continue;case'20':C=k(C,z,A,B,v[1],12,-389564586);continue;case'21':C=q(C,z,A,B,v[2],9,-51403784);continue;case'22':A=g[fo(577)](s,A,B,C,z,v[13],21,1309151649);continue;case'23':z=g[fo(454)](s,z,A,B,C,v[0],6,-198630844);continue;case'24':C=g[fo(454)](h,C,z,A,B,v[8],11,-2022574463);continue;case'25':B=k(B,C,z,A,v[14],17,-1502002290);continue;case'26':B=q(B,C,z,A,v[15],14,-660478335);continue;case'27':z=k(z,A,B,C,v[0],7,-680876936);continue;case'28':B=s(B,C,z,A,v[14],15,-1416354905);continue;case'29':z=h(z,A,B,C,v[5],4,-378558);continue;case'30':A=g.TQclG(h,A,B,C,z,v[10],23,-1094730640);continue;case'31':z=g[fo(530)](h,z,A,B,C,v[13],4,681279174);continue;case'32':C=g[fo(530)](k,C,z,A,B,v[13],12,-40341101);continue;case'33':B=g[fo(422)](k,B,C,z,A,v[2],17,606105819);continue;case'34':u[1]=t(A,u[1]);continue;case'35':z=g[fo(233)](h,z,A,B,C,v[9],4,-640364487);continue;case'36':z=k(z,A,B,C,v[4],7,-176418897);continue;case'37':C=k(C,z,A,B,v[9],12,-1958414417);continue;case'38':A=q(A,B,C,z,v[0],20,-373897302);continue;case'39':u[3]=g[fo(256)](t,C,u[3]);continue;case'40':B=q(B,C,z,A,v[3],14,-187363961);continue;case'41':B=k(B,C,z,A,v[6],17,-1473231341);continue;case'42':z=k(z,A,B,C,v[8],7,1770035416);continue;case'43':A=s(A,B,C,z,v[9],21,-343485551);continue;case'44':B=h(B,C,z,A,v[7],16,-155497632);continue;case'45':z=k(z,A,B,C,v[12],7,1804603682);continue;case'46':z=s(z,A,B,C,v[12],6,1700485571);continue;case'47':A=g[fo(170)](s,A,B,C,z,v[1],21,-2054922799);continue;case'48':A=k(A,B,C,z,v[15],22,1236535329);continue;case'49':B=g[fo(422)](q,B,C,z,A,v[7],14,1735328473);continue;case'50':A=q(A,B,C,z,v[12],20,-1926607734);continue;case'51':C=h(C,z,A,B,v[12],11,-421815835);continue;case'52':C=s(C,z,A,B,v[7],10,1126891415);continue;case'53':B=s(B,C,z,A,v[10],15,-1051523);continue;case'54':A=q(A,B,C,z,v[8],20,1163531501);continue;case'55':z=s(z,A,B,C,v[4],6,-145523070);continue;case'56':B=g[fo(577)](h,B,C,z,A,v[15],16,530742520);continue;case'57':B=s(B,C,z,A,v[6],15,-1560198380);continue;case'58':C=g[fo(422)](k,C,z,A,B,v[5],12,1200080426);continue;case'59':B=g[fo(351)](h,B,C,z,A,v[11],16,1839030562);continue;case'60':z=s(z,A,B,C,v[8],6,1873313359);continue;case'61':A=h(A,B,C,z,v[14],23,-35309556);continue;case'62':C=q(C,z,A,B,v[14],9,-1019803690);continue;case'63':B=g[fo(351)](s,B,C,z,A,v[2],15,718787259);continue;case'64':A=g[fo(380)](k,A,B,C,z,v[3],22,-1044525330);continue;case'65':u[2]=t(B,u[2]);continue;case'66':z=q(z,A,B,C,v[13],5,-1444681467);continue;case'67':B=h(B,C,z,A,v[3],16,-722521979);continue;case'68':C=g[fo(380)](h,C,z,A,B,v[4],11,1272893353);continue}break}};continue;case'13':s=function(u,v,w,y,z,A,B,fp){return fp=f6,n(g[fp(167)](w,g[fp(219)](v,~y)),u,v,z,A,B)};continue;case'14':d[f6(589)](p(f6(163))[1],'d')&&(t=function(u,v,fq,w,z){return fq=f6,w=(u&65535.89)+(v&65535.8),z=g[fq(236)]((u>>16)+(v>>16.72),g[fq(548)](w,16)),g[fq(219)](z<<16.51,65535&w)});continue;case'15':t=function(u,v,fr){return fr=f6,g[fr(157)](u+v,4294967295)};continue}break}},eL=typeof globalThis!==eV(485)?globalThis:eA,eM=function(c,d,f,fv,g,h,j,k,l,m,n,o,s,p,u,q,r){for(fv=eV,g={'ashGS':function(t,u){return t(u)},'nqWXq':function(t,u){return t+u},'KiGXS':fv(499),'zVejk':function(t,u){return t(u)},'hEkjD':function(t,u){return t-u},'QIGoM':function(t,u){return t/u},'QPWxb':function(t,u){return t+u},'iOcEI':function(t,u){return u*t},'pjWaP':function(t,u){return t=u},'fRqBn':fv(332),'cCUoV':function(t,u){return t+u},'REfxn':fv(183),'qqnjb':function(t,u){return u!==t},'VdhlS':function(t){return t()},'yuqtF':function(t){return t()},'nDCiL':fv(189),'RCWFB':function(t,u,w){return t(u,w)},'GxyVM':function(t,u){return t!==u},'lGMAX':function(t,u){return u===t},'Hnawc':'pRVGW','pLoVf':function(t,u){return u===t}},h=function(t,u,fy,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,V,W,Q,R,S,T,U){if(fy=fv,w={'pKgRM':function(X,Y){return Y*X},'RUaJy':function(X,Y){return Y|X},'XhaJd':function(X,Y,fw){return fw=b,g[fw(516)](X,Y)},'SqSES':function(X,Y){return X-Y},'HuALN':function(X,Y){return X+Y},'nJdTI':function(X,Y,fx){return fx=b,g[fx(317)](X,Y)},'yoOvn':fy(566),'lNuGy':function(X,Y){return X/Y},'Tabfw':function(X,Y,fz){return fz=fy,g[fz(601)](X,Y)},'ahMxa':function(X,Y){return X|Y},'mstuh':function(X,Y){return X|Y},'fbEWs':function(X,Y,fA){return fA=fy,g[fA(325)](X,Y)},'URJHP':function(X,Y){return X(Y)},'LXPrF':function(X,Y,fB){return fB=fy,g[fB(353)](X,Y)},'Xemgb':function(X,Y){return X/Y},'EqQSA':function(X,Y){return X/Y},'MmwOb':function(X,Y,Z){return X(Y,Z)},'WkQae':function(X,Y,fC){return fC=fy,g[fC(393)](X,Y)},'xscRb':function(X,Y,fD){return fD=fy,g[fD(148)](X,Y)},'lpeee':function(X,Y,fE){return fE=fy,g[fE(505)](X,Y)},'kTcMJ':function(X,Y){return X+Y},'uKPoa':function(X,Y){return X(Y)},'JvlbM':function(X,Y){return X%Y},'YDbBp':function(X,Y,fF){return fF=fy,g[fF(353)](X,Y)}},g[fy(272)](g[fy(567)],fy(215))){for(x={},x[fy(333)]=300,x[fy(129)]=300,y=x,z=7,A=199254740991,B=157,C=1.5,D=20,E=t%A,F=function(X,fG){return fG=fy,E=w[fG(615)](B,E)%A,E/A*X},G=function(X,fH){return fH=fy,w[fH(378)](w[fH(232)](F,X),0)},H=[fy(387),g[fy(399)],fy(610),fy(394),fy(184),fy(240),g[fy(534)],fy(234),fy(285),fy(245),fy(433),g[fy(201)],fy(327),g[fy(572)],g[fy(294)],fy(579),g[fy(348)],fy(456),g[fy(344)],g[fy(483)],g[fy(613)],g[fy(286)],fy(247),fy(493),g[fy(246)],'#66664D',g[fy(364)],g[fy(467)],fy(339),g[fy(461)],fy(278),fy(372),fy(178),g[fy(238)],fy(486),fy(227),fy(442),fy(130),fy(243),fy(545),fy(192),fy(501),g[fy(476)],g[fy(482)],fy(511),g[fy(396)],g[fy(479)],fy(434),fy(342),fy(166),fy(604),g[fy(244)],g[fy(619)]],I=function(X,Y,fI,Z,a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,aa){for(fI=fy,Z=fI(149)[fI(374)]('|'),a0=0;!![];){switch(Z[a0++]){case'0':a1=G(Y[fI(129)]);continue;case'1':a2=H[(a9+1)%H[fI(237)]];continue;case'2':a3=g[fI(390)](G,Y[fI(333)]);continue;case'3':X[fI(176)]=a7;continue;case'4':a7[fI(220)](1,a2);continue;case'5':a4=G(Y[fI(333)]/10);continue;case'6':a5=H[a9];continue;case'7':a6=g[fI(193)](G(Y[fI(333)]),Y[fI(333)]);continue;case'8':a7=X[fI(196)](aa,a8,a4,a3,a1,a6);continue;case'9':a8=g[fI(390)](G,Y.height);continue;case'10':a9=G(H[fI(237)]);continue;case'11':aa=G(Y[fI(333)]);continue;case'12':a7[fI(220)](0,a5);continue}break}},J=function(X,fJ,Y,Z,a0,a1,a2,a3,a4){for(fJ=fy,Y={'VvcXU':function(a5,a6,a7){return a5(a6,a7)}},Z=33,a0=126,a1=w[fJ(406)](a0,Z),a2=[],a3=0;a3>i},'iErLM':function(h,i){return i|h},'TFzxN':function(h,i){return h<i},'nYenc':function(h,i){return hi},'uclJc':function(h,i){return h-i},'zpFhO':function(h,i){return hx;F=d[fX(283)](F,1)|d[fX(375)](K,1),d[fX(555)](G,d[fX(429)](j,1))?(G=0,E[fX(319)](d[fX(540)](o,F)),F=0):G++,K>>=1,x++);}else if(d[fX(389)](d[fX(473)],fX(370))){for(K=1,x=0;d[fX(311)](x,D);F=d[fX(504)](d[fX(235)](F,1),K),G==j-1?(G=0,E[fX(319)](o(F)),F=0):G++,K=0,x++);for(K=A[fX(515)](0),x=0;d[fX(560)](16,x);F=d[fX(175)](F,1)|d.GjTFp(K,1),G==d[fX(608)](j,1)?(G=0,E[fX(319)](o(F)),F=0):G++,K>>=1,x++);}else for(M=s[fX(318)].split('|'),N=0;!![];){switch(M[N++]){case'0':P[fX(176)]=a3;continue;case'1':O=C(D[fX(333)]);continue;case'2':a3[fX(220)](1,a0);continue;case'3':P=s[fX(194)](K,L[fX(237)]);continue;case'4':a0=N[s[fX(556)](P+1,O[fX(237)])];continue;case'5':a1=M[P];continue;case'6':a2=y(z[fX(129)]);continue;case'7':a3=J[fX(196)](a4,a2,a7,O,a6,a5);continue;case'8':a4=f(x[fX(333)]);continue;case'9':a3[fX(220)](0,a1);continue;case'10':a5=s[fX(469)](s[fX(194)](G,H[fX(333)]),I[fX(333)]);continue;case'11':a6=E(F[fX(129)]);continue;case'12':a7=A(s[fX(290)](B[fX(333)],10));continue}break}B--,B==0&&(B=Math[fX(562)](2,D),D++),delete z[A]}else for(K=y[A],x=0;d[fX(276)](x,D);F=F<<1|d[fX(375)](K,1),j-1==G?(G=0,E[fX(319)](d[fX(150)](o,F)),F=0):G++,K>>=1,x++);A=(B--,0==B&&(B=Math[fX(562)](2,D),D++),y[J]=C++,d[fX(150)](String,I))}if(''!==A){if(Object[fX(551)][fX(210)][fX(590)](z,A)){if(d[fX(491)]!==fX(550)){if(256>A[fX(515)](0)){for(x=0;xx;F=d[fX(504)](F<<1,1&K),G==j-1?(G=0,E[fX(319)](d[fX(150)](o,F)),F=0):G++,K>>=1,x++);}else if(d[fX(526)](fX(302),fX(302)))return N=d[fX(506)](j&65535.81,65535.89&A),O=d[fX(252)](d[fX(408)](i>>16,d.ERvel(j,16)),d[fX(552)](N,16)),d[fX(431)](d[fX(175)](O,16),N&65535.95);else{for(K=1,x=0;xx;F=F<<1|1.27&K,G==j-1?(G=0,E[fX(319)](o(F)),F=0):G++,K>>=1,x++);}B--,B==0&&(B=Math.pow(2,D),D++),delete z[A]}else d[fX(398)](i[j],'')&&H[fX(319)](d[fX(150)](o,I[B]))}else for(K=y[A],x=0;d[fX(349)](x,D);F=F<<1.03|d[fX(375)](K,1),G==d[fX(206)](j,1)?(G=0,E[fX(319)](o(F)),F=0):G++,K>>=1,x++);B--,0==B&&D++}for(K=2,x=0;x>=1,x++);for(;;)if(F<<=1,G==j-1){E[fX(319)](o(F));break}else G++;return E[fX(308)]('')},'j':function(h,fZ,i){return fZ=fU,i={'BoiLU':function(j,k,l,fY){return fY=b,d[fY(436)](j,k,l)},'Zbazk':fZ(385)},null==h?'':''==h?null:f.i(h[fZ(237)],32768,function(j,g1,k,m,n,o,p){if(g1=fZ,k={'StQag':function(l,m,n,g0){return g0=b,i[g0(291)](l,m,n)},'DlVlm':function(l,m){return l>=m}},i[g1(253)]!=='IEsjL'){for(m=g1(209)[g1(374)]('|'),n=0;!![];){switch(m[n++]){case'0':p(A,B,C)&&H[g1(618)]();continue;case'1':o=u(e[g1(237)]);continue;case'2':k[g1(248)](h,s,t);continue;case'3':p=z[o];continue;case'4':E.shadowBlur=0;continue;case'5':F[o]++;continue;case'6':for(;k.DlVlm(f[o],x);o=(o+1)%G[g1(237)]);continue}break}}else return h[g1(515)](j)})},'i':function(i,j,o,g2,s,x,y,z,A,B,C,D,E,F,G,H,J,I){for(g2=fU,s=[],x=4,y=4,z=3,A=[],D=d[g2(540)](o,0),E=j,F=1,B=0;3>B;s[B]=B,B+=1);for(G=0,H=Math[g2(562)](2,2),C=1;d[g2(624)](C,H);I=E&D,E>>=1,E==0&&(E=j,D=o(F++)),G|=d[g2(474)](0>=1,0==E&&(E=j,D=o(F++)),G|=(0>=1,d[g2(555)](0,E)&&(E=j,D=d[g2(547)](o,F++)),G|=(0i)return'';for(G=0,H=Math[g2(562)](2,z),C=1;d[g2(575)](C,H);I=d[g2(375)](D,E),E>>=1,d.qtnYS(0,E)&&(E=j,D=d[g2(264)](o,F++)),G|=(0>=1,E==0&&(E=j,D=o(F++)),G|=d[g2(474)](d[g2(464)](0,I)?1:0,C),C<<=1);s[y++]=e(G),J=y-1,x--;break;case 1:for(G=0,H=Math[g2(562)](2,16),C=1;d[g2(624)](C,H);I=E&D,E>>=1,0==E&&(E=j,D=o(F++)),G|=d[g2(474)](d.MYYgX(0,I)?1:0,C),C<<=1);s[y++]=e(G),J=d[g2(608)](y,1),x--;break;case 2:return A[g2(308)]('')}if(d[g2(555)](0,x)&&(x=Math[g2(562)](2,z),z++),s[J])J=s[J];else if(J===y)J=B+B[g2(304)](0);else return null;A[g2(319)](J),s[y++]=d[g2(337)](B,J[g2(304)](0)),x--,B=J,d[g2(555)](0,x)&&(x=Math[g2(562)](2,z),z++)}}},g={},g[fU(310)]=f.h,g}(),eO=function(d,e,g3,g,h){return g3=eV,g={},g[g3(261)]=function(i,j){return i instanceof j},h=g,h[g3(261)](e,d[g3(199)])&&d[g3(199)][g3(551)][g3(138)][g3(590)](e)[g3(263)](g3(299))>0},eP=function(d,e,g4,f,g){return g4=eV,f={},f[g4(198)]=function(h,i){return i===h},f[g4(200)]=g4(381),g=f,eA[g4(262)]&&eA[g4(262)][g4(597)]?d[g4(262)][g4(597)](e):g[g4(198)](d[g4(265)][g4(551)][g4(138)][g4(590)](e),g[g4(200)])},eQ=function(c,d,f,g5,g,l,m,n,p,h,i){g=(g5=eV,{'cMyiT':function(j){return j()},'WZzBN':function(j,l){return j-l},'ggnsN':function(j,l,m,n,p,q){return j(l,m,n,p,q)},'CCMWx':function(j,l,m){return j(l,m)},'efclS':g5(537),'kTJdp':function(j,l){return j==l},'WhOFn':function(j,l){return l===j},'Vlbai':function(j,l,m){return j(l,m)},'ztrVu':g5(490),'ncHCi':g5(603),'eITQM':function(j,l){return l==j},'MKtdx':g5(583),'vlezi':g5(450)});try{if(g[g5(581)]!==g5(171))return d[f][g5(354)](function(){}),'p';else l=m[g5(296)](),m=g[g5(254)](n),n=d(p,q),p=g[g5(204)](r[g5(296)](),l),g[g5(211)](s,m.r,n.r,'js',t,p),n.e&&g[g5(404)](w,g5(451),n.e),m.e&&g[g5(404)](x,g5(569),m.e)}catch(l){}try{if(g[g5(489)](d[f],null)){if(g[g5(270)]('imXsg',g5(161)))n=(j=f[g5(522)](l[g5(226)](m)),d[g5(533)](p));else return undefined===d[f]?'u':'x'}}catch(n){return'i'}return g[g5(421)](eP,c,d[f])?'a':eA.Array&&d[f]===c[g5(262)]?'L':(h=typeof d[f],i='?',h==g[g5(347)]?i=g[g5(421)](eO,c,d[f])?'N':'f':h==g[g5(435)]?i='o':g[g5(257)](h,g5(361))?i='s':h==g5(485)?i='u':h==g5(622)?i='z':g[g5(257)](h,g[g5(453)])?i='n':h==g[g5(328)]?i='I':g[g5(257)](h,g5(241))&&(i='b'),i)},eS=function(c,d,f,g,g7,h,l,m,n,p,q,r){if(g7=eV,h={'tDOjw':function(s,t){return s>l},'UnxPm':function(k,l){return k+l},'SCWxn':function(k,l){return k<>o},'edfmo':function(n,o,f3){return f3=f2,j[f3(448)](n,o)}},function(n,o,f4,p,q){return f4=f2,p=m[f4(508)](n,65535)+m[f4(500)](o,65535),q=(n>>16)+m[f4(594)](o,16)+(p>>16.72),m[f4(154)](q,16)|p&65535.6})}d(k,c)}},e[f0(316)](eB[f0(182)],e[f0(284)])){if(f0(611)===f0(405))return e[f0(297)](e,d)&4294967295;else e[f0(326)](h)}else eA[f0(498)]?eB.addEventListener(e[f0(411)],h):(i=eB[f0(172)]||function(){},eB[f0(172)]=function(f5){f5=f0,i(),e[f5(335)](eB[f5(182)],f5(458))&&(eB[f5(172)]=i,e[f5(340)](h))})}function b(c,d,e){return e=a(),b=function(f,g,h){return f=f-129,h=e[f],h},b(c,d)}function eH(d,fs,e,f){return fs=eV,e={},e[fs(574)]=function(g,h){return g0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,n,o];return}for(var u=1/0,i=0;i=o&&Object.keys(f.O).every(function(e){return f.O[e](r[a])})?r.splice(a--,1):(c=!1,o\- 127.0.0.1:30050:80 # 映射的端口,推荐只监听本地,然后外面再套一层对外访问用. 7 | ACCESS_TOKEN: you_token # 在 https://chat.openai.com/api/auth/session 中的 accessToken 字段 8 | DOMAIN: chat.yourdomain.com # nginx想要绑定的host 9 | 10 | 11 | docker-compose up -d 12 | 13 | 14 | --- 15 | 如果想要历史会话功能可用的话,将conf.d/openai.conf.template 中 location = /backend-api/conversations 条件 整体注释掉 16 | 访问的host字段 需要与 配置项中 的 DOMAIN 对应。 17 | 18 | 目前为失效状态 2023.03.09 15:38 19 | -------------------------------------------------------------------------------- /youdomain.conf.trash: -------------------------------------------------------------------------------- 1 | server 2 | { 3 | server_name youdomain.com; 4 | location ^~ / 5 | { 6 | proxy_connect_timeout 600; 7 | proxy_send_timeout 600; 8 | proxy_read_timeout 600; 9 | proxy_pass https://chat.openai.com; 10 | proxy_set_header Host chat.openai.com; 11 | proxy_set_header Accept-Encoding ''; 12 | sub_filter 'chat.openai.com' 'youdomain.com'; 13 | sub_filter 'YourEmail' ''; 14 | sub_filter 'YourUesrId' ''; 15 | sub_filter 'https://33f79e998f93410882ecec1e57143840@o33249.ingest.sentry.io/4504238875803648' ''; 16 | #sub_filter 'Free Research Preview: ChatGPT is optimized for dialogue. Our goal is to make AI systems more natural to interact with, and your feedback will help us improve our systems and make them safer.' 'Nginx yyds'; 17 | sub_filter_once off; 18 | sub_filter_types *; 19 | proxy_set_header Cookie "YourCookie"; 20 | proxy_hide_header set-cookie; 21 | 22 | } 23 | } 24 | --------------------------------------------------------------------------------