WXL
7 小时以前 d79ce11fcd47db138764557d214f4ea2169fb90a
1
2
3
/*! For license information please see 2237.c2ad42320cf12864780e.js.LICENSE.txt */
"use strict";(self.webpackChunkhunyuan_bot=self.webpackChunkhunyuan_bot||[]).push([[2237],{34237:(t,e,r)=>{r.d(e,{a:()=>n});var n=new(r(70632).v)},68898:(t,e,r)=>{r.d(e,{C:()=>o});var n=r(22448),i=function(t,e,r){window.TenvideoJSBridge?window.TenvideoJSBridge.invoke(t,e,r):document.addEventListener("onTenvideoJSBridgeReady",(function(){window.TenvideoJSBridge.invoke(t,e,r)}),!1)};function o(t,e){return new Promise((function(r,n){var o="init",a=0;a=window.setTimeout((function(){"init"===o&&(n(new Error("[TenvideoJSBridge] request ".concat(t," timeout"))),o="fail")}),6e4);try{i(t,e,(function(t){if(clearTimeout(a),"init"===o)if(o="success","string"==typeof t)try{var e=JSON.parse(t);r(e)}catch(t){n(t)}else r(t)}))}catch(t){n(t),clearTimeout(a)}}))}(0,n.Y6)()&&o("checkApi",{apiList:["getCookie","getUserInfo","getMainCookie","actionLogin","download3rdApp","hideBackButton","goBack","requestSlideIntercept","saveImage","shareWeixinTimeline","shareWeixinUser","getDeviceInfo","pauseDowload3rdApp"]})},69906:(t,e,r)=>{r(68898)},75e3:(t,e,r)=>{r.d(e,{uP:()=>z,IO:()=>W,Uy:()=>M,P_:()=>B,CT:()=>J,i7:()=>s.i7,cP:()=>u.cP,K0:()=>s.K0,Db:()=>s.Db,LZ:()=>u.LZ,vK:()=>u.vK});var n=r(45042),i=r(31755),o=r(11401),a=r(34237),l=r(46017),c=r(15758),s=r(79589),u=r(97803);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==p(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(){f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),l=new N(n||[]);return i(a,"_invoke",{value:O(t,r,l)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",v="suspendedYield",_="executing",y="completed",g={};function b(){}function m(){}function w(){}var x={};s(x,a,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(A([])));E&&E!==r&&n.call(E,a)&&(x=E);var S=w.prototype=b.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,o,a,l){var c=h(t[i],t,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==p(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var i=d;return function(o,a){if(i===_)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var c=T(l,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=_;var s=h(e,r,n);if("normal"===s.type){if(i=n.done?y:v,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=y,n.method="throw",n.arg=s.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(p(e)+" is not iterable")}return m.prototype=w,i(S,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:m,configurable:!0}),m.displayName=s(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(k.prototype),s(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new k(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return l.type="throw",l.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function d(t,e,r,n,i,o,a){try{var l=t[o](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,i)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,l,"next",t)}function l(t){d(o,n,i,a,l,"throw",t)}a(void 0)}))}}(0,u.LZ)(l.gO,(function(t){t({show_pc_download_ads:{visible:!1},use_v2_layout:{visible:!1},hide_welcome_panel:{visible:!0},global_error_catcher:{visible:!0,props:{}},app_nav_logo:{visible:!1,props:{resident:!1}},app_new_chat:{visible:!1},third_party_app_new_chat:{visible:!0,props:{skipCheckLogin:!1,backgroundColor:"#20c57d"}},app_nav:{visible:!0},assistant_title_prefix:{visible:!1},pcmgr_lottery_login_entry:{visible:!1},copyright:{visible:!0,props:{text:"",style:{}}},app_nav_extra:{visible:!1},app_good_question_back:{visible:!1},third_good_question_back:{visible:!0},app_login_modal:{visible:!1},third_party_login:{visible:!0,props:{requestLogin:function(t,e){o.gE.clientLogin({}).then((function(r){if("0"===String(r.errCode)){if(null==t||t(),window.location.pathname.includes("thirdParty/guanjia/picture"))return;if(window.location.pathname.includes("thirdParty/guanjia/write"))return;if(window.location.pathname.includes("embed"))return;window.location.reload()}else null==e||e()}))}}},disable_heart_beat:{visible:!0,props:{disabled:!0}},good_question_card:{visible:!1,props:{}},interest_tag_modal:{visible:!1},app_deep_read_back_icon:{visible:!1},deep_read_logo:{visible:!1,props:{disableJumpHome:!0}},input_file_list:{visible:!0,props:{noJumpDeepRead:!0}},third_party_deep_reading:{visible:!0,props:{historyFileSubmitWithChat:!0,deepReadingJumpAction:function(t){return window.open(t)},deepReadFileAction:function(t){var e,r=t[0];r&&a.a.emit("onDeepReading",{prompt:"深度阅读以下文档",fileId:(0,n.YJ)(),fileSize:r.size,fileType:r.type,fileName:r.name,extData:{showLoading:!0,autoSubmit:!0},getFile:(e=v(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.raw);case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})})}}},third_party_chat_action:{visible:!0},file_upload_warning_toast:{visible:!0,props:{text:"单次仅可上传一个文档,多文档请分别上传"}},agent_memory:{visible:!0,props:{text:"更多"}},new_chat:{visible:!1},show_model_selector:{visible:!1},new_conv:{visible:!0,props:{buttonText:"点击清除",text:"上下文理解"}},disable_user_active_report:{visible:!0},main_agent_url_prefix:{visible:!1,props:{url:""}},copy_request_login:{visible:!0},edit_chat_title_max_length:{visible:!0,props:{length:64}},theme_setting:{visible:!1},file_size_limit_exceed_toast:{visible:!0,props:{getToast:function(t){return"文件大小超过".concat(t,",请调整后重试")}}},app_chat_config:{visible:!0,props:{hideSessionNameDropdown:!0,hideModelSwitchTip:!0,hideAppGuideTip:!0,hideModelSwitchErrorTip:!0}},hide_tx_doc_jump_state:{visible:!0},app_nav_download_bar:{visible:!1}});var e=document.createElement("style");e.innerHTML="\n    [class^='style__main__'] {\n      width: 100%;\n    }\n    .t-loading.t-size-s {\n      color: #2049ee;\n    }\n    :root {\n      --brand-black_1-v0: #20C57D!important;\n      --yb-color-content-bg: #F6FBFF!important;\n    }\n  ",document.head.appendChild(e),o.gE.getClientVersion().then((function(e){var r,o,l,s;(0,c.zG)({HY35:(0,i.Q3)()||"1"}),(null==e||null===(r=e.result)||void 0===r?void 0:r.version)>=3&&t({assistant_title_prefix:{visible:!0},copyright:{visible:!1,props:{text:"Powered by 腾讯元宝 | 所有内容均由AI生成仅供参考",style:{color:"#B3CEE9"}}}}),(null==e||null===(o=e.result)||void 0===o?void 0:o.version)>=4&&t({disable_clear_screen:{visible:!0},app_nav:{visible:!1},main_agent_url_prefix:{visible:!0,props:{url:"/thirdParty/guanjia/pmChat"}},hide_ai_edit:{visible:!0},third_party_deep_reading:{visible:!0,props:{historyFileSubmitWithChat:!0,deepReadingJumpAction:function(t){t.startsWith("/tool/deep-reading/detail?")?window.open("/thirdParty/guanjia/file?openwith=mgr_document&".concat(t.split("/tool/deep-reading/detail?")[1])):window.open(t)},deepReadFileAction:function(t){var e,r=t[0];r&&a.a.emit("onDeepReading",{prompt:"深度阅读以下文档",fileId:(0,n.YJ)(),fileSize:r.size,fileType:r.type,fileName:r.name,extData:{showLoading:!0,autoSubmit:!0},getFile:(e=v(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.raw);case 1:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})})}}},upload_file_fail_toast:{visible:!0,props:{text:"上传失败,请重新上传"}}}),(null==e||null===(l=e.result)||void 0===l?void 0:l.version)>=5&&t({chat_home_name:{visible:!0,props:{name:"AI搜索"}}}),(null==e||null===(s=e.result)||void 0===s?void 0:s.version)>=6&&t({show_model_selector:{visible:!0}})})),o.gE.getClientConfig().then((function(e){var r;null!=e&&null!==(r=e.result)&&void 0!==r&&r.isConfigEnable&&t({pcmgr_lottery_login_entry:{visible:!0}})}))})),(0,u.LZ)(l.$P,(function(t){document.body.classList.add("ten-pcmgr"),t({show_home_login:{visible:!1},show_logout:{visible:!1},show_tx_doc_binding_entry:{visible:!1},show_tx_meeting_binding_entry:{visible:!1},app_deep_read_back_icon:{visible:!1},deep_read_logo:{visible:!1,props:{disableJumpHome:!0}},theme_setting:{visible:!1},app_chat_config:{visible:!0,props:{hideInputGuide:!0}},disable_user_active_report:{visible:!0},hide_profile_writing_entry:{visible:!0},app_login_modal:{visible:!1},app_nav_trigger_btn:{visible:!1},app_user_ai_switch_config:{visible:!0,props:{sessionAiDrawPicEntry:!1,sessionAiGalleryEntry:!1,sessionSearchPicEntry:!1,useAgentListEntry:!1,meCreateAgentEntry:!1}},third_party_login:{visible:!0,props:{requestLogin:function(t,e){o.gE.clientLogin({}).then((function(r){"0"===String(r.errCode)?null==t||t():null==e||e()}))}}}})})),(0,s.K0)(l.gO,(function(t){var e=(0,n.no)();t(h({},"x-channel","prod"===e||"pre"===e?"mgr_prod":"mgr_test"))})),(0,s.K0)(l.$P,(function(t){var e=(0,n.no)();t(h({},"x-channel","prod"===e||"pre"===e?"mgr_prod2":"mgr_test2"))}));var _=r(22448),y=r(18025),g=r(79815);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=b(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==b(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),l=new N(n||[]);return i(a,"_invoke",{value:O(t,r,l)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",d="executing",v="completed",_={};function y(){}function g(){}function m(){}var x={};s(x,a,(function(){return this}));var L=Object.getPrototypeOf,E=L&&L(L(A([])));E&&E!==r&&n.call(E,a)&&(x=E);var S=m.prototype=y.prototype=Object.create(x);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,o,a,l){var c=p(t[i],t,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==b(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var c=T(l,n);if(c){if(c===_)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var s=p(e,r,n);if("normal"===s.type){if(i=n.done?v:f,s.arg===_)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=v,n.method="throw",n.arg=s.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,_;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(b(e)+" is not iterable")}return g.prototype=m,i(S,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:g,configurable:!0}),g.displayName=s(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(k.prototype),s(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new k(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),s(S,c,"Generator"),s(S,a,(function(){return this})),s(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return l.type="throw",l.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),_}},e}function x(t,e,r,n,i,o,a){try{var l=t[o](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,i)}(0,u.LZ)(_.xv,(function(t){t({disable_clear_screen:{visible:!0},show_model_selector:{visible:!0},use_v2_layout:{visible:!1},disable_user_active_report:{visible:!0},hide_welcome_panel:{visible:!0},hide_ai_edit:{visible:!0},global_error_catcher:{visible:!0,props:{}},app_nav_logo:{visible:!1,props:{resident:!1}},app_nav:{visible:!1},assistant_title_prefix:{visible:!1},pcmgr_lottery_login_entry:{visible:!1},copyright:{visible:!1,props:{text:"Powered by 腾讯元宝 | 所有内容均由AI生成仅供参考",style:{color:"#DBD0C4"}}},app_nav_extra:{visible:!1},app_login_modal:{visible:!1},third_party_login:{visible:!0,props:{requestLogin:function(t,e){o.gE.clientLogin({}).then((function(r){"0"===String(r.errCode)?null==t||t():null==e||e()}))}}},good_question_card:{visible:!1,props:{}},interest_tag_modal:{visible:!1},app_deep_read_back_icon:{visible:!1},deep_read_logo:{visible:!1,props:{disableJumpHome:!0}},input_file_list:{visible:!0,props:{noJumpDeepRead:!0}},theme_setting:{visible:!1},third_party_deep_reading:{visible:!0,props:{historyFileSubmitWithChat:!0,deepReadingJumpAction:function(t){t.startsWith("/tool/deep-reading/detail?")?window.open("/thirdParty/guanjia/file?openwith=mgr_document&".concat(t.split("/tool/deep-reading/detail?")[1])):window.open(t)},deepReadFileAction:function(t){var e,r,i=t[0];i&&a.a.emit("onDeepReading",{prompt:"深度阅读以下文档",fileId:(0,n.YJ)(),fileSize:i.size,fileType:i.type,fileName:i.name,extData:{showLoading:!0,autoSubmit:!0},getFile:(e=w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i.raw);case 1:case"end":return t.stop()}}),t)})),r=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(t){x(o,n,i,a,l,"next",t)}function l(t){x(o,n,i,a,l,"throw",t)}a(void 0)}))},function(){return r.apply(this,arguments)})})}}},third_party_chat_action:{visible:!0},file_upload_warning_toast:{visible:!0,props:{text:"单次仅可上传一个文档,多文档请分别上传"}},agent_memory:{visible:!0,props:{text:"更多"}},new_chat:{visible:!1},new_conv:{visible:!0,props:{buttonText:"点击清除",text:"上下文理解"}},main_agent_url_prefix:{visible:!0,props:{url:"/thirdParty/guanjia/pmChat"}},copy_request_login:{visible:!1},edit_chat_title_max_length:{visible:!0,props:{length:64}},chat_home_name:{visible:!0,props:{name:"AI搜索"}},file_size_limit_exceed_toast:{visible:!0,props:{getToast:function(t){return"文件大小超过".concat(t,",请调整后重试")}}},share_image_download:{visible:!0,props:{onDownload:function(t){return window.open(t,"_blank"),!0},onDownload302:function(t){return y.A.get(t).then((function(t){window.open(t.request.responseURL,"_blank")})).catch((function(t){(0,g.Ax)("下载失败")})),!0},downloadByATag:function(t){var e=document.createElement("a");e.href=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)}}},upload_file_fail_toast:{visible:!0,props:{text:"上传失败,请重新上传"}},app_chat_config:{visible:!0,props:{hideModelSwitchTip:!0,hideAppGuideTip:!0,hideModelSwitchErrorTip:!0}},app_nav_download_bar:{visible:!1}});var e=document.createElement("style");e.innerHTML="\n    .t-loading.t-size-s {\n      font-size: 12px;\n      color: #fa0;\n    }\n  ",document.head.appendChild(e)})),(0,s.K0)(_.xv,(function(t){var e=(0,n.no)();t(m({},"x-channel","prod"===e||"pre"===e?"lemon_prod":"lemon_test"))}));var L=r(91560);function E(t){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(t)}function S(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),l=new N(n||[]);return i(a,"_invoke",{value:O(t,r,l)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",d="executing",v="completed",_={};function y(){}function g(){}function b(){}var m={};s(m,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(A([])));x&&x!==r&&n.call(x,a)&&(m=x);var L=b.prototype=y.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,o,a,l){var c=p(t[i],t,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==E(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function O(e,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var c=T(l,n);if(c){if(c===_)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var s=p(e,r,n);if("normal"===s.type){if(i=n.done?v:f,s.arg===_)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=v,n.method="throw",n.arg=s.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,_;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(E(e)+" is not iterable")}return g.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},S(k.prototype),s(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new k(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(L),s(L,c,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return l.type="throw",l.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),_}},e}function k(t,e,r,n,i,o,a){try{var l=t[o](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,i)}var O=r.n(L)().parse(location.search,{ignoreQueryPrefix:!0,arrayLimit:100,allowDots:!0}).appid,T="10003"===O;(0,u.LZ)(_.a7,(function(t){var e,r;t({show_pc_download_ads:{visible:!1},show_model_selector:{visible:!0},global_error_catcher:{visible:!0,props:{}},app_nav:{visible:!!T},app_nav_list:{visible:!!T},app_nav_extra:{visible:!1},app_login_modal:{visible:!1},app_nav_nologin_header:{visible:!1},app_nav_logo:{visible:!0,props:{resident:!T}},disable_heart_beat:{visible:!0,props:{disabled:!0}},app_login_popup_entry:{visible:!1},third_party_login:T?{visible:!0,props:{onLoginConfirm:(e=j().mark((function t(e,r){var n;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,o.gE.clientLogin({});case 3:return"0"===(n=t.sent).errCode||null==r||r(),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)})),r=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(t){k(o,n,i,a,l,"next",t)}function l(t){k(o,n,i,a,l,"throw",t)}a(void 0)}))},function(t,e){return r.apply(this,arguments)})}}:{visible:!1,props:{requestLogin:function(t,e){o.gE.clientLogin({}).then((function(r){"0"===r.errCode?null==t||t():null==e||e()}))}}},good_question_card:{visible:!0,props:{showRefresh:!1,cardNum:4,showMore:!1,showClose:!1,rightRefresh:!0}},app_header:{visible:!!T,props:{hideWhenNoAuth:!0}},third_app_header:{visible:!T,props:{name:"sougou",title:"腾讯AI助手"}},app_chat_agent_info:{visible:!1},app_share:{visible:!1},app_chat_config:{visible:!0,props:{pcInput:!1,placeholder:{CommonInputBox:"你有什么想知道的,快来问问我"},class:{ChatContentCommon:"agent-dialogue__content--common--sougou"},passAnonCheckLogin:!T,allowAnonDeepSearchNavigateOnAskDone:!!T,onChatCreate:function(){a.a.emit("onChatCreate","/thirdParty/sg")},onDeepSearch:function(t){a.a.emit("onDeepSearch",t)},showStyleFunctionSwiperBtn:!0,keepInputGuideWhenUrlChatIdChange:!0,quillFocusHold:!0,verticalScrollValue:Number.MAX_SAFE_INTEGER,hideModelSwitchTip:!0,hideAppGuideTip:!0,hideModelSwitchErrorTip:!0,uploaderTypeList:{pdf:"capture=filesystem,.pdf,.txt,.doc,.docx,.ppt,.pptx,.xls,.xlsx,.csv"}}},theme_setting:{visible:!1},app_conv_toolbar:{visible:!0,props:{showShare:!1,showClickGotoImageAgent:!1}},text_to_image_operations:{visible:!1},image_agent_button:{visible:!1},deep_reading_button:{visible:!0},app_good_question_back:{visible:!0},third_good_question_back:{visible:!1},ai_image_search_button:{visible:!1},app_new_chat:{visible:!1},third_party_app_new_chat:{visible:!0,props:{btnText:"回到首页"}},app_deep_reading_detail:{visible:!0,props:{forceMobile:!0}},app_input_box:{visible:!0,props:{focusHold:!0}},interest_tag_modal:{visible:!1},app_nav_download_bar:{visible:!1},disable_clear_screen:{visible:!0},app_nav_trigger_btn:{visible:!1},show_logout:{visible:!1}})})),(0,s.K0)(_.a7,(function(t){t(S({},"x-channel",O))}));var P=r(95442),C=r(77256),N=r(3168),A=r(85428),I=function(t){return(0,A.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:t.onClick,className:"third-login-modal-dialog--close-icon",children:(0,A.jsxs)("g",{opacity:"0.6",children:[(0,A.jsx)("path",{d:"M11 11L21 21",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,A.jsx)("path",{d:"M11 21L21 11",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})};function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}function F(){F=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),l=new P(n||[]);return i(a,"_invoke",{value:j(t,r,l)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",d="executing",v="completed",_={};function y(){}function g(){}function b(){}var m={};s(m,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(C([])));x&&x!==r&&n.call(x,a)&&(m=x);var L=b.prototype=y.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,o,a,l){var c=p(t[i],t,o);if("throw"!==c.type){var s=c.arg,u=s.value;return u&&"object"==G(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):e.resolve(u).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var i=h;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var c=k(l,n);if(c){if(c===_)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var s=p(e,r,n);if("normal"===s.type){if(i=n.done?v:f,s.arg===_)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=v,n.method="throw",n.arg=s.arg)}}}function k(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),_;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,_;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,_):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,_)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(G(e)+" is not iterable")}return g.prototype=b,i(L,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(S.prototype),s(S.prototype,l,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new S(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(L),s(L,c,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return l.type="throw",l.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,_):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),_},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),_}},e}function D(t,e,r,n,i,o,a){try{var l=t[o](a),c=l.value}catch(t){return void r(t)}l.done?e(c):Promise.resolve(c).then(n,i)}(0,u.LZ)(_.R$,(function(t){location.pathname.startsWith("/open/login")||location.pathname.startsWith("/scan")||(0,c.vp)(),(0,P.r)("onShow",(function(){(0,c.UJ)()})),(0,P.r)("onHide",(function(){(0,c.vp)()})),t({show_model_selector:{visible:!1},app_nav_nologin_header:{visible:!1},app_login_modal:{visible:!1},input_file_list:{visible:!0,props:{noJumpDeepRead:!0}},third_party_deep_reading:{visible:!0,props:{historyFileSubmitWithChat:!0,deepReadingJumpAction:function(t){return window.open(t)},deepReadFileAction:function(t){var e,r,i=t[0];i&&a.a.emit("onDeepReading",{prompt:"深度阅读以下文档",fileId:(0,n.YJ)(),fileSize:i.size,fileType:i.type,fileName:i.name,extData:{showLoading:!0,autoSubmit:!0},getFile:(e=F().mark((function t(){return F().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",i.raw);case 1:case"end":return t.stop()}}),t)})),r=function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(t){D(o,n,i,a,l,"next",t)}function l(t){D(o,n,i,a,l,"throw",t)}a(void 0)}))},function(){return r.apply(this,arguments)})})}}},third_party_login:{visible:!0,props:{requestLogin:function(t,e){var r,n,o;n={onClose:function(){var t;null==e||e(),null===(t=r)||void 0===t||t()},onSubmit:function(e){r=(0,P.r)("loginSuccess",(function(){var n;null==t||t(),null===(n=r)||void 0===n||n(),e.destroy()})),window.open("/open/login?webappid=".concat((0,i.Nu)()),"loginPage","width=800,height=580")}},o=(0,C.uj)({header:!1,closeBtn:!1,footer:!1,className:"third-login-modal-dialog",placement:"center",mode:"full-screen",body:(0,A.jsxs)("div",{className:"third-login-modal-dialog--content",children:[(0,A.jsx)(I,{onClick:function(){var t;o.destroy(),null===(t=n.onClose)||void 0===t||t.call(n)}}),(0,A.jsx)("img",{className:"third-login-modal-dialog--logo",src:N}),(0,A.jsxs)("div",{className:"third-login-modal-dialog--text",children:[(0,A.jsx)("div",{className:"third-login-modal-dialog--title",children:"登录腾讯AI助手"}),(0,A.jsx)("div",{className:"third-login-modal-dialog--subtext",children:"登录后,可不限制次数使用"})]}),(0,A.jsx)("div",{className:"third-login-modal-dialog--btn",onClick:function(){var t;null===(t=n.onSubmit)||void 0===t||t.call(n,o)},children:"立即登录"})]})})}}},app_chat_config:{visible:!0,props:{hideModelSwitchTip:!0,hideAppGuideTip:!0,hideModelSwitchErrorTip:!0}},app_nav_download_bar:{visible:!1}})})),(0,s.K0)(_.R$,(function(t){t({"x-channel":(0,i.Nu)()})}));var q=r(31519),R=r(69687);(0,u.LZ)((function(){return(0,_.d4)()&&!(0,_.xv)()}),(function(t){t({wechat_binding_entry:{visible:!1,props:{}},app_chat_config:{visible:!0,props:{hideModelSwitchTip:!0,hideAppGuideTip:!0,hideModelSwitchErrorTip:!0}}})})),(0,s.K0)((function(){return window.top!==window&&(!!(0,_.nr)()&&((0,n.qA)().get("appId")!==q.ai&&!(0,_.xv)()))}),(function(t){t({"X-ID":function(){return(0,R.B4)().userId||""},"X-Token":function(){return(0,R.B4)().token||""}})}));var J=function(t){var e=(0,u.vK)()[t.id];return e&&!e.visible?null:"function"==typeof t.children?t.children((null==e?void 0:e.props)||{}):e.children&&"function"==typeof e.children?e.children(t.props):t.children||null};J.displayName="ThirdPartySlot";var B="text_to_image_operations",M="interest_tag_modal",W="deep_read_logo",z="app_deep_read_back_icon"},79589:(t,e,r)=>{r.d(e,{Db:()=>i,K0:()=>o,i7:()=>a});var n={};function i(t){return Object.assign(n,t)}function o(t,e){t()&&e(i)}function a(){var t={};return Object.keys(n).forEach((function(e){"function"==typeof n[e]?t[e]=n[e]():t[e]=n[e]})),t}},87665:(t,e,r)=>{r(23299)},97803:(t,e,r)=>{r.d(e,{cP:()=>_,LZ:()=>v,vK:()=>y});var n=r(7378);var i={app_nav_logo:{visible:!0,props:{}},assistant_title_prefix:{visible:!1},copyright:{visible:!0,props:{text:"",style:{}}},pcmgr_lottery_login_entry:{visible:!1},app_nav_extra:{visible:!0},app_login_modal:{visible:!0},app_login_popup_entry:{visible:!0},third_party_login:{visible:!1,props:{requestLogin:function(){},onLoginConfirm:void 0}},good_question_card:{visible:!0,props:{}},hide_welcome_panel:{visible:!1},app_nav:{visible:!0},app_nav_list:{visible:!0},app_header:{visible:!0,props:{hideWhenNoAuth:!1}},third_app_header:{visible:!1,props:{name:"",title:"元宝搜索"}},app_chat_agent_info:{visible:!0},app_chat_config:{visible:!0,props:{onChatCreate:void 0,onDeepSearch:void 0,pcInput:!1,placeholder:{CommonInputBox:""},class:{ChatContentCommon:""},passAnonCheckLogin:!1,allowAnonDeepSearchNavigateOnAskDone:!1,showStyleFunctionSwiperBtn:!1,keepInputGuideWhenUrlChatIdChange:!1,quillFocusHold:!1,verticalScrollValue:0,hideSessionNameDropdown:!1,hideModelSwitchTip:!1,hideAppGuideTip:!1,hideModelSwitchErrorTip:!1,uploaderTypeList:{},hideInputGuide:!1,redirectProfileToSettings:!1}},theme_setting:{visible:!0},app_share:{visible:!0},app_conv_toolbar:{visible:!0,props:{}},text_to_image_operations:{visible:!0},interest_tag_modal:{visible:!0},deep_read_logo:{visible:!0,props:{disableJumpHome:!1}},image_agent_button:{visible:!0},deep_reading_button:{visible:!0},app_good_question_back:{visible:!0},third_good_question_back:{visible:!1},app_deep_read_back_icon:{visible:!0},input_file_list:{visible:!0,props:{noJumpDeepRead:!1}},third_party_deep_reading:{visible:!1,props:{deepReadingJumpAction:void 0,deepReadFileAction:void 0,historyFileSubmitWithChat:!1}},third_party_chat_action:{visible:!1},ai_image_search_button:{visible:!0},app_nav_nologin_header:{visible:!1},app_new_chat:{visible:!0},third_party_app_new_chat:{visible:!1,props:{btnText:"",skipCheckLogin:!0,backgroundColor:""}},app_deep_reading_detail:{visible:!0,props:{forceMobile:!1}},app_input_box:{visible:!0,props:{focusHold:!1}},file_upload_warning_toast:{visible:!1,props:{text:""}},agent_memory:{visible:!1,props:{text:""}},new_chat:{visible:!0},new_conv:{visible:!1,props:{buttonText:"",text:""}},main_agent_url_prefix:{visible:!1,props:{url:""}},copy_request_login:{visible:!1},disable_heart_beat:{visible:!1,props:{disabled:!1}},edit_chat_title_max_length:{visible:!1,props:{length:0}},global_error_catcher:{visible:!0,props:{}},file_size_limit_exceed_toast:{visible:!1,props:{getToast:void 0}},use_v2_layout:{visible:!0},hide_ai_edit:{visible:!1},hide_profile_writing_entry:{visible:!1},chat_home_name:{visible:!1,props:{name:""}},share_image_download:{visible:!1,props:{onDownload:void 0,onDownload302:void 0,downloadByATag:void 0}},wechat_binding_entry:{visible:!0,props:{}},hide_tx_doc_jump_state:{visible:!1},show_model_selector:{visible:!0},upload_file_fail_toast:{visible:!1,props:{text:""}},disable_clear_screen:{visible:!1},app_nav_download_bar:{visible:!0},app_nav_trigger_btn:{visible:!0},app_nav_mobile_not_login:{visible:!0},app_user_ai_switch_config:{visible:!1,props:{}},show_logout:{visible:!0},show_home_login:{visible:!0},show_tx_doc_binding_entry:{visible:!0},show_tx_meeting_binding_entry:{visible:!0},show_pc_download_ads:{visible:!0},disable_user_active_report:{visible:!1},tiny_icon:{visible:!1,props:{switch_model:!1,switch_second_model:!1,network:!1,ref_ard_text:!1}},page_summary_tips:{visible:!1},read_page_icon:{visible:!1},screenshot_button:{visible:!1,props:{shouldHideImageUploader:!1,renderScreenshotButton:function(t){return null}}},popup_image_uploader:{visible:!1,props:{plusIcon:!1,hoverTips:!0}},popup_tenDoc_uploader:{visible:!0},custom_sse_xhr_instance:{visible:!1,props:void 0},geolocation_path:{visible:!1,props:void 0},select_bellow_all:{visible:!0}};function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,l=[],c=!0,s=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){s=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=i,h=[],f=function(t){return!!i[t]};function d(t){var e,r,n;e=p,r=t,n=Object.assign({},e),Object.keys(n).forEach((function(t){var i,o;if(f(t)){var a=s(s({},(null===(i=e[t])||void 0===i?void 0:i.props)||{}),(null===(o=r[t])||void 0===o?void 0:o.props)||{});n[t]=s(s(s({},n[t]),r[t]),{},{props:a})}})),p=n,h.forEach((function(t){try{t(p)}catch(t){}}))}function v(t,e){t()&&e(d)}function _(){return p}function y(){var t=a((0,n.useState)(p),2),e=t[0],r=t[1];return(0,n.useEffect)((function(){return h.push(r),function(){var t=h.indexOf(r);t>-1&&h.splice(t,1)}}),[]),e}}}]);
//# sourceMappingURL=sourcemap/2237.c2ad42320cf12864780e.js.map