WXL
7 小时以前 d79ce11fcd47db138764557d214f4ea2169fb90a
1
2
3
/*! For license information please see 5549.9257f2573dee0df34420.js.LICENSE.txt */
"use strict";(self.webpackChunkhunyuan_bot=self.webpackChunkhunyuan_bot||[]).push([[5549],{8065:(t,e,r)=>{r.d(e,{M:()=>E});var n=r(7378),o=r(26093),i=r(74116),a=r(43572),c=r(3698),u=r.n(c),l=function(t){return t[t.NO_USER=0]="NO_USER",t[t.HAS_USER=1]="HAS_USER",t[t.EXIST_UNACTIVE_USER=2]="EXIST_UNACTIVE_USER",t}({}),s=r(91400),f=r(85428);function h(t){return h="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},h(t)}function p(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 d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=function(t){var e=t.className;return(0,f.jsx)("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,f.jsx)("path",{d:"M5.33301 13.334L10.6663 8.00065L5.33301 2.66732",strokeLinecap:"round",strokeLinejoin:"round"})})};const m=function(t){var e,r=t.status,o=t.onClickTeam,i=t.onClickPersonal,c=t.disableTeam,h=t.reportAttrs,p=t.reportHandlers,v=t.createPersonal,m=t.disablePersonal,g=t.showPersonalTips,b=r===l.EXIST_UNACTIVE_USER&&!c,w={handlers:{personal:function(t){var e;null==p||null===(e=p.onPersonalAccount)||void 0===e||e.call(p,t)},team:function(t){var e;null==p||null===(e=p.onTeamAccount)||void 0===e||e.call(p,t,{disableTeam:c,existUnActiveUser:b})}},attrs:{personal:function(){var t;return null==h||null===(t=h.onPersonalAccount)||void 0===t?void 0:t.call(h)},team:function(){var t;return null==h||null===(t=h.onTeamAccount)||void 0===t?void 0:t.call(h,{disableTeam:c,existUnActiveUser:b})}}};if((0,n.useEffect)((function(){c&&w.handlers.team("expose")}),[c]),(0,n.useEffect)((function(){w.handlers.team("expose"),w.handlers.personal("expose")}),[]),h&&p)throw new Error("不能同时使用 reportAttrs 和 reportHandlers");var x=(0,f.jsxs)("div",d(d({className:u()("ybc-login-account-list_item ybc-login-account-list_personal",{"ybc-login-account-list_disable":m})},w.attrs.personal()),{},{onClick:function(){w.handlers.personal("click"),m||null==i||i()},children:[(0,f.jsx)("div",{className:"ybc-login-account-list_item_icon ybc-login-account-list_personal_icon"}),(0,f.jsx)("div",{className:"ybc-login-account-list_item_desc",children:(0,f.jsx)("div",{className:"ybc-login-account-list_item_desc_title",children:v?(0,f.jsx)(a.Trans,{children:"创建个人账号"}):(0,f.jsx)(a.Trans,{children:"个人账号"})})}),(0,f.jsx)(y,{className:"ybc-login-account-list_item_arrow"})]}));return(0,f.jsxs)("div",{className:"ybc-login-account-list",children:[g?(0,f.jsx)(s.qY,{className:"ybc-login-account-list-tooltiplite",content:g?(0,f.jsx)(a.Trans,{children:"无法使用此账号,管理员设置该设备账号仅允许登录指定团队账号"}):null,placement:"mouse",children:x}):x,(0,f.jsxs)("div",d(d({className:u()("ybc-login-account-list_item","ybc-login-account-list_team",{"ybc-login-account-list_disable":c})},null==w||null===(e=w.attrs)||void 0===e?void 0:e.team()),{},{onClick:function(){var t;null==w||null===(t=w.handlers)||void 0===t||t.team("click"),c||null==o||o()},children:[(0,f.jsx)("div",{className:"ybc-login-account-list_item_icon ybc-login-account-list_team_icon"}),(0,f.jsx)("div",{className:"ybc-login-account-list_item_desc",children:(0,f.jsx)("div",{className:u()("ybc-login-account-list_item_desc_title",{needNotice:b}),children:(0,f.jsx)(a.Trans,{children:"团队账号"})})}),(0,f.jsx)(y,{className:"ybc-login-account-list_item_arrow"})]}))]})};var g=r(77256),b=r(79815);function w(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(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)?x(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 x(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}var L=function(t){var e=(0,o.Bd)().t,r=t.oneIdMsg,a=t.onClickPersonal,c=t.lang,u=t.theme,l=t.onLoginSuccess,s=t.onJoinSuccess,h=t.createPersonal,p=w((0,n.useState)(!1),2),d=p[0],v=p[1],y=w((0,n.useState)(!1),2),g=y[0],x=y[1];return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:"choose-content",children:[(0,f.jsx)("div",{className:"choose-content__title",children:e("选择账号类型")}),(0,f.jsx)("div",{className:"choose-content__summary",children:e("你有多个账号类型,请选择")}),(0,f.jsx)(m,{createPersonal:h,status:null==r?void 0:r.status,reportAttrs:{onPersonalAccount:function(){return{"dt-exposure":"OnPageMod","dt-click":"OnPageClick","dt-page-id":"SelectAccountPage","dt-mod-id":"personal_account","dt-button-id":"personal_account"}},onTeamAccount:function(t){return{"dt-exposure":"OnPageMod","dt-click":"OnPageClick","dt-page-id":"SelectAccountPage","dt-mod-id":"team_account","dt-button-id":"team_account","dt-ext1":t.disableTeam?"1":"0","dt-ext2":t.existUnActiveUser?"1":"0"}}},disableTeam:d,onClickTeam:function(){try{x(!0)}catch(t){(0,b.Ax)("".concat(JSON.stringify(t)))}},onClickPersonal:a})]}),(0,f.jsx)(i.Y3,{env:r.env,stateToken:r.stateToken,lang:c,mode:u,visible:g,onBack:function(){return x(!1)},onLoginSuccess:function(t){null==l||l(t),x(!1)},onReject:function(){v(!0)},onJoinSuccess:function(t){null==s||s(t)},onVisibleChange:function(){x(!1)},onError:function(){x(!1)}})]})},E=function(t){var e=t.lang,r=t.theme,n=t.oneIdMsg,o=g.uj.confirm({className:"yb-choose-account-dialog",children:(0,f.jsx)(L,{lang:e,theme:r,oneIdMsg:n,onJoinSuccess:function(e){var r;null==t||null===(r=t.onJoinSuccess)||void 0===r||r.call(t,e),o.destroy()},onLoginSuccess:function(e){var r;null==t||null===(r=t.onLoginSuccess)||void 0===r||r.call(t,e),o.destroy()},onClickPersonal:function(){var e;null==t||null===(e=t.onClickPersonal)||void 0===e||e.call(t),o.destroy()}}),footer:null,cancelBtn:null,confirmBtn:null,placement:"center",closeOnOverlayClick:!1,onClose:function(){o.destroy()}})}},12220:(t,e,r)=>{r.d(e,{o5:()=>V,y7:()=>I.y});var n=r(34237),o=r(28619),i=r(7378),a=r(39646),c=r(37136),u=r(43721),l=r(86118),s=r(11401),f=r(75e3),h=r(17557),p=r(46944),d=r(85803),v=r(8684),y=r(97803),m=r(26093),g=r(88188),b=r(83862),w=r(49978),x=r(27036),L=r(60528),E=r(85428);function C(t){return C="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},C(t)}function j(){j=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==C(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(C(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},_(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),A(r),y}},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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function _(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function O(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,c,"next",t)}function c(t){_(i,n,o,a,c,"throw",t)}a(void 0)}))}}var k="global-error-boundary-fallback",S=function(t){var e,r,o=(0,m.Bd)().t,a=(0,w.A)().height,c=a>500,u=a>300,l=a>180;return(0,i.useEffect)((function(){n.a.addListener("onWebShow",(function(){location.reload()}))}),[]),(0,i.useMemo)((function(){var e;return-1!==((null===(e=t.error)||void 0===e?void 0:e.name)||"").indexOf("ChunkLoadError")}),[t.error])?(0,E.jsx)(L.A,{}):(0,E.jsx)(g.M,{className:"".concat(k,"__root"),showHeader:!1,showFeedback:u,title:o("Oops! 页面出错了"),feedbackTarget:"_blank",icon:l&&(0,E.jsx)("div",{className:"".concat(k,"__icon"),children:(0,E.jsx)(b.Ay,{size:40,type:"close"})}),desc:(0,E.jsxs)("div",{className:"".concat(k,"__content"),children:[u&&(0,E.jsxs)("div",{className:"".concat(k,"__desc--root"),children:[(0,E.jsxs)("p",{className:"".concat(k,"__desc"),children:["[",(null===(e=t.error)||void 0===e?void 0:e.name)||o("未知错误"),"]"]}),c&&(0,E.jsx)("p",{className:"".concat(k,"__desc"),children:(null===(r=t.error)||void 0===r?void 0:r.message)||"-"})]}),(0,E.jsx)("div",{className:"".concat(k,"__footer"),children:(0,E.jsx)(x.$,{onClick:O(j().mark((function e(){var r,n,i,a;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.gE.getDeviceInfo().catch((function(){return{result:{deviceId:""}}}));case 2:i=e.sent,a=i.result,null===(r=d.fQ.ins)||void 0===r||r.infoAll({type:d.Ku.PAGE_ERROR_REFRESH,payload:{errorMsg:(null===(n=t.error)||void 0===n?void 0:n.message)||o("未知错误"),deviceId:a.deviceId||""}}),setTimeout((function(){location.reload()}),0);case 6:case"end":return e.stop()}}),e)}))),children:o("刷新页面")})})]})})};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 A(){A=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==P(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(P(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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=N,T.prototype={constructor:T,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function T(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var N=function(t){var e=t.children,r=(0,y.vK)().global_error_catcher;return null!=r&&r.visible?(0,E.jsx)(v.tH,{FallbackComponent:S,onError:function(){var t,e=(t=A().mark((function t(e){var r,n,o;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.gE.getDeviceInfo().catch((function(){return{result:{deviceId:""}}}));case 2:n=t.sent,o=n.result,null===(r=d.fQ.ins)||void 0===r||r.error({type:d.Ku.PAGE_CRASH,error:e,payload:{deviceId:o.deviceId||""}});case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){T(i,n,o,a,c,"next",t)}function c(t){T(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),children:e}):e},I=r(55534);function F(t){return F="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},F(t)}function D(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 M(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach((function(e){H(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function H(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=F(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==F(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function R(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return G(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)?G(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 G(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}var Y=function(t,e){var r=(0,o.$)(e);(0,i.useEffect)((function(){return n.a.addListener(t,r),function(){n.a.removeListener(t,r)}}),[r,t])},V=function(t){var e=t.children,r=t.initApp,d=t.config,v=(0,h.X6)(),y=(0,p.ku)(),m=(0,p.q9)(),g=R((0,i.useState)({}),2),b=g[0],w=g[1],x=(0,o.$)((function(t){w((function(e){return M(M({},e),t)}))})),L=(0,o.$)((function(t){var e;if(!b[t])switch(t){case"onFileAsk":case"onFileTranslate":case"onFileWordTranslate":case"onFileSummarize":case"onFileExtract":case"onDeepReading":case"onHomeworkSolution":case"onDocGeneration":case"onExtractTable":v(arguments.length<=1?void 0:arguments[1]);break;case"onAsk":y(arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]);break;case"onAskV2":m(arguments.length<=1?void 0:arguments[1]);break;case"onAskWithNewSession":y(arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]);break;case"onLoginModalClose":null==d||null===(e=d.onLoginModalClose)||void 0===e||e.call(d)}}));return Y("onAsk",(function(t,e){return L("onAsk",t,e)})),Y("onFileAsk",(function(t){return L("onFileAsk",t)})),Y("onFileTranslate",(function(t){return L("onFileTranslate",t)})),Y("onFileWordTranslate",(function(t){return L("onFileWordTranslate",t)})),Y("onFileSummarize",(function(t){return L("onFileSummarize",t)})),Y("onFileExtract",(function(t){return L("onFileExtract",t)})),Y("onDeepReading",(function(t){return L("onDeepReading",t)})),Y("onHomeworkSolution",(function(t){return L("onHomeworkSolution",t)})),Y("onDocGeneration",(function(t){return L("onDocGeneration",t)})),Y("onExtractTable",(function(t){return L("onExtractTable",t)})),Y("onAskV2",(function(t){return L("onAskV2",t)})),Y("onAskWithNewSession",(function(t,e){return L("onAskWithNewSession",t,e)})),Y("onLoginModalClose",(function(){return L("onLoginModalClose")})),function(t){var e=t.initApp,r=(0,l.r)().pageInitState,h=(0,a.Zp)(),p=(0,f.vK)().main_agent_url_prefix,d=(0,o.$)((function(t){var e,r=(null==p||null===(e=p.props)||void 0===e?void 0:e.url)||"/chat";h("".concat(r,"/").concat(u.kv,"/").concat(t)),c.az.emit("session-state-change",{isAfterNewChat:!0})}));(0,i.useEffect)((function(){return n.a.addListener("onCommitContinueAsk",d),n.a.addListener("initApp",e),function(){n.a.removeListener("onCommitContinueAsk",d),n.a.removeListener("initApp",e)}}),[d]),(0,i.useEffect)((function(){location.pathname.startsWith("/embed")||"loading"===r||s.gE.pageReady("main","search")}),[r])}({initApp:r}),(0,E.jsx)(I.x.Provider,{value:{features:b,updateCustomFeatures:x},children:(0,E.jsx)(N,{children:e||null})})}},17557:(t,e,r)=>{r.d(e,{$c:()=>C,JV:()=>L,X6:()=>E});var n=r(34237),o=r(47436),i=r(37136),a=r(7378),c=r(28619),u=r(86118),l=r(21768),s=r(39646),f=r(43721),h=r(45042),p=r(59125),d=r(55534);function v(t){return v="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},v(t)}function y(){y=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",m="completed",g={};function b(){}function w(){}function x(){}var L={};l(L,a,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(N([])));C&&C!==r&&n.call(C,a)&&(L=C);var j=x.prototype=b.prototype=Object.create(L);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==v(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?m:p,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(v(e)+" is not iterable")}return w.prototype=x,o(j,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},_(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),l(j,u,"Generator"),l(j,a,(function(){return this})),l(j,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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),A(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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function m(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){m(i,n,o,a,c,"next",t)}function c(t){m(i,n,o,a,c,"throw",t)}a(void 0)}))}}function b(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return w(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)?w(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function w(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}var x={file:null,setNextFile:function(t){x.file=t},getNextFile:function(){var t=x.file;return x.file=null,t}},L=function(t){var e=t.files,r=t.askMainAgent,s=t.chat,f=(0,u.r)(),v=f.visitorClickCount,m=f.checkLogin,w=(0,d.y)().updateCustomFeatures,L=(0,a.useMemo)((function(){if(null==e||!e.length)return!1;var t,r=b(e);try{for(r.s();!(t=r.n()).done;){var n,i=t.value;if(null!==(n=i.ext)&&void 0!==n&&null!==(n=n.thirdApp)&&void 0!==n&&n.showLoading&&[o.A8.wait,o.A8.loading,o.A8.parsing].includes(i.status))return!0}}catch(t){r.e(t)}finally{r.f()}return!1}),[e]),E=(0,c.$)(function(){var t=g(y().mark((function t(e){var n,a,c;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v({checkOnly:!0,updateCount:!1})){t.next=12;break}return t.prev=2,t.next=5,m();case 5:t.next=12;break;case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return");case 12:return t.prev=12,t.next=15,r({realQuestion:"",uploadFiles:[]},{navigateOnly:!0,passAnonCheckLogin:!0});case 15:return t.next=17,(0,l.d)();case 17:return t.next=19,(0,p.m)();case 19:return"string"==typeof e.prompt&&i.az.emit("fill-input-prompt",e.prompt,!0),t.next=22,(0,l.d)();case 22:return i.az.emit("input-file-upload-clear"),i.az.emit("fill-input-file",[{width:0,height:0,raw:null,status:o.A8.parsing,id:e.fileId,progress:0,type:(0,h.ti)(e.fileType,e.fileName),name:e.fileName||"",size:e.fileSize,url:"",ext:{thirdApp:e.extData}}]),t.next=26,e.getFile();case 26:if(n=t.sent,a=(0,h.ti)(n.type,n.name),c={type:a,name:e.fileName,size:e.fileSize,url:"",raw:n,width:0,height:0,ext:{thirdApp:e.extData}},"image"!==a){t.next=32;break}return t.next=32,new Promise((function(t){var e=URL.createObjectURL(n),r=new Image;r.onload=function(){c.url=e,c.width=r.naturalWidth,c.height=r.naturalHeight,t()},r.src=e}));case 32:i.az.emit("input-file-upload",c),t.next=39;break;case 36:t.prev=36,t.t1=t.catch(12);case 39:case"end":return t.stop()}}),t,null,[[2,8],[12,36]])})));return function(e){return t.apply(this,arguments)}}());return(0,a.useEffect)((function(){var t=null==e?void 0:e.filter((function(t){var e;return(null===(e=t.ext)||void 0===e||null===(e=e.thirdApp)||void 0===e?void 0:e.autoSubmit)&&t.status===o.A8.finish}));null!=t&&t.length&&t.length===(null==e?void 0:e.length)&&(0,l.d)().then((function(){i.az.emit("trigger-input-box-send",void 0,{fromOuter:!0})}))}),[e]),(0,a.useEffect)((function(){return n.a.addListener("onFileAsk",E),n.a.addListener("onFileTranslate",E),n.a.addListener("onFileWordTranslate",E),n.a.addListener("onFileSummarize",E),n.a.addListener("onFileExtract",E),n.a.addListener("onDeepReading",E),n.a.addListener("onHomeworkSolution",E),n.a.addListener("onDocGeneration",E),n.a.addListener("onExtractTable",E),w({onFileAsk:!0,onFileTranslate:!0,onFileWordTranslate:!0,onFileSummarize:!0,onFileExtract:!0,onDeepReading:!0,onHomeworkSolution:!0,onDocGeneration:!0,onExtractTable:!0}),function(){n.a.removeListener("onFileAsk",E),n.a.removeListener("onFileTranslate",E),n.a.removeListener("onFileWordTranslate",E),n.a.removeListener("onFileSummarize",E),n.a.removeListener("onFileExtract",E),n.a.removeListener("onDeepReading",E),n.a.removeListener("onHomeworkSolution",E),n.a.removeListener("onDocGeneration",E),n.a.removeListener("onExtractTable",E),w({onFileAsk:!1,onFileTranslate:!1,onFileWordTranslate:!1,onFileSummarize:!1,onFileExtract:!1,onDeepReading:!1,onHomeworkSolution:!1,onDocGeneration:!1,onExtractTable:!1})}}),[E,w]),(0,a.useEffect)((function(){if(null!=s&&s.id){var t=x.getNextFile();t&&E(t)}}),[s,E]),{uploading:L}},E=function(){var t=(0,s.Zp)();if(window.location.pathname.includes("thirdParty/guanjia/file"))return function(){};var e=(0,c.$)(function(){var e=g(y().mark((function e(r){var n;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=window.location.pathname.includes("thirdParty/guanjia")?"/thirdParty/guanjia/pmChat":"/chat",x.setNextFile(r),t("".concat(n,"/").concat(f.kv));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return e},C=function(){var t=(0,s.Zp)();return window.location.pathname.includes("thirdParty/guanjia/file")?function(){}:(0,c.$)(function(){var e=g(y().mark((function e(r){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x.setNextFile(r),t("/thirdParty/guanjia/pmChat/".concat(f.kv));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},20162:(t,e,r)=>{r.d(e,{Z:()=>i});var n="HY_BOT_WEB_QUEUE_MAPS";function o(t){return window[n][t]||(window[n][t]={hasRun:!1,taskList:[],lastPayloadCache:void 0}),window[n][t]}window[n]={};var i={resetAll:function(){window[n]={}},reset:function(t){delete window[n][t]},run:function(t,e){o(t).hasRun=!0,o(t).taskList.forEach((function(t){t(e)})),o(t).lastPayloadCache=e},push:function(t,e){o(t).hasRun&&e(o(t).lastPayloadCache),o(t).taskList.push(e)}}},32552:(t,e,r)=>{r.d(e,{RE:()=>L,Mz:()=>j,kU:()=>d,d7:()=>x,py:()=>g,eJ:()=>y,NT:()=>p,RI:()=>_,Pi:()=>E,jf:()=>v,YP:()=>C,WI:()=>b,ST:()=>w,$0:()=>O,Gg:()=>h,zf:()=>m});const n="style__hunyuan-icon-wrapper___t86IZ";var o=r(3698),i=r.n(o),a=r(85428);function c(t){return c="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},c(t)}function u(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 l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=function(t){var e=t.style,r=t.children,o=t.className,c=t.size;return(0,a.jsx)("span",{style:l(l({},e),{},{height:c,width:c}),className:i()(n,o),children:r})},h=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M6.5 1.98313L7.59031 4.92965C7.67261 5.15205 7.84795 5.32739 8.07035 5.40969L11.0169 6.5L8.07035 7.59031C7.84795 7.67261 7.67261 7.84795 7.59031 8.07035L6.5 11.0169L5.40969 8.07035C5.32739 7.84795 5.15205 7.67261 4.92965 7.59031L1.98313 6.5L4.92965 5.40969C5.15205 5.32739 5.32739 5.15205 5.40969 4.92965L6.5 1.98313Z",stroke:t.fill||"black",strokeWidth:"0.8125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M2.70206 2.36603L2.84375 1.98313L2.98544 2.36603C3.04304 2.52171 3.16579 2.64445 3.32147 2.70206L3.70437 2.84375L3.32147 2.98544C3.16579 3.04304 3.04305 3.16579 2.98544 3.32147L2.84375 3.70437L2.70206 3.32147C2.64446 3.16579 2.52171 3.04305 2.36603 2.98544L1.98313 2.84375L2.36603 2.70206C2.52171 2.64446 2.64445 2.52171 2.70206 2.36603Z",fill:t.fill||"black",stroke:t.fill||"black",strokeWidth:"0.8125",strokeLinecap:"round",strokeLinejoin:"round"})]})}))},p=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M7.99414 1.5C11.584 1.5 14.4941 4.41015 14.4941 8C14.4941 11.5899 11.584 14.5 7.99414 14.5C4.40429 14.5 1.49414 11.5898 1.49414 8C1.49414 4.41015 4.40429 1.5 7.99414 1.5Z",stroke:t.fill||"black",strokeOpacity:"0.6"}),(0,a.jsx)("path",{d:"M5.80249 6.63145C5.80249 5.42256 6.78511 4.43994 7.99399 4.43994C9.20288 4.43994 10.1855 5.42256 10.1855 6.63145C10.1855 7.60157 9.4429 8.35242 8.701 8.65449C8.58005 8.70482 8.49404 8.82446 8.49404 8.97002V9.76744H7.49404V8.97002C7.49404 8.41035 7.83289 7.93094 8.32041 7.72974L8.32296 7.72869C8.81772 7.52769 9.1855 7.07179 9.1855 6.63145C9.1855 5.97484 8.65059 5.43994 7.99399 5.43994C7.33739 5.43994 6.80249 5.97484 6.80249 6.63145H5.80249ZM7.46673 11.1734C7.46673 10.8822 7.70277 10.6461 7.99395 10.6461C8.28513 10.6461 8.52117 10.8822 8.52117 11.1734C8.52117 11.4645 8.28513 11.7006 7.99395 11.7006C7.70277 11.7006 7.46673 11.4645 7.46673 11.1734Z",fill:t.fill||"black",fillOpacity:"0.6"})]})}))},d=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{width:t.size,height:t.size,rx:"8",fill:t.fill||"var(--widget-btn_checkbox)"}),(0,a.jsx)("path",{d:"M5.5 5.5L10.5 10.5",stroke:t.fill||"var(--text-text_secondary)",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M5.5 10.5L10.5 5.5",stroke:t.fill||"var(--text-text_secondary)",strokeLinecap:"round",strokeLinejoin:"round"})]})}))},v=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M6.87057 3.21329C7.5783 2.92014 8.33684 2.76926 9.10289 2.76926C9.86893 2.76926 10.6275 2.92014 11.3352 3.21329C12.0429 3.50645 12.686 3.93613 13.2277 4.4778C13.7694 5.01948 14.199 5.66254 14.4922 6.37027C14.7853 7.078 14.9362 7.83655 14.9362 8.60259C14.9362 9.36863 14.7853 10.1272 14.4922 10.8349L12.2599 8.60259",stroke:t.fill||"black",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M11.1457 14.1807C10.438 14.4739 9.67945 14.6248 8.91341 14.6248C8.14736 14.6248 7.38882 14.4739 6.68109 14.1808C5.97336 13.8876 5.33029 13.4579 4.78862 12.9162C4.24694 12.3746 3.81726 11.7315 3.52411 11.0238C3.23096 10.316 3.08007 9.5575 3.08007 8.79145C3.08007 8.02541 3.23096 7.26687 3.52411 6.55913L5.75643 8.79145",stroke:t.fill||"black",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})]})}))},y=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_10388_1792)",children:[(0,a.jsx)("mask",{id:"path-1-inside-1_10388_1792",fill:"white",children:(0,a.jsx)("path",{d:"M13.3947 10.405C13.3501 10.2856 13.1795 10.2856 13.1349 10.405L12.6321 11.75C12.6181 11.7876 12.5882 11.8172 12.5503 11.8311L11.1915 12.3288C11.0709 12.373 11.0709 12.5418 11.1915 12.586L12.5503 13.0837C12.5882 13.0976 12.6181 13.1272 12.6321 13.1648L13.1349 14.5098C13.1795 14.6292 13.3501 14.6292 13.3947 14.5098L13.8975 13.1648C13.9115 13.1272 13.9414 13.0976 13.9794 13.0837L15.3381 12.586C15.4587 12.5418 15.4587 12.373 15.3381 12.3288L13.9794 11.8311C13.9414 11.8172 13.9115 11.7876 13.8975 11.75L13.3947 10.405Z"})}),(0,a.jsx)("path",{d:"M13.1349 10.405L12.0644 10.0048L12.0644 10.0048L13.1349 10.405ZM13.3947 10.405L14.4653 10.0048L14.4652 10.0048L13.3947 10.405ZM12.6321 11.75L13.7026 12.1502L13.7026 12.1502L12.6321 11.75ZM12.5503 11.8311L12.9434 12.9042L12.9434 12.9042L12.5503 11.8311ZM11.1915 12.3288L10.7984 11.2556L10.7984 11.2556L11.1915 12.3288ZM11.1915 12.586L10.7984 13.6591L10.7984 13.6591L11.1915 12.586ZM12.5503 13.0837L12.9434 12.0106L12.9434 12.0106L12.5503 13.0837ZM12.6321 13.1648L13.7026 12.7646L13.7026 12.7646L12.6321 13.1648ZM13.1349 14.5098L12.0644 14.91L12.0644 14.91L13.1349 14.5098ZM13.3947 14.5098L14.4652 14.91L14.4653 14.91L13.3947 14.5098ZM13.8975 13.1648L12.827 12.7646L12.827 12.7646L13.8975 13.1648ZM13.9794 13.0837L13.5863 12.0106L13.5863 12.0106L13.9794 13.0837ZM15.3381 12.586L15.7312 13.6591L15.7312 13.6591L15.3381 12.586ZM15.3381 12.3288L15.7312 11.2556L15.7312 11.2556L15.3381 12.3288ZM13.9794 11.8311L13.5863 12.9042L13.5863 12.9042L13.9794 11.8311ZM13.8975 11.75L12.827 12.1502L12.827 12.1502L13.8975 11.75ZM14.2054 10.8051C13.8799 11.676 12.6498 11.676 12.3242 10.8051L14.4652 10.0048C14.0505 8.89516 12.4792 8.89516 12.0644 10.0048L14.2054 10.8051ZM13.7026 12.1502L14.2054 10.8051L12.0644 10.0048L11.5616 11.3499L13.7026 12.1502ZM12.9434 12.9042C13.2917 12.7766 13.5708 12.5029 13.7026 12.1502L11.5616 11.3499C11.6654 11.0722 11.8847 10.8577 12.1572 10.7579L12.9434 12.9042ZM11.5846 13.4019L12.9434 12.9042L12.1572 10.7579L10.7984 11.2556L11.5846 13.4019ZM11.5846 11.5129C12.4637 11.8349 12.4637 13.0799 11.5846 13.4019L10.7984 11.2556C9.67814 11.666 9.67814 13.2488 10.7984 13.6591L11.5846 11.5129ZM12.9434 12.0106L11.5846 11.5129L10.7984 13.6591L12.1572 14.1568L12.9434 12.0106ZM13.7026 12.7646C13.5708 12.4119 13.2917 12.1382 12.9434 12.0106L12.1572 14.1568C11.8847 14.057 11.6654 13.8426 11.5616 13.5649L13.7026 12.7646ZM14.2054 14.1097L13.7026 12.7646L11.5616 13.5649L12.0644 14.91L14.2054 14.1097ZM12.3242 14.1096C12.6498 13.2388 13.8799 13.2388 14.2054 14.1096L12.0644 14.91C12.4792 16.0196 14.0505 16.0196 14.4652 14.91L12.3242 14.1096ZM12.827 12.7646L12.3242 14.1097L14.4653 14.91L14.968 13.5649L12.827 12.7646ZM13.5863 12.0106C13.2379 12.1382 12.9589 12.4119 12.827 12.7646L14.968 13.5649C14.8642 13.8426 14.6449 14.057 14.3725 14.1568L13.5863 12.0106ZM14.945 11.5129L13.5863 12.0106L14.3725 14.1568L15.7312 13.6591L14.945 11.5129ZM14.945 13.4019C14.0659 13.0799 14.0659 11.8349 14.945 11.5129L15.7312 13.6591C16.8515 13.2488 16.8515 11.666 15.7312 11.2556L14.945 13.4019ZM13.5863 12.9042L14.945 13.4019L15.7312 11.2556L14.3725 10.7579L13.5863 12.9042ZM12.827 12.1502C12.9589 12.5029 13.2379 12.7766 13.5863 12.9042L14.3725 10.7579C14.6449 10.8577 14.8642 11.0722 14.968 11.3499L12.827 12.1502ZM12.3242 10.8051L12.827 12.1502L14.968 11.3499L14.4653 10.0048L12.3242 10.8051Z",fill:t.fill||"var(--text-text_primary)",mask:"url(#path-1-inside-1_10388_1792)"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.80662 3.79004C8.22647 3.79004 7.7562 4.26031 7.7562 4.84046C7.7562 5.4206 8.22647 5.89088 8.80662 5.89088C9.38677 5.89088 9.85704 5.4206 9.85704 4.84046C9.85704 4.26031 9.38677 3.79004 8.80662 3.79004Z",fill:t.fill||"var(--text-text_primary)"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.47889 5.00012C4.89874 5.00012 4.42847 5.4704 4.42847 6.05054C4.42847 6.63069 4.89874 7.10096 5.47889 7.10096C6.05903 7.10096 6.52931 6.63069 6.52931 6.05054C6.52931 5.4704 6.05903 5.00012 5.47889 5.00012Z",fill:t.fill||"var(--text-text_primary)"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.73099 9.37828C4.73099 8.79813 5.20126 8.32786 5.78141 8.32786C6.36155 8.32786 6.83183 8.79813 6.83183 9.37828C6.83183 9.95842 6.36155 10.4287 5.78141 10.4287C5.20126 10.4287 4.73099 9.95842 4.73099 9.37828Z",fill:t.fill||"var(--text-text_primary)"}),(0,a.jsx)("path",{d:"M7.5 14C9.43703 14 8.25917 11.1192 9.45 9.775C10.4661 8.62804 14 9.15282 14 7.5C14 3.91015 11.0899 1 7.5 1C3.91015 1 1 3.91015 1 7.5C1 11.0899 3.91015 14 7.5 14Z",stroke:t.fill||"var(--text-text_primary)",strokeOpacity:"0.9",strokeWidth:"1.2",strokeLinejoin:"round"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_10388_1792",children:(0,a.jsx)("rect",{width:t.size,height:t.size,fill:"white"})})})]})}))},m=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2059 6.17084L5.36877 14.0079L5.35152 13.9907C5.24617 14.0948 5.10138 14.159 4.9416 14.159H2.75958C2.61353 14.159 2.48003 14.1053 2.3777 14.0167C2.24938 13.9097 2.16772 13.7486 2.16772 13.5684L2.16772 11.3719C2.16772 11.155 2.28609 10.9658 2.46176 10.8653L10.181 3.146C11.0163 2.31072 12.3706 2.3107 13.2059 3.146C14.0412 3.98129 14.0411 5.33556 13.2059 6.17084ZM12.3809 3.97096C12.0012 3.59127 11.3857 3.59127 11.006 3.97096L10.181 4.79591L11.556 6.17084L12.3809 5.34589C12.7606 4.9662 12.7606 4.35064 12.3809 3.97096ZM10.731 6.9958L9.35606 5.62087L3.33439 11.6425V12.9923H4.73445L10.731 6.9958Z",fill:t.fill||"var(--text-text_primary)",fillOpacity:"0.9"}),(0,a.jsx)("path",{d:"M4.28777 1.91423C4.27646 1.89213 4.25926 1.87358 4.23808 1.86063C4.2169 1.84767 4.19255 1.84082 4.16772 1.84082C4.1429 1.84082 4.11855 1.84767 4.09737 1.86063C4.07619 1.87358 4.05899 1.89213 4.04768 1.91423L3.6524 2.68346C3.51063 2.95942 3.28599 3.18406 3.01004 3.32583L2.24113 3.72111C2.21903 3.73242 2.20048 3.74962 2.18753 3.7708C2.17458 3.79198 2.16772 3.81633 2.16772 3.84115C2.16772 3.86598 2.17458 3.89033 2.18753 3.91151C2.20048 3.93269 2.21903 3.94989 2.24113 3.9612L3.01037 4.35614C3.28633 4.49792 3.51096 4.72255 3.65273 4.99851L4.04768 5.76742C4.05899 5.78952 4.07619 5.80806 4.09737 5.82102C4.11855 5.83397 4.1429 5.84082 4.16772 5.84082C4.19255 5.84082 4.2169 5.83397 4.23808 5.82102C4.25926 5.80806 4.27646 5.78952 4.28777 5.76742L4.68305 4.99818C4.82479 4.72239 5.0493 4.49789 5.32508 4.35614L6.09432 3.96087C6.11642 3.94955 6.13497 3.93236 6.14792 3.91118C6.16087 3.88999 6.16772 3.86565 6.16772 3.84082C6.16772 3.81599 6.16087 3.79165 6.14792 3.77046C6.13497 3.74928 6.11642 3.73209 6.09432 3.72077L5.32508 3.3255C5.0493 3.18375 4.82479 2.95925 4.68305 2.68346L4.28777 1.91423Z",fill:t.fill||"var(--text-text_primary)",fillOpacity:"0.9"})]})}))},g=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.087 1.01981C14.1081 1.03276 14.1253 1.05131 14.1366 1.07341L14.5319 1.84264C14.6737 2.11843 14.8982 2.34293 15.174 2.48468L15.9432 2.87995C15.9653 2.89127 15.9838 2.90846 15.9968 2.92964C16.0097 2.95083 16.0166 2.97517 16.0166 3C16.0166 3.02483 16.0097 3.04917 15.9968 3.07036C15.9838 3.09154 15.9653 3.10873 15.9432 3.12005L15.174 3.51532C14.8982 3.65707 14.6737 3.88157 14.5319 4.15736L14.1366 4.92659C14.1253 4.94869 14.1081 4.96724 14.087 4.98019C14.0658 4.99315 14.0414 5 14.0166 5C13.9918 5 13.9674 4.99315 13.9462 4.98019C13.9251 4.96724 13.9079 4.94869 13.8966 4.92659L13.5016 4.15769C13.3598 3.88173 13.1352 3.6571 12.8592 3.51532L12.09 3.12038C12.0679 3.10907 12.0494 3.09187 12.0364 3.07069C12.0235 3.04951 12.0166 3.02516 12.0166 3.00033C12.0166 2.97551 12.0235 2.95116 12.0364 2.92998C12.0494 2.9088 12.0679 2.8916 12.09 2.88029L12.8589 2.48501C13.1349 2.34324 13.3595 2.1186 13.5013 1.84264L13.8966 1.07341C13.9079 1.05131 13.9251 1.03276 13.9462 1.01981C13.9674 1.00685 13.9918 1 14.0166 1C14.0414 1 14.0658 1.00685 14.087 1.01981ZM14.5305 12.2744V6.41714C14.6486 6.37804 14.7624 6.32541 14.8695 6.25992C15.1256 6.10329 15.334 5.87856 15.4711 5.61155L15.4982 5.55893V12.7341C15.4982 13.0002 15.2804 13.2179 15.0143 13.2179H10.5629C9.76458 13.2179 8.94204 13.5808 8.53077 14.1131C8.45819 14.234 8.31243 14.3066 8.16727 14.3066L8.16191 14.3066C8.06713 14.3056 7.97235 14.2809 7.87757 14.2098C7.84733 14.1863 7.82035 14.1604 7.79677 14.1328C7.7911 14.1264 7.78557 14.1198 7.7802 14.1131C7.39312 13.5808 6.54638 13.2179 5.74804 13.2179H0.982139C0.716022 13.2179 0.498291 13.0002 0.498291 12.7341V2.37976C0.498291 2.21041 0.570868 2.06526 0.667638 1.94429C0.885369 1.72656 1.19987 1.72656 1.4176 1.72656H5.60288C6.53325 1.72656 7.47914 2.13032 8.0922 2.76365C8.79939 2.08923 9.88777 1.72656 10.7081 1.72656H11.1266C10.9806 1.84402 10.8553 1.98622 10.7567 2.14747C10.6525 2.31793 10.5808 2.50529 10.5444 2.70005C9.78662 2.75277 8.93907 3.15911 8.55485 3.67506V12.8505C9.13341 12.4912 9.86026 12.2744 10.5871 12.2744H14.5305ZM7.58716 3.64966C7.18769 3.09678 6.35261 2.67007 5.60288 2.67007H1.46599V12.2261H5.74804C6.38488 12.2261 7.03827 12.3999 7.58716 12.6943V3.64966Z",fill:"var(--text-text_primary)",fillOpacity:"0.9"})})}))},b=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t.size,height:t.size,viewBox:"0 0 16 16",fill:"none",children:[(0,a.jsx)("path",{d:"M12.4967 4.20735C12.0666 3.52556 11.5031 2.93629 10.8429 2.47612L10.089 2.86368C10.0669 2.875 10.0484 2.89219 10.0354 2.91338C10.0225 2.93456 10.0156 2.9589 10.0156 2.98373C10.0156 3.00856 10.0225 3.03291 10.0354 3.05409C10.0484 3.07527 10.0669 3.09246 10.089 3.10378L10.8583 3.49872C10.9426 3.54207 11.0222 3.59317 11.0961 3.65111C11.135 3.68158 11.1722 3.71394 11.2078 3.74807C11.2225 3.7622 11.237 3.77663 11.2511 3.79136C11.2852 3.82692 11.3176 3.86419 11.3481 3.90304C11.4061 3.97698 11.4572 4.05663 11.5006 4.14109L11.8956 4.90999C11.9069 4.93209 11.9241 4.95064 11.9453 4.96359C11.9665 4.97655 11.9908 4.9834 12.0156 4.9834C12.0405 4.9834 12.0648 4.97655 12.086 4.96359C12.1072 4.95064 12.1244 4.93209 12.1357 4.90999L12.4967 4.20735Z",fill:"var(--text-text_primary)",fillOpacity:"0.9"}),(0,a.jsx)("path",{d:"M13.2377 5.93432C13.131 6.05444 13.0067 6.1588 12.8685 6.24331C12.6444 6.38033 12.3911 6.46104 12.1303 6.47937C12.1893 6.78049 12.2203 7.09167 12.2203 7.41008C12.2203 10.0666 10.0666 12.2203 7.41008 12.2203C4.7535 12.2203 2.5999 10.0666 2.5999 7.41008C2.5999 4.7535 4.7535 2.5999 7.41008 2.5999C7.79748 2.5999 8.1742 2.6457 8.53509 2.73218C8.56814 2.51997 8.64282 2.3155 8.75571 2.13087C8.86704 1.9488 9.01247 1.79103 9.18319 1.66574C8.62272 1.49293 8.02726 1.3999 7.41008 1.3999C4.09076 1.3999 1.3999 4.09076 1.3999 7.41008C1.3999 10.7294 4.09076 13.4202 7.41008 13.4202C8.85358 13.4202 10.1782 12.9114 11.2144 12.0632L13.5754 14.4241C13.8097 14.6585 14.1896 14.6585 14.4239 14.4241C14.6582 14.1898 14.6582 13.8099 14.4239 13.5756L12.063 11.2147C12.9113 10.1785 13.4203 8.85371 13.4203 7.41008C13.4203 6.90089 13.3569 6.40649 13.2377 5.93432Z",fill:"var(--text-text_primary)",fillOpacity:"0.9"}),(0,a.jsx)("path",{d:"M12.1357 1.0568C12.1244 1.0347 12.1072 1.01616 12.086 1.0032C12.0648 0.990252 12.0405 0.983398 12.0156 0.983398C11.9908 0.983398 11.9665 0.990252 11.9453 1.0032C11.9241 1.01616 11.9069 1.0347 11.8956 1.0568L11.5003 1.82604C11.3585 2.102 11.1339 2.32663 10.8579 2.46841L10.089 2.86368C10.0669 2.875 10.0484 2.89219 10.0354 2.91338C10.0225 2.93456 10.0156 2.9589 10.0156 2.98373C10.0156 3.00856 10.0225 3.03291 10.0354 3.05409C10.0484 3.07527 10.0669 3.09246 10.089 3.10378L10.8583 3.49872C11.1342 3.6405 11.3589 3.86513 11.5006 4.14109L11.8956 4.90999C11.9069 4.93209 11.9241 4.95064 11.9453 4.96359C11.9665 4.97655 11.9908 4.9834 12.0156 4.9834C12.0405 4.9834 12.0648 4.97655 12.086 4.96359C12.1072 4.95064 12.1244 4.93209 12.1357 4.90999L12.5309 4.14075C12.6727 3.86497 12.8972 3.64046 13.173 3.49872L13.9422 3.10345C13.9643 3.09213 13.9829 3.07494 13.9958 3.05375C14.0088 3.03257 14.0156 3.00823 14.0156 2.9834C14.0156 2.95857 14.0088 2.93422 13.9958 2.91304C13.9829 2.89186 13.9643 2.87467 13.9422 2.86335L13.173 2.46807C12.8972 2.32633 12.6727 2.10183 12.5309 1.82604L12.1357 1.0568Z",fill:"var(--text-text_primary)",fillOpacity:"0.9"})]})}))},w=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M10.75 15.5C13.0972 15.5 15 13.5972 15 11.25C15 8.9028 13.0972 7 10.75 7C8.4028 7 6.5 8.9028 6.5 11.25C6.5 13.5972 8.4028 15.5 10.75 15.5Z",stroke:t.fill||"black",style:{stroke:t.fill||"black",strokeOpacity:1},strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M13.5 14.5L17 18.0252",stroke:t.fill||"black",style:{stroke:t.fill||"black",strokeOpacity:1},strokeWidth:"1.5",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M19 4.44077L19.5317 5.87753C19.6329 6.15125 19.8487 6.36706 20.1225 6.46835L21.5592 7L20.1225 7.53165C19.8487 7.63294 19.6329 7.84875 19.5317 8.12247L19 9.55923L18.4683 8.12247C18.3671 7.84875 18.1513 7.63294 17.8775 7.53165L16.4408 7L17.8775 6.46835C18.1513 6.36706 18.3671 6.15125 18.4683 5.87753L19 4.44077Z",stroke:t.fill||"black",style:{stroke:t.fill||"black",strokeOpacity:1},strokeLinecap:"round",strokeLinejoin:"round"})]})}))},x=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M4 11V5H5V11H4Z",fill:"black",fillOpacity:"0.4",style:{fill:t.color||"black",fillOpacity:.4}}),(0,a.jsx)("path",{d:"M7 5V11H8V5H7Z",fill:"black",fillOpacity:"0.4",style:{fill:t.color||"black",fillOpacity:.4}}),(0,a.jsx)("path",{d:"M8.5 2H12V3H11V13C11 13.5523 10.5523 14 10 14H2C1.44772 14 1 13.5523 1 13V3H0V2H3.5L3.5 0.800001C3.5 0.358173 3.85817 0 4.3 0H7.7C8.14183 0 8.5 0.358172 8.5 0.8V2ZM4.5 2H7.5L7.5 1L4.5 1V2ZM2 3V13H10V3H2Z",fill:"black",fillOpacity:"0.4",style:{fill:t.color||"black",fillOpacity:.4}})]})}))},L=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0001 17.4283C10.0001 17.9806 10.4478 18.4283 11.0001 18.4283C11.5524 18.4283 12.0001 17.9806 12.0001 17.4283V11.9997H17.4287C17.981 11.9997 18.4287 11.552 18.4287 10.9997C18.4287 10.4475 17.981 9.99974 17.4287 9.99974H12.0001V4.57117C12.0001 4.01888 11.5524 3.57117 11.0001 3.57117C10.4478 3.57117 10.0001 4.01888 10.0001 4.57117V9.99974H4.57153C4.01925 9.99974 3.57153 10.4475 3.57153 10.9997C3.57153 11.552 4.01925 11.9997 4.57153 11.9997H10.0001V17.4283Z",fill:"currentColor","fill-opacity":"0.6"})})}))},E=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,a.jsx)("path",{d:"M7.13184 2.4004C7.61773 2.40028 7.9509 2.40007 8.27441 2.46974C8.52772 2.52431 8.773 2.61093 9.00488 2.72657C9.30105 2.87428 9.56104 3.08209 9.94043 3.38575L10.3252 3.69337C10.6281 3.93571 10.6748 3.9628 10.7168 3.97755C10.7588 3.99229 10.8119 4.00001 11.2002 4.00001H12.043C13.1837 3.99999 14.1006 4.0008 14.8213 4.09767C15.5686 4.19813 16.1943 4.41211 16.6904 4.90821C17.1866 5.40439 17.4015 6.03004 17.502 6.77735C17.5988 7.49813 17.5986 8.41566 17.5986 9.55665V11.0449C17.5986 12.1856 17.5988 13.1026 17.502 13.8233C17.4015 14.5706 17.1866 15.1962 16.6904 15.6924C16.1943 16.1886 15.5686 16.4034 14.8213 16.5039C14.1006 16.6008 13.1836 16.6006 12.043 16.6006H7.9541C6.81343 16.6006 5.89645 16.6007 5.17578 16.5039C4.42851 16.4034 3.80281 16.1885 3.30664 15.6924C2.81046 15.1962 2.59559 14.5706 2.49512 13.8233C2.39826 13.1026 2.39842 12.1856 2.39844 11.0449V7.04493C2.39843 6.3343 2.39803 5.76265 2.4375 5.30079C2.47816 4.8255 2.5643 4.4108 2.76856 4.03126C3.05625 3.49676 3.4948 3.05821 4.0293 2.77052C4.40872 2.56634 4.82275 2.48014 5.29785 2.43946C5.7598 2.39994 6.33206 2.40039 7.04297 2.4004H7.13184ZM7.07031 3.6006C6.32599 3.6006 5.8052 3.60112 5.40039 3.63575C5.00325 3.66975 4.77285 3.73286 4.59766 3.82716C4.27017 4.00346 4.0015 4.27213 3.8252 4.59962C3.7309 4.77481 3.66778 5.00523 3.63379 5.40235C3.59916 5.80716 3.59863 6.32796 3.59863 7.07228V11C3.59863 12.1955 3.59967 13.0326 3.68457 13.6641C3.76717 14.2781 3.91927 14.6078 4.15527 14.8438C4.3913 15.0797 4.72092 15.2319 5.33496 15.3145C5.9664 15.3994 6.80278 15.4004 7.99805 15.4004H11.998C13.1935 15.4004 14.0306 15.3994 14.6621 15.3145C15.2761 15.2319 15.6058 15.0798 15.8418 14.8438C16.0778 14.6078 16.2299 14.2781 16.3125 13.6641C16.3974 13.0326 16.3984 12.1955 16.3984 11V9.6006C16.3984 8.40534 16.3974 7.56898 16.3125 6.93751C16.2299 6.32326 16.0779 5.9929 15.8418 5.75685C15.6058 5.5209 15.276 5.36873 14.6621 5.28614C14.0306 5.20124 13.1935 5.20021 11.998 5.20021H11.1367C10.8529 5.20071 10.5794 5.2016 10.3193 5.11036C10.0593 5.01909 9.84624 4.84757 9.625 4.66993L9.23926 4.36134C8.79408 4.00519 8.63749 3.8835 8.46973 3.79981C8.32755 3.7289 8.17681 3.67604 8.02148 3.64259C7.83822 3.60313 7.64031 3.6006 7.07031 3.6006Z",fill:"currentColor",fillOpacity:"0.9"}),(0,a.jsx)("path",{d:"M10.6899 12.1216L12.4577 10.3538C12.653 10.1586 12.653 9.84197 12.4577 9.64671L10.6899 7.87894",stroke:"currentColor",strokeOpacity:"0.9",strokeWidth:"1.2",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M11.6899 10.0005L7.18994 10.0005",stroke:"currentColor",strokeOpacity:"0.9",strokeWidth:"1.2",strokeLinecap:"round"})]})}))},C=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,a.jsx)("path",{d:"M16.498 4.90039C16.8293 4.90039 17.0984 5.16881 17.0986 5.5C17.0986 5.83137 16.8294 6.10059 16.498 6.10059H15.5986V13.9004C15.5986 15.6125 14.2101 17 12.498 17H7.49805C5.78614 16.9998 4.39844 15.6123 4.39844 13.9004V6.10156H3.49805C3.16686 6.10135 2.89844 5.83222 2.89844 5.50098C2.89854 5.16983 3.16692 4.90158 3.49805 4.90137L16.498 4.90039ZM5.59863 6.10156V13.9004C5.59863 14.9496 6.44888 15.8006 7.49805 15.8008H12.498C13.5474 15.8008 14.3984 14.9497 14.3984 13.9004V6.10059L5.59863 6.10156ZM8.24805 8.40039C8.57929 8.40039 8.84842 8.66881 8.84863 9V12.5C8.84863 12.8314 8.57942 13.1006 8.24805 13.1006C7.91686 13.1004 7.64844 12.8312 7.64844 12.5V9C7.64865 8.66894 7.91699 8.4006 8.24805 8.40039ZM11.748 8.40039C12.0793 8.40039 12.3484 8.66881 12.3486 9V12.5C12.3486 12.8314 12.0794 13.1006 11.748 13.1006C11.4169 13.1004 11.1484 12.8312 11.1484 12.5V9C11.1486 8.66894 11.417 8.4006 11.748 8.40039ZM12.248 2.90039C12.5793 2.90039 12.8484 3.16881 12.8486 3.5C12.8486 3.83137 12.5794 4.10059 12.248 4.10059H7.74805C7.41686 4.10038 7.14844 3.83124 7.14844 3.5C7.14865 3.16894 7.41699 2.9006 7.74805 2.90039H12.248Z",fill:"currentColor",fillOpacity:"0.9"})})}))},j=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",children:[(0,a.jsx)("path",{d:"M2.9834 4.69479L3.96699 5.72136C4.1296 5.89107 4.4028 5.88467 4.55728 5.70752L6.35639 3.64449",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M2.9834 10.3784L3.96699 11.405C4.1296 11.5747 4.4028 11.5683 4.55728 11.3911L6.35639 9.32808",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M2.9834 16.062L3.96699 17.0885C4.1296 17.2583 4.4028 17.2519 4.55728 17.0747L6.35639 15.0117",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M8.51953 4.89121C8.51953 4.53223 8.81055 4.24121 9.16953 4.24121H17.0775C17.4365 4.24121 17.7275 4.53223 17.7275 4.89121C17.7275 5.2502 17.4365 5.54121 17.0775 5.54121H9.16953C8.81055 5.54121 8.51953 5.2502 8.51953 4.89121Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M8.51953 10.5748C8.51953 10.2158 8.81055 9.9248 9.16953 9.9248H17.0775C17.4365 9.9248 17.7275 10.2158 17.7275 10.5748C17.7275 10.9338 17.4365 11.2248 17.0775 11.2248H9.16953C8.81055 11.2248 8.51953 10.9338 8.51953 10.5748Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M8.51953 16.2584C8.51953 15.8994 8.81055 15.6084 9.16953 15.6084H17.0775C17.4365 15.6084 17.7275 15.8994 17.7275 16.2584C17.7275 16.6174 17.4365 16.9084 17.0775 16.9084H9.16953C8.81055 16.9084 8.51953 16.6174 8.51953 16.2584Z",fill:"currentColor"})]})}))},_=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",children:[(0,a.jsx)("path",{d:"M7.13184 2.9004C7.61773 2.90028 7.9509 2.90007 8.27441 2.96974C8.52772 3.02431 8.773 3.11093 9.00488 3.22657C9.30105 3.37428 9.56104 3.58209 9.94043 3.88575L10.3252 4.19337C10.6281 4.43571 10.6748 4.4628 10.7168 4.47755C10.7588 4.49229 10.8119 4.50001 11.2002 4.50001H12.043C13.1837 4.49999 14.1006 4.5008 14.8213 4.59767C15.5686 4.69813 16.1943 4.91211 16.6904 5.40821C17.1866 5.90439 17.4015 6.53004 17.502 7.27735C17.5988 7.99813 17.5986 8.91566 17.5986 10.0567V11.5449C17.5986 12.6856 17.5988 13.6026 17.502 14.3233C17.4015 15.0706 17.1866 15.6962 16.6904 16.1924C16.1943 16.6886 15.5686 16.9034 14.8213 17.0039C14.1006 17.1008 13.1836 17.1006 12.043 17.1006H7.9541C6.81343 17.1006 5.89645 17.1007 5.17578 17.0039C4.42851 16.9034 3.80281 16.6885 3.30664 16.1924C2.81046 15.6962 2.59559 15.0706 2.49512 14.3233C2.39826 13.6026 2.39842 12.6856 2.39844 11.5449V7.54493C2.39843 6.8343 2.39803 6.26265 2.4375 5.80079C2.47816 5.3255 2.5643 4.9108 2.76856 4.53126C3.05625 3.99676 3.4948 3.55821 4.0293 3.27052C4.40872 3.06634 4.82275 2.98014 5.29785 2.93946C5.7598 2.89994 6.33206 2.90039 7.04297 2.9004H7.13184ZM7.07031 4.1006C6.32599 4.1006 5.8052 4.10112 5.40039 4.13575C5.00325 4.16975 4.77285 4.23286 4.59766 4.32716C4.27017 4.50346 4.0015 4.77213 3.8252 5.09962C3.7309 5.27481 3.66778 5.50523 3.63379 5.90235C3.59916 6.30716 3.59863 6.82796 3.59863 7.57228V11.5C3.59863 12.6955 3.59967 13.5326 3.68457 14.1641C3.76717 14.7781 3.91927 15.1078 4.15527 15.3438C4.3913 15.5797 4.72092 15.7319 5.33496 15.8145C5.9664 15.8994 6.80278 15.9004 7.99805 15.9004H11.998C13.1935 15.9004 14.0306 15.8994 14.6621 15.8145C15.2761 15.7319 15.6058 15.5798 15.8418 15.3438C16.0778 15.1078 16.2299 14.7781 16.3125 14.1641C16.3974 13.5326 16.3984 12.6955 16.3984 11.5V10.1006C16.3984 8.90534 16.3974 8.06898 16.3125 7.43751C16.2299 6.82326 16.0779 6.4929 15.8418 6.25685C15.6058 6.0209 15.276 5.86873 14.6621 5.78614C14.0306 5.70124 13.1935 5.70021 11.998 5.70021H11.1367C10.8529 5.70071 10.5794 5.7016 10.3193 5.61036C10.0593 5.51909 9.84624 5.34757 9.625 5.16993L9.23926 4.86134C8.79408 4.50519 8.63749 4.3835 8.46973 4.29981C8.32755 4.2289 8.17681 4.17604 8.02148 4.14259C7.83822 4.10313 7.64031 4.1006 7.07031 4.1006Z",fill:"currentColor",fillOpacity:"0.9"}),(0,a.jsx)("path",{d:"M10.6892 12.6221L12.457 10.8543C12.6522 10.659 12.6522 10.3425 12.457 10.1472L10.6892 8.37943",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"}),(0,a.jsx)("path",{d:"M11.6895 10.501L7.18945 10.501",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}))},O=function(t){return(0,a.jsx)(f,l(l({},t),{},{children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,a.jsx)("path",{d:"M7.29102 2.89842C7.29139 1.47616 9.01072 0.764003 10.0166 1.76951L14.2158 5.96873C15.2286 6.98159 15.2285 8.6238 14.2158 9.6367L10.0166 13.8359C9.01057 14.8414 7.29102 14.1285 7.29102 12.706V10.624C5.36429 11.0228 3.75437 12.294 2.89551 14.0078C2.70218 14.3933 2.31063 14.5754 1.9502 14.5517C1.57076 14.5267 1.17574 14.2615 1.10449 13.7724C1.05252 13.4145 1.02539 13.0484 1.02539 12.6767C1.02539 8.94225 3.73224 5.84064 7.29102 5.22557V2.89842ZM9.16797 2.61815C8.91803 2.36858 8.49158 2.54527 8.49121 2.89842V5.43455C8.49103 5.92812 8.1191 6.31574 7.66406 6.38182C4.58825 6.82849 2.22559 9.47706 2.22559 12.6767C2.22559 12.7058 2.2252 12.7347 2.22559 12.7637C3.44202 10.8755 5.4778 9.56283 7.83203 9.32908C8.00048 9.3125 8.16848 9.3678 8.29394 9.48143C8.41949 9.59516 8.49121 9.75733 8.49121 9.92674V12.706C8.49121 13.0594 8.9179 13.2368 9.16797 12.9873L13.3672 8.78807C13.9112 8.24378 13.9114 7.36159 13.3672 6.81736L9.16797 2.61815Z",fill:"currentColor",fillOpacity:"0.9"})})}))}},40403:(t,e,r)=>{r.d(e,{x:()=>l});var n=r(56995),o=r(99261),i=r(43572),a=r(3698),c=r.n(a),u=r(85428),l=function(t){var e=t.onClose,r=t.onManage,a=t.onInvite,l=t.tips,s=void 0===l?"":l;return(0,u.jsxs)(o.lG,{visible:!0,onClose:e,dialogClassName:"ybc-create-team-createTeamSuccessDialog",closeOnOverlayClick:!0,destroyOnClose:!0,width:340,placement:"center",header:null,footer:null,children:[(0,u.jsx)("div",{className:"ybc-create-team-header-pic"}),(0,u.jsx)("div",{className:"ybc-create-team-closeBtn",onClick:function(){null==e||e()}}),(0,u.jsx)("div",{className:"ybc-create-team-wordsContainer",children:(0,u.jsxs)("div",{className:"ybc-create-team-words",children:[(0,u.jsx)("p",{className:"ybc-create-team-title",children:(0,u.jsx)(i.Trans,{children:"创建团队成功"})}),(0,u.jsx)("p",{className:"ybc-create-team-content",children:(0,u.jsx)(i.Trans,{children:"团队数据默认不用于模型训练。更多管理功能可点击“管理团队”查看。"})})]})}),(0,u.jsxs)("div",{className:"ybc-create-team-button-group",children:[(0,u.jsxs)(n.$,{variant:"text",className:c()("ybc-create-team-manage"),onClick:function(){null==r||r()},children:[(0,u.jsx)("span",{children:(0,u.jsx)(i.Trans,{children:"管理团队"})}),(0,u.jsx)("div",{className:"ybc-create-team-manage-jump"})]}),(0,u.jsxs)(n.$,{variant:"text",className:c()("ybc-create-team-invite"),onClick:function(){null==a||a()},children:[(0,u.jsx)("span",{children:(0,u.jsx)(i.Trans,{children:"邀请成员"})}),(0,u.jsx)("div",{className:"ybc-create-team-invite-jump"})]})]}),(0,u.jsx)("div",{className:"ybc-create-team-tip",children:s})]})}},44369:(t,e,r)=>{r.d(e,{MN:()=>d,iV:()=>h,lJ:()=>v,m4:()=>f,oD:()=>p,ug:()=>s});var n=r(79378),o=r(84164);function i(t){return i="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},i(t)}function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var L={};f(L,u,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(N([])));C&&C!==r&&n.call(C,u)&&(L=C);var j=x.prototype=b.prototype=Object.create(L);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,c,u){var l=p(t[o],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return w.prototype=x,o(j,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},_(O.prototype),f(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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),A(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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function c(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)}))}}var l=function(t){var e=t.sender,r=t.receiver,n=t.cb;return(0,o.eb)(e),new Promise((function(t){var e=function(){var i=u(a().mark((function i(c){var u;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if((null==(u=(0,o.N8)(c))?void 0:u.event)!==r){i.next=9;break}return i.t0=t,i.next=6,n(null==u?void 0:u.options);case 6:i.t1=i.sent,(0,i.t0)(i.t1),window.removeEventListener("message",e,!1);case 9:case"end":return i.stop()}}),i)})));return function(t){return i.apply(this,arguments)}}();window.addEventListener("message",e,!1)}))},s=function(){return l({sender:{event:"getUserInfo"},receiver:"pushUserInfo",cb:function(t){return t}})},f=function(){return l({sender:{event:"getClientInfo"},receiver:"pushClientInfo",cb:function(t){return t}})},h=function(t){return l({sender:{event:"toLogin",options:{from:t?1:0}},receiver:"onUserChange",cb:function(){return{}}})},p=function(){return l({sender:{event:"getCode"},receiver:"pushCode",cb:n.iX})},d=function(){return new Promise((function(t){var e=function(){var r=u(a().mark((function r(n){var i;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:"onShow"===(null==(i=(0,o.N8)(n))?void 0:i.event)&&(t(!0),window.removeEventListener("message",e,!1));case 3:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}();window.addEventListener("message",e,!1)}))},v=function(t){return l({sender:{event:"locationChange",options:{url:t}},receiver:"",cb:function(){return{}}})}},46755:(t,e,r)=>{r.d(e,{j:()=>M});var n=r(77256),o=r(3698),i=r.n(o),a=r(26093),c=r(7378),u=r(28619),l=r(97556),s=r(27036),f=r(79325),h=r(79815),p=r(2522),d=r.n(p),v=r(26796),y=r(42239),m=r(41540),g=r(39646),b=r(5542),w=r(603),x=r(10934),L=r(85428);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 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 j(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){_(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 _(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 O(){O=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==r&&n.call(L,a)&&(w=L);var C=b.prototype=m.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==E(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(E(e)+" is not iterable")}return g.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(C),t},e.awrap=function(t){return{__await:t}},j(_.prototype),l(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(C),l(C,u,"Generator"),l(C,a,(function(){return this})),l(C,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),A(r),y}},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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function k(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function S(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){k(i,n,o,a,c,"next",t)}function c(t){k(i,n,o,a,c,"throw",t)}a(void 0)}))}}function P(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return A(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)?A(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 A(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}var T="tCaptcha";function N(t){var e=(0,a.Bd)().t,r=t.safeVerifyCode,n=t.onSuccessConfirm,o=t.confirmBtnClickReport,p=t.onClickGetVerificationCode,E=t.autofocus,C=void 0===E||E,k=t.captcha,A=t.safeVerifyType,N=t.safeVerifyPhone,I=t.safeVerifyPhoneArea,F=(0,c.useRef)(null),D=P((0,c.useState)([]),2),M=D[0],H=D[1],R=P((0,c.useState)({phoneArea:"",mobile:"",verificationCode:"",agreementChecked:!1}),2),G=R[0],Y=R[1],V=(0,c.useRef)(null);(0,c.useEffect)((function(){(0,v.aF)().then((function(t){var e,r;H(null!==(e=null==t||null===(r=t.data)||void 0===r||null===(r=r.phoneConfig)||void 0===r?void 0:r.rules)&&void 0!==e?e:x.HO)})).catch((function(t){H(x.HO)}))}),[]),(0,c.useLayoutEffect)((function(){window.TencentCaptcha||d().isDefined(T)||d()(f.Mn,T)}),[]);var U=(0,g.g)(),Z=U.agentId,B=U.chatId;(0,c.useEffect)((function(){A&&(0,y.Ay)(m.Qy.OnPageEnter,{page_id:"SecurityPage",agent_id:Z||"",cid:B||"",ext1:A})}),[A]);var W=(0,c.useRef)(null),z=P((0,c.useState)(!0),2),$=z[0],Q=z[1],X=function(){var t=S(O().mark((function t(){var n,o;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=function(){return(o=S(O().mark((function t(n){var o,i,a,c,u,l,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n.ticket&&n.randstr){t.next=3;break}throw Error(f.Z4);case 3:return i=0,A===f.ep.VERIFYPHONE?i=1:A===f.ep.BINDPHONE&&(i=2),t.next=7,k.sendVerificationCode({phoneNumber:"".concat(G.mobile),phoneArea:G.phoneArea,captchaTicket:n.ticket,captchaRandstr:n.randstr,safeVerifyCode:r,businessId:i});case 7:(0,h.Zx)(e("验证码已发送")),t.next=17;break;case 10:return t.prev=10,t.t0=t.catch(0),Q(!0),c=t.t0.error||{},u=t.t0.message===f.Z4?e("发送验证码失败,请重试"):e("请稍后重试"),(0,h.Ax)((null===(a=c.response)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.error)||void 0===a?void 0:a.message)||(0,b.Z)(t.t0)||u),t.abrupt("return");case 17:null===(o=V.current)||void 0===o||o.focus(),l=(new Date).getTime(),s=setInterval((function(){if(W.current){var t=60-Math.floor((Date.now()-l)/1e3);if(t<=-1)return Q(!0),clearInterval(s),void(W.current.innerHTML=e("重新发送"));W.current.innerHTML=e("{{restSecond}}秒后重发",{restSecond:t})}else clearInterval(s)}),200);case 20:case"end":return t.stop()}}),t,null,[[0,10]])})))).apply(this,arguments)},n=function(t){return o.apply(this,arguments)},$){t.next=4;break}return t.abrupt("return");case 4:if(A===f.ep.VERIFYPHONE){t.next=7;break}if(J()){t.next=7;break}return t.abrupt("return");case 7:null==p||p(),Q(!1),window.TencentCaptcha?new TencentCaptcha(k.appid,n).show():d().ready(T,(function(){new TencentCaptcha(k.appid,n).show()}));case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),J=(0,u.$)((function(){var t,e=null==F||null===(t=F.current)||void 0===t?void 0:t.verifyPhoneNumber();return e&&(0,h.Ax)(e),!e})),q=(0,u.$)((function(){var t="";return G.verificationCode||(t=e("请输入验证码")),t&&(0,h.Ax)(t),!t})),K=function(){var t=S(O().mark((function t(){var i,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==o||o(),i=G.mobile,a=G.verificationCode,A===f.ep.VERIFYPHONE||J()){t.next=4;break}return t.abrupt("return");case 4:if(q()){t.next=6;break}return t.abrupt("return");case 6:(0,v.Zm)({phone:"".concat(i),code:"".concat(a),safeVerifyCode:r||"",safeVerifyType:A||"",area:G.phoneArea}).then(S(O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(0,y.Ay)(m.Qy.OnPageClick,{page_id:"SecurityPage",mod_id:"main_mod",button_id:"check",agent_id:Z||"",cid:B||"",ext1:A||"",ext2:"success"}),(0,h.Zx)(e("验证成功")),n&&n({verifyResult:!0,safeVerifyCode:r,phone:"".concat(i),verificationCode:G.verificationCode});case 3:case"end":return t.stop()}}),t)})))).catch((function(t){var r,n,o=t.error||{};(0,h.Ax)("".concat((null===(r=o.response)||void 0===r||null===(r=r.data)||void 0===r||null===(r=r.error)||void 0===r?void 0:r.message)||(0,b.Z)(t)||e("验证失败,请稍后再试"))),(0,y.Ay)(m.Qy.OnPageClick,{page_id:"SecurityPage",mod_id:"main_mod",button_id:"check",agent_id:Z||"",cid:B||"",ext1:A||"",ext2:null===(n=o.response)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.error)||void 0===n?void 0:n.code})}));case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,L.jsx)("div",{className:"hyc-phone-login safe-check-input",children:(0,L.jsxs)("section",{children:[(0,L.jsxs)("div",{className:"hyc-phone-login__title",children:[(0,L.jsx)("div",{className:"hyc-phone-login__title-name",children:e("安全验证")}),(0,L.jsx)("div",{className:"hyc-phone-login__title-desc",children:e("为保障您的账号安全, 请进行安全验证, 以确保是您本人在操作")})]}),A===f.ep.VERIFYPHONE?(0,L.jsxs)("div",{className:i()("hyc-phone-login__content-input-row",_({},"hyc-phone-login__content-input-row-show",A===f.ep.VERIFYPHONE)),children:[(0,L.jsxs)("label",{htmlFor:"J_LoginMobile",className:"hyc-phone-login__grey",children:["+",I]}),(0,L.jsxs)("div",{style:{flex:1},children:[(0,L.jsx)("span",{children:N}),(0,L.jsx)("div",{className:"outline-placeholder"})]})]}):(0,L.jsx)(w.qD,{ref:F,autofocus:C,areaList:M,onChange:function(t){Y((function(e){var r,n;return j(j({},e),{},{mobile:null!==(r=null==t?void 0:t.mobile)&&void 0!==r?r:"",phoneArea:null!==(n=null==t?void 0:t.areaCode)&&void 0!==n?n:"",len:null==t?void 0:t.len})}))}}),(0,L.jsxs)("div",{className:"hyc-phone-login__content-input-row",children:[(0,L.jsxs)("div",{style:{flex:1},children:[(0,L.jsx)(l.pd,{type:"number",maxcharacter:6,ref:V,value:G.verificationCode,onChange:function(t){t.length>6||Y((function(e){return j(j({},e),{},{verificationCode:t})}))},placeholder:e("请输入验证码"),onEnter:K}),(0,L.jsx)("div",{className:"outline-placeholder"})]}),(0,L.jsx)("span",{className:"hyc-phone-login__send-code-sep",children:"|"}),(0,L.jsx)("a",{className:i()("hyc-phone-login__send-code",{"is-disabled":!$}),onClick:X,ref:W,children:e("获取验证码")})]}),(0,L.jsx)(s.$,{disabled:!G.verificationCode||6!==G.verificationCode.length,onClick:K,className:"hyc-phone-login__submit-btn",children:A===f.ep.BINDPHONE?e("绑定并验证"):e("验证")})]})})}var I=r(77632),F=r(39001),D=r(94906),M=function(t){var e=t.isMobile,r=t.safeVerifyCode,o=void 0===r?"":r,a=t.captcha,u=t.onConfirm,l=t.onInit,s=(0,D.z)({safeVerifyCode:o}),h=s.loading,p=s.safeVerifyType,d=s.safeVerifyPhone,v=s.safeVerifyPhoneArea,y=s.waterProofAppid,m=(0,c.useCallback)((function(){u({verifyResult:!0,safeVerifyCode:o})}),[u,o]);return(0,c.useEffect)((function(){h||!p||null==l||l(p)}),[h,l,p]),h||!p?(0,L.jsx)(L.Fragment,{}):p===f.ep.WATERWALL?(0,L.jsx)(F.b,{safeVerifyCode:o,waterProofAppid:y,safeCheck:!0,onCaptchaCallback:m,onCaptchaError:function(){t.onClose()},maskable:!0}):(0,L.jsxs)(n.lG,{placement:"center",width:e?400:460,footer:null,header:null,visible:!0,className:"login-safe-check-dialog",children:[(0,L.jsx)("button",{className:i()({"hyc-login__close":!0,"hyc-login__close--mobile":e}),onClick:t.onClose,children:(0,L.jsx)(I.V,{type:"ic_close",style:{fontSize:"24px"}})}),(0,L.jsx)(N,{captcha:a,safeVerifyCode:o,onSuccessConfirm:u,safeVerifyType:p,safeVerifyPhone:d,safeVerifyPhoneArea:v})]})}},46944:(t,e,r)=>{r.d(e,{HT:()=>C,XJ:()=>j,ku:()=>_,q9:()=>O});var n=r(28619),o=r(7378),i=r(34237),a=r(86118),c=r(64945),u=r(39646),l=r(55534),s=r(43721),f=r(45042),h=r(47436),p=r(42239),d=r(24417),v=r(75e3);function y(t){return y="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},y(t)}function m(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 g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y(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,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function g(){}function b(){}function x(){}var L={};l(L,a,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(N([])));C&&C!==r&&n.call(C,a)&&(L=C);var j=x.prototype=g.prototype=Object.create(L);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==y(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.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,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return b.prototype=x,o(j,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},_(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),l(j,u,"Generator"),l(j,a,(function(){return this})),l(j,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):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),m},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),A(r),m}},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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function x(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function L(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){x(i,n,o,a,c,"next",t)}function c(t){x(i,n,o,a,c,"throw",t)}a(void 0)}))}}var E=function(){var t=L(w().mark((function t(e,r){var n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return",{realQuestion:e,uploadFiles:[]});case 2:return t.next=4,null==r?void 0:r.getFile();case 4:if(n=t.sent,"image"!==(o={id:Date.now().toString(),status:h.A8.loading,progress:0,type:(0,f.ti)(n.type,n.name),name:n.name,size:n.size,raw:n,url:"",width:0,height:0}).type){t.next=9;break}return t.next=9,new Promise((function(t){var e=URL.createObjectURL(n),r=new Image;r.onload=function(){o.url=e,o.width=r.naturalWidth,o.height=r.naturalHeight,t()},r.src=e}));case 9:return t.abrupt("return",{realQuestion:e,uploadFiles:[o]});case 10:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),C=function(t){var e=(0,l.y)().updateCustomFeatures,r=(0,n.$)((function(e,r){var n;(0,p.Ay)(d.Qy.OnPageClick,{HY50:t.pageId||"YuanBaoMainPage",HY51:"send_mod",HY52:"new_chat_with_bridge",HY20:(null===(n=t.agent)||void 0===n?void 0:n.agentId)||"",HY54:"",HY58:""}),t.askMainAgent&&t.askMainAgent(r?g(g({},r),{},{realQuestion:e}):{realQuestion:e,uploadFiles:[]},{passAnonCheckLogin:!1})}));(0,o.useEffect)((function(){return i.a.addListener("onAsk",r),e({onAsk:!0}),function(){i.a.removeListener("onAsk",r),e({onAsk:!1})}}),[r])},j=function(t){var e=(0,a.r)().visitorClickCount,r=(0,l.y)().updateCustomFeatures,c=(0,n.$)(function(){var r=L(w().mark((function r(n){var o,i;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if((0,p.Ay)(d.Qy.OnPageClick,{HY50:t.pageId||"YuanBaoMainPage",HY51:"send_mod",HY52:"new_chat_with_bridge",HY20:(null===(o=t.agent)||void 0===o?void 0:o.agentId)||"",HY54:"",HY58:""}),e()){r.next=4;break}return r.abrupt("return");case 4:return r.next=6,E(n.msg,n.file);case 6:i=r.sent,t.askMainAgent(i,{agentId:n.agentId,passAnonCheckLogin:!1});case 8:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}());(0,o.useEffect)((function(){return i.a.addListener("onAskV2",c),r({onAskV2:!0}),function(){i.a.removeListener("onAskV2",c),r({onAskV2:!1})}}),[c])},_=function(){var t=(0,u.Zp)(),e=(0,a.r)().visitorClickCount,r=(0,v.vK)().main_agent_url_prefix;return(0,n.$)((function(n,o){var i,a=e();if((0,p.Ay)(d.Qy.OnPageClick,{HY50:"YuanBaoMainPage",HY51:"set_mod",HY52:"new_chat_with_bridge",HY20:s.kv,HY54:"",HY58:""}),a){var u=(null==r||null===(i=r.props)||void 0===i?void 0:i.url)||"/chat/naQivTmsDa";t(u,{state:{type:"addNewAsk",payload:{supportHint:!0,type:c.PA.COMMON,question:n,realPrompt:null==o?void 0:o.realPrompt,multimedia:(null==o?void 0:o.uploadFiles)||[]}}})}}))},O=function(){var t=(0,u.Zp)(),e=(0,a.r)().visitorClickCount,r=(0,n.$)(function(){var r=L(w().mark((function r(n){var o,i;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if((0,p.Ay)(d.Qy.OnPageClick,{HY50:"YuanBaoMainPage",HY51:"set_mod",HY52:"new_chat_with_bridge",HY20:s.kv,HY54:"",HY58:""}),e()){r.next=4;break}return r.abrupt("return");case 4:if(o={type:c.PA.COMMON,question:n.msg},!n.file){r.next=10;break}return r.next=8,n.file.getFile();case 8:i=r.sent,o.multimedia=[i];case 10:t("/chat/".concat(n.agentId||s.kv),{state:{type:"addNewAsk",payload:o}});case 11:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}());return r}},52925:(t,e,r)=>{r.d(e,{Gm:()=>n,I0:()=>o});var n=function(t){return t[t.UNABLE_TO_CREATE=0]="UNABLE_TO_CREATE",t[t.CAN_CREATE=1]="CAN_CREATE",t[t.NEED_BIND_PHONE=2]="NEED_BIND_PHONE",t}({}),o=function(t){return t[t.WITH_LOGIN=0]="WITH_LOGIN",t[t.WITHOUT_LOGIN=1]="WITHOUT_LOGIN",t}({})},55534:(t,e,r)=>{r.d(e,{x:()=>o,y:()=>i});var n=r(7378),o=(0,n.createContext)({features:{},updateCustomFeatures:function(){},config:{}}),i=function(){return(0,n.useContext)(o)}},59125:(t,e,r)=>{r.d(e,{V:()=>u,m:()=>c});var n=r(21768),o=r(7378),i=!1,a=[],c=function(){return new Promise((function(t){i?t():a.push(t)}))},u=function(){(0,o.useEffect)((function(){return i=!0,a.forEach((function(t){(0,n.d)().then(t)})),function(){i=!1}}),[])}},64607:(t,e,r)=>{r.d(e,{V:()=>l});var n=r(99261),o=r(56995),i=r(43572),a=r(3698),c=r.n(a),u=r(85428),l=function(t){var e=t.onClose,r=t.onStart;return(0,u.jsxs)(n.lG,{visible:!0,onClose:e,dialogClassName:"ybc-join-team-joinTeamSuccessDialog",closeOnOverlayClick:!0,destroyOnClose:!0,width:340,placement:"center",header:null,footer:null,children:[(0,u.jsx)("div",{className:"ybc-join-team-header-pic"}),(0,u.jsx)("div",{className:"ybc-join-team-closeBtn",onClick:function(){null==e||e()}}),(0,u.jsx)("div",{className:"ybc-join-team-wordsContainer",children:(0,u.jsxs)("div",{className:"ybc-join-team-words",children:[(0,u.jsx)("p",{className:"ybc-join-team-title",children:(0,u.jsx)(i.Trans,{children:"加入团队成功"})}),(0,u.jsx)("p",{className:"ybc-join-team-content",children:(0,u.jsx)(i.Trans,{children:"立即体验腾讯元宝"})})]})}),(0,u.jsx)("div",{className:"ybc-join-team-button-container",children:(0,u.jsx)(o.$,{variant:"text",className:c()("ybc-join-team-start-to-play"),onClick:function(){null==r||r(),null==e||e()},children:(0,u.jsx)(i.Trans,{children:"开始体验"})})})]})}},64945:(t,e,r)=>{r.d(e,{AH:()=>i,EH:()=>c,PA:()=>n,b8:()=>o,ob:()=>a});var n=function(t){return t.COMMON="COMMON",t}({}),o=function(t){return t.AGENT_TPL="AGENT_TPL",t.EXT_FLOAT_BALL_SUMMARY="EXT_FLOAT_BALL_SUMMARY",t.EXT_PANEL_ASK="EXT_PANEL_ASK",t.EXT_PANEL_SUMMARY="EXT_PANEL_SUMMARY",t}({}),i=function(t){return t[t.NORMAL=0]="NORMAL",t[t.SHARE=1]="SHARE",t[t.HISTORY=2]="HISTORY",t[t.H5=3]="H5",t[t.FAVORITE=4]="FAVORITE",t}({}),a=function(t){return t[t.normal=0]="normal",t[t.deepReadHistory=1]="deepReadHistory",t[t.deepReadAsk=2]="deepReadAsk",t[t.deepReadAskNew=7]="deepReadAskNew",t[t.goodQuestion=3]="goodQuestion",t[t.goodQuestionEntry=5]="goodQuestionEntry",t[t.deepSearchHistory=6]="deepSearchHistory",t[t.deepSearchShare=9]="deepSearchShare",t[t.newDeepReadFile=12]="newDeepReadFile",t[t.newDeepReadUrl=11]="newDeepReadUrl",t}({}),c=function(t){return t.top="top",t.today="today",t.thisWeek="thisWeek",t.thisMonth="thisMonth",t.earlier="earlier",t}({})},77014:(t,e,r)=>{r.d(e,{B:()=>v,F:()=>g});var n=r(26900),o=r(91207),i=r(85803),a=r(43099),c=r(56261),u=r(45718),l=r(22448),s=r(28496);function f(t){return f="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},f(t)}function h(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 p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={defaults:{headers:{"X-Requested-With":"XMLHttpRequest",chat_version:"v1","x-commit-tag":"7dfca61f","X-WebVersion":"2.26.0"}}},y=function(t){var e=t;return o.fH.includes(e)?{sensitive:e.includes("[SENSITIVE]"),content:e}:e=e.replace(/\[ENTRY\]/g,"\n")},m=function(t){var e=t.speechType,r=t.jsonChunk,n=t.onData,o=t.options;if(e===a.Fm.TEXT||e===a.Fm.MESSAGE_REVOKE||e===a.Fm.IMAGE_WITH_TEXT||e===a.Fm.CARD||e===a.Fm.SEARCH_DEEP_MODE||e===a.Fm.SEARCH_DEEP_MODE_FIN||e===a.Fm.DOC_DEEP_MODE||e===a.Fm.DEEP_THINK)return n({speechType:e,content:{type:r.type,msg:(r.msg||"").replace(/\[ENTRY\]/g,"\n"),isTitle:r.isTitle,componentId:r.componentId||"",label:r.label||"",index:r.index}},o)};function g(t){var e,r=t.traceId,f=t.url,h=t.method,d=void 0===h?"POST":h,g=t.timeout,b=void 0===g?6e4:g,w=t.data,x=t.onData,L=t.onError,E=t.onEnd,C=t.onTimeout,j=t.onMsgIdx,_=t.onPlugin,O=t.headers,k=void 0===O?{}:O,S=t.onExtra,P=t.onDelete,A=p(p({},v.defaults.headers),k);if(Object.assign(A,(0,u.NU)()),(0,l.hL)()&&window.location.pathname.startsWith("/evt/qyn")&&(A=p(p({},A),(0,n.YD)())),window.location.pathname.startsWith("/evt/cxs")&&(A=p(p({},A),(0,c.kG)())),(0,l.YB)()&&(A["X-Source"]=k["X-Source"]||"app"),window.location.pathname.startsWith("/chat")){var T=window.location.pathname.match(/\/chat\/(.*)/);T&&(A=p(p({},A),{},{"X-AgentID":T[1]}))}(0,u.f8)(f,A);var N=!1,I=!1;A=(0,s.SD)(A);var F=new o.y1("".concat(f),{method:d,headers:A,payload:JSON.stringify(w),timeout:b,continuousTimeout:9e4,traceId:r});return F.addEventListener("onopen",(function(){})),F.addEventListener("speech_type",(function(t){t.data.startsWith(a.Fm.TEXT)?e!==a.Fm.CARD&&e!==a.Fm.DEEP_THINK&&e!==a.Fm.REASONER&&e!==a.Fm.DEEP_SEARCH_COT&&(e=a.Fm.TEXT):t.data.startsWith(a.Fm.STATUS)?e!==a.Fm.DEEP_SEARCH_COT&&(e=a.Fm.STATUS):t.data.startsWith(a.Fm.IMAGE_WITH_TEXT)||t.data.startsWith(a.Fm.SEARCH_WITH_IMAGE)||t.data.startsWith(a.Fm.DRAW_WITH_IMAGE)?e=a.Fm.IMAGE_WITH_TEXT:t.data.startsWith(a.Fm.SEARCH_WITH_TEXT)?e!==a.Fm.TEXT&&e!==a.Fm.DEEP_SEARCH_COT&&(e=a.Fm.CARD):t.data.startsWith(a.Fm.CARD)?e=a.Fm.CARD:t.data.startsWith(a.Fm.SCENARIO_CHALLENGE)?e=a.Fm.SCENARIO_CHALLENGE:t.data.startsWith(a.Fm.SEARCH_DEEP_MODE_FIN)?e=a.Fm.SEARCH_DEEP_MODE_FIN:t.data.startsWith(a.Fm.SEARCH_DEEP_MODE)?e=a.Fm.SEARCH_DEEP_MODE:t.data.startsWith(a.Fm.OLYMPIC_POSTER)?e=a.Fm.OLYMPIC_POSTER:t.data.startsWith(a.Fm.DOC_DEEP_MODE)?e=a.Fm.DOC_DEEP_MODE:t.data.startsWith(a.Fm.DOC_DEEP_READ_CARD)?e=a.Fm.DOC_DEEP_READ_CARD:t.data.startsWith(a.Fm.OUTLINE)?e=a.Fm.OUTLINE:t.data.startsWith(a.Fm.DOC_CARD)?e=a.Fm.DOC_CARD:t.data.startsWith(a.Fm.DEEP_THINK)?e=a.Fm.DEEP_THINK:t.data.startsWith(a.Fm.REASONER)?e=a.Fm.REASONER:t.data.startsWith(a.Fm.DEEP_SEARCH_COT)?e=a.Fm.DEEP_SEARCH_COT:t.data.startsWith(a.Fm.MEETING_BOT)?e=a.Fm.MEETING_BOT:!t.data.startsWith("hint")&&t.data.startsWith(a.Fm.DOC_LINK)})),F.addEventListener("message",(function(t){var n,o,c;if(!I){var u=y(t.data),l={traceId:t.traceId,msgId:t.msgId,replyId:t.replyId};if("string"!=typeof u)return I=!0,E(e,p(p({},u),{},{cutoff:N}),l);var s=null===(n=u.match(/^\[plugin:(.+?)\]/i))||void 0===n?void 0:n[1];if(s)_(decodeURIComponent(s));else{var f=null===(o=u.match(/^\[MSGINDEX:(.+?)\]/i))||void 0===o?void 0:o[1];if(f)j(Number(f.trim()));else if(!(null===(c=u.match(/^\[TRACEID:(\w+)\]/i))||void 0===c?void 0:c[1])){var h;try{h=JSON.parse(t.data)}catch(e){var d;null===(d=i.fQ.ins)||void 0===d||d.error({type:i.Ku.PARSE_DATA_FAIL,payload:{traceId:r,data:t},error:e}),h={type:"text",msg:""}}if("deleteMsg"===h.type)return null==P?void 0:P(h.deleteIndexList);if("text"!==h.type||h.msg){if("tips"===h.type)return x({speechType:a.Fm.TEXT,content:h},l);if("hint"===h.type||"meta"===h.type||"usage"===h.type||"tool_calls"===h.type||"replace"===h.type||"writingDocLink"===h.type||"docTranslateInfo"===h.type||"multimediaParseResult"===h.type||"button"===h.type)return S(h);if("moderation"===h.type&&h.sensitive)return x({speechType:a.Fm.SENSITIVE_HIDE,content:h},l);if(e===a.Fm.TEXT){if("olympic_poster"===h.type)return x({speechType:a.Fm.OLYMPIC_POSTER,content:h},l);if("step"===h.type||"continue_step"===h.type||"page"===h.type||"middle_message"===h.type||"doc_percent"===h.type||"yuanqi_tool_call"===h.type||"searchGuid"===h.type||"progress"===h.type)return x({speechType:a.Fm.TEXT,content:h},l);if("docDeepModeInfo"===h.type)return x({speechType:a.Fm.TEXT,content:h},l);if("scenario_challenge"===h.type)return x({speechType:a.Fm.SCENARIO_CHALLENGE,content:h},l);if("access"===h.type&&"meetingAuth"===h.permission)return x({speechType:a.Fm.ACCESS,content:h},l);if("text"!==h.type)return;return m({speechType:e,jsonChunk:h,onData:x,options:l})}return e===a.Fm.STATUS?"access"===h.type?x({speechType:a.Fm.ACCESS,content:h},l):x({speechType:e,content:h},l):e===a.Fm.IMAGE_WITH_TEXT?"text"!==h.type?x({speechType:a.Fm.IMAGE_WITH_TEXT,content:h},l):m({onData:x,speechType:e,jsonChunk:h,options:l}):e===a.Fm.CARD?"olympic_poster"===h.type?x({speechType:a.Fm.OLYMPIC_POSTER,content:h},l):"text"!==h.type?x({speechType:a.Fm.CARD,content:h},l):m({onData:x,speechType:e,jsonChunk:h,options:l}):e===a.Fm.SEARCH_DEEP_MODE||e===a.Fm.SEARCH_DEEP_MODE_FIN?"text"!==h.type?x({speechType:e,content:h},l):m({onData:x,speechType:e,jsonChunk:h,options:l}):e===a.Fm.DOC_DEEP_MODE?"text"!==h.type?x({speechType:a.Fm.DOC_DEEP_MODE,content:h},l):m({onData:x,speechType:e,jsonChunk:h,options:l}):e===a.Fm.DEEP_THINK?"text"!==h.type?x({speechType:a.Fm.DEEP_THINK,content:h},l):m({onData:x,speechType:e,jsonChunk:h,options:l}):e===a.Fm.OUTLINE&&"writingOutline"===h.type?x({speechType:a.Fm.OUTLINE,content:h},l):e===a.Fm.DOC_CARD&&"writingDocCard"===h.type?x({speechType:a.Fm.DOC_CARD,content:h},l):e===a.Fm.DOC_DEEP_READ_CARD&&"docDeepReadCard"===h.type?x({speechType:a.Fm.DOC_DEEP_READ_CARD,content:h},l):e===a.Fm.REASONER?x({speechType:a.Fm.REASONER,content:h},l):e===a.Fm.DEEP_SEARCH_COT?x({speechType:a.Fm.DEEP_SEARCH_COT,content:h},l):e===a.Fm.MEETING_BOT?x({speechType:a.Fm.MEETING_BOT,content:h},l):void 0}}}}})),F.addEventListener("message_revoke",(function(t){y(t.data);var r={traceId:t.traceId,msgId:t.msgId,replyId:t.replyId},n=JSON.parse(t.data);if("text"===n.type)return e=a.Fm.TEXT,m({speechType:a.Fm.MESSAGE_REVOKE,jsonChunk:n,onData:x,options:r})})),F.addEventListener("error",(function(t){I||(I=!0,L(t,{traceId:t.traceId,msgId:t.msgId,replyId:t.replyId}))})),F.addEventListener("message_cutoff",(function(){N=!0})),F.addEventListener("timeout",(function(t){I||(I=!0,null==C||C(t,{traceId:t.traceId,msgId:t.msgId,replyId:t.replyId}))})),F.stream(),F}},79325:(t,e,r)=>{r.d(e,{Mn:()=>n,Z4:()=>o,ep:()=>i});var n="//captcha.gtimg.com/TCaptcha.js",o="0_send_code_error",i=function(t){return t.BINDPHONE="bindPhone",t.VERIFYPHONE="verifyPhone",t.WATERWALL="waterProof",t}({})},79378:(t,e,r)=>{r.d(e,{ID:()=>O,Qe:()=>E,Y8:()=>j,hD:()=>L,iX:()=>x,n1:()=>_,w4:()=>k,ym:()=>C});var n=r(34237),o=r(15758),i=r(8687),a=r(75e3),c=r(84164),u=r(78677),l=r(91560),s=r.n(l),f=r(85803),h=r(18327);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 d(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 v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(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 m(){m=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",d="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function x(){}var L={};l(L,a,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(N([])));C&&C!==r&&n.call(C,a)&&(L=C);var j=x.prototype=b.prototype=Object.create(L);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==p(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(p(e)+" is not iterable")}return w.prototype=x,o(j,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},_(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),l(j,u,"Generator"),l(j,a,(function(){return this})),l(j,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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),A(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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function g(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,c,"next",t)}function c(t){g(i,n,o,a,c,"throw",t)}a(void 0)}))}}var w=function(){var t=b(m().mark((function t(){var e;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=/a_/.test(h.A.get("hy_user")||""),(0,a.LZ)((function(){return!0}),(function(t){t({app_nav:{visible:!e},third_app_header:{visible:e,props:{name:"sougou",title:"腾讯AI助手"}}})}));case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),x=function(){var t=b(m().mark((function t(e){var r,n,l,h,p,d,g,b,w,x;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/,(0,c._R)({isRequest:!0}),l=null===(r=location.href.match(n))||void 0===r?void 0:r[0],h=s().parse(location.search,{ignoreQueryPrefix:!0,arrayLimit:100,allowDots:!0}),p=String(e.appid||(null==h?void 0:h.appid)),(d="10003"===p)&&(null===(g=f.fQ.ins)||void 0===g||g.reportEvent({name:u.Xe.PAGE_MOD,ext3:JSON.stringify({HY50:"SougouCheckPage",HY51:"getcode_receive"})})),t.next=9,(0,i.Em)({url:"/api/open/cauth/login",headers:{"x-source":"web"},data:v({code:e.code,appId:p},l?{conversationId:l}:{})});case 9:return b=t.sent,(0,c._R)({isRequest:!1}),null!=b&&b.AnonUser.isAnon?(0,o.zG)({HY64:"",HY76:b.user_id,uid:""}):(0,o.zG)({HY64:b.user_id,HY76:"",uid:b.user_id}),(0,a.K0)((function(){return!0}),(function(t){t(y({},"x-channel",p))})),b.error_code||(w=/thirdParty\/sg/.test(location.href),d&&(w||(0,a.LZ)((function(){return!0}),(function(t){t({app_nav:{visible:!(null!=b&&b.AnonUser.isAnon)},third_app_header:{visible:null==b?void 0:b.AnonUser.isAnon,props:{name:"sougou",title:"腾讯AI助手"}}})})),b.AnonUser.isAnon||null===(x=f.fQ.ins)||void 0===x||x.reportEvent({name:u.Xe.PAGE_MOD,ext3:JSON.stringify({HY50:"SougouCheckPage",HY51:"log_on"})})),(0,c.eb)({event:"authReady",options:{isAnon:b.AnonUser.isAnon}})),t.abrupt("return",b);case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),L=function(){var t=b(m().mark((function t(e){return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.a.emit("initApp");case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),E=function(t){n.a.emit("onAsk",null==t?void 0:t.text,null==t?void 0:t.options),w()},C=function(){n.a.emit("onRefreshPage",{url:"/thirdParty/sg"})},j=function(t){n.a.emit("onAskWithNewSession",null==t?void 0:t.text,{realPrompt:null==t?void 0:t.realPrompt,realQuestion:null==t?void 0:t.text,uploadFiles:[]}),w()},_=function(){var t=b(m().mark((function t(e){var r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(0,o.UJ)(),(0,c._R)({isShow:!0}),n.a.emit("onWebShow",{type:"search",visible:!0}),null===(r=f.fQ.ins)||void 0===r||r.reportEvent({name:u.Xe.PAGE_ENTER,ext3:JSON.stringify({HY50:"OnShowPage",HY51:"main_mod",HY58:"authReady"===(null==e?void 0:e.from)?"1":"0"})}),n.a.emit("onInputFocus");case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),O=function(){(0,o.vp)(),(0,c._R)({isShow:!1})},k=function(){n.a.emit("onLoginModalClose")}},79597:(t,e,r)=>{r.d(e,{Q:()=>Se});var n=r(26093),o=r(7378),i=r(86118),a=r(52338),c=r(71892),u=r(480),l=r(28619),s=r(77256),f=r(922),h=r(85803),p=r(45042),d=r(69687),v=r(88188),y=r(79815),m=r(31519),g=r(26796),b=r(59677),w=r(4795),x=r.n(w),L=r(37136),E=r(56301),C=r(603),j=r(39646),_=r(22448),O=r(10440),k=r(8491),S=r(64945),P=r(66626),A=r(68402),T=r(3573),N=r(43721),I=r(80088),F=r(7737),D=r(15758),M=r(11401),H=r(75e3),R=r(27036),G=r(30313);const Y=r.p+"assets/ee8c619526c4611ef147.svg";var V=r(3168),U=r(42239),Z=r(78677),B=r(44369),W=r(85428);function z(t){return z="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},z(t)}function $(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 Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$(Object(r),!0).forEach((function(e){X(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=z(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==z(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,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==z(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(z(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function q(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function K(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return tt(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)?tt(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 tt(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}var et=function(){return(0,W.jsxs)("div",{className:"third-party-login-protocol-body",children:["智能助手部分功能由腾讯元宝提供服务,根据相关规定需要登录后使用,扫码默认已阅读并同意搜狗输入法的",(0,W.jsx)("a",{target:"_blank",href:"https://pinyin.sogou.com/help.php?list=9&q=1&from=install&p=terms&f=about ",children:" 使用协议、"}),(0,W.jsx)("a",{target:"_blank",href:"https://rule.tencent.com/rule/b692b40e-97b9-4e28-8b55-7f08d598ecec?p=privacy&f=about",children:" 隐私政策、 "}),(0,W.jsx)("a",{target:"_blank",href:"https://rule.tencent.com/rule/202406030001",children:" 智能助手服务协议, "}),"腾讯元宝的",(0,W.jsx)("a",{target:"_blank",href:"https://rule.tencent.com/rule/202403110001",children:" 服务协议、 "}),(0,W.jsx)("a",{target:"_blank",href:"https://privacy.qq.com/document/preview/4d27c22b2e9f47958197aa5ec32f7d6e",children:" 隐私政策 "})]})},rt=function(t){var e=K((0,o.useState)(!1),2),r=e[0],n=e[1],i=K((0,o.useState)(),2),a=i[0],c=i[1],u=K((0,o.useState)(!0),2),l=u[0],p=u[1],d=K((0,o.useState)({loading:!0,isNewVersion:!1}),2),v=d[0],y=d[1],m=K((0,o.useState)(!0),2),g=m[0],b=m[1],w=function(){n(!1)},x=(0,o.useMemo)((function(){var t=a||{},e=t.isLogin,r=t.loginType;return e&&!["wx","qq"].includes(r)}),[a]),L=function(){var e,r=(e=J().mark((function e(){var r;return J().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(),b(!0),e.next=4,null==t||null===(r=t.onLoginConfirm)||void 0===r?void 0:r.call(t,t.onLoginSuccess,t.onLoginCancel);case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){q(i,n,o,a,c,"next",t)}function c(t){q(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();(0,o.useEffect)((function(){p(!0),M.gE.getUserInfo().then((function(t){p(!1),c(t.result);var e=t.result||{},r=e.isLogin,n=e.loginType,o=r&&!["wx","qq"].includes(n);r&&o?y({loading:!1,isNewVersion:!1}):(y({loading:!0,isNewVersion:!1}),M.gE.getClientInfo().then((function(t){var e=Number(t.result.apiVersion),n=e>=27||24===e;y({loading:!1,isNewVersion:n}),n&&(0,B.iV)(r)}))),(0,U.Ay)({hyrptImpressionEventCode:Z.Xe.PAGE_ENTER,hyrptPageId:o?"WxLoginUsePage":"LoginUsePage",hyrptModId:"main_mod"},"impression")})).finally((function(){p(!1)}))}),[]);var E=(0,o.useMemo)((function(){return{header:"服务协议及隐私保护",body:(0,W.jsx)(et,{}),confirmBtn:"同意",cancelBtn:"不同意"}}),[]);return v.loading||v.isNewVersion?null:(0,W.jsxs)("div",{className:"third-party-login-confirm",children:[(0,W.jsx)("div",{className:"bg"}),(0,W.jsx)("div",{className:"close",onClick:t.onLoginCancel,children:(0,W.jsx)("img",{src:Y,alt:""})}),(0,W.jsxs)("div",{className:"content",children:[(0,W.jsx)("img",{className:"logo",src:V}),(0,W.jsxs)("div",{className:"text",children:[(0,W.jsx)("div",{className:"title",children:l?(0,W.jsx)(f.Rh,{size:"small"}):x?"微信/QQ登录继续使用":"登录继续使用"}),(0,W.jsx)("div",{className:"sub-title",children:"使用微信/QQ登录后,可不限制次数使用"}),(0,W.jsx)("div",{className:"sub-title",children:"腾讯AI搜索、划词解释、翻译等功能"})]}),(0,W.jsx)(R.$,{className:"btn",onClick:function(){var t;if(null===(t=h.fQ.ins)||void 0===t||t.reportEvent({name:Z.Xe.PAGE_CLICK,ext3:JSON.stringify({HY50:x?"WxLoginUsePage":"LoginUsePage",HY51:"main_mod",HY52:"login"})}),!g)return n(!0);L()},loading:l,children:l?"":x?"切换登录账号":"去登录"}),x&&(0,W.jsxs)("div",{className:"sub-text",children:[(0,W.jsx)("div",{className:"sub-title",children:"微信/QQ账号和已有搜狗/小米账号用户资产"}),(0,W.jsx)("div",{className:"sub-title",children:"(词库、设置、皮肤等)不互通"})]})]}),(0,W.jsx)("div",{className:"protocol",children:(0,W.jsx)(G.S,{className:"checkbox",onChange:function(t){var e;null===(e=h.fQ.ins)||void 0===e||e.reportEvent({name:Z.Xe.PAGE_CLICK,ext3:JSON.stringify({HY50:x?"WxLoginUsePage":"LoginUsePage",HY51:"main_mod",HY52:"read_agree"})}),b(t)},checked:g,children:(0,W.jsx)(et,{})})}),(0,W.jsx)(s.lG,Q({className:"third-party-login-dialog",visible:r,onClose:w,confirmLoading:l,onConfirm:L,onOpened:function(){(0,U.Ay)({hyrptImpressionEventCode:Z.Xe.PAGE_MOD,hyrptPageId:"LoginUsePage"},"impression")}},E)),";"]})};function nt(t){return nt="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},nt(t)}function ot(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 it(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=nt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var at=function(t){return(0,o.useEffect)((function(){var e;null===(e=t.requestLogin)||void 0===e||e.call(t,t.onLoginSuccess,t.onLoginCancel)}),[]),t.onLoginConfirm?(0,W.jsx)(rt,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(r),!0).forEach((function(e){it(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t)):null},ct=r(8687),ut=r(48335),lt=r(66220),st=r(99060),ft=r(53277),ht=r(12220),pt=r(73857),dt=r(96077),vt=r(22359),yt=r(5245),mt=r(28496),gt=r(56643),bt=r(85015),wt=r(47870),xt=r(37984);function Lt(t){return Lt="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},Lt(t)}function Et(){Et=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==Lt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Lt(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function Ct(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function jt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ct(i,n,o,a,c,"next",t)}function c(t){Ct(i,n,o,a,c,"throw",t)}a(void 0)}))}}var _t=r(68244),Ot=r(80628),kt=r(80246),St=r(46091),Pt=r(46755),At=r(6683),Tt=r(28104),Nt=r(24417),It=r(34237),Ft=r(16564),Dt=r(79325),Mt=r(18399),Ht=r(9973),Rt=r(2513),Gt=r(85111),Yt=r(97037),Vt=r(27991),Ut=r(22901),Zt=r(82095),Bt=r(43572),Wt=r(3698),zt=r.n(Wt),$t=r(22531),Qt=r(38623),Xt=r(56995),Jt=r(99261);function qt(t){return qt="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},qt(t)}function Kt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=qt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function te(){te=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==qt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(qt(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function ee(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function re(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ee(i,n,o,a,c,"next",t)}function c(t){ee(i,n,o,a,c,"throw",t)}a(void 0)}))}}function ne(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return oe(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)?oe(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 oe(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}var ie=[1,2,3,4],ae=[{title:"创建团队,安全畅聊元宝",content:"创建属于你的团队,与团队成员一同使用元宝"},{title:"隐私安全",content:"团队成员数据默认不会用于AI模型训练,协作更安心"},{title:"分享管控",content:"管理员一键管理对话分享权限,敏感信息不外泄"},{title:"设备管理",content:"指定设备仅限团队账号登录,团队数据更安全"}],ce=function(t){var e,r,n=t.visible,i=t.lang,a=t.theme,c=t.onClose,u=t.onCreate,l=t.onLater,s=t.onCreateTeamSuccessCallback,f=t.getAccountData,h=ne((0,o.useState)(),2),p=h[0],d=h[1],v=ne((0,o.useState)(0),2),y=v[0],m=v[1],g=(0,o.useRef)(null),b=(0,o.useRef)(null),w=(0,o.useCallback)(re(te().mark((function t(){var e,r;return te().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,null==u||u(),f){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,f();case 6:e=t.sent,r=null==e?void 0:e.data,d(r),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])}))),[f]);(0,o.useEffect)((function(){p&&b.current&&n&&setTimeout((function(){var t,e=null===(t=b.current)||void 0===t?void 0:t.querySelector("button");e&&(e.click(),null==c||c())}),0)}),[p,c,n]);var x=(0,o.useCallback)((function(){return(0,W.jsxs)("div",{className:"ybc-button-group",children:[(0,W.jsx)(Xt.$,{variant:"text",className:zt()("ybc-later"),onClick:function(){null==l||l(),null==c||c()},children:(0,W.jsx)(Bt.Trans,{children:"稍后再说"})}),(0,W.jsx)(Xt.$,{variant:"text",className:zt()("ybc-start-to-play"),onClick:w,children:(0,W.jsx)(Bt.Trans,{children:"立即创建"})})]})}),[c,w]);return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Jt.lG,{visible:n,onClose:c,closeOnOverlayClick:!1,closeOnEscKeydown:!1,dialogClassName:"ybc-newTeamGuideDialog",destroyOnClose:!0,width:340,placement:"center",header:null,footer:null,children:[(0,W.jsx)(Qt.RC,{modules:[$t.Ij,$t.dK],loop:!0,ref:g,autoplay:!0,observeParents:!0,observer:!0,onSlideChange:function(t){m(t.realIndex+1)},onSwiper:function(t){var e;null==t||null===(e=t.autoplay)||void 0===e||e.start()},children:ie.map((function(t,e){return(0,W.jsx)(Qt.qr,{children:(0,W.jsx)("div",{className:zt()("ybc-header-pic-".concat(t),Kt({},"ybc-header-pic-".concat(t,"-en"),"en-US"===i))})},e)}))}),(0,W.jsx)("div",{className:"ybc-closeBtn",onClick:c}),(0,W.jsxs)("div",{className:"ybc-step",children:[y,"/",ie.length]}),(0,W.jsx)("div",{className:"ybc-wordsContainer",children:(0,W.jsxs)("div",{className:"ybc-words",children:[(0,W.jsx)("p",{className:"ybc-title",children:(0,W.jsx)(Bt.Trans,{children:(null===(e=ae[0===y?0:y-1])||void 0===e?void 0:e.title)||""})}),(0,W.jsx)("p",{className:"ybc-content",children:(0,W.jsx)(Bt.Trans,{children:(null===(r=ae[0===y?0:y-1])||void 0===r?void 0:r.content)||""})})]})}),x()]}),(0,W.jsx)("div",{ref:b,style:{display:"none"},children:(0,W.jsx)(Zt.V,{data:p,onCreateTeamSuccessCallback:s,theme:a,lang:i,children:(0,W.jsx)("button",{"aria-hidden":"true"})})})]})},ue=r(52925),le=r(22568),se=r(25043),fe=r(8065),he=r(68418),pe=r(19994),de=r(14205),ve=r(21409),ye=r(2835),me=r(23536),ge=r(53550);function be(t){return be="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},be(t)}function we(){we=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==be(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(be(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function xe(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Le(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xe(i,n,o,a,c,"next",t)}function c(t){xe(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Ee(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 Ce(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ee(Object(r),!0).forEach((function(e){je(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function je(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=be(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==be(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _e(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Oe(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)?Oe(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 Oe(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}var ke=window.self!==window.top;var Se=function(t){var e,r,w,R=(0,n.Bd)().t,G=t.children,Y=t.loginMethod,V=(0,T.b)().isMobile,Z=(0,o.useRef)(),B=(0,o.useMemo)((function(){return V||(0,_.d4)()}),[V]),z=(0,o.useMemo)((function(){var t;return(null===(t=(0,ut.xF)())||void 0===t?void 0:t.source)===pt.I.QUoBnAiOME.source}),[]),$=(0,n.DP)().isDark,Q=(0,n.qA)(),X="en"===Q?"en-US":Q,J=(0,vt.Xr)(_t.aU),q=_e((0,vt.fp)(Ot.bk),2),K=q[0],tt=q[1],et=(0,vt.Xr)(At.ax),rt=(0,vt.md)(At.ax).finalAiAppSwitch,nt=_e((0,o.useState)({maxVisitorNumber:-1,visitorNumber:0,availableChatNum:0,authInfo:{auth:!1},mainCid:"",pageInitState:"loading",version:(0,p.uT)(),goodQuestionsInfo:{flushIndex:0,isLoading:!1,goodQuestionList:[],isError:!1,hasNext:!0,refreshTime:Date.now()},generalInfo:{plugins:[],promptExamples:[],feedbackCodeConfig:(0,a.kE)(),messageText:{imgGenerating:""},inspiration:{inspirations:[],inspirationTags:[],group:[]},competitionModelMetaInfo:[],greetings:E.GQ,guidance:E.GQ,multimodalExamples:[],privilege:null,platformProduction:[],newyear_promotion_status:0,maxConvRound:{default:30},appBaseConfig:{disableUserAvatar:!1,conversationModelSwitchGuide:{rules:[]},citationStyle:0,internetSeekState:"default",appTipRound:10,showAppDownloadTips:0,downloadHint:{downloadContent:R("随时随地,想问就问"),downloadButton:R("下载App"),downloadButtonH5:R("点击下载")},modelSwitchTip:{},enableTempConv:!1,tempConvNotice:""},interestTags:[]},pluginValue:{id:"",default:""},agentDetail:null,hideAgentGreeting:{},hunyuanAgentId:N.kv,discoveryGoodQuestions:{index:1,finish:!1,list:[]},expParams:null}),2),ot=nt[0],it=nt[1],Lt=_e((0,o.useState)({show:!1,step:"login"}),2),Ct=Lt[0],Bt=Lt[1],Wt=(0,o.useRef)(null),zt=(0,o.useRef)(!1),$t=(0,P.I)(),Qt=Number($t.get("scene")||0),Xt=$t.get("source")||"",Jt=(0,j.g)().agentId,qt=(0,kt.SK)({agentId:Jt||""}),Kt=(0,c.g)((function(t){it((function(e){return Ce(Ce({},e),t)}))})),te=(0,u.Y)(ot),ee=(0,l.$)((function(t){var e=!1,r=!0;t&&("boolean"==typeof t?e=t:(e=t.checkOnly||!1,r=!1!==t.updateCount));var n=ot.maxVisitorNumber,o=ot.visitorNumber;if(!ot.authInfo.auth){var i,a,c=(0,st.P)(null===(i=Z.current)||void 0===i?void 0:i.userId)||o;if(c===n||-1===n||Jt&&Jt!==N.kv)return o!==c&&Kt({visitorNumber:c}),!e&&Bt({show:!0,step:"login"}),Me(),!1;if(r)Kt({visitorNumber:c+1}),(0,st.j)((null===(a=Z.current)||void 0===a?void 0:a.userId)||"",c+1)}return!0})),re=(0,j.zy)().pathname,ne=(null==re?void 0:re.indexOf("agent/history"))&&(0,_.YB)(),oe=Y||g.iD,ie=function(t){var e=t.onLoginOk,r=t.onLoginError,n=(0,j.Zp)(),i=(0,o.useRef)(Promise.resolve({})),a=(0,vt.Xr)(yt.Iv),c=(0,o.useCallback)((function(){return new Promise((function(t){if((0,_.Ek)())t({ticket:"",randstr:""});else try{new TencentCaptcha("2035621640",(function(e){t(e)}),{loading:!1}).show()}catch(e){t({ticket:"",randstr:""})}}))}),[]),u=(0,o.useCallback)(jt(Et().mark((function t(){var e;return Et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!i.current){t.next=6;break}return t.next=3,i.current;case 3:return e=t.sent,i.current=null,t.abrupt("return",e);case 6:return t.next=8,c();case 8:return t.abrupt("return",t.sent);case 9:case"end":return t.stop()}}),t)}))),[c]),l=(0,o.useCallback)(function(){var t=jt(Et().mark((function t(n){var o,i,c,l,s,f,h,p,d,v,y,m,g,b,w,x,L,E,C,j,_;return Et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,null==n||null===(o=n.AnonUser)||void 0===o||!o.isAnon){t.next=6;break}return i=n.AnonUser,c=i.availableChatNum,l=i.maxChatNum,s=n.token,f=n.userId,e({isAnon:!0,maxChatNum:l,availableChatNum:c,token:s||"",userId:f||""}),t.abrupt("return",n);case 6:return h=(0,dt.O)(),p=(0,mt.lQ)(),d=sessionStorage.getItem("finger")||h,t.next=11,u();case 11:return v=t.sent,y={device_id:"TEST"===p?d:h,device_type:1,captchaTicket:v.ticket,captchaRandstr:v.randstr},m=(0,gt.u)(),g={},"extension"===m.from&&(b=String((0,bt.c)()?wt.q.EXTENSION_MAC:wt.q.EXTENSION_WIN),g={"X-Instance-ID":b,"X-Browser-Name":(0,xt.ZE)()}),t.next=18,(0,ct.Em)({url:(0,ut.e9)(lt.s.API_ANON_LOGIN),method:"post",data:y,headers:g});case 18:return w=t.sent,x=w.AnonUser,L=x.isAnon,E=x.maxChatNum,C=x.availableChatNum,j=w.token,_=w.userId,e({isAnon:L,maxChatNum:E,availableChatNum:C,token:j,userId:_}),a(),t.abrupt("return",w);case 25:t.prev=25,t.t0=t.catch(0),r();case 28:case"end":return t.stop()}}),t,null,[[0,25]])})));return function(e){return t.apply(this,arguments)}}(),[u,e,r,a]),s=(0,o.useCallback)((function(t){var e=t.anonUserInfo,r=t.skipSessionInit;if(!e)return!1;var o=e.isChatted,i=e.conversationId;return!(!o||!i||(r?n("/chat/".concat(N.kv,"/").concat(i),{state:{type:"skipSessionInit"}}):n("/chat/".concat(N.kv,"/").concat(i)),0))}),[n]);return{visitorLogin:l,visitorJump:s}}({onLoginOk:function(t){var e=t.isAnon,r=t.maxChatNum,n=t.availableChatNum,o=t.token,i=t.userId;if(e){var a=r-n;Kt({maxVisitorNumber:r,visitorNumber:a,availableChatNum:n}),Z.current=Ce(Ce({},function(){var t,e=sessionStorage.getItem("__prevAnonUserInfo__");if(e)try{t=JSON.parse(e)}catch(t){}return sessionStorage.removeItem("__prevAnonUserInfo__"),t}()),{},{userId:i,token:o}),sessionStorage.setItem("anonUserInfo",JSON.stringify(Z.current)),sessionStorage.setItem("visitorId",i),(0,st.j)(i,a),(0,d.pK)(i,o),(0,D.zG)({visitor_id:i})}},onLoginError:function(){Kt({maxVisitorNumber:-1})}}),ae=ie.visitorLogin,be=ie.visitorJump,xe=function(){var t=Le(we().mark((function t(e){var r,n,o,i,c,u,l,s,f,h,p,v,y=arguments;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=null===(r=(y.length>1&&void 0!==y[1]?y[1]:{}).update)||void 0===r||r,t.next=4,Promise.all([Xt===N.cQ.YUANQI&&Qt===S.AH.SHARE?Promise.resolve(null):(0,a.HO)(),(0,F.i)(),(0,ge.G_)({key:m.vl},e)]);case 4:if(c=t.sent,u=_e(c,3),l=u[0],s=u[1],(f=u[2]).length>0&&null!==(n=f[0])&&void 0!==n&&null!==(n=n.value)&&void 0!==n&&n.config_value)try{"string"==typeof(h=f[0].value.config_value)&&(f[0].value.config_value=JSON.parse(h||"{}"))}catch(t){f[0].value.config_value={}}return d.Hv.setAuth({userId:e}),p=Ce({},te()),l&&(p.generalInfo=l.generalInfo,p.pluginValue=l.pluginValue,p.hunyuanAgentId=(null===(v=l.generalInfo.agentsConfig)||void 0===v?void 0:v.hunyuanAgentId)||N.kv),p.generalInfo=Ce(Ce(Ce({},p.generalInfo),s),{},{blackLinkList:(null===(o=f[0])||void 0===o||null===(o=o.value)||void 0===o?void 0:o.config_value)||[]}),i&&Kt(p),t.abrupt("return",p);case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),Ee=(0,H.vK)(),Oe=Ee.use_v2_layout,Se=Ee.app_user_ai_switch_config,Pe=(0,l.$)(Le(we().mark((function t(){var e,r,n,o,i,a,c=arguments;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=c.length>0&&void 0!==c[0]?c[0]:{},!Oe.visible){t.next=3;break}return t.abrupt("return","");case 3:return n=null===(e=r.update)||void 0===e||e,t.prev=4,t.next=7,(0,ct.Em)({url:(0,ut.e9)(lt.s.GET_USER_MAIN_CID),method:"get"});case 7:return o=t.sent,i=o.mainCid,a=void 0===i?"":i,n&&Kt({mainCid:a}),t.abrupt("return",a);case 14:return t.prev=14,t.t0=t.catch(4),t.abrupt("return","");case 17:case"end":return t.stop()}}),t,null,[[4,14]])})))),Ae=(0,l.$)(function(){var t=Le(we().mark((function t(e){var r,n,o,i,c,u,l,f,p,d,v,y,g,w,x,E,C,j,O,k,S;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=1,e){t.next=33;break}return t.prev=3,t.next=6,M.gE.initClientAuth();case 6:l=t.sent,null!=(f=l.result)&&null!==(u=f.AnonUser)&&void 0!==u&&u.isAnon&&(n=f),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(3);case 14:return t.prev=14,t.next=17,oe();case 17:if(void 0!==(r=t.sent)){t.next=23;break}s.uj.confirm({body:R("获取登录态超时,请刷新后重试"),closeBtn:null,cancelBtn:null,confirmBtn:R("刷新"),onConfirm:function(){window.location.reload()}}),(0,U.Ay)(Nt.Qy.OnPageMod,{page_id:"AllAgentPage",mod_id:"log_status_loss"}),t.next=27;break;case 23:if(r){t.next=27;break}return t.next=26,ae(n);case 26:n=t.sent;case 27:t.next=31;break;case 29:t.prev=29,t.t1=t.catch(14);case 31:t.next=34;break;case 33:r=e;case 34:if(r){t.next=41;break}if(null===(p=n)||void 0===p||!p.AnonUser.isAnon){t.next=38;break}return t.next=38,xe(n.userInfo);case 38:return tt(n),Kt({pageInitState:"normal"}),t.abrupt("return");case 41:if(v=(d=r).userId,y=d.nickName,g=d.teamInfo,w=d.userType,null===(o=h.fQ.ins)||void 0===o||o.setConfig({uin:v}),null===(i=Tt.Q.ins)||void 0===i||i.setConfig({uid:v,extField:{nickName:y}}),(0,D.zG)({uid:v,HY64:v,HY104:null==g?void 0:g.teamId,HY105:w}),Vt.M.updateParams({HY64:v}),ke&&z?(0,a.Hy)(v,(0,_.jb)()):(0,a.Hy)(v,!1),null!==(c=(0,H.cP)().disable_user_active_report)&&void 0!==c&&c.visible||(0,U.Ay)(Nt.Qy.OnUserActive,{ext1:"1",HY20:Jt||""}),ot.version!==m.MP.TENCENT){t.next=54;break}if(x=r.status,Number(x)===b._.PASS){t.next=54;break}return Kt({authInfo:Ce({auth:!0},r),pageInitState:"normal"}),ke&&L.az.emit("post-iframe-message",{event:L.EB.USER_STATUS_ERROR,payload:{code:L.rg.STATUS_ERROR,status:x,message:R("用户状态异常")}}),t.abrupt("return");case 54:return t.next=56,Promise.all([Pe({update:!1}),xe(v,{update:!1})]);case 56:E=t.sent,C=_e(E,2),j=C[0],O=C[1],tt(Ce({auth:!0},r)),Kt(Ce(Ce({},O),{},{authInfo:Ce({auth:!0},r),mainCid:j})),Kt({pageInitState:"normal"}),t.next=71;break;case 65:t.prev=65,t.t2=t.catch(1),tt(void 0),Kt({pageInitState:"error"}),ke&&L.az.emit("post-iframe-message",{event:L.EB.USER_STATUS_ERROR,payload:{code:L.rg.ERROR,message:R("登录失败")}});case 71:return r&&"aiAppSwitch"in r&&(k=r.aiAppSwitch,S=(null==Se?void 0:Se.props)||{},k&&et((function(t){return Ce(Ce({},t),{},{finalAiAppSwitch:Ce(Ce({},k),S)})}))),t.abrupt("return",Promise.resolve());case 73:case"end":return t.stop()}}),t,null,[[1,65],[3,11],[14,29]])})));return function(e){return t.apply(this,arguments)}}()),Te=(0,o.useMemo)((function(){return{showSessionDeepSearchEntry:rt.sessionDeepSearchEntry}}),[rt]),Ne=(0,l.$)((function(){return ot.authInfo.auth})),Ie=(0,l.$)((function(){return Jt})),Fe=(0,o.useRef)(Date.now()),De=(0,l.$)((function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=Fe.current,n=Date.now();x()(r).date()===x()(n).date()&&e||(Fe.current=n,(0,O.kq)({latitudes:{},indicators:{pv:1},traceId:""}),null===(t=h.fQ.ins)||void 0===t||t.reportEvent({name:k.s.PV}))})),Me=(0,l.$)((function(){var t,e;d.Hv.reset(),A.X.stop(),null===(t=h.fQ.ins)||void 0===t||t.setConfig({uin:"no-auth"}),null===(e=Tt.Q.ins)||void 0===e||e.setConfig({uid:"no-auth"}),(0,D.zG)({uid:"",A1:"",HY64:""}),Vt.M.updateParams({HY64:""})})),He=(0,l.$)((function(){A.X.report(),Kt({authInfo:{auth:!1}}),tt(void 0),et((function(t){return Ce(Ce({},t),{},{finalAiAppSwitch:At.GQ})})),Me()})),Re=(0,j.zy)();(0,o.useEffect)((function(){K&&De()}),[K,De,Re.pathname,Re.search]),(0,o.useEffect)((function(){ot.authInfo.auth&&d.Hv.waitAuth().then((function(){A.X.start()}))}),[ot.authInfo.auth]),(0,o.useEffect)((function(){ke&&z?(0,a.Hy)("",(0,_.jb)()):(0,a.Hy)("",!1),Ae()}),[Ae,ne,z]),(0,o.useEffect)((function(){var t;J((null===(t=ot.agentDetail)||void 0===t?void 0:t.agentId)||"")}),[ot.agentDetail]),(0,o.useEffect)((function(){var t=function(t){return 123!==t.keyCode||(t.returnValue=!1,!1)},e=function(){Wt.current||(zt.current=!0,Bt({show:!0,step:"login"}),Kt({authInfo:{auth:!1}}),Me())},r=function(){if(!document.hidden){if(De(!0),!Ne()||ke)return;oe({throwError:!0}).then((function(t){var r;if(!t&&!ke)return M.gE.reportAuthUser({state:1,userName:"",avatar:""}),void e();null!==(r=(0,H.cP)().disable_user_active_report)&&void 0!==r&&r.visible&&(0,U.Ay)(Nt.Qy.OnUserActive,{ext1:"2",HY20:Ie()||""})})).catch((function(t){var r;401!==(null==t||null===(r=t.response)||void 0===r?void 0:r.status)||ke||e()}))}};return document.addEventListener("visibilitychange",r,!1),document.addEventListener("keydown",t),L.az.addListener("trigger-login",e),function(){document.removeEventListener("visibilitychange",r,!1),document.removeEventListener("keydown",t),L.az.removeListener("trigger-login",e)}}),[Ne,Ie,oe,De,Me]),(0,o.useEffect)((function(){It.a.addListener("onWebShow",(function(t){t.visible&&Ne()&&(0,U.Ay)(Nt.Qy.OnUserActive,{ext1:"2",HY20:Ie()||""})}))}),[Ne,Ie]),(0,o.useEffect)((function(){if(ke){var t=function(t){var e=t.data;Object.values(L.EB).includes(null==e?void 0:e.event)&&L.az.emit("get-iframe-message",e)},e=function(t){var e;ke&&(null===(e=window.top)||void 0===e||e.postMessage(t,"*"))};return window.addEventListener("message",t),L.az.addListener("post-iframe-message",e),function(){window.removeEventListener("message",t),L.az.removeListener("post-iframe-message",e)}}}),[]);var Ge=_e((0,o.useState)(),2),Ye=Ge[0],Ve=Ge[1],Ue=_e((0,o.useState)(!1),2),Ze=Ue[0],Be=Ue[1],We=_e((0,o.useState)(!1),2),ze=We[0],$e=We[1];(0,o.useEffect)((function(){(0,g.aF)().then((function(t){t.data.createTeamInfo.stateToken&&($e(!0),(0,U.Ay)(Nt.Qy.OnPageMod,{page_id:"LoginPage",mod_id:"team_mod",button_id:"create_team"}))}))}),[]);var Qe=(0,l.$)((function(){window.location.reload()})),Xe=(0,ft.e)(),Je=Xe.dialog,qe=Xe.show,Ke=(0,ve.u)(),tr=Ke.teamDialog,er=Ke.showTeamDialog,rr=(0,c.g)((function(){Bt({show:!1,step:"login"}),Wt.current=null})),nr=(0,vt.Xr)(_t.ot),or=(0,vt.Xr)(_t.X),ir=(0,vt.Xr)(_t.LU),ar=_e((0,o.useState)({isTeamAccount:!1,oneIdCode:"",oneIdState:"",type:"",subToken:""}),2),cr=ar[0],ur=ar[1],lr=(0,l.$)(function(){var t=Le(we().mark((function t(e){var r,n,o,i,a,c,u=arguments;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((r=u.length>1&&void 0!==u[1]?u[1]:{}).isSwitchAccount&&ir(!0),!r.needSubToken){t.next=33;break}return t.prev=3,t.next=6,(0,g.iQ)(e);case 6:o=t.sent,n=null===(i=o)||void 0===i?void 0:i.data,t.next=14;break;case 10:return t.prev=10,t.t0=t.catch(3),(0,y.Ax)("".concat((null===t.t0||void 0===t.t0||null===(a=t.t0.error.response)||void 0===a||null===(a=a.data)||void 0===a||null===(a=a.error)||void 0===a?void 0:a.message)||R("登录失败,请稍后再试"))),t.abrupt("return");case 14:if(c=(0,se.isEmpty)(n.oneIdMsg)||n.oneIdMsg.status===g.xY.NO_USER||!n.oneIdMsg.status,n.subToken||!c){t.next=22;break}if(n.registrered){t.next=19;break}return sr({},{isRegister:!0,safeCheck:!0}),t.abrupt("return");case 19:return ur(e),fr(o,Date.now(),r),t.abrupt("return");case 22:if(!c){t.next=30;break}if(!n.coolingPeriod){t.next=27;break}return qe({type:"phone",params:{phoneID:n.phoneID}}),t.abrupt("return");case 27:return ur({type:g.b$.middlelogin,subToken:n.subToken}),sr({type:g.b$.middlelogin,subToken:n.subToken},{isConsumeSubToken:!0,safeCheck:!0}),t.abrupt("return");case 30:(0,fe.M)({lang:X,theme:$?"dark":"light",oneIdMsg:n.oneIdMsg,createPersonal:!n.registrered||n.status===b._.AUDITING,onClickPersonal:function(){n.registrered?(ur({type:g.b$.middlelogin,subToken:n.subToken}),sr({type:g.b$.middlelogin,subToken:n.subToken},{isConsumeSubToken:!0,safeCheck:!0})):sr({},{isRegister:!0,safeCheck:!0})},onLoginSuccess:function(t){ur({type:g.b$.oneid,oneIdCode:t.code,oneIdState:t.state}),sr({type:g.b$.oneid,oneIdCode:t.code,oneIdState:t.state},{isConsumeSubToken:!0,safeCheck:!0})},onJoinSuccess:function(t){ur({oneIdCode:t.code,oneIdState:t.state,type:g.b$.oneid}),sr({oneIdCode:t.code,oneIdState:t.state,type:g.b$.oneid},{safeCheck:!0,isConsumeSubToken:!0})}}),t.next=35;break;case 33:ur(e),sr(e,r);case 35:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}()),sr=(0,c.g)((function(t,e){Kt({authInfo:Ce(Ce({},ot.authInfo),{},{auth:!1})}),sessionStorage.removeItem("__prevAnonUserInfo__"),(null!=e&&e.isRegister?g.wm:null!=e&&e.isConsumeSubToken?g.c4:g.Ej)(t).then((function(t){return fr(t,Date.now(),e)})).catch((function(t){return hr(t,Date.now(),e)}))})),fr=function(){var t=Le(we().mark((function t(e,r,n){var o,i,c,u,l,s,f,h;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c=e.data,(0,d.pK)(c.userId,c.token),n.isSwitchAccount&&(or(!0),ir(!1),(0,a.Hy)(c.userId||"",!1)),!c.coolingPeriod){t.next=7;break}return qe({type:"phone",params:"team"===c.userType?{}:{phoneID:c.phoneID}}),t.abrupt("return");case 7:if(null!=c&&c.oneIdMsg&&null!=c&&null!==(o=c.oneIdMsg)&&void 0!==o&&o.isFirstLogin&&(l=c.oneIdMsg.userRole,s=je(je({},g.ED.ADMIN,ve.k.CREATE),g.ED.NORMAL,ve.k.JOIN),(f=null!==(u=s[l])&&void 0!==u?u:ve.k.JOIN)===ve.k.CREATE?er({type:ve.k.CREATE,params:{onManage:function(){var t=Le(we().mark((function t(){var e,r;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.yv)();case 2:e=t.sent,r=e.data,setTimeout((function(){window.open(null==r?void 0:r.managerTeamUrl,"_blank")}),10);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),onInvite:function(){var t=Le(we().mark((function t(){var e,r;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.yv)();case 2:e=t.sent,r=e.data,setTimeout((function(){window.open(null==r?void 0:r.inviteUrl,"_blank")}),10);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}}):f===ve.k.JOIN&&er({type:ve.k.JOIN,params:{onStart:function(){}}})),(0,O.ug)({latitudes:{login_type:g.tw.phone},indicators:{total_time:Date.now()-r,success_count:1},traceId:e.traceId}),c.status!==b._.SEAL&&n.safeCheck&&!n.isSwitchAccount&&((0,y.Zx)(R("登录成功"),{duration:1e3}),(0,Gt.by)()),Vt.M.reportLoginStep({HY501:Date.now()-r,HY502:Yt.b.StepLogin,HY503:Yt.S.Phone,HY505:"手机号登录成功",HY504:"0"}),Vt.M.reportLoginStep({HY501:(new Date).getTime()-r,HY502:Yt.b.StepAll,HY503:Yt.S.Phone,HY504:"0",HY505:"手机号登录成功"}),(0,Ut.et)(),(0,I.bd)(!!c.newUser),null===(i=Wt.current)||void 0===i||i.resolve(),Wt.current=null,!zt.current){t.next=20;break}window.location.reload(),t.next=33;break;case 20:return t.prev=20,t.next=23,oe();case 23:h=t.sent,be({anonUserInfo:JSON.parse(sessionStorage.getItem("anonUserInfo")||"{}"),skipSessionInit:!0}),Ae(h),c.newUser&&!B&&"team"!==c.userType?(Bt({show:!0,step:"bindChat"}),nr(!1)):(rr(),sessionStorage.removeItem("anonUserInfo")),t.next=33;break;case 30:throw t.prev=30,t.t0=t.catch(20),{error:t.t0};case 33:Be(!1),n.safeCheck||n.isSwitchAccount||((0,y.Zx)(R("登录成功"),{duration:1e3}),(0,Gt.by)());case 35:case"end":return t.stop()}}),t,null,[[20,30]])})));return function(e,r,n){return t.apply(this,arguments)}}(),hr=function(){var t=Le(we().mark((function t(e,r,n){var o,i,a,c,u,l,s,f,h,p,d,v;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f=e.error||{},h=null===(o=f.response)||void 0===o||null===(o=o.data)||void 0===o||null===(o=o.error)||void 0===o?void 0:o.code,!n.safeCheck||h!==Ft.e.LOGIN_SAFE_CHECK){t.next=6;break}return Ve(null===(p=f.response.data)||void 0===p?void 0:p.safeVerifyCode),Be(!0),t.abrupt("return");case 6:Be(!1),Ve(void 0),n.isSwitchAccount?(0,y.Ax)("".concat((null===(d=f.response)||void 0===d||null===(d=d.data)||void 0===d||null===(d=d.error)||void 0===d?void 0:d.message)||R("网络异常,请稍后重试"))):(0,y.Ax)("".concat((null===(v=f.response)||void 0===v||null===(v=v.data)||void 0===v||null===(v=v.error)||void 0===v?void 0:v.message)||R("登录失败,请稍后再试"))),Vt.M.reportLoginStep({HY501:(new Date).getTime()-r,HY502:Yt.b.StepLogin,HY503:Yt.S.Phone,HY505:(null==e||null===(i=e.response)||void 0===i||null===(i=i.data)||void 0===i||null===(i=i.error)||void 0===i?void 0:i.message)||"手机号登录失败",HY504:(null==e||null===(a=e.error)||void 0===a?void 0:a.code)||(null==e||null===(c=e.response)||void 0===c||null===(c=c.data)||void 0===c||null===(c=c.error)||void 0===c?void 0:c.code)||"10001"}),Vt.M.reportLoginStep({HY501:(new Date).getTime()-r,HY502:Yt.b.StepAll,HY503:Yt.S.Phone,HY505:(null==e||null===(u=e.response)||void 0===u||null===(u=u.data)||void 0===u||null===(u=u.error)||void 0===u?void 0:u.message)||"手机号登录失败",HY504:(null==e||null===(l=e.error)||void 0===l?void 0:l.code)||(null==e||null===(s=e.response)||void 0===s||null===(s=s.data)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.code)||"10001"}),(0,O.ug)({latitudes:{err_msg:(0,O.kA)(f,R("登录失败")),login_type:g.tw.phone},indicators:{fail_count:1},disableAuth:!0,traceId:(null==e?void 0:e.traceId)||""});case 12:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),pr=(0,c.g)((function(t){ke&&z?(0,a.Hy)("",(0,_.jb)()):(0,a.Hy)("",!1),lr(Ce(Ce({},t),{},{type:g.b$.phone}),{safeCheck:!0,needSubToken:!0})})),dr=(0,Rt.D8)().showModelSelectGuide,vr=(0,c.g)(Le(we().mark((function t(){var e;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(e=Wt.current)||void 0===e||e.reject(),rr(),sessionStorage.removeItem("trigger-login-refer"),"bindChat"===Ct.step&&Promise.resolve().then((function(){nr(!0)})).then((function(){dr()}));case 4:case"end":return t.stop()}}),t)})))),yr=(0,l.$)((function(t){return new Promise((function(e,r){ot.authInfo.auth?e():Wt.current?r():(Wt.current={resolve:e,reject:r,targetUrl:t},Bt({show:!0,step:"login"}),Me())}))})),mr=(0,o.useRef)(re);(0,o.useEffect)((function(){if(re!==mr.current){mr.current=re;var t=document.querySelectorAll(".share-plugin-root, .share-plugin-event-header");Array.prototype.map.call(t,(function(t){return t.remove()}))}}),[re]);var gr=(0,l.$)(Le(we().mark((function t(){var e,r,n,o;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oe();case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:if(r=ot.generalInfo,Xt===N.cQ.YUANQI&&Qt===S.AH.SHARE){t.next=11;break}return t.next=9,(0,a.HO)();case 9:n=t.sent,r=n.generalInfo;case 11:return t.next=13,(0,F.i)();case 13:o=t.sent,r=Ce(Ce({},r),o),tt(Ce({auth:!0},e)),Kt({authInfo:Ce({auth:!0},e),generalInfo:r});case 17:case"end":return t.stop()}}),t)}))));(0,o.useEffect)((function(){if(Ct.show&&"login"===Ct.step){var t=sessionStorage.getItem("anonUserInfo");t&&sessionStorage.setItem("__prevAnonUserInfo__",t)}}),[Ct.show,Ct.step]);var br=function(){var t=Le(we().mark((function t(){var e,r;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,oe();case 3:return r=t.sent,t.next=6,Ae(r);case 6:null===(e=Wt.current)||void 0===e||e.resolve(),rr();case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),wr=(0,vt.Xr)(St.w);(0,o.useEffect)((function(){wr(ot.generalInfo)}),[ot.generalInfo,wr]);var xr=(0,o.useCallback)((function(t){t.verifyResult&&lr(Ce(Ce({},cr),{},{safeVerifyCode:t.safeVerifyCode}),{needSubToken:!1,safeCheck:!1,isConsumeSubToken:!0})}),[cr,lr]),Lr=(0,Mt.x)().onCaptchaCheck,Er=(0,o.useCallback)((function(t){t!==Dt.ep.WATERWALL&&rr()}),[rr]),Cr=(0,o.useMemo)((function(){return Ce(Ce({},ot),{},{updateChatBotState:Kt,inIframe:ke,checkLogin:yr,initApp:Ae,triggerLogout:He,updateAppConfig:gr,visitorClickCount:ee,getUserMainCid:Pe,visitorJump:be,onLoginRequest:lr})}),[ot,yr,Pe,Ae,lr,He,gr,Kt,ee,be]),jr=(0,me.k)(),_r=jr.handleUserModelConfigUpdate,Or=jr.handleConversationModelConfigUpdate,kr=(0,l.$)((function(t){lr({oneIdCode:t.code,oneIdState:t.state,type:g.b$.oneid},{safeCheck:!0,isConsumeSubToken:!0})})),Sr=(0,he.N)({triggerLogout:He,initApp:Ae,chatBotState:ot,enabled:!0,handleUserModelConfigUpdate:_r,handleConversationModelConfigUpdate:Or}),Pr=Sr.showPushTeamGuide,Ar=Sr.setShowPushTeamGuide,Tr=(0,l.$)(Le(we().mark((function t(){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,ye.Px)("team_dialog");case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0);case 8:Ar(!1);case 9:case"end":return t.stop()}}),t,null,[[0,5]])}))));return(0,W.jsx)(i.D.Provider,{value:Cr,children:(0,W.jsx)(Ht.A,{value:Te,children:(0,W.jsxs)(ht.o5,{initApp:br,config:{onLoginModalClose:rr},children:[function(){var t;switch(ot.pageInitState){case"error":t=(0,W.jsx)(v.M,{showHeader:!1,retry:!0,onRetry:Qe});break;case"loading":t=(0,W.jsx)(f.Rh,{className:"yb-loading__fullscreen",size:"small",loading:"loading"===ot.pageInitState,showOverlay:!1});break;case"noAuth":t=(0,W.jsx)(v.M,{showHeader:!1,title:R("暂无访问权限"),desc:R("请联系管理员申请相关权限后再访问"),showFeedback:!1});break;case"normal":t=G;break;default:ot.pageInitState;(0,y.Ax)(R("系统异常"))}return t}(),Ct.show&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(H.CT,{id:"app_login_modal",children:[(0,W.jsx)(C.Ay,{step:Ct.step,phone:{onConfirm:pr,ablePhoneAreaChoose:!0,fetchPhoneAreaList:function(){return(0,g.aF)().then((function(t){return t.data.phoneConfig.rules}))},captcha:{appid:m.eQ,sendVerificationCode:Lr}},wechat:{appid:m.Rh,redirectUrl:"https://yuanbao.tencent.com/".concat(m.OT.SCAN),targetUrl:(null===(e=Wt.current)||void 0===e?void 0:e.targetUrl)||window.location.href,style:$?"white":"black"},qq:{appid:m.K6,redirectUrl:"https://yuanbao.tencent.com/".concat(m.OT.SCAN),targetUrl:(null===(r=Wt.current)||void 0===r?void 0:r.targetUrl)||window.location.href},protocols:[Ce(Ce({},m.b7),{},{text:R("用户服务协议")}),Ce(Ce({},m.vw),{},{text:R("隐私协议")}),Ce(Ce({},m.Jr),{},{text:R("开源协议")})],onClose:vr,isMobile:B,onExposureReport:function(t){return(0,I.bW)(t,{hyrptExt3:qt,hyrptModelId:(0,kt.re)({agentId:Jt||""})})},onClickGetVerificationCode:function(){return(0,I.A)(B)},onDisabledLoginTypeToast:I.yi,onAgreementShow:function(){return(0,I.$3)(B)},onAgreementConfirm:function(){return(0,I.gP)(B)},onAgreementCancel:function(){return(0,I.EQ)(B)},onDialogShow:I.R,onLoginIconClick:I.a,onBindPhoneShowReport:I.S1,onBindPhoneBtnClickReport:I.D8,onBindPhoneSkipBtnClickReport:I.um,onBindWechatShowReport:I.I_,onBindWechatSkipBtnClickReport:I.o7,isTeamAccount:ze,leftDownloadChildren:ze?(0,W.jsx)(Zt.V,{reportAttrs:{onPhoneBindConfirmButton:function(){return{"dt-click":"OnPageClick","dt-page-id":"RegisterPhoneNumberPage","dt-mod-id":"confirm_mod","dt-button-id":"confirm"}},onSendVerificationCode:function(){return{"dt-click":"OnPageClick","dt-page-id":"RegisterPhoneNumberPage","dt-mod-id":"message_mod","dt-button-id":"sending"}},onPhoneBindExpose:function(){return{"dt-exposure":"OnPageMod","dt-page-id":"RegisterPhoneNumberPage"}}},theme:$?"dark":"light",lang:X,getAccountLoginConfig:g.aF,createType:ue.I0.WITHOUT_LOGIN,onCreateTeamSuccessCallback:kr,children:(0,W.jsx)("div",{children:(0,W.jsx)(le.v,{})})}):(0,W.jsx)(pe.A,{downloadPcInfo:null===(w=ot.generalInfo)||void 0===w||null===(w=w.appBaseConfig)||void 0===w?void 0:w.pcDownloadUrl,fromSource:de.m.OfficialWebNotloginModal})}),";"]}),(0,W.jsx)(H.CT,{id:"third_party_login",children:function(t){return(0,W.jsx)(at,{onLoginConfirm:t.onLoginConfirm,requestLogin:t.requestLogin,onLoginSuccess:br,onLoginCancel:rr})}})]}),Je,tr,(0,W.jsx)(ce,{visible:Pr,getAccountData:g.rs,onCreateTeamSuccessCallback:kr,theme:$?"dark":"light",lang:X,onClose:function(){return Tr()},onLater:function(){return Tr()}}),Ze&&(0,W.jsx)(Pt.j,{captcha:{appid:m.eQ,sendVerificationCode:g.ao},safeVerifyCode:Ye,onConfirm:xr,onClose:function(){Be(!1),(0,y.Ax)(R("校验失败,请重新登录"))},onInit:Er})]})})})}},82095:(t,e,r)=>{r.d(e,{V:()=>K});var n=r(7378),o=r(43572),i=r(6948),a=r(99261),c=r(34e3),u=r(80779),l=r(42849),s=r(95678),f=r(2522),h=r.n(f),p=r(3698),d=r.n(p),v=r(30765),y=r(36727),m=r(85428);function g(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(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)?b(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 b(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}var w=[{area:"86",len:11,desc:"中国"},{area:"852",len:8,desc:"中国香港"}],x=/^1[3456789]\d{9}$/,L="hyc-login-phone-area",E=function(t,e){var r,a,u,l,s=(0,o.useTranslation)().t,f=t.onChange,h=t.disableList,p=void 0!==h&&h,d=t.autofocus,b=(0,n.useRef)(null),E=(0,n.useRef)(null),C=g((0,n.useState)(null!==(r=localStorage.getItem(L))&&void 0!==r?r:null===(a=t.areaList)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.area),2),j=C[0],_=C[1],O=g((0,n.useState)(!1),2),k=O[0],S=O[1],P=g((0,n.useState)(""),2),A=P[0],T=P[1],N=g((0,n.useState)([]),2),I=N[0],F=N[1];(0,n.useEffect)((function(){var e,r,n,o;F(null!==(e=t.areaList)&&void 0!==e?e:w);var i=null!==(r=localStorage.getItem(L))&&void 0!==r?r:null===(n=t.areaList)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.area;_(i),null==f||f({mobile:"",areaCode:i,len:null==I||null===(o=I.find((function(t){return t.area===i})))||void 0===o?void 0:o.len})}),[t.areaList]),(0,n.useEffect)((function(){var t=function(){S(!1)},e=function(e){var r,n;null!==(r=E.current)&&void 0!==r&&r.contains(e.target)||null!==(n=b.current)&&void 0!==n&&n.contains(e.target)||t()},r=function(e){"Escape"===e.key&&t()};return document.addEventListener("click",e),document.addEventListener("keydown",r),function(){document.removeEventListener("click",e),document.removeEventListener("keydown",r)}}),[]);(0,n.useImperativeHandle)(e,(function(){return{verifyPhoneNumber:function(){var t=I.find((function(t){return t.area===j}));if(null==t||!t.len){var e="";return A?x.test(A)||(e=s("请输入正确的手机号")):e=s("请输入手机号"),e}return A.length!==t.len?s("请输入正确的手机号"):""}}}));var D=(0,i.$)((function(t){var e=t.replace(/[^\d]/g,"");T(e),H({areaCode:j,mobile:e})})),M=(0,i.$)((function(t){var e;_(t),localStorage.setItem(L,t),H({areaCode:t,mobile:A,len:null==I||null===(e=I.find((function(e){return e.area===t})))||void 0===e?void 0:e.len}),S(!1)})),H=function(t){var e,r,n,o;null==f||f({areaCode:null!==(e=null==t?void 0:t.areaCode)&&void 0!==e?e:j,mobile:null!==(r=null==t?void 0:t.mobile)&&void 0!==r?r:A,len:null!==(n=null==t?void 0:t.len)&&void 0!==n?n:null==I||null===(o=I.find((function(t){return t.area===j})))||void 0===o?void 0:o.len})};return(0,m.jsx)("div",{className:"ybc-oversea-input",children:(0,m.jsxs)("div",{className:"ybc-oversea-input__wrap ".concat(k?"ybc-oversea-input__wrap_showList":""),children:[(0,m.jsxs)("div",{className:"ybc-oversea-input__wrap__formitem",children:[(0,m.jsxs)("label",{ref:b,className:"ybc-oversea-input__wrap__formitem__areaCode\n              ".concat(p?"ybc-oversea-input__wrap__formitem__areaCode_disabled":""),onClick:function(t){p||(t.stopPropagation(),S(!0))},children:["+",j,p?null:(0,m.jsx)(v.A,{className:"icon-areaCode"})]}),(0,m.jsx)("div",{style:{flex:1},children:(0,m.jsx)(c.pd,{type:"tel",value:A,onChange:D,maxlength:null!==(u=null==I||null===(l=I.find((function(t){return t.area===j})))||void 0===l?void 0:l.len)&&void 0!==u?u:20,autofocus:d,placeholder:s("请输入手机号"),clearable:!0,showClearIconOnEmpty:A.length>0})})]}),k?(0,m.jsx)("div",{className:"ybc-oversea-input__wrap__arealist",ref:E,children:I.map((function(t){return(0,m.jsxs)("div",{onClick:function(){return M(t.area)},className:"ybc-oversea-input__wrap__arealist__item ".concat(t.area===j?"ybc-oversea-input__wrap__arealist__item_active":""),children:["+",t.area,"(",(null==t?void 0:t.desc)||"",")",(0,m.jsx)(y.A,{className:"ybc-oversea-input__wrap__arealist__item__icon"})]},t.area)}))}):null]})})};const C=(0,n.forwardRef)(E);function j(t){return j="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},j(t)}function _(){_=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==j(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(j(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(O.prototype),l(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),A(r),y}},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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function O(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function k(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){O(i,n,o,a,c,"next",t)}function c(t){O(i,n,o,a,c,"throw",t)}a(void 0)}))}}function S(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 P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){A(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function A(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=j(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==j(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function T(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return N(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)?N(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 N(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}var I="tCaptcha",F=function(t){return t.qq="qq",t.phone="phone",t.wechat="wechat",t}({}),D="0_send_code_error";function M(t){var e=(0,o.useTranslation)().t,r=t.isBindType,f=t.captcha,p=t.onConfirm,v=t.confirmText,y=void 0===v?e("登录"):v,g=t.protocols,b=t.confirmBtnClickReport,x=t.showAgreement,L=void 0===x||x,E=t.outsideAgreementChecked,j=t.onClickGetVerificationCode,O=t.onAgreementConfirm,S=t.onAgreementShow,A=t.onAgreementCancel,N=t.autofocus,M=void 0===N||N,H=t.ablePhoneAreaChoose,R=void 0!==H&&H,G=t.fetchPhoneAreaList,Y=t.reportAttrs,V=t.reportHandlers,U=(0,n.useRef)(null),Z=T((0,n.useState)(R?{mobile:"",verificationCode:"",agreementChecked:!1}:{mobile:"",verificationCode:"",agreementChecked:!1,len:11,phoneArea:"86"}),2),B=Z[0],W=Z[1],z=(0,n.useRef)(null),$=T((0,n.useState)(!0),2),Q=$[0],X=$[1],J=T((0,n.useState)([]),2),q=J[0],K=J[1];(0,n.useEffect)((function(){"function"==typeof G?G().then((function(t){K(t)})).catch((function(t){K(w)})).finally((function(){X(!1)})):X(!1)}),[]);var tt=T((0,n.useState)(!1),2),et=tt[0],rt=tt[1];(0,n.useLayoutEffect)((function(){window.TencentCaptcha||h().isDefined(I)||h()("https://captcha.gtimg.com/TCaptcha.js",I)}),[]);var nt=(0,o.getCurrentLang)()===o.Language.English,ot=(0,i.$)((function(){return null==S||S(),new Promise((function(t){var r=a.r3.confirm({header:e("服务协议及隐私保护"),body:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("span",{children:e("我已阅读并同意")})," ",g,nt?".":""]}),width:420,placement:"center",closeBtn:null,theme:"info",cancelBtn:e("取消"),confirmBtn:e("同意"),onCancel:function(){r.hide(),null==A||A(),t(!1)},onClose:function(){r.hide(),t(!1)},destroyOnClose:!0,onConfirm:function(){null==O||O(),r.hide(),W((function(t){return P(P({},t),{},{agreementChecked:!0})})),t(!0)}})}))})),it=(0,n.useRef)(null),at=T((0,n.useState)(!0),2),ct=at[0],ut=at[1],lt=function(){var t=k(_().mark((function t(){var r,n;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=function(){return(n=k(_().mark((function t(r){var n,o,i,a,c;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,rt(!1),r.ticket&&r.randstr){t.next=4;break}throw Error(D);case 4:return o={phoneNumber:B.mobile,captchaTicket:r.ticket,captchaRandstr:r.randstr},R&&(o.phoneArea=null!==(i=null==B?void 0:B.phoneArea)&&void 0!==i?i:"86"),t.next=8,f.sendVerificationCode(o);case 8:(0,s.Zx)(e("验证码已发送"),{duration:3e3}),t.next=17;break;case 11:return t.prev=11,t.t0=t.catch(0),ut(!0),rt(!1),(0,s.Ax)(t.t0.message===D?e("安全验证不通过,请重试"):t.t0.message||e("请稍后重试"),{duration:3e3}),t.abrupt("return");case 17:null===(n=z.current)||void 0===n||n.focus(),a=(new Date).getTime(),c=setInterval((function(){if(it.current){var t=60-Math.floor((Date.now()-a)/1e3);if(t<=-1)return ut(!0),clearInterval(c),void(it.current.innerHTML=e("重新发送"));it.current.innerHTML=e("{{restSecond}}秒后重发",{restSecond:t})}else clearInterval(c)}),200);case 20:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)},r=function(t){return n.apply(this,arguments)},ct){t.next=4;break}return t.abrupt("return");case 4:if(st()){t.next=6;break}return t.abrupt("return");case 6:if(null==j||j(),void 0===E||E){t.next=13;break}return t.next=10,ot();case 10:if(t.sent){t.next=13;break}return t.abrupt("return");case 13:if(!L||!g||B.agreementChecked){t.next=19;break}return t.next=16,ot();case 16:if(t.sent){t.next=19;break}return t.abrupt("return");case 19:ut(!1),rt(!0),window.TencentCaptcha?new TencentCaptcha(f.appid,r,{loading:!1}).show():h().ready(I,(function(){new TencentCaptcha(f.appid,r,{loading:!1}).show()})),null==V||V.onSendVerificationCode();case 23:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),st=(0,i.$)((function(){var t,e=null===(t=U.current)||void 0===t?void 0:t.verifyPhoneNumber();return e&&(0,s.Ax)(e,{duration:3e3}),!e})),ft=(0,i.$)((function(){var t="";return B.verificationCode||(t=e("请输入验证码")),t&&(0,s.Ax)(t,{duration:3e3}),!t})),ht=function(){var t=k(_().mark((function t(){var e,n,o,i;return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==b||b(),e=B.mobile,n=B.verificationCode,o=B.agreementChecked,st()){t.next=4;break}return t.abrupt("return");case 4:if(ft()){t.next=6;break}return t.abrupt("return");case 6:if(void 0===E||E){t.next=12;break}return t.next=9,ot();case 9:if(t.sent){t.next=12;break}return t.abrupt("return");case 12:if(!L||!g||o){t.next=18;break}return t.next=15,ot();case 15:if(t.sent){t.next=18;break}return t.abrupt("return");case 18:r||localStorage.setItem("hyc-login-last-type",F.phone),i={phoneNumber:"".concat(e),verificationCode:"".concat(n)},R&&(i.phoneArea=B.phoneArea),p(i),null==V||V.onPhoneBindConfirmButton();case 23:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Q?(0,m.jsx)(m.Fragment,{}):(0,m.jsx)("div",{className:"ybc-phone-login",children:(0,m.jsxs)("section",{children:[(0,m.jsx)(C,{ref:U,disableList:!R,autofocus:M,areaList:q,onChange:function(t){W((function(e){var r,n;return P(P({},e),{},{mobile:null!==(r=null==t?void 0:t.mobile)&&void 0!==r?r:"",phoneArea:null!==(n=null==t?void 0:t.areaCode)&&void 0!==n?n:"",len:null==t?void 0:t.len})}))}}),(0,m.jsxs)("div",{className:"ybc-phone-login__input-row",children:[(0,m.jsxs)("div",{style:{flex:1},children:[(0,m.jsx)(c.pd,{type:"number",ref:z,value:B.verificationCode,onChange:function(t){t.length>10||W((function(e){return P(P({},e),{},{verificationCode:t})}))},placeholder:e("请输入验证码"),onEnter:ht}),(0,m.jsx)("div",{className:"outline-placeholder"})]}),(0,m.jsx)("span",{className:"ybc-phone-login__send-code-sep",children:"|"}),(0,m.jsx)("a",P(P({className:d()("ybc-phone-login__send-code",{"is-disabled":!ct}),style:{display:et?"none":""},onClick:lt,ref:it},null==Y?void 0:Y.onSendVerificationCode()),{},{children:e("获取验证码")})),(0,m.jsx)("div",{className:"ybc-phone-login__send-code",style:{display:et?"":"none",color:"#BDBDBD"},children:(0,m.jsx)(u.Rh,{inheritColor:!0,size:"16px",showOverlay:!1})})]}),(0,m.jsx)("button",P(P({onClick:ht,className:"ybc-phone-login__btn"},null==Y?void 0:Y.onPhoneBindConfirmButton()),{},{children:y})),L&&!!g&&(0,m.jsx)("div",{className:"ybc-login__agreement",children:(0,m.jsxs)(l.S,{checked:B.agreementChecked,onChange:function(t){W((function(e){return P(P({},e),{},{agreementChecked:t})}))},children:[(0,m.jsx)("span",{children:e("我已阅读并同意")}),g]})})]})})}var H=r(12815);function R(t){return R="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},R(t)}function G(){G=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==R(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(R(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function Y(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function V(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 U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?V(Object(r),!0).forEach((function(e){Z(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Z(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var B=function(t){var e,r,i,c=t.onClose,u=t.onBindSuccess,l=t.reportAttrs,f=t.reportHandlers,h=(0,o.useTranslation)().t,p=(0,H.g)((function(t){null===s.Nl||void 0===s.Nl||(0,s.Nl)(U(U({},t),{},{type:"phone",scene:"create_team_bind_phone"})).then((function(t){(0,s.Zx)(h("绑定成功")),null==u||u(t.data.createTeamInfo)})).catch((function(t){var e;(0,s.Ax)("".concat((null==t||null===(e=t.response)||void 0===e||null===(e=e.data)||void 0===e||null===(e=e.error)||void 0===e?void 0:e.message)||h("绑定失败,请稍后再试")))}))}));return(0,n.useEffect)((function(){var t;null==f||null===(t=f.onPhoneBindExpose)||void 0===t||t.call(f)}),[]),(0,m.jsx)(a.lG,{visible:!0,onClose:c,dialogClassName:"ybc-bindPhoneDialog",style:{paddingLeft:10,paddingRight:10,paddingTop:10},closeOnOverlayClick:!0,destroyOnClose:!0,width:400,placement:"center",footer:null,children:(0,m.jsxs)("div",U(U({},null==l||null===(e=l.onPhoneBindExpose)||void 0===e?void 0:e.call(l)),{},{children:[(0,m.jsx)("p",{className:"ybc-bindPhoneDialogDesc",children:h("创建团队,安全畅聊元宝")}),(0,m.jsx)("p",{className:"ybc-bindPhoneDialogTip",children:h("为了您的账号安全,请先绑定手机号")}),(0,m.jsx)(M,{onConfirm:p,confirmText:h("确认绑定"),reportAttrs:l,reportHandlers:f,ablePhoneAreaChoose:!0,fetchPhoneAreaList:function(){return(0,s.aF)().then((function(t){return t.data.phoneConfig.rules}))},captcha:{appid:"2048700062",sendVerificationCode:(r=G().mark((function t(e){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===s.J2||void 0===s.J2?void 0:(0,s.J2)(e);case 2:case"end":return t.stop()}}),t)})),i=function(){var t=this,e=arguments;return new Promise((function(n,o){var i=r.apply(t,e);function a(t){Y(i,n,o,a,c,"next",t)}function c(t){Y(i,n,o,a,c,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},isBindType:!0})]}))})},W=r(61231),z=r(52925);function $(t){return $="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},$(t)}function Q(){Q=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:_(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",y={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(A([])));L&&L!==r&&n.call(L,a)&&(w=L);var E=b.prototype=m.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==$(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function _(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=O(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?v:p,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=v,n.method="throw",n.arg=l.arg)}}}function O(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.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,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError($(e)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"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,l(t,u,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},C(j.prototype),l(j.prototype,c,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(E),l(E,u,"Generator"),l(E,a,(function(){return this})),l(E,"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,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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function X(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function J(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,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return q(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)?q(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 q(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}var K=function(t){var e=t.lang,r=t.theme,o=t.getAccountLoginConfig,i=t.children,a=t.onCreateTeamSuccessCallback,c=t.data,u=t.createType,l=void 0===u?z.I0.WITH_LOGIN:u,s=t.reportAttrs,f=t.reportHandlers,h=J((0,n.useState)(!1),2),p=h[0],d=h[1],v=J((0,n.useState)({}),2),y=v[0],g=v[1],b=J((0,n.useState)(!1),2),w=b[0],x=b[1],L=J((0,n.useState)(!1),2),E=L[0],C=L[1],j=function(){var t,e=(t=Q().mark((function t(){var e,r,n,i,a,u;return Q().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,l!==z.I0.WITH_LOGIN||!c){t.next=7;break}n=c.createTeamStatus,i=c.createTeamInfo,n===z.Gm.NEED_BIND_PHONE?d(!0):n===z.Gm.CAN_CREATE&&x(!0),t.next=14;break;case 7:return t.next=9,null==o?void 0:o();case 9:a=t.sent,u=a.data,i=u.createTeamInfo,C(!0);case 14:g({url:null===(e=i)||void 0===e?void 0:e.url,stateToken:null===(r=i)||void 0===r?void 0:r.stateToken,env:i.env}),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(0),c||d(!0);case 21:case"end":return t.stop()}}),t,null,[[0,17]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){X(i,n,o,a,c,"next",t)}function c(t){X(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return(0,m.jsxs)(m.Fragment,{children:[n.cloneElement(i,{onClick:function(t){var e,r;null===(e=(r=i.props).onClick)||void 0===e||e.call(r,t),j()}}),p&&(0,m.jsx)(B,{onClose:function(){return d(!1)},onBindSuccess:function(t){!function(t){d(!1),x(!0),g({url:null==t?void 0:t.url,stateToken:null==t?void 0:t.stateToken,env:null==t?void 0:t.env})}(t)},reportAttrs:s,reportHandlers:f}),(0,m.jsx)(W.my,{env:y.env,stateToken:y.stateToken||"",lang:e,mode:r,visible:w,onVisibleChange:function(){x(!1)},onError:function(t){},onSuccess:function(t){null==a||a(t),x(!1)}}),(0,m.jsx)(W.W,{env:y.env,stateToken:y.stateToken||"",lang:e,mode:r,visible:E,onVisibleChange:function(){C(!1)},onSuccess:function(){C(!1),x(!0)},onError:function(t){}})]})}},84164:(t,e,r)=>{r.d(e,{CW:()=>b,N8:()=>m,_R:()=>y,eb:()=>g,wZ:()=>x,zP:()=>L,zj:()=>v});var n=r(45042),o=["errCode","errStr"];function i(t){return i="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},i(t)}function a(){a=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var L={};f(L,u,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(N([])));C&&C!==r&&n.call(C,u)&&(L=C);var j=x.prototype=b.prototype=Object.create(L);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,c,u){var l=p(t[o],t,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(i(e)+" is not iterable")}return w.prototype=x,o(j,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},_(O.prototype),f(O.prototype,l,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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),A(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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function c(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function l(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?l(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=(0,n.no)(),p={isRequest:!1,isShow:!1,initTime:0},d="https://pinyin.".concat("prod"===h?"sginput.qq":"testsite.woa",".com");function v(t){var e,r=sessionStorage.getItem("TENSG_CONFIG")||"";try{r=JSON.parse(r)}catch(t){r=p}return t?(null===(e=r)||void 0===e?void 0:e[t])||p[t]:r||s({},p)}var y=function(t,e){Object.keys(t).forEach((function(e){e in p&&(p[e]=t[e])}));var r=s({},p);return e&&sessionStorage.setItem("TENSG_CONFIG",JSON.stringify(r)),r},m=function(t){if(t.origin===d){var e=t.data;try{e=JSON.parse(t.data)}catch(t){}return e}},g=function(t){window.parent.postMessage(t,d)},b=function(){var t,e=(t=a().mark((function t(e){var r,n,i,u;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return r=t.sent,n=r.errCode,i=r.errStr,u=c(r,o),t.abrupt("return",{result:u,errCode:n,errMsg:i});case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),w=null,x=function(t){var e=new Date,r=new Date;r.setDate(e.getDate()+1),r.setHours(0,30,0,0);var n=r.getTime()-e.getTime();setTimeout((function(){t(),w&&clearInterval(w),w=setInterval(t,864e5)}),n)},L=function(t){var e,r,n,o=window.location.pathname+window.location.hash;e=window.history,r=e.pushState,n=e.replaceState,e.pushState=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=r.apply(e,n),c=window.location.pathname+window.location.hash;if(c!==o){o=c;var u=new CustomEvent("locationchange",{detail:c});window.dispatchEvent(u)}return a},e.replaceState=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=n.apply(e,r),c=window.location.pathname+window.location.hash;if(c!==o){o=c;var u=new CustomEvent("locationchange",{detail:c});window.dispatchEvent(u)}return a},window.addEventListener("popstate",(function(){var t=window.location.pathname+window.location.hash;if(t!==o){o=t;var e=new CustomEvent("locationchange",{detail:t});window.dispatchEvent(e)}})),window.addEventListener("locationchange",(function(e){t(e.detail)})),window.addEventListener("hashchange",(function(){var e=window.location.pathname+window.location.hash;e!==o&&(o=e,t(e))})),t(o)}},86118:(t,e,r)=>{r.d(e,{D:()=>o,r:()=>i});var n=r(7378),o=(0,n.createContext)(null),i=function(){var t=(0,n.useContext)(o);if(!t)throw new Error("useAcApp must under <AcApp></AcApp>");return t}},88188:(t,e,r)=>{r.d(e,{M:()=>k});var n=r(26093),o=r(28523),i=r(27036);const a="style__main___BbeiK",c="style__no-header___xlKBg",u="style__info___jV7SO",l="style__header___KZF0X",s="style__title___fGQ2L",f="style__desc___a7cmc",h="style__feedback___v0KbH",p="style__footer___p_9F3",d="style__description___QJGRM",v="style__logo-container___Rw2ZV";var y=r(71892),m=r(7378),g=r(45042),b=r(31519),w=(0,m.createContext)(null),x=r(86118),L=r(83862),E=r(3698),C=r.n(E),j=r(85428);function _(t){return _="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},_(t)}function O(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_(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))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var k=function(t){var e,r=(0,n.Bd)().t,E=t.title,_=void 0===E?r("服务异常, 请稍后重试"):E,k=t.showFeedback,S=void 0===k||k,P=t.retry,A=t.onRetry,T=t.desc,N=t.feedbackUin,I=void 0===N?"8444249977322885":N,F=t.errorInfoStyle,D=t.className,M=t.icon,H=t.footer,R=t.feedbackTarget,G=t.showHeader,Y=void 0===G||G;try{e=function(){var t=(0,m.useContext)(w);if(!t)throw new Error("useRcApp must under <RcApp></RcApp>");return t}().authInfo}catch(t){e=(0,x.r)().authInfo}var V=(0,y.g)(A),U=(0,g.uT)(),Z=e.userId,B=(0,m.useMemo)((function(){return U===b.MP.TENCENT?(0,j.jsxs)(o.N,{theme:"primary",target:R,href:"".concat(b.uk[b.MP.TENCENT],"?customInfo=").concat(Z),hover:"color",children:[(0,j.jsx)(L.Ay,{type:"feedback",size:18}),(0,j.jsx)("span",{style:{marginLeft:4},children:r("问题反馈")})]}):(0,j.jsxs)(o.N,{theme:"primary",href:"wxwork://message/?uin=".concat(I),hover:"color",children:[(0,j.jsx)(L.Ay,{type:"consult",size:18}),(0,j.jsx)("span",{style:{marginLeft:4},children:r("问题反馈")})]})}),[U,I,r,R,Z]);return(0,j.jsxs)("div",{className:C()(a,D,O({},c,!Y)),children:[Y&&(0,j.jsx)("div",{className:l,children:r("腾讯混元助手")}),(0,j.jsx)("h1",{className:d,children:r("腾讯元宝 - 轻松工作 多点生活")}),(0,j.jsx)("p",{className:d,children:r("腾讯元宝是基于腾讯混元大模型的AI应用,可以帮你写作绘画文案翻译编程搜索阅读总结的全能助手")}),(0,j.jsxs)("ul",{className:u,style:F,children:[(0,j.jsx)("li",{children:M||(0,j.jsx)("div",{className:v,children:(0,j.jsx)(L.Ay,{type:"lock",size:30})})}),(0,j.jsx)("li",{className:s,children:_}),(0,j.jsx)("li",{className:f,children:T}),S&&(0,j.jsx)("li",{className:h,children:B}),(0,j.jsxs)("li",{className:p,children:[P&&(0,j.jsx)(i.$,{theme:"primary",variant:"outline",className:"yb-button-normal",onClick:V,children:r("重试")}),H]})]})]})}},95678:(t,e,r)=>{r.d(e,{Nl:()=>C,Ax:()=>w,aF:()=>E,J2:()=>L,Zx:()=>x});var n=r(79067);const o=r.p+"assets/a2caadcd330a4cdb9e19.png",i=r.p+"assets/40a1f7596042cbb36ba6.png";var a=r(64155),c=r(11079),u=r(85428);function l(t){return l="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},l(t)}function s(){s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",v="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var L={};f(L,a,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(N([])));C&&C!==r&&n.call(C,a)&&(L=C);var j=x.prototype=b.prototype=Object.create(L);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var u=p(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=S(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:v,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(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 o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=x,o(j,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},_(O.prototype),f(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(j),f(j,u,"Generator"),f(j,a,(function(){return this})),f(j,"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=N,T.prototype={constructor:T,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(A),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.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),A(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 o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function f(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){f(i,n,o,a,c,"next",t)}function c(t){f(i,n,o,a,c,"throw",t)}a(void 0)}))}}function p(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 d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y=function(){return!a.A&&(location.pathname.indexOf("/embed/contact")>-1||location.pathname.indexOf("/wx/ct")>-1)},m=function(){return y(),"center"},g={width:16,height:16,marginRight:8},b=y()?{success:(0,u.jsx)("img",{src:o,style:g,alt:""}),warning:(0,u.jsx)("img",{src:i,style:g,alt:""})}:{},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.xT.closeAll(),n.iU.error(d({icon:b.error,content:t,placement:m(),zIndex:7e3,duration:1e3},e))},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.xT.closeAll(),n.iU.success(d({icon:b.success,content:t,placement:m(),zIndex:7e3,duration:1e3},e))},L=function(){var t=h(s().mark((function t(e){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.E)({url:"/api/login/getverificationcode",method:"POST",data:d(d({},e),{},{captchaType:9,v:1})});case 2:t.sent;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),E=function(){var t=h(s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.E)({url:"/api/v5/accountLogic/login/config",method:"get",data:{}});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();function C(t){return j.apply(this,arguments)}function j(){return(j=h(s().mark((function t(e){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,c.E)({url:"/api/account/binding",method:"post",data:e,hideTip:!0,returnHeaders:!0}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}}]);
//# sourceMappingURL=sourcemap/5549.9257f2573dee0df34420.js.map