define("superman-san/app/chat-input/result_f700e80",["san","tslib","@searchfe/inject-js"],function(__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__1__,__WEBPACK_EXTERNAL_MODULE__5__){return a=[function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__0__},function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__1__},function(t,e,n){e=function(){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function o(t){return typeof t}:function o(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(0).defineComponent;function s(t){if(null===t||t===undefined)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;nn.parts.length&&(i.parts.length=n.parts.length)}else{for(var o=[],a=0;a * @license MIT */ var s=N(25),o=N(26),r=N(27);function n(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function h(t,e){if(p.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(i)return A(t).length;e=(""+e).toLowerCase(),i=!0}}function e(t,e,n){var i,a,o,r=!1;if((e=e===undefined||e<0?0:e)>this.length)return"";if((n=n===undefined||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,n){var i=t.length;(!e||e<0)&&(e=0);(!n||n<0||i=t.length){if(a)return-1;n=t.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof e&&(e=p.from(e,i)),p.isBuffer(e))return 0===e.length?-1:m(t,e,n,i,a);if("number"==typeof e)return e&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(a?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):m(t,[e],n,i,a);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,i,a){var o=1,r=t.length,s=e.length;if(i!==undefined&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;r/=o=2,s/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(a)for(var u=-1,c=n;c>8,i=i%256,a.push(i),a.push(n);return a}(e,t.length-n),t,n,i)}function w(t,e,n){n=Math.min(t.length,n);for(var i=[],a=e;a>>10&1023|55296),c=56320|1023&c),i.push(c),a+=p}return function(t){var e=t.length;if(e<=x)return String.fromCharCode.apply(String,t);var n="",i=0;for(;ie&&(t+=" ... ")),""},p.prototype.compare=function(t,e,n,i,a){if(!p.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(e===undefined&&(e=0),n===undefined&&(n=t?t.length:0),i===undefined&&(i=0),a===undefined&&(a=this.length),e<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(a<=i&&n<=e)return 0;if(a<=i)return-1;if(n<=e)return 1;if(this===t)return 0;for(var o=(a>>>=0)-(i>>>=0),r=(n>>>=0)-(e>>>=0),s=Math.min(o,r),l=this.slice(i,a),u=t.slice(e,n),c=0;cthis.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,r,s,l=!1;;)switch(i){case"hex":return function(t,e,n,i){n=Number(n)||0;var a=t.length-n;if((!i||a<(i=Number(i)))&&(i=a),(a=e.length)%2!=0)throw new TypeError("Invalid hex string");a/2t.length)throw new RangeError("Index out of range")}function S(t,e,n,i){e<0&&(e=65535+e+1);for(var a=0,o=Math.min(t.length-n,2);a>>8*(i?a:1-a)}function T(t,e,n,i){e<0&&(e=4294967295+e+1);for(var a=0,o=Math.min(t.length-n,4);a>>8*(i?a:3-a)&255}function k(t,e,n,i){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function C(t,e,n,i,a){return a||k(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function I(t,e,n,i,a){return a||k(t,0,n,8),o.write(t,e,n,i,52,8),n+8}p.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n>>8):S(this,t,e,!0),e+2},p.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):S(this,t,e,!1),e+2},p.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):T(this,t,e,!0),e+4},p.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},p.prototype.writeIntLE=function(t,e,n,i){t=+t,e|=0,i||y(this,t,e,n,(i=Math.pow(2,8*n-1))-1,-i);var a=0,o=1,r=0;for(this[e]=255&t;++a>0)-r&255;return e+n},p.prototype.writeIntBE=function(t,e,n,i){t=+t,e|=0,i||y(this,t,e,n,(i=Math.pow(2,8*n-1))-1,-i);var a=n-1,o=1,r=0;for(this[e+a]=255&t;0<=--a&&(o*=256);)t<0&&0===r&&0!==this[e+a+1]&&(r=1),this[e+a]=(t/o>>0)-r&255;return e+n},p.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,1,127,-128),p.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},p.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):S(this,t,e,!0),e+2},p.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):S(this,t,e,!1),e+2},p.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):T(this,t,e,!0),e+4},p.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||y(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),p.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):T(this,t,e,!1),e+4},p.prototype.writeFloatLE=function(t,e,n){return C(this,t,e,!0,n)},p.prototype.writeFloatBE=function(t,e,n){return C(this,t,e,!1,n)},p.prototype.writeDoubleLE=function(t,e,n){return I(this,t,e,!0,n)},p.prototype.writeDoubleBE=function(t,e,n){return I(this,t,e,!1,n)},p.prototype.copy=function(t,e,n,i){if(n=n||0,i||0===i||(i=this.length),e>=t.length&&(e=t.length),(i=0=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var a,o=(i=t.length-e>>=0,n=n===undefined?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(t){return s.toByteArray(function(t){var e;if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(E,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,e,n,i){for(var a=0;a=e.length||a>=t.length);++a)e[a+n]=t[a];return a}}.call(this,N(7))},function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),t=e[0],e=e[1];return 3*(t+e)/4-e},e.toByteArray=function(t){var e,n,i=c(t),a=i[0],i=i[1],o=new u(function(t,e){return 3*(t+e)/4-e}(a,i)),r=0,s=0>16&255,o[r++]=e>>8&255,o[r++]=255&e;2===i&&(e=l[t.charCodeAt(n)]<<2|l[t.charCodeAt(n+1)]>>4,o[r++]=255&e);1===i&&(e=l[t.charCodeAt(n)]<<10|l[t.charCodeAt(n+1)]<<4|l[t.charCodeAt(n+2)]>>2,o[r++]=e>>8&255,o[r++]=255&e);return o},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=0,r=n-i;o>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}(i));return a.join("")}(t,o,r>2]+s[e<<4&63]+"==")):2==i&&(e=(t[n-2]<<8)+t[n-1],a.push(s[e>>10]+s[e>>4&63]+s[e<<2&63]+"="));return a.join("")};for(var s=[],l=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=i.length;a */ e.read=function(t,e,n,i,a){var o,r,s=8*a-i-1,l=(1<>1,c=-7,p=n?a-1:0,d=n?-1:1,n=t[e+p];for(p+=d,o=n&(1<<-c)-1,n>>=-c,c+=s;0>=-c,c+=i;0>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,h=i?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===Infinity?(s=isNaN(e)?1:0,r=u):(r=Math.floor(Math.log(e)/Math.LN2),e*(i=Math.pow(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+c?p/i:p*Math.pow(2,1-c))*i&&(r++,i/=2),u<=r+c?(s=0,r=u):1<=r+c?(s=(e*i-1)*Math.pow(2,a),r+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,a),r=0));8<=a;t[n+d]=255&s,d+=h,s/=256,a-=8);for(r=r<>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}return o?a.slice(0,o-3)+"===".substring(o):a},d=function(t){if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?u(192|e>>>6)+u(128|63&e):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return u(240|e>>>18&7)+u(128|e>>>12&63)+u(128|e>>>6&63)+u(128|63&e)},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,g=t?function(t){return e.from(t,"utf8").toString("base64")}:o?function(t){for(var e=o.encode(t),n=[],i=0,a=e.length;i>16&255)):64===i?a.push(u(e>>16&255,e>>8&255)):a.push(u(e>>16&255,e>>8&255,255&e));return a.join("")},m=function(t){switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return u(55296+(e>>>10))+u(56320+(1023&e));case 3:return u((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return u((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=t?function(t){return e.from(t,"base64").toString("utf8")}:i?function(t){t=a(f(t).split("").map(function(t){return t.charCodeAt(0)}));return i.decode(t)}:function(t){return f(t).replace(v,m)};w.encode=function(t,e){return(e=void 0===e?!1:e)?g(t).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"}):g(t)};w.decode=function(t){return b(c(t.replace(/[-_]/g,function(t){return"-"===t?"+":"/"})))};w.encodeURI=function(t){return(0,w.encode)(t,!0)};w.isValid=function(t){if("string"!=typeof t)return!1;t=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},w["default"]={encode:w.encode,decode:w.decode,encodeURI:w.encodeURI,isValid:w.isValid}}.call(this,e(24).Buffer)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UploadFile=e.UPLOAD_ALL_TYPE=e.UPLOAD_IMAGE_TYPE=e.UPLOAD_FILE_TYPE=e.imageAccept=e.FILE_STATUS=e.FileRecommendWordsGroup=e.UploadStatus=e.isMixedUploadFileList=e.isFileUploadItem=e.isImageUploadItem=e.getFileNameSuffix=e.getFileType=e.suffixToFileType=void 0;var k=n(1),o="/aichat/api/file/sts",p="/aichat/api/file/upload",C="/aichat/api/file/loop",u="/aichat/api/knowledge/file/delete",i=/\.(\w+)$/,a={pdf:"PDF",doc:"Word",docx:"Word",dot:"Word",xls:"Excel",xlsx:"Excel",csv:"Excel",ppt:"PPT",pptx:"PPT",xmind:"Mindmap",mm:"Mindmap",txt:"TXT",log:"TXT",md:"MD",rst:"MD",tex:"MD",xml:"XML",c:"Code",cc:"Code",cpp:"Code",cxx:"Code",cs:"Code",h:"Code",java:"Code",js:"Code",jsx:"Code",ts:"Code",tsx:"Code",go:"Code",py:"Code",py3:"Code",php:"Code",rb:"Code",rs:"Code",swift:"Code",kt:"Code",kts:"Code",scala:"Code",lua:"Code",pl:"Code",pm:"Code",r:"Code",m:"Code",dart:"Code",groovy:"Code",sql:"Code",vue:"Code",asp:"Code",jsp:"Code",html:"Code",htm:"Code",css:"Code",sh:"Code",bash:"Code",zsh:"Code",bat:"Code",cmd:"Code",ps1:"Code",json:"Code",yaml:"Code",yml:"Code",toml:"Code",ini:"Code",conf:"Code",cfg:"Code",properties:"Code",env:"Code",proto:"Code",thrift:"Code",graphql:"Code",gql:"Code"};e.suffixToFileType=function(t){if(!t)return"unknown";t=t.toLowerCase();return a[t]||"unknown"};e.getFileType=function(t){t=i.exec(t);return t?(0,e.suffixToFileType)(t[1]):"unknown"};e.getFileNameSuffix=function(t){t=i.exec(t);return t?t[0]:""};e.isImageUploadItem=function(t){return!!t&&"image"===t.uploadType};e.isFileUploadItem=function(t){return!!t&&"file"===t.uploadType};var I;e.isMixedUploadFileList=function(t){return!!t&&t.some(e.isFileUploadItem)&&t.some(e.isImageUploadItem)},(n=I=e.UploadStatus||(e.UploadStatus={}))[n.INIT=-1]="INIT",n[n.STSSUCCESS=0]="STSSUCCESS",n[n.UPLOADING=1]="UPLOADING",n[n.BOS_SUCCESS=2]="BOS_SUCCESS",n[n.NETWORK_ERROR=3]="NETWORK_ERROR",n[n.RISK_DENY=4]="RISK_DENY",n[n.FILE_NUM_EXCEED_LIMIT=5]="FILE_NUM_EXCEED_LIMIT",n[n.FILE_SIZE_EXCEED_LIMIT=6]="FILE_SIZE_EXCEED_LIMIT",n[n.KNOWLEDGE_SUCCESS=7]="KNOWLEDGE_SUCCESS",n[n.KNOWLEDGE_ERROR=8]="KNOWLEDGE_ERROR",n[n.SET_FILE_NUM=9]="SET_FILE_NUM",n[n.NOT_AVAILABLE=10]="NOT_AVAILABLE",n[n.FILE_REUPLOAD=11]="FILE_REUPLOAD",n[n.FILE_SIZE_BELOW_LIMIT=12]="FILE_SIZE_BELOW_LIMIT",n[n.IMAGE_INFO_SUCCESS=13]="IMAGE_INFO_SUCCESS",(n=e.FileRecommendWordsGroup||(e.FileRecommendWordsGroup={}))[n.defaultFileWords=0]="defaultFileWords",n[n.defaultImageWords=1]="defaultImageWords",n[n.AIPhotoEditing=2]="AIPhotoEditing",n[n.PDFToOthers=3]="PDFToOthers",n[n.WordToOthers=4]="WordToOthers",n[n.TXTToOthers=5]="TXTToOthers",(n=e.FILE_STATUS||(e.FILE_STATUS={}))[n.UNACTIVE=0]="UNACTIVE",n[n.ACTIVE=1]="ACTIVE",n[n.EXPIRED=2]="EXPIRED";var E="https://chat.baidu.com",r=".jpeg, .png, .jpg, .bmp, .webp";e.imageAccept=r+", .heic, .heif, .avif, .tiff, .tif";var d=".pdf, .doc, .docx, .dot, .xls, .xlsx, .csv, .ppt, .pptx, .xmind, .mm, .txt, .log, .md, .rst, .tex, .xml",f=new Set(["image/heic","image/heif","image/tiff"]),h=".c, .cc, .cpp, .cxx, .cs, .h, .java, .js, .jsx, .ts, .tsx, .go, .py, .py3, .php, .rb, .rs, .swift, .kt, .kts, .scala, .lua, .pl, .pm, .r, .m, .dart, .groovy, .sql, .vue, .asp, .jsp, .html, .htm, .css, .sh, .bash, .zsh, .bat, .cmd, .ps1, .json, .yaml, .yml, .toml, .ini, .conf, .cfg, .properties, .env, .proto, .thrift, .graphql, .gql";e.UPLOAD_FILE_TYPE=d+", "+h,e.UPLOAD_IMAGE_TYPE=e.imageAccept,e.UPLOAD_ALL_TYPE=e.UPLOAD_FILE_TYPE+", "+e.UPLOAD_IMAGE_TYPE;g.resolveImageAccept=function(t){return t?e.imageAccept:r},g.create=function(n){return(0,k.__awaiter)(this,void 0,void 0,function(){var e;return(0,k.__generator)(this,function(t){switch(t.label){case 0:return(e=null,n.isChatSearch)?(e=n.sdk,[3,3]):[3,1];case 1:return[4,function(){return(0,k.__awaiter)(this,void 0,void 0,function(){return(0,k.__generator)(this,function(t){return[2,new Promise(function(e,n){window.require(["@baiducloud/sdk/dist/baidubce-sdk.bundle.min"],function(t){e(t)},function(t){n(t)})})]})})}()];case 2:e=t.sent(),t.label=3;case 3:return[2,new g(n,e)]}})})},g.prototype.getFile=function(p){return(0,k.__awaiter)(this,void 0,Promise,function(){var c=this;return(0,k.__generator)(this,function(t){return[2,new Promise(function(e,n){try{var t=document.createElement("input"),i=c.options,a=i.type,o=i.maxNum,r=i.enableExtendedPicFormats,s=g.resolveImageAccept(r),l=s+", "+d+", "+h;t.type="file",t.accept="all"===a?l:"image"===a?s:d+", "+h,t.multiple=11024*e*1024?(this.options.callback({status:I.FILE_SIZE_EXCEED_LIMIT,fileInfo:{fileType:t.type,fileName:t.name}}),!1):0!==t.size||(this.options.callback({status:I.FILE_SIZE_BELOW_LIMIT}),!1)},g.prototype.filterInvalidFile=function(t,e){var n=this.getCouldUploadFiles(t);if(e&&!e(n))return[];n.length>this.options.maxNum&&(this.options.callback({status:I.FILE_NUM_EXCEED_LIMIT}),n.splice(this.options.maxNum)),this.options.callback({status:I.SET_FILE_NUM,num:n.length});for(var i=n.length-1;0<=i;i--)this.checkFileValid(n[i])||n.splice(i,1);return n},g.prototype.handleFileChange=function(i,a,o,r){return(0,k.__awaiter)(this,void 0,Promise,function(){var e,n=this;return(0,k.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e=null==i?void 0:i.target,e=Array.from(e.files||[]),e=this.filterInvalidFile(e,r),[4,Promise.all(e.map(function(t,e){return n.uploadFile(t,e)}))];case 1:return t.sent(),a(),[3,3];case 2:return e=t.sent(),o(e),[3,3];case 3:return[2]}})})},g.prototype.uploadFiles=function(t){var n=this;return Promise.all(this.filterInvalidFile(t).map(function(t,e){return n.uploadFile(t,e)}))},g.prototype.uploadFile=function(d,h,g){return void 0===h&&(h=0),void 0===g&&(g=Date.now()+h+function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_",e="",n=new Uint8Array(6);crypto.getRandomValues(n);for(var i=0;i<6;i++)e+=t[n[i]%t.length];return e}()),(0,k.__awaiter)(this,void 0,Promise,function(){var e=this;return(0,k.__generator)(this,function(t){return this.options.callback({status:I.INIT,progress:0,fileInfo:{fileName:d.name,fileType:d.type,fileSize:d.size,fileIndex:h,fileToken:g}}),[2,new Promise(function(c,p){return(0,k.__awaiter)(e,void 0,void 0,function(){var e,n,i,a,o,r,s,l,u=this;return(0,k.__generator)(this,function(t){switch(t.label){case 0:return(t.trys.push([0,5,,6]),d)?(this.files||(this.files=[]),this.files.some(function(t){return t.fileToken===g})||this.files.push({file:d,fileToken:g}),this.sdk||navigator.onLine||this.options.callback({status:I.NETWORK_ERROR,fileInfo:{fileIndex:h,fileToken:g,fileType:d.type}}),[4,this.getSts()]):[2];case 1:return(o=t.sent(),e=o.ak,n=o.sk,i=o.token,a=o.preFixPath,o=o.recommendWord,this.cancelledTokenSet.has(g))?(this.cancelledTokenSet["delete"](g),c(),[2]):(this.options.callback({status:I.STSSUCCESS,progress:0,fileInfo:{fileName:d.name,fileType:d.type,fileSize:d.size,fileIndex:h,fileToken:g},recommendWord:o}),d instanceof File&&d.type.startsWith("image/")&&!f.has(d.type)?[4,this.getImageInfo(d)]:[3,3]);case 2:r=t.sent(),this.options.callback({status:I.IMAGE_INFO_SUCCESS,progress:0,fileInfo:{imageWidth:r.width,imageHeight:r.height}}),t.label=3;case 3:return r=this.sdk.BosClient,s=new r({endpoint:"https://aisearch.bj.bcebos.com",credentials:{ak:e,sk:n},sessionToken:i}),r=null===(l=d.name)||void 0===l?void 0:l.split(".").pop(),l=this.sdk.MimeType.guess(r),r=g+"."+r,l.startsWith("text/")&&(l+="; charset=UTF-8"),l=s.putSuperObject({bucketName:"aisearch",objectName:a+r,chunkSize:1048576,ContentLength:d.size,ContentType:l,data:d,onProgress:function(t){t=t.progress;u.options.callback({status:I.UPLOADING,progress:t,fileInfo:{fileIndex:h,fileToken:g}})},onStateChange:function(r,s){return(0,k.__awaiter)(u,void 0,void 0,function(){var e,n,i,a,o;return(0,k.__generator)(this,function(t){switch(t.label){case 0:if("completed"!==r)return[3,7];t.label=1;case 1:return t.trys.push([1,5,,6]),this.options.callback({status:I.UPLOADING,progress:1,fileInfo:{fileIndex:h,fileToken:g}}),e=s.data.key,n=btoa(e.split("/").pop()),[4,this.upLoadConfirm({path:e,size:d.size,name:d.name,id:n,type:"all"===this.options.type?d.type.startsWith("image/")?"image":"file":this.options.type},h)];case 2:return o=t.sent(),i=o.file_url,a=o.image_info,o=o.id,this.options.callback({status:I.BOS_SUCCESS,progress:1,fileInfo:{fileIndex:h,fileId:o||n,fileUrl:i,filePath:e,fileToken:g,fileType:d.type}}),f.has(d.type)&&null!=a&&a.width&&null!=a&&a.height&&this.options.callback({status:I.IMAGE_INFO_SUCCESS,progress:0,fileInfo:{imageWidth:a.width,imageHeight:a.height}}),!this.options.knowledgeId||this.preventUploadSet.has(g)?[3,4]:[4,this.getUploadKnowledgeStatus(n)];case 3:t.sent(),this.options.callback({status:I.KNOWLEDGE_SUCCESS,fileInfo:{fileToken:g,fileUrl:i}}),t.label=4;case 4:return this.uploadInstanceMap["delete"](g),c(),[3,6];case 5:return o=t.sent(),o=(null==(a=o)?void 0:a.status)||I.NETWORK_ERROR,this.options.callback({status:o,fileInfo:{fileIndex:h,fileToken:g,fileType:d.type}}),p(a),[3,6];case 6:return[3,8];case 7:"failed"===r?(this.cancelledTokenSet.has(g)||this.options.callback({status:I.NETWORK_ERROR,fileInfo:{fileIndex:h,fileToken:g,fileType:d.type}}),this.uploadInstanceMap["delete"](g),this.cancelledTokenSet["delete"](g),p(new Error("Network disconnected"))):"cancelled"===r&&(this.uploadInstanceMap["delete"](g),this.cancelledTokenSet["delete"](g)),t.label=8;case 8:return[2]}})})}}),this.uploadInstanceMap.set(g,l),this.cancelledTokenSet.has(g)?(this.cancelledTokenSet["delete"](g),this.uploadInstanceMap["delete"](g),c(),[2]):[4,l.start()];case 4:return t.sent(),[3,6];case 5:return s=t.sent(),s=(null==(l=s)?void 0:l.status)||I.NETWORK_ERROR,this.options.callback({status:s,fileInfo:{fileIndex:h,fileToken:g,fileType:d.type}}),p(l),[3,6];case 6:return[2]}})})})]})})},g.prototype.reTryUpload=function(n){return(0,k.__awaiter)(this,void 0,void 0,function(){var e;return(0,k.__generator)(this,function(t){switch(t.label){case 0:return(e=this.files||[],e=e.find(function(t){return t.fileToken===n}))?(this.options.callback({status:I.FILE_REUPLOAD,fileInfo:{fileToken:n}}),[4,this.uploadFile(e.file,0,n)]):[3,2];case 1:return[2,t.sent()];case 2:return[2,Promise.resolve()]}})})},g.prototype.getSts=function(){return(0,k.__awaiter)(this,void 0,Promise,function(){var e=this;return(0,k.__generator)(this,function(t){return[2,new Promise(function(i,a){return(0,k.__awaiter)(e,void 0,void 0,function(){var e,n;return(0,k.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),e=(this.options.sseHost||E)+o+("?tk="+this.options.token)+(this.options.knowledgeId?"&knowledgeId="+this.options.knowledgeId:""),[4,fetch(e,{mode:"cors",credentials:"include"})];case 1:return(n=t.sent()).ok||a({status:I.NETWORK_ERROR}),[4,n.json()];case 2:return 0===(n=t.sent()).status?i(n.data):a({status:I.NETWORK_ERROR}),[3,4];case 3:return t.sent(),a({status:I.NETWORK_ERROR}),[3,4];case 4:return[2]}})})})]})})},g.prototype.getUploadData=function(n,i,a){return(0,k.__awaiter)(this,void 0,void 0,function(){var e;return(0,k.__generator)(this,function(t){switch(t.label){case 0:return e=(this.options.sseHost||E)+p+"?tk="+i,[4,fetch(e,{method:"POST",credentials:"include",signal:a?a.signal:null,headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({},this.options.uploadBody,this.options.knowledgeId?{knowledgeId:this.options.knowledgeId}:{},this.options.dirId?{dirId:this.options.dirId}:{},this.options.scene?{scene:this.options.scene}:{},n))})];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}})})},g.prototype.upLoadConfirm=function(u,c){return(0,k.__awaiter)(this,void 0,Promise,function(){var e=this;return(0,k.__generator)(this,function(t){return[2,new Promise(function(s,l){return(0,k.__awaiter)(e,void 0,void 0,function(){var o,e,r,n,i;return(0,k.__generator)(this,function(t){switch(t.label){case 0:o=2,e=function(e){var n,i,a;return(0,k.__generator)(this,function(t){switch(t.label){case 0:n=void 0,t.label=1;case 1:return t.trys.push([1,4,,5]),i=(r.options.sseHost||E)+p+("?tk="+r.options.token),[4,fetch(i,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object.assign({},u,r.options.uploadBody,r.options.knowledgeId?{knowledgeId:r.options.knowledgeId,sort:c}:{}))})];case 2:return[4,t.sent().json()];case 3:return n=t.sent(),[3,5];case 4:return t.sent(),l({status:I.NETWORK_ERROR}),[2,{value:void 0}];case 5:return i=(a=n||{}).status,a=a.data,0===i?(s(a),[2,{value:void 0}]):-5===i?(l({status:I.RISK_DENY}),[2,{value:void 0}]):-1===i&&e
搜索
{{overWordTipText}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var k=n(1),i=n(0),a=(0,k.__importDefault)(n(444)),h=(0,k.__importDefault)(n(447)),o=n(500),r=(0,k.__importDefault)(n(501)),s=(0,k.__importDefault)(n(506)),l=(0,k.__importStar)(n(515)),u=(0,k.__importDefault)(n(520)),c=(0,k.__importDefault)(n(524)),p=(0,k.__importDefault)(n(528)),d=(0,k.__importDefault)(n(531)),g=(0,k.__importDefault)(n(534)),f=(0,k.__importDefault)(n(540)),m=(0,k.__importDefault)(n(546)),v=(0,k.__importDefault)(n(559)),b=(0,k.__importDefault)(n(565)),w=(0,k.__importDefault)(n(58)),C=n(57),I=(0,k.__importDefault)(n(56)),x=n(6),_=[],E="https://chat.baidu.com";var y,A=["ai_read","ai_translate"],S=["ai_read","ai_chat","ai_translate"],T={office_create:7,photo_editing:8,ai_ppt:9,ai_read:10,ai_code:11,deep_research:12,ai_music_create:13,ai_numerology:16,ai_translate:22},n=n(5),n=(y=i.Component,(0,k.__extends)(L,y),L.prototype.initData=function(){return{rootHeight:100,isHome:!0,initialRow:2,isAiSearch:!1,isShowMic:!1,isDegraded:!1,isShowFileUpload:!0,isAiPanelSearch:!1,isShowOpenningAnime:!1,fileItem:null,panelMaxHeight:358,inputPanel:[],guideWordPrefix:"",guideWord:"",isFileUploading:!1,token:"",fileList:[],fileGuideWords:[],recommendWords:[],toastMsg:"",toastFileNameBase:"",toastFileNameExt:"",toastShowIcon:!1,toastDuration:2e3,hoverText:{},hasShowOverWordToast:!1,ro:null,isOverWord:!1,visibleButtons:[],hiddenButtons:[],showMoreGuide:!1,prefixContent:"",activeFile:!0,uploadFileMaxNum:10,hasOpenAnimeSample:!1,uploadMergeSample:!1,isUploadPanelOpen:!1,deepSearchBtnText:"问",isShowAiSearch:!0,numeroButtonData:[],musicButtonData:[],musicButtonActiveValue:[],musicPlaceHolder:"",drawButtonsData:[],numeroTipContent:"测测事业、爱情、财富运势",newInputStyle:!1,funcRecommendSample:!1,queryRecommendSample:!1,btnTextSample:!1,btnImgSample:!1,btnTrySample:!1,buttonTipsDays:[],jumpDsBtnSample:!0,askWenxinButtonShowSample:!1,aiSearchTextCarouselSample:!1,aiSearchTextRandomSample:!1,voiceInputComplete:!1,hasUsedVoiceInput:!1,isVoiceRecording:!1,linkOptions:{},linerColorConfig:[{offset:"0%",color:"#fff",opacity:"0.2"},{offset:"60%",color:"#6547FF",opacity:"0.6"},{offset:"95%",color:"#4769FF",opacity:"1"},{offset:"100%",color:"#0090FE",opacity:"1"}],numeroButtonActiveValue:null,wenXinButtonJump:!1,oldHomeInputConfigSample:!1,picUploadDegrade:!0}},L.prototype.inited=function(){var t=this.data.get("inputPanel").map(function(t){return(0,k.__assign)((0,k.__assign)({},t),"ai_search"===t.type?{minWidth:270}:{})}),e=(0,o.calculateAdaptiveButtonBar)(t,{containerWidth:800,defaultMinWidth:90,buttonGap:9,moreButtonWidth:86}),t=e.visibleButtons,e=e.hiddenButtons;this.data.set("visibleButtons",t),this.data.set("hiddenButtons",e),this.data.get("newInputStyle")&&this.data.set("rootHeight",120)},L.prototype.attached=function(){var d=this;this.checkAnime(),this.handlePopStateCallback=this.handlePopState.bind(this),window.addEventListener("popstate",this.handlePopStateCallback),this._onPageShow=function(t){t.persisted&&d.resetStatus()},window.addEventListener("pageshow",this._onPageShow),this._closeUploadPanel=function(t){var e;!d.data.get("isUploadPanelOpen")||(e=null===(e=d.el)||void 0===e?void 0:e.querySelector("[data-upload-panel]"))&&!e.contains(t.target)&&d.data.set("isUploadPanelOpen",!1)},this._closeUploadPanelOnScroll=function(){var t,e;d.data.get("isUploadPanelOpen")&&(null!==(e=null===(t=null===(e=null===(t=d.chatInputInstance)||void 0===t?void 0:t.getInputEl)||void 0===e?void 0:e.call(t))||void 0===t?void 0:t.blur)&&void 0!==e&&e.call(t),d.data.set("isUploadPanelOpen",!1))},document.addEventListener("mousedown",this._closeUploadPanel),window.addEventListener("scroll",this._closeUploadPanelOnScroll,!0);var t="1"===(null===(e=null===(t=window.bds.comm)||void 0===t?void 0:t.personalData)||void 0===e?void 0:e.isNewTabSearch),e=window.bds.comm.supportis;t||e||(0,x.$)(window).on("index_off",function(){var t;null!==(t=null===(t=null===(t=d.chatInputInstance)||void 0===t?void 0:t.inputMainDom)||void 0===t?void 0:t.classList)&&void 0!==t&&t.add("one-line-input"),d.chatInputInstance.overflowToMultiline=!0}),(0,x.$)(window).on("index_off",function(){document.body.classList.remove("pc-home-index")}),this.nextTick(function(){d.initSpyCountLogListener();var l,u,t,e,n,i,a,o,r,s,c=document.querySelector("#input-root"),p=window.bds.comm.supportis;d.chatInputInstance=new h["default"]({rootDom:c,disableAi:d.data.get("isDegraded"),initialRow:d.data.get("initialRow"),isSsr:!0,initialFocus:!0,hasOpenAnime:d.data.get("hasOpenAnimeSample"),panelMaxHeight:d.data.get("panelMaxHeight"),aiPlaceholder:d.data.get("guideWord"),useBuiltInVoice:!0,spaceVoice:d.data.get("spaceVoiceEnabled"),blockSelectors:["#sui-dialog-mask",".skin-history-dialog-mask",".s-qrcode-mask",".ci-dialog-mask","#s_skin_layer_shadow",".bdlayer-shadow","#desktop_cards","#passport-login-pop","#desktopModalMask",".search-quit-dialog-wrap","#ariaToptoolbar"],scene:"home",overflowToMultiline:p,enableExtendedPicFormats:!d.data.get("picUploadDegrade"),mergeFileImageUpload:d.data.get("uploadMergeSample")}),p&&d.chatInputInstance.initOverflowDetector(),d.chatInputInstance.on("panel-close",function(){d.resetStatus(),d.data.get("fileList").length&&d.chatInputInstance.fileUpLoadInput()}),d.chatInputInstance.on("change",function(t){var e=(0,x.$)("#main-wrapper");"normal"===t&&e.length&&e.trigger("smartInputRerender")}),d.chatInputInstance.on("panel-scroll",function(){d.sendUbcLog("slide","function_panel",{})}),d.chatInputInstance.on("prefix-click",function(){d.data.assign({numeroButtonData:[],musicButtonData:[],drawButtonsData:[],numeroButtonActiveValue:null}),d.sendUbcLog("click","search_kuang",{pos:"title_hover"})}),d.chatInputInstance.on("focus",function(){d.data.set("isUploadPanelOpen",!1),d.data.get("isHome")||(d.data.set("activeFile",!0),d.chatInputInstance.setPrefixNodeStatus(!1))}),d.chatInputInstance.on("blur",function(){d.chatInputInstance.stopVoiceRecording(),d.data.get("isHome")||(d.data.set("activeFile",!1),d.chatInputInstance.setPrefixNodeStatus(!0))}),d.chatInputInstance.on("ai-tool-change",function(t){t=null==t?void 0:t.panelType;t||d.data.assign({numeroButtonData:[],musicButtonData:[],drawButtonsData:[],numeroButtonActiveValue:null}),d.data.set("openPanelType",t)}),d.chatInputInstance.on("toast",function(t){d.showToast({message:t,isUploadError:!0})}),d.chatInputInstance.on("drag-show",function(){d.sendUbcLog("show","drag_status",{file_status:d.getInputStats(),is_log:window.s_session.isLogin?"1":"0"})}),d.chatInputInstance.on("drag-done",function(t){t=t.fileSuffix;d.sendUbcLog("show","drag_finish_status",{file_type:t,is_log:window.s_session.isLogin?"1":"0"})}),d.chatInputInstance.on("paste-file",function(t){t=t.fileSuffix;d.sendUbcLog("click","copy_finish_status",{file_type:t,is_log:window.bds.comm.isUserLogin?"1":"0"})}),d.chatInputInstance.on("threshold",function(t){d.showToast({message:"最多发送"+t+"字符内容"})}),d.chatInputInstance.on("panel-render",function(t){d.sendPerfSpyLog(d.__startClickPanelTime,"panelRenderTime"),d.data.set("prefixContent",t.type),d.data.set("isAiPanelSearch",!0),d.resetMic(!1),S.includes(t.type)||d.data.set("isShowFileUpload",!1)}),d.chatInputInstance.on("input",function(t){d.data.set("isUploadPanelOpen",!1),"ai"!==d.chatInputInstance.getMode()&&((0,x.$)("#kw").val(t),d.calculateStrIsOverWord(t)?d.data.set("isOverWord",!0):d.data.set("isOverWord",!1),d.data.set("isTranslateQuery",t.includes("翻译")),d.nextTick(function(){t&&d.checkSupportIs()}),t||(d.data.assign({voiceInputComplete:!1,hasUsedVoiceInput:!1}),window.bds.comm.isVoice=!1))}),d.chatInputInstance.on("panel-item-click",function(T){return(0,k.__awaiter)(d,void 0,void 0,function(){var n,i,a,o,r,s,l,u,c,p,d,h,g,f,m,v,b,w,x,_,y,S=this;return(0,k.__generator)(this,function(t){switch(t.label){case 0:if(s=T.functionTab,n=void 0===s?"all":s,i=T.functionName,a=T.buttonProperty,o=T.text,m=T.fileInfo,_=T.functionData,r=T.clickType,s=this.chatInputInstance.getCurrentPanelName(),"link"===(null==_?void 0:_.type))return window.location.href=null===(_=null===(_=_.data)||void 0===_?void 0:_.link)||void 0===_?void 0:_.url,[2];if(this.sendUbcLog("click","function_panel",{function_tab:n,function_name:i}),A.includes(s)&&this.data.set("fileList",[]),a&&this.data.set("musicButtonActiveValue",a),this.chatInputInstance.addAiInputContent(T),"photo_editing"===s&&"pic-tool"===r&&this.ref("drawButton").handleDrawButtonsSettings({type:"change",drawStyle:{style:o}}),!A.includes(s)||null==m||!m.file_path)return[3,3];l=function(t){var e=(S.data.get("fileList")||[])[0];return(null==e?void 0:e.filePath)===(null==t?void 0:t.filePath)?e:{}},clearTimeout(this.mockReadProgressTimer),u={};try{for(c=(0,k.__values)(Object.entries(m)),p=c.next();!p.done;p=c.next())d=(0,k.__read)(p.value,2),h=d[0],g=d[1],f=h.replace(/_([a-z])/g,function(t,e){return e.toUpperCase()}),u[f]=g}catch(e){w={error:e}}finally{try{p&&!p.done&&(x=c["return"])&&x.call(c)}finally{if(w)throw w.error}}return m=[(0,k.__assign)((0,k.__assign)({},u),{fileSize:Number(u.fileSize),status:1,fileType:(0,C.getFileType)(u.fileName),uploadType:u.fileType,progress:0})],this.data.set("fileList",m),this.mockReadProgressTimer=setTimeout(function(){var t=l(u);1===t.status&&(S.data.set("fileList",[(0,k.__assign)((0,k.__assign)({},t),{progress:+(.3*Math.random()+.2).toFixed(2)})]),S.mockReadProgressTimer=null)},100),[4,C.UploadFile.create({type:u.fileType,maxSize:100,token:this.getToken(),sseHost:E})];case 1:return b=t.sent(),v={id:I["default"].encode((null===(y=u.filePath)||void 0===y?void 0:y.split("/").pop())||""),name:u.fileName,path:u.filePath,size:Number(u.fileSize),type:u.fileType,rw:"1"},[4,b.getUploadData(v,this.getToken())];case 2:y=t.sent().data,v=y.id,b=y.file_url,y=y.recommend_word,b=[(0,k.__assign)((0,k.__assign)({},u),{fileId:v,status:2,url:b,uploadType:u.fileType,fileSize:Number(u.fileSize),fileType:(0,C.getFileType)(u.fileName)})],1===l(u).status&&(y&&this.data.set("fileGuideWords",this.handleFileGuideWords(u.fileType,y)),this.data.set("fileList",b)),t.label=3;case 3:return[2]}})})}),d.chatInputInstance.on("panel-item-upload",d.handleClickUploadFile.bind(d)),d.chatInputInstance.on("upload-result",function(t){var e=t.uploadType,n=t.format;"unsupported"===t.uploadStatus&&d.sendUbcLog("click","image"===e?"pic_upload":"file_upload",{format:n,upload_status:"unsupported"})}),d.chatInputInstance.on("prefix-file-click-delete",function(){d.handleFileContainerLog({type:"click",value:"file_clear"}),d.handleFileRemove()}),d.chatInputInstance.on("prefix-file-back-delete",function(){d.data.set("fileList",[])}),d.chatInputInstance.on("prefix-back-delete",function(){d.data.set("numeroButtonData",[]),d.data.set("musicButtonData",[]),d.data.set("drawButtonsData",[])}),d.chatInputInstance.on("clear",function(){d.data.set("isOverWord",!1),d.sendUbcLog("click","content_clear"),d.data.assign({voiceInputComplete:!1,hasUsedVoiceInput:!1}),window.bds.comm.isVoice=!1}),d.chatInputInstance.on("click",function(t){t=(null==t?void 0:t.value)||"";d.sendUbcLog("click","search_kuang",{query:t,is_query_over:d.calculateStrIsOverWord(t)?"1":"0",pos:"searchbox"})}),d.chatInputInstance.on("submit",d.handleSubmit.bind(d)),d.chatInputInstance.on("submit",function(){d.sendCountSpyLog({submit_click:1})}),d.chatInputInstance.on("voice-input-start",function(t){window.bds.comm.isVoice=!0;var e=d.chatInputInstance.getValue();d.sendUbcLog("click","search_kuang",{pos:"space"===t?"voice_long_press":"voice",query:e,is_query_over:d.calculateStrIsOverWord(e)?"1":"0",voice_time:0,voice_content:"",button_goal_status:"open",file_status:d.getInputStats(),aisou_btn:d.data.get("isAiSearch")?"1":"0"}),d.data.assign({voiceInputComplete:!1,isVoiceRecording:!0,hasUsedVoiceInput:!0})}),d.chatInputInstance.on("voice-input-tip-show",function(){d.sendUbcLog("show","search_kuang",{pos:"voice_tips"})}),d.chatInputInstance.on("voice-input-recognized",function(){window.bds.comm.isVoice=!0}),d.chatInputInstance.on("voice-input-complete",function(t){var e=t.content,n=t.duration,t=d.chatInputInstance.getValue();d.sendUbcLog("click","search_kuang",{pos:"voice",query:t,is_query_over:d.calculateStrIsOverWord(t)?"1":"0",voice_time:n,voice_content:e,button_goal_status:"close",file_status:d.getInputStats(),aisou_btn:d.data.get("isAiSearch")?"1":"0"}),d.data.assign({voiceInputComplete:!0,isVoiceRecording:!1})}),c&&(l=c.querySelector(".tools-clear-icon"),u=l.classList.contains("show-clear-icon"),l&&new MutationObserver(function(t){var e,n;try{for(var i=(0,k.__values)(t),a=i.next();!a.done;a=i.next()){var o,r=a.value;"attributes"!==r.type||"class"!==r.attributeName||(o=l.classList.contains("show-clear-icon"))!==u&&(u=o)&&d.sendUbcLog("show","content_clear")}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i["return"])&&n.call(i)}finally{if(e)throw e.error}}}).observe(l,{attributes:!0,attributeFilter:["class"]}),d.watch("isAiSearch",function(t){var e,n,i=c.querySelector("#chat-textarea");i&&!d.data.get("jumpDsBtnSample")&&(i=t?null!==(e=i.dataset.aiPlaceholder)&&void 0!==e?e:"":null!==(n=i.dataset.normalPlaceholder)&&void 0!==n?n:"",n=d.data.get("guideWordPrefix"),d.chatInputInstance.setPlaceHolder(t&&n?n+i:i),d.resetMic(!t))}),d.watch("prefixContent",function(t,e){var n=e.oldValue,e=e.newValue.trim(),n=n.trim();A.includes(e)?d.data.set("activeFile",!0):e?d.data.set("activeFile",!1):n&&d.data.set("activeFile",!0)}),d.watch("curUploadType",function(t){d.updatePanelExternalProps({curUploadType:t})}),d.watch("fileList",function(t,e){var n=e.oldValue,i=e.newValue;n.length!==i.length&&(e=d.data.get("fileReady"),i.length&&d.chatInputInstance.renderAiInputFilePrefix(d.getFilePrefixItem(i),i.length,2!==e),n.length&&!i.length&&(d.chatInputInstance.deletePrefixFile(),d.chatInputInstance.getCurrentPanelName()||(i=d.chatInputInstance.getValue(),d.calculateStrIsOverWord(i)&&d.data.set("isOverWord",!0))))}),(a=(0,x.$)("#chat-input-main")).length&&a.on("homepredict",function(){d.chatInputInstance.setInitalRow(1),d.data.set("isHome",!1),d.data.set("initialRow",1),d.chatInputInstance.checkOverflowToMultiLine()}),t=(0,x.$)('[tpl="ai-tools-panel"]'),p=(0,x.$)('[tpl="dashboard"]'),e=t.length||p.length?72:0,n=c.querySelector(".chat-input-container"),i=document.querySelector("#head_wrapper"),a=document.querySelector(".smart_input_height_superman"),o=!0,r=t.length||p.length?"24%":a?"35%":"39%",n&&"undefined"!=typeof ResizeObserver&&i&&(null!=(s=new ResizeObserver(function(){var t;null!==(t=null===(t=window.bds)||void 0===t?void 0:t.comm)&&void 0!==t&&t.ishome&&!o&&(t=n.clientHeight+(d.data.get("newInputStyle")?2:3),d.data.set("rootHeight",t),i.style.height="calc("+r+" + "+(t+e)+"px)",i.style.setProperty("--input-height",t+"px")),o=!1}))&&s.observe(n),d.data.set("ro",s)),"normal"!==d.chatInputInstance.getMode()||(s=(0,x.$)("#main-wrapper")).length&&s.trigger("smartInputRerender"),d.watch("isShowOverWordTip",function(t){t&&d.sendUbcLog("show","long_query_toast",{query:d.chatInputInstance.getValue()},!0)}),d.getShowMoreGuide(),d.data.get("askWenxinButtonShowSample")&&d.sendUbcLog("show","deepsearch_btn",{aisou_text:d.data.get("buttonText.text")}),d.data.get("uploadMergeSample")&&d.data.get("isShowFileUpload")&&!d.data.get("isDegraded")&&d.sendUbcLog("show","search_kuang",{pos:"add",file_status:d.getMergeFileStatus()}),d.watch("musicPlaceHolder",function(t){var e;0===d.chatInputInstance.getValue().length&&null!==(e=d.chatInputInstance)&&void 0!==e&&e.setPlaceHolder(t)}))}),this.data.get("askWenxinButtonShowSample")&&this.setBorderAnimationInfo(),this.calcTimeToFirstInteraction()},L.prototype.calcTimeToFirstInteraction=function(){var t,e;"undefined"!=typeof performance&&performance.getEntriesByType&&(t=(e=(null===performance||void 0===performance?void 0:performance.getEntriesByType("navigation")[0])||null)?e.type:"unknown",e=e?e.startTime:0,this.sendPerfSpyLog(e,"ttfi",{navEntrySource:t},.05))},L.prototype.error=function(t){this.sendExceptSpyLog(t)},L.prototype.spySend=function(t){var e,t="https://sp1.baidu.com/5b1ZeDe5KgQFm2e88IuM_a/mwb2.gif?"+["pid=19_103","lid="+((null===(e=window.s_session)||void 0===e?void 0:e.qid)||""),"ts="+Date.now(),"type="+t.type,"group="+t.group,"info="+encodeURIComponent(JSON.stringify(t.info)),"dim="+encodeURIComponent(JSON.stringify(t.dim||{})),"extra="+encodeURIComponent(JSON.stringify(t.extra))].join("&");navigator.sendBeacon&&navigator.sendBeacon(t)||((new Image).src=t)},L.prototype.sendPerfSpyLog=function(t,e,n,i){var a,o;void 0===n&&(n={}),void 0===i&&(i=.1);try{var r=performance.now();if(Math.random()>=i&&!t)return;this.spySend({type:"perf",group:"chatinput_perf",info:((a={})[e]=(r-t).toFixed(2),a),dim:(0,k.__assign)({type:null===(o=this.chatInputInstance)||void 0===o?void 0:o.getCurrentPanelName(),from:"home"},n)})}catch(s){console.warn(s)}},L.prototype.sendCountSpyLog=function(t,e){void 0===e&&(e={});try{if(.0625<=Math.random())return;this.spySend({type:"count",group:"chatinput_count",info:t,extra:e})}catch(n){console.warn(n)}},L.prototype.sendExceptSpyLog=function(t){try{this.spySend({type:"except",group:"chat_input_js_error",info:{msg:"string"==typeof t?t:t.message,stack:(t.stack||"").split("\n").slice(0,5).join("\n"),pageUrl:location.href}})}catch(e){console.warn(e)}},L.prototype.setBorderAnimationInfo=function(){var t=this.ref("ai-search-btn");t&&(this.data.set("aiSearchWidth",t.offsetWidth),this.data.set("aiSearchHeight",t.offsetHeight))},L.prototype.getShowMoreGuide=function(){var t=this.data.get("hiddenButtons");this.data.set("showGuideClass",t.some(function(t){if(t.guide)try{var e=localStorage.getItem(l.INPUT_PANEL_BTN_CLICKED_GUIDE),n=e&&JSON.parse(e)||{};return!e||!n[t.type]}catch(err){return console.warn(err),!1}return!1})?"guide":"")},L.prototype.getToken=function(){var t=+new Date,e=(null===(n=window.s_session)||void 0===n?void 0:n.qid)||"",n=this.data.get("token");return btoa(n+"||"+t+"|"+e)+"-"+e},L.prototype.handlePopState=function(){var t;try{var e=new URL(location.href).searchParams,n=e.get("wd")||e.get("word");this.chatInputInstance.getValue()||(null!==(t=this.chatInputInstance)&&void 0!==t&&t.closeSugUpdate(),this.chatInputInstance.setValue(n))}catch(err){console.warn(err)}},L.prototype.disposed=function(){var t;this.tipTimer=null,window.removeEventListener("popstate",this.handlePopStateCallback),window.removeEventListener("pageshow",this._onPageShow),this._closeUploadPanel&&document.removeEventListener("mousedown",this._closeUploadPanel),this._closeUploadPanelOnScroll&&window.removeEventListener("scroll",this._closeUploadPanelOnScroll,!0);var e=this.data.get("ro");null!==(t=null==e?void 0:e.disconnect)&&void 0!==t&&t.call(e)},L.prototype.getInputStats=function(){var t=this.data.get("fileList"),e=Array.isArray(t)&&0=l?(a&&this.showToast({isUploadError:!0,message:"all"===h?"上传数量不能超过"+l+"个":"file"===i?"上传文件最多支持"+l+"个":"上传图片最多支持"+l+"个"}),[2]):(u=+new Date,n=((c=null)===(f=this.data.get("fileList"))||void 0===f?void 0:f.length)||0,p={imageCount:0,fileCount:0,firstFileName:"",fileMaxSize:100,imageMaxSize:10,timer:null},a=function(t){var e,n,i=t.status,a=t.fileInfo,o=t.progress,r=t.recommendWord,s=d.data.get("fileList");i===C.UploadStatus.INIT?(e=!1,_.forEach(function(t){t.timeStamp===u&&(e=!0)}),e||(_.push({uploadFileIns:c,timeStamp:u}),d.chatInputInstance.fileUpLoadInput(),d.resetMic(!1)),a&&(n="all"===h?String(a.fileType||"").startsWith("image/")?"image":"file":h,0<=(t=s.findIndex(function(t){return t.fileToken===a.fileToken}))?s[t]=(0,k.__assign)((0,k.__assign)({},s[t]),{status:C.UploadStatus.UPLOADING,progress:0,fileName:a.fileName,uploadType:n,fileType:(0,C.getFileType)(a.fileName),fileSize:a.fileSize,fileId:a.fileId}):s.push({status:C.UploadStatus.UPLOADING,fileToken:a.fileToken,timeStamp:u,fileName:a.fileName,uploadType:n,fileType:(0,C.getFileType)(a.fileName),fileSize:a.fileSize,progress:o,fileId:a.fileId}))):i===C.UploadStatus.STSSUCCESS?(s.forEach(function(t,e){t.fileToken===(null==a?void 0:a.fileToken)&&(s[e].status=i,s[e].progress=o)}),r&&(d.data.set("recommendWords",r),d.updateFileGuideWords())):i===C.UploadStatus.UPLOADING?(d.__startUploadTime=null===performance||void 0===performance?void 0:performance.now(),s.forEach(function(t,e){t.fileToken===(null==a?void 0:a.fileToken)&&(s[e].status=i,s[e].progress=o)})):i===C.UploadStatus.NOT_AVAILABLE?(d.showToast({message:"暂不支持此格式,换个文件试试",isUploadError:!0}),d.sendUbcLog("click","image"===h?"pic_upload":"file_upload",{format:(null==a?void 0:a.fileType)||"",upload_status:"unsupported"})):i===C.UploadStatus.BOS_SUCCESS?(s.forEach(function(t,e){t.fileToken===(null==a?void 0:a.fileToken)&&(s[e].progress=o,s[e].status=i,s[e].url=null==a?void 0:a.fileUrl,s[e].fileId=null==a?void 0:a.fileId,s[e].filePath=null==a?void 0:a.filePath)}),d.sendPerfSpyLog(d.__startUploadTime,"uploadTime"),d.handleFileContainerLog({type:"show",value:"file_icon"}),d.sendUbcLog("click","image"===h?"pic_upload":"file_upload",{format:(null==a?void 0:a.fileType)||"",upload_status:"success"})):i===C.UploadStatus.NETWORK_ERROR?(s.forEach(function(t,e){t.fileToken===(null==a?void 0:a.fileToken)&&(s[e].status=i)}),d.showToast({message:"网络错误,请重试",isUploadError:!0}),d.sendUbcLog("click","image"===h?"pic_upload":"file_upload",{format:(null==a?void 0:a.fileType)||"",upload_status:"failed"})):i===C.UploadStatus.RISK_DENY?(d.showToast({message:"当前文件暂不支持,换个文件试试吧",isUploadError:!0}),d.sendUbcLog("click","image"===h?"pic_upload":"file_upload",{format:(null==a?void 0:a.fileType)||"",upload_status:"unsupported"}),d.splitItemFromFileList(s,null==a?void 0:a.fileToken)):i===C.UploadStatus.FILE_SIZE_EXCEED_LIMIT?(("all"===h?String((null==a?void 0:a.fileType)||"").startsWith("image/"):"image"===h)?p.imageCount++:p.fileCount++,!p.firstFileName&&null!=a&&a.fileName&&(p.firstFileName=a.fileName),p.timer||(p.timer=setTimeout(function(){p.timer=null;var t=d.buildSizeExceedToast(p),e=t.msg,t=t.fileName;e&&d.showToast({message:e,fileName:t,isUploadError:!0})},0))):i===C.UploadStatus.FILE_SIZE_BELOW_LIMIT?d.showToast({message:"当前文件暂不支持,换个文件试试吧",isUploadError:!0}):i===C.UploadStatus.FILE_NUM_EXCEED_LIMIT?d.showToast({isUploadError:!0,message:"all"===h?"上传数量不能超过"+l+"个":"file"===h?"上传文件最多支持"+l+"个":"上传图片最多支持"+l+"个"}):i===C.UploadStatus.FILE_REUPLOAD||d.data.set("isFileUploading",!1);r=JSON.parse(JSON.stringify(s));d.data.set("fileList",r),d.data.get("isHome")||(i===C.UploadStatus.INIT?d.chatInputInstance.renderAiInputFilePrefix(d.getFilePrefixItem(d.data.get("fileList")),d.data.get("fileList").length,!1):i!==C.UploadStatus.BOS_SUCCESS&&i!==C.UploadStatus.NETWORK_ERROR||2!==d.data.get("fileReady")&&d.chatInputInstance.renderAiInputFilePrefix(d.getFilePrefixItem(d.data.get("fileList")),d.data.get("fileList").length,!0))},i=(null===(f=window.s_session)||void 0===f?void 0:f.qid)||"",a={type:h,maxSize:100,imageMaxSize:10,maxNum:e-n,token:btoa(this.data.get("token")+"||"+u+"|"+i)+"-"+i,callback:a,sseHost:E,enableExtendedPicFormats:!this.data.get("picUploadDegrade")},"image"===h&&(a.maxSize=10),[4,C.UploadFile.create(a)]));case 1:return c=t.sent(),(o?c.uploadFiles(o):c.getFile())["catch"](function(){}),[2]}})})},L.prototype.handleLinkClick=function(){var t=this,e=this.data.get("linkOptions")||{};this.chatInputInstance.addAiInputContent({inputCustom:(null===(e=null===(e=e["function"])||void 0===e?void 0:e.input)||void 0===e?void 0:e.input_custom)||[]}),this.nextTick(function(){t.data.set("fileList",[])})},L.prototype.getFilePrefixItem=function(t){var e=t.some(function(t){return"file"===t.uploadType}),n=t.some(function(t){return"image"===t.uploadType});return e&&n?(0,k.__assign)((0,k.__assign)({},t[0]),{uploadType:"file",isMixed:!0}):t[0]},L.prototype.buildSizeExceedToast=function(t){var e=t.imageCount,n=t.fileCount,i=t.firstFileName,a=t.fileMaxSize,t=t.imageMaxSize;return 0
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{initialFocus:!1,initialRow:2,query:"",aiPlaceholder:"",normalPlaceholder:"",isChatSearch:!1,isSubmitButtonActive:!1,useBuiltInVoice:!1,singleLineExperiment:!1}},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSafari=e.isQQBrowser=e.isFirefox=e.isWindows=e.getPlatform=e.getUserAgentInfo=void 0;e.getUserAgentInfo=function(){var t="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",e=t.includes("iphone")||t.includes("ipod")||t.includes("ipad"),n=t.includes("android"),i=t.includes("baiduboxapp"),a=t.includes("searchcraft"),o=t.includes("theme/dark"),r=t.includes("bdhonorbrowser"),s=t.includes("huawei"),l=t.includes("qqbrowser"),u=t.includes("safari")&&!t.includes("chrome"),c=t.includes("firefox"),p=t.includes("arkweb")&&t.includes("tablet"),d=t.includes("ipad")||p,h=t.includes("arkweb")&&!d;return{isIOS:e,isAndroid:n,isBaiduBox:i,isSearchCraft:a,isDarkMode:o,isQQBrowser:l,isSafari:u,platform:!d&&/Mobi|Android|iPhone|ArkWeb/i.test(t||"")?"wise":"pc",isWindows:t.includes("windows"),isFirefox:c,scene:"RECALL_SCENE",isBdhonor:r,isHarmony:h,isHarmonyPad:p,isHuawei:s}};var i=(0,e.getUserAgentInfo)();e.getPlatform=function(){return i.platform};e.isWindows=function(){return i.isWindows};e.isFirefox=function(){return i.isFirefox};e.isQQBrowser=function(){return i.isQQBrowser};e.isSafari=function(){return i.isSafari}},function(t,e,n){"use strict";var i,a;Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionMessageType=e.discardPrewarmRecorder=e.prewarmRecorder=e.stopRecorder=e.startRecorder=void 0,(a=i=i||{}).HEARTBEAT="HEARTBEAT",a.MID_TEXT="MID_TEXT",a.FIN_TEXT="FIN_TEXT",a.SESSION_FINISH="SESSION_FINISH",e.RecognitionMessageType=i;var o=512,r=1,s=1,l=16,u=16e3,c=JSON.stringify({type:"FINISH"}),p="wss://vse.baidu.com/ws_api",d=8068,h="com.baidu.searchbox.fangyan",g=null,f=null,m=null,v=null,b=null,w=null,x=null,_=null,y=null,S=null,T=null,k=!1,C=0;function I(t,e,n,i){void 0===i&&(i=null);try{for(var a=i?i.index:0,o=i?i.offset:0,r=0,s=a;s
{{item.tab_name}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(1),a=n(0),o=(0,r.__importDefault)(n(458)),s=n(118),o=(i=a.Component,(0,r.__extends)(l,i),l.prototype.initData=function(){return{list:[],place_holdaer:"",tab_list:[],title:"",selectedTab:"all",type:""}},l.prototype.handleTabClick=function(t){this.data.get("selectedTab")!==t&&this.data.set("selectedTab",t)},l.prototype.handleItemClick=function(t,e){this.data.set("selectedBtn",t.button_id);var n,i=this.data.get("selectedTab"),a=t.button_id,o=(null==t?void 0:t["function"])||{};"input"===o.type&&(t=null===(n=o.data.input||{})?void 0:n.interactionType,this.fire("click",(0,r.__assign)((0,r.__assign)({agentInfo:n.agentInfo,inputCustom:null===n?void 0:n.input_custom},t?{interactionType:t}:{}),{functionTab:i,functionName:a,functionData:o,index:e})))},l.components={"create-item":o["default"]},l.computed={tabList:function(){var t=(this.data.get("tab_list")||[]).slice();return t.unshift({tab_id:"all",tab_name:"全部"}),t},showContentList:function(){var e=this.data.get("selectedTab"),t=this.data.get("list")||[];if("all"===e)return(0,s.splitArrayTo4)(t);t=t.filter(function(t){return(null==t?void 0:t.tab_id)===e});return(0,s.splitArrayTo4)(t)}},l);function l(){return null!==i&&i.apply(this,arguments)||this}e["default"]=o},function(t,e){t.exports='
{{data.text}}
{{data.desc}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.attached=function(){},o.prototype.detached=function(){},o.prototype.initData=function(){return{data:{},selected:!1,order:-1}},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shuffleArray=e.getDayDiff=e.getMillisecondFromSecond=e.isArray=e.splitArrayTo4=void 0;var o=n(1);e.splitArrayTo4=function(t){for(var e=[],n=0;n
{{desc}}
做同款
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{data:{},order:-1}},o.prototype.handleBtnClick=function(){this.fire("btn-click",this.data.get("data"))},o.computed={desc:function(){var t=this.data.get("data.text"),e=this.data.get("data.agentInfo");return null!=e&&e.agentName?"@"+e.agentName:t}},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports='
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(1),a=n(0),n=(0,r.__importDefault)(n(472)),n=(i=a.Component,(0,r.__extends)(o,i),o.prototype.attached=function(){this.data.set("showContentList",this.getRandomContentList())},o.prototype.splitArrayToN=function(t,e){for(var n=[],i=0;i
做同款
{{ data.text }}
{{ musicStyle }}
{{ timbre }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,l=n(1),n=n(0),n=(i=n.Component,(0,l.__extends)(a,i),a.prototype.initData=function(){return{data:{},order:-1,currentPlayOrder:-1,isPlaying:!1}},a.prototype.getColorByHue=function(t){var e,n,i=Number(t);if(!isNaN(i))try{for(var a=(0,l.__values)([{color:"#F98989",ranges:[[310,359],[0,5]]},{color:"#F29D61",ranges:[[6,40]]},{color:"#FAD932",ranges:[[41,61]]},{color:"#7FD977",ranges:[[62,150]]},{color:"#57D9D9",ranges:[[151,185]]},{color:"#619DF2",ranges:[[186,220]]},{color:"#A288F7",ranges:[[221,309]]}]),o=a.next();!o.done;o=a.next()){var r=o.value;if(r.ranges.some(function(t){var e=(0,l.__read)(t,2),t=e[0],e=e[1];return t<=i&&i<=e}))return r.color}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=a["return"])&&n.call(a)}finally{if(e)throw e.error}}},a.prototype.attached=function(){var i=this;this.data.set("musicPlayerCssVars",{"--music-item-height":this.ref("musicPlayer").clientHeight+"px","--music-item-width":this.ref("musicPlayer").clientWidth+"px","--domin-color":(null===(t=this.data.get("data"))||void 0===t?void 0:t.dominColor)||"217, 204, 255","--sub-color":(null===(t=this.data.get("data"))||void 0===t?void 0:t.subColor)||"204, 225, 255","--hue-color":this.getColorByHue((null===(t=this.data.get("data"))||void 0===t?void 0:t.hueColor)||"0")}),this.checkSeekAble(),this.loadSong(this.data.get("data"));var t=this.ref("audioPlayer");this._updateTimeDisplay=this.updateTimeDisplay.bind(this),this._resetSong=this.resetSong.bind(this),t.addEventListener("timeupdate",this._updateTimeDisplay),t.addEventListener("ended",this._resetSong),this.watch("currentPlayOrder",function(t){var e=i.ref("musicPlayer"),n=i.ref("progress"),e=e.classList.contains("playing");t!==i.data.get("order")&&(e||n.style.width)&&i.resetSong()})},a.prototype.checkSeekAble=function(){var t,e=this,n=this.ref("audioPlayer");n&&4<=n.readyState?this.data.set("isSeekable",!0):t=setTimeout(function(){e.checkSeekAble(),clearTimeout(t)},500)},a.prototype.loadSong=function(e){return(0,l.__awaiter)(this,void 0,void 0,function(){return(0,l.__generator)(this,function(t){return e&&(this.ref("audioPlayer").src=e.url),[2]})})},a.prototype.formatTime=function(t){if(isNaN(t))return"00:00";var e=Math.floor(t/60),t=Math.floor(t%60);return e.toString().padStart(2,"0")+":"+t.toString().padStart(2,"0")},a.prototype.updateTimeDisplay=function(){var t=this.ref("progress"),e=this.ref("audioPlayer");e&&(e=e.currentTime/e.duration*100,t.style.width=e+"%")},a.prototype.resetSong=function(){this.pauseSong(),this.loadSong(this.data.get("data")),this.ref("progress").style.width=""},a.prototype.playSong=function(){return(0,l.__awaiter)(this,void 0,void 0,function(){var e,n,i;return(0,l.__generator)(this,function(t){switch(t.label){case 0:return e=this.ref("musicPlayer"),n=this.ref("playBtn"),(i=this.ref("audioPlayer"))?[4,i.play()]:[2];case 1:return t.sent(),n.classList.add("playing-icon"),e.classList.add("playing"),this.fire("select-music-item-play",this.data.get("order")),[2]}})})},a.prototype.pauseSong=function(){var t=this.ref("playBtn"),e=this.ref("musicPlayer"),n=this.ref("audioPlayer");n&&(e.classList.remove("playing"),t.classList.remove("playing-icon"),n.pause())},a.prototype.playBtnClick=function(t){t.stopPropagation();t=this.ref("musicPlayer").classList.contains("playing");this.data.set("isPlaying",!t),t?this.pauseSong():this.playSong()},a.prototype.handleBtnClick=function(t){t.stopPropagation(),this.fire("btn-click",this.data.get("data"))},a.prototype.detached=function(){var t=this.ref("audioPlayer");t&&(t.pause(),t.removeEventListener("timeupdate",this._updateTimeDisplay),t.removeEventListener("ended",this._resetSong))},a.computed={musicStyle:function(){var t;return null===(t=(this.data.get("data.property")||[]).find(function(t){return"musicStyle"===t.type}))||void 0===t?void 0:t.text},timbre:function(){var t;return null===(t=(this.data.get("data.property")||[]).find(function(t){return"timbre"===t.type}))||void 0===t?void 0:t.text},isPlayingItem:function(){return this.data.get("order")===this.data.get("currentPlayOrder")}},a);function a(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports='
{{item.icon}} {{item.text}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),n=(0,a.__importDefault)(n(479)),n=(i=o.Component,(0,a.__extends)(r,i),r.prototype.initData=function(){return{panelDirect:"down",showFortuneList:[[]],itemsPerRow:4,itemGap:12}},r.prototype.attached=function(){this.data.set("showFortuneList",this.getFortuneList())},r.prototype.handleNumeroClick=function(t,e){var n=t.button_id,i=(null==t?void 0:t["function"])||{};"input"===i.type&&(t=i.data.input||{},this.fire("click",{inputCustom:null===t?void 0:t.input_custom,functionName:n,functionData:i,index:e}))},r.prototype.getFortuneList=function(){var t=this.data.get("fortune_direction.list")||[],e=this.data.get("itemsPerRow"),n=this.data.get("itemGap");return this.data.set("cssVars",4===e?{}:{"--max-item-width":"calc("+100/e+"% - "+n+"px)"}),this.splitArrayToN(t,e)},r.prototype.splitArrayToN=function(t,e){for(var n=[],i=0;i
{{data.text}}
{{data.subText}}
测一测
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{data:{},order:-1}},o.prototype.handleBtnClick=function(){this.fire("btn-click",this.data.get("data"))},o.computed={},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports='
正在听
1. 未开启浏览器麦克风权限
可点击浏览器地址栏中的设置按钮,开启麦克风权限开关。
语音权限设置
2. 当前浏览器不支持语音
可更换Chrome、Edge、Safari等浏览器使用。
3. 台式机未插麦克风
请插入麦克风后使用语音搜索功能。
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=(0,a.__importDefault)(n(488)),s=(0,a.__importDefault)(n(491)),l=n(113),u=[1,1.5,2,1.5,1],s=(i=o.Component,(0,a.__extends)(c,i),c.prototype.initData=function(){return{showDialog:!1,isRecording:!1,barHeights:u.slice(),tooltipPosition:"bottom",tipContent:"点击开启语音输入",scene:"",spaceVoice:!1}},c.prototype.attached=function(){this._beforeUnloadHandler=this.handleBeforeUnload.bind(this),this._visibilityChangeHandler=this.handleVisibilityChange.bind(this),window.addEventListener("beforeunload",this._beforeUnloadHandler),document.addEventListener("visibilitychange",this._visibilityChangeHandler),this.initHoldSpaceTip()},c.prototype.detached=function(){this._beforeUnloadHandler&&window.removeEventListener("beforeunload",this._beforeUnloadHandler),this._visibilityChangeHandler&&document.removeEventListener("visibilitychange",this._visibilityChangeHandler),this._holdSpaceTipTimer&&(window.clearTimeout(this._holdSpaceTipTimer),this._holdSpaceTipTimer=null),this.stopOcclusionCheck(),this.resetRecording(!1)},c.prototype.initHoldSpaceTip=function(){this.data.get("spaceVoice")&&this.data.set("tipContent","点击或按住空格语音输入")},c.prototype.handleClick=function(){this.data.get("isRecording")?this.resetRecording():this.startRecording(undefined)},c.prototype.handleTipShow=function(){this.fire("tip-show",{})},c.prototype.startRecording=function(t){var e=this;this.data.get("isRecording")||(this._isEnding=!1,l.startRecorder)({onResult:function(t){return e.handleRecognition(t)},onAmplitude:function(t){return e.handleAmplitude(t)},onError:function(t){return e.handleRecognitionError(t)}}).then(function(){e.data.set("isRecording",!0),e.startOcclusionCheck(),e.fire("recording-start",t)})["catch"](function(t){console.error("语音录制启动失败",t),e.resetRecording(!1),e.data.set("showDialog",!0),e.fire("recording-error",{message:t.message||"语音输入启动失败"})})},c.prototype.handleRecognition=function(t){var e=t.text,t=t.type;if(t===l.RecognitionMessageType.FIN_TEXT)return this.data.get("isRecording")||this._isEnding?(e&&this.fire("recognized",e),void this.resetRecording(!1)):void 0;e&&t===l.RecognitionMessageType.MID_TEXT&&(this.data.get("isRecording")||this._isEnding)&&this.fire("recognized",e)},c.prototype.handleAmplitude=function(t){this.data.get("isRecording")&&this.data.set("barHeights",t)},c.prototype.handleRecognitionError=function(t){(this.data.get("isRecording")||this._isEnding)&&this.resetRecording(!1),this.fire("recording-error",t)},c.prototype.handleBeforeUnload=function(){this.data.get("isRecording")&&this.resetRecording()},c.prototype.handleVisibilityChange=function(){this.data.get("isRecording")&&document.hidden&&this.resetRecording()},c.prototype.handleDialogOk=function(){this.data.set("showDialog",!1)},c.prototype.checkInputOcclusion=function(){var t=this.el;if(!t)return!1;var e=t.getBoundingClientRect();if(0===e.width||0===e.height||e.bottom<0||e.top>window.innerHeight||e.right<0||e.left>window.innerWidth)return!0;var n=e.left+e.width/2,e=e.top+e.height/2,e=document.elementFromPoint(n,e);return!e||!t.contains(e)&&e!==t},c.prototype.startOcclusionCheck=function(){var t=this;this.stopOcclusionCheck(),this._occlusionCheckTimer=setInterval(function(){t.data.get("isRecording")&&t.checkInputOcclusion()&&t.resetRecording()},500)},c.prototype.stopOcclusionCheck=function(){this._occlusionCheckTimer&&(clearInterval(this._occlusionCheckTimer),this._occlusionCheckTimer=null)},c.prototype.resetRecording=function(t){void 0===t&&(t=!0);var e=this.data.get("isRecording");(e||this._isEnding)&&(this.data.set("isRecording",!1),this.data.set("barHeights",u.slice()),this.stopOcclusionCheck(),e&&(0,l.stopRecorder)(),(this._isEnding=t)||this.fire("recording-stop",{}))},c.trimWhitespace="all",c.components={"d-dialog":r["default"],"d-tooltip":s["default"]},c);function c(){var t=null!==i&&i.apply(this,arguments)||this;return t._beforeUnloadHandler=null,t._visibilityChangeHandler=null,t._occlusionCheckTimer=null,t._holdSpaceTipTimer=null,t._isEnding=!1,t}e["default"]=s},function(t,e){t.exports='
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{open:!1,title:"",okText:"",cancelText:"",closable:!0,maskClosable:!0,appendToBody:!0}},o.prototype.attached=function(){var e=this;this.watch("open",function(t){"undefined"!=typeof document&&(document.body.style.overflow=t?"hidden":"",t&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()),t&&e.data.get("appendToBody")&&e.nextTick(function(){var t=e.ref("wrapper");t&&t.parentNode!==document.body&&document.body.appendChild(t)})})},o.prototype.disposed=function(){"undefined"!=typeof document&&(document.body.style.overflow="")},o.prototype.handleClose=function(){this.data.set("open",!1),this.fire("close",{})},o.prototype.handleCancel=function(){this.data.set("open",!1),this.fire("cancel",{})},o.prototype.handleOk=function(){this.fire("ok",{})},o.prototype.handleMaskClick=function(){this.data.get("maskClosable")&&this.handleClose()},o.prototype.stopClick=function(t){var e;null!==(e=null==t?void 0:t.stopPropagation)&&void 0!==e&&e.call(t),null!==(e=null==t?void 0:t.preventDefault)&&void 0!==e&&e.call(t)},o.trimWhitespace="all",o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports='
{{ content }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{content:"",bottom:"",position:"bottom",isShowTooltip:!1}},o.prototype.showTooltip=function(){this.data.set("isShowTooltip",!0)},o.prototype.hideTooltip=function(){this.data.set("isShowTooltip",!1)},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports='
{{fileItem.fileName}}
{{fileItem.fileType}} {{formatBytes(fileItem.fileSize)}}
上传中 {{formatProgress(fileItem.progress)}}
点击文件重新上传
{{fileItem.fileName}}
{{fileItem.fileType}}
{{formatBytes(fileItem.fileSize)}}
{{getFileDesc(fileItem)}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=(0,a.__importDefault)(n(139)),n="https://psstatic.cdn.bcebos.com/basics/",s={PDF:n+"aichat/pdf-wise_1744600722000.png",Word:n+"aichat/word-wise_1744600783000.png",PPT:n+"aichat/ppt-wise_1744600745000.png",TXT:n+"aichat/txt-wise_1744600762000.png",Excel:n+"aichat/excel-wise_1744600701000.png",Code:n+"aichat/code_1753701401000.png",XML:n+"aichat/code_1753701401000.png",MD:n+"aichat/md_1775804217000.png",unknown:n+"aichat/unknow_1780031597000.png"},r=(i=o.Component,(0,a.__extends)(l,i),l.prototype.initData=function(){return{fileList:[],mergeUpload:!1,ubcLogFileAdd:!1,deleteIcon:"https://gips2.baidu.com/it/u=3959794902,1704569041&fm=3028&app=3028&f=PNG&fmt=auto&q=100&size=f40_40",uploadIcon:"https://psstatic.cdn.bcebos.com/basics/aichat/Rectangle279338212_1788338908000.png",loadingIcon:"https://gips0.baidu.com/it/u=1698361030,3674932214&fm=3028&app=3028&f=PNG&fmt=auto&q=100&size=f48_48",reuploadIcon:"https://psstatic.cdn.bcebos.com/basics/aichat/image-loading_1757410860000.png"}},l.prototype.attached=function(){var o=this;(this.data.get("fileList")||[]).some(function(t){return 0===t.status||1===t.status})&&this.nextTick(function(){o.ref("swiper").scrollToEnd()}),this.watch("fileList",function(t,e){var n=e.oldValue,i=o.data.get("curUploadType"),a=o.data.get("uploadFileMaxNum"),e=o.data.get("ubcLogFileAdd"),a=t.lengthn.length&&o.nextTick(function(){o.ref("swiper").scrollToEnd()})})},l.prototype.handlePanelBtnClick=function(){var t=this.data.get("panel");this.fire("click",t)},l.prototype.handleFileClick=function(t,e){this.dispatch("ui:input-file-click",e)},l.prototype.handleUploadClick=function(){var t=this.data.get("mergeUpload")?"all":this.data.get("fileList")[0].uploadType;this.dispatch("ui:input-upload",t)},l.prototype.formatBytes=function(t){if("[object Number]"!==Object.prototype.toString.call(t))return"0B";for(var e=-1;t>=Math.pow(1024,++e+1););return""+Math.round(t/Math.pow(1024,e)*100)/100+["B","KB","MB","GB"][e]},l.prototype.formatProgress=function(t){return Math.round(1e4*(t||0))/100+"%"},l.prototype.getFileIcon=function(t){return 0===t.status||1===t.status?this.data.get("uploadIcon"):2===t.status?s[t.fileType]||s.unknown:(t.status,this.data.get("reuploadIcon"))},l.prototype.getFileTypeIcon=function(t){return s[t.fileType]||s.unknown},l.prototype.getImageUrl=function(t){return 2===t.status?t.url:3===t.status?this.data.get("reuploadIcon"):this.data.get("uploadIcon")},l.prototype.getFileDesc=function(t){return 0===t.status||1===t.status?"上传中 "+Math.round(1e4*t.progress)/100+"%":2===t.status?t.fileType+" "+this.formatBytes(t.fileSize):3===t.status?"点击图标重新上传":""},l.prototype.handleDelete=function(t,e){t.stopPropagation(),t.preventDefault(),this.dispatch("ui:input-delete-file",e),this.sendFileLog("click","file_clear")},l.prototype.sendFileLog=function(t,e){this.fire("show-delete",{type:t,value:e})},l.trimWhitespace="all",l.components={swiper:r["default"]},l.computed={showAddFile:function(){var t=this.data.get("fileList"),e=this.data.get("uploadFileMaxNum");return t.length
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{showLeftButton:!1,showRightButton:!1,isScrolling:!1}},o.prototype.attached=function(){var t=this;setTimeout(function(){t.updateButtonVisibility()},50);var e=this.ref("scrollContainer");e&&(this.observer=new MutationObserver(function(){t.updateButtonVisibility()}),this.observer.observe(e,{childList:!0,subtree:!0}))},o.prototype.updateButtonVisibility=function(){var t,e,n=this.ref("scrollContainer");n&&n.ownerDocument&&(t=n.scrollLeft,e=n.scrollWidth,n=n.clientWidth,this.data.set("showLeftButton",0
{{ item.text }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=(0,a.__importDefault)(n(139)),n=(0,a.__importDefault)(n(509)),n=(i=o.Component,(0,a.__extends)(s,i),s.prototype.attached=function(){var t=this.data.get("curUploadType");this.fire("add-file-log",{type:"show",value:"file"===t?"file_guide_word":"pic_guide_word"})},s.prototype.initData=function(){return{fileGuideWords:[]}},s.prototype.handleSendQuery=function(t,e){var n=this.data.get("guideDisable"),i=this.data.get("fileAllFail");n||i||this.fire("send-file-query",{query:t.text,index:e,sa:t.sa})},s.components={"d-swiper":r["default"],"d-tooltip":n["default"]},s.messages={},s.computed={guideDisable:function(){var t=this.data.get("fileList");return!t||!t.length||!t.every(function(t){return 2===t.status||3===t.status})},fileAllFail:function(){return(this.data.get("fileList")||[]).every(function(t){return 3===t.status})},tooltipContent:function(){var t=this.data.get("fileAllFail"),e=this.data.get("guideDisable");return t?"文件上传失败,换个文件试试吧":e?"请等待上传完成后发送":""}},s);function s(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=n(0),o=(0,i.__importDefault)(n(512));var r=(s.prototype.debounce=function(t,e,n){var i=this;void 0===n&&(n=this.interval),this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(function(){t.bind(e)(),i.timer=null},n)},s.prototype.clean=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},s);function s(t){void 0===t&&(t=50),this.interval=50,this.timer=null,this.interval=t}var l,i=(l=a.Component,(0,i.__extends)(u,l),u.prototype.initData=function(){return{content:"",trigger:"hover",position:"top",disabled:!1,openDelay:0,closeDelay:0,open:!1,getPopupContainer:undefined,_ownerEl:undefined,_hoverTarget:!1,_hoverTooltip:!1,_platform:"pc",bubbleClass:""}},u.prototype.attached=function(){var e=this,n=this.el;this.data.set("_ownerEl",n),"custom"===this.data.get("trigger")?(this.data.get("open")&&this.beforeOpen(),this.watch("open",function(t){t?e.beforeOpen():e.beforeClose()})):this.data.get("disabled")||this.addListener(n),this.watch("disabled",function(t){t?(e.close(),e.removeListener()):e.addListener(n)});var t=this.data.get("getPopupContainer");t&&t()!==document.body||(this.pagePositionChange=function(){var t;e.data.get("open")&&null!==(t=e.tooltip)&&void 0!==t&&t.open()},"mobile"===this.data.get("_platform")?window.addEventListener("app_font_change",this.pagePositionChange):window.addEventListener("resize",this.pagePositionChange))},u.prototype.addListener=function(t){var e=this,n=this.data.get("trigger");"click"===n?(this.click=function(t){e.handleClick(t)},document.addEventListener("click",this.click)):"hover"===n&&(this.debounce=new r(10),this.mouseenter=function(){e.data.set("_hoverTarget",!0),e.beforeOpen()},this.mouseleave=function(){var t;e.data.set("_hoverTarget",!1),null!==(t=e.debounce)&&void 0!==t&&t.debounce(e.beforeClose,e)},t.addEventListener("mouseenter",this.mouseenter),t.addEventListener("mouseleave",this.mouseleave))},u.prototype.removeListener=function(){this.clearDelayTimer();var t=this.data.get("trigger");"click"===t&&this.click?document.removeEventListener("click",this.click):"hover"===t&&this.mouseenter&&this.mouseleave&&(null!=(t=this.el)&&t.removeEventListener("mouseenter",this.mouseenter),null!=t&&t.removeEventListener("mouseleave",this.mouseleave),null!==(t=this.debounce)&&void 0!==t&&t.clean())},u.prototype.detached=function(){this.removeListener(),this.pagePositionChange&&("mobile"===this.data.get("_platform")?window.removeEventListener("app_font_change",this.pagePositionChange):window.removeEventListener("resize",this.pagePositionChange))},u.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},u.prototype.toggle=function(){this.data.get("open")?this.beforeClose():this.beforeOpen()},u.prototype.close=function(){var t;null!==(t=this.tooltip)&&void 0!==t&&t.hide(),this.data.get("open")&&(this.fire("toggle",!1),this.data.set("open",!1))},u.prototype.open=function(){this.tooltip?this.tooltip.open():this.createTooltipTrigger(),this.fire("toggle",!0),this.data.set("open",!0)},u.prototype.createTooltipTrigger=function(){var e=this;this.tooltip=new o["default"]({owner:this,source:'\n \n \n \n '});var t=this.data.get("getPopupContainer"),t=t?t():document.body;this.tooltip.attach(t);t=null===(t=this.tooltip)||void 0===t?void 0:t.el;"hover"===this.data.get("trigger")&&(null!=t&&t.addEventListener("mouseenter",function(){e.data.set("_hoverTooltip",!0),e.beforeOpen()}),null!=t&&t.addEventListener("mouseleave",function(){e.data.set("_hoverTooltip",!1),e.beforeClose()})),this.nextTick(function(){var t;null!==(t=e.tooltip)&&void 0!==t&&t.open()})},u.prototype.delaySetTooltipVisible=function(t,e){this.delayTimer=setTimeout(function(){e()},t)},u.prototype.beforeOpen=function(){var e=this;if("custom"!==this.data.get("trigger")&&this.data.get("open")||this.data.get("disabled"))return!0;this.clearDelayTimer();var t=this.data.get("openDelay");return t?this.delaySetTooltipVisible(t,function(){var t=e.data.get("trigger");("hover"===t&&e.data.get("_hoverTarget")||"hover"!==t)&&e.open()}):this.open(),!1},u.prototype.beforeClose=function(){var t,e=this;"custom"!==this.data.get("trigger")&&!this.data.get("open")||this.data.get("_hoverTooltip")||this.data.get("_hoverTarget")||(t=this.data.get("closeDelay"),this.clearDelayTimer(),t?this.delaySetTooltipVisible(t,function(){e.close()}):this.close())},u.prototype.handleClick=function(t){var e=this.el,n=t.target;this.data.get("disabled")||(function(t){for(var e=t&&t.parentNode;e;){if("[object ShadowRoot]"===e.toString())return 1;e=e.parentNode}}(e)&&(n=(t=t.composedPath())&&t[0]),null!=e&&e.contains&&null!=e&&e.contains(n)?this.toggle():this.beforeClose())},u.prototype.updatePosition=function(){var t;this.data.get("open")&&null!==(t=this.tooltip)&&void 0!==t&&t.open()},u.trimWhitespace="all",u);function u(){return null!==l&&l.apply(this,arguments)||this}e["default"]=i},function(t,e){t.exports='
{{content}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),A={mobile:{welt:9,padding:9},pc:{welt:16,padding:8}},a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{content:"",position:"top",open:!1,getPopupContainer:undefined,bubbleClass:"",_ownerEl:undefined,_tipPosition:{}}},o.prototype.open=function(){this.data.set("_tipPosition",{});var t=this.data.get("_ownerEl"),e=this.data.get("position"),n=this.data.get("getPopupContainer"),i=n?n():document.body,a=i===document.body,o=this.ref("arrow").getBoundingClientRect(),n=i.getBoundingClientRect(),i=t.getBoundingClientRect();i.height&&i.width&&(t=this.el.getBoundingClientRect(),a=this.getPlacements(n,i,t,o,e,!0,a),this.data.set("_tipPosition",a),this.data.set("open",!0))},o.prototype.hide=function(){this.data.set("open",!1)},o.prototype.getVisibleHeight=function(t,e){var n=window.innerHeight;if(e)return n;e=t.top,t=t.bottom;if(n<=e||t<=0)return 0;e=Math.max(e,0);return Math.min(t,n)-e},o.prototype.getPlacements=function(t,e,n,i,a,o,r){var s={top:e.top-t.top,left:e.left-t.left,bottom:e.bottom-t.top,right:e.right-t.left,width:e.width,height:e.height},l=this.data.get("_platform"),u=n.width,c=n.height,p=null,d=null,h=null,g=null,f=null;switch(a){case"top-start":case"bottom-start":f=t.width-(p=s.left),h=15;break;case"top-end":case"bottom-end":d=t.width-s.right,f=s.right,g=15;break;case"left-start":case"left":case"left-end":d=t.width-s.left,f=s.left;break;case"right-start":case"right":case"right-end":f=t.width-(p=s.right);break;default:var p=s.left+s.width/2-u/2,f=t.width,m=n.width/2-i.width/2-15,v=n.width+p,b=0;p<0?b=p<-m?m:-p:v>t.width&&(b=t.width-v<-m?-m:t.width-v),p+=b;h=u/2-b-i.width/2,v=t.left-document.body.getBoundingClientRect().left+p,b=Math.abs(document.body.scrollWidth-t.left-p-n.width);0<=t.left&&vx||E&&C&&e.availableHeight===x||!E&&e.availableWidth>f||!E&&C&&e.availableWidth===f)return e}return{position:a,left:p,right:d,top:w,bottom:null,availableHeight:x,availableWidth:f,arrowTop:_,arrowRight:g,arrowBottom:y,arrowLeft:h}},o.trimWhitespace="all",o.filters={direction:function(t){return"cos-tooltip-"+(null==t?void 0:t.split("-")[0])}},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports=' '},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AI_SEARCH_ANIMATION_LAST_DATE=o.AI_SEARCH_CLICK_COUNT=o.INPUT_PANEL_BTN_CLICKED_GUIDE=void 0;var n=e(1),i=e(0),e=(0,n.__importDefault)(e(58));o.INPUT_PANEL_BTN_CLICKED_GUIDE="INPUT_PANEL_BTN_CLICKED_GUIDE",o.AI_SEARCH_CLICK_COUNT="AI_SEARCH_CLICK_COUNT",o.AI_SEARCH_ANIMATION_LAST_DATE="AI_SEARCH_ANIMATION_LAST_DATE";var a,e=(a=i.Component,(0,n.__extends)(r,a),r.prototype.initData=function(){return{panel:{},pos:0,isHover:!1,isShowGuide:!1,showHoverAnimation:!1,linerColorConfig:[{offset:"0%",color:"#fff",opacity:"1"},{offset:"30%",color:"#fff",opacity:"0.2"},{offset:"60%",color:"#6547FF",opacity:"0.4"},{offset:"90%",color:"#4769FF",opacity:"0.5"},{offset:"100%",color:"#0090FE",opacity:"0.7"}],btnIconUrl:"https://psstatic.cdn.bcebos.com/aife/static/wenAI_1761814195000.png"}},r.prototype.inited=function(){var t,e,n;"ai_search"===this.data.get("panel.type")&&(e=(t=this.data.get("panel.scrollTextList"))&&null!=t&&t.length?null===(e=t[0])||void 0===e?void 0:e.text:this.data.get("panel.text"),n=t&&null!=t&&t.length?null===(n=t[0])||void 0===n?void 0:n.url:this.data.get("panel.url"),this.data.set("panel.text",e),this.data.set("panel.url",n))},r.prototype.attached=function(){var t,n=this,e=this.data.get("panel");e.guide&&(t=this.checkShowGuide(),this.data.set("isShowGuide",t)),"base"===this.data.get("area")&&this.sendShowLog(),"ai_search"===(null==e?void 0:e.type)&&this.getAiSearchClickCount()<8&&this.shouldShowAnimationToday()&&setTimeout(function(){var t=document.querySelector("#chat-input-anime-video"),e=n.ref("border-animation");!t&&e&&(n.updateAnimationLastDate(),e.showIncomeAnimation())},100)},r.prototype.sendShowLog=function(){var t=this.data.get("panel");this.fire("show-log",{value:"ai_search"===(null==t?void 0:t.type)?"home_operate":"capsule_bub",ext:{area:this.data.get("area"),function_type:null==t?void 0:t.type,pos:this.data.get("pos"),content:this.data.get("panel.content")||this.data.get("panel.text"),function_list:[this.data.get("panel.content")||this.data.get("panel.text")]}})},r.prototype.handlePanelBtnClick=function(){var t,e=this.data.get("panel"),n="ai_search"===(null==e?void 0:e.type);if(n&&this.incrementAiSearchClickCount(),e.guide){this.data.set("isShowGuide",!1);var i={};try{var a=localStorage.getItem(o.INPUT_PANEL_BTN_CLICKED_GUIDE);a?(i=JSON.parse(a))[e.type]="1":((t={})[e.type]="1",i=t),localStorage.setItem(o.INPUT_PANEL_BTN_CLICKED_GUIDE,JSON.stringify(i))}catch(err){console.warn(err)}}n=n?this.rightClick?"right":"left":this.data.get("area");this.rightClick=undefined,this.fire("click",{panel:e,pos:this.data.get("pos"),content:this.data.get("panel.content")||this.data.get("panel.text"),area:n})},r.prototype.checkShowGuide=function(){var t=this.data.get("panel");if(t.guide)try{var e=localStorage.getItem(o.INPUT_PANEL_BTN_CLICKED_GUIDE),n=e&&JSON.parse(e)||{};return!e||!n[t.type]}catch(err){return console.warn(err),!1}return!1},r.prototype.showHover=function(){var t=this.data.get("panel");this.data.set("isHover",!0),this.fire("hover",t);t=this.ref("border-animation");t&&(this.setBorderAnimationInfo(),t.showHover())},r.prototype.hideHover=function(){this.data.set("isHover",!1);var t=this.ref("border-animation");t&&t.hideHover()},r.prototype.getAiSearchClickCount=function(){try{var t=localStorage.getItem(o.AI_SEARCH_CLICK_COUNT);return t?parseInt(t,10):0}catch(err){return console.warn("Failed to get AI search click count:",err),0}},r.prototype.incrementAiSearchClickCount=function(){try{var t=this.getAiSearchClickCount();localStorage.setItem(o.AI_SEARCH_CLICK_COUNT,String(t+1))}catch(err){console.warn("Failed to increment AI search click count:",err)}},r.prototype.shouldShowAnimationToday=function(){try{var t=localStorage.getItem(o.AI_SEARCH_ANIMATION_LAST_DATE),e=(new Date).toDateString();return!t||t!==e}catch(err){return console.warn("Failed to check animation last date:",err),!0}},r.prototype.updateAnimationLastDate=function(){try{var t=(new Date).toDateString();localStorage.setItem(o.AI_SEARCH_ANIMATION_LAST_DATE,t)}catch(err){console.warn("Failed to update animation last date:",err)}},r.prototype.handleRightBtnClick=function(){this.rightClick=!0},r.prototype.setBorderAnimationInfo=function(){var t=this.ref("ai-search-btn");t&&(this.data.set("aiSearchWidth",t.offsetWidth),this.data.set("aiSearchHeight",t.offsetHeight))},r.trimWhitespace="all",r.components={"border-animation-svg":e["default"]},r);function r(){return null!==a&&a.apply(this,arguments)||this}o["default"]=e},function(t,e){t.exports=' '},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{id:"",type:"hover",width:0,height:0,padding:5,borderRadius:0,strokeWidth:1,linerColorConfig:[]}},o.prototype.showIncomeAnimation=function(){var t,e,n,i=this,a=this.ref("animation-rect"),o=this.data.get("incomeAnimationId");a&&(n=null,/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(t=document.querySelector("#"+o),e=0,n=setInterval(function(){e=(e+2)%360,t.setAttribute("gradientTransform","rotate("+e+" .5 .5)")},30)),a.setAttribute("stroke","url(#"+o+")"),a.style.opacity="1",setTimeout(function(){a.style.transition="opacity 1s ease-in",a.style.opacity="0"},2500),setTimeout(function(){a.style.opacity="",a.style.transition="",i.switchHoverAnimation(),n&&clearInterval(n)},3500))},o.prototype.switchHoverAnimation=function(){var t,e=this.ref("animation-rect");e&&(t=this.data.get("hoverAnimationId"),e.setAttribute("stroke","url(#"+t+")"),this.data.set("type","hover"))},o.prototype.showHover=function(){var t,e,n,i,a,o,r,s=this;"hover"===this.data.get("type")&&(t=this.ref("animation-rect"),e=this.data.get("hoverAnimationId"),n=document.querySelector("#"+e),t&&(t.style.transition="400ms ease-in opacity",t.style.opacity="1",i=.45,o=!(a=null),r=function(t){var e=t-(a=a||t);a=t,o&&(s.hoverAngle=(s.hoverAngle+i*e)%360,n.setAttribute("gradientTransform","rotate("+s.hoverAngle+" .5 .5)")),o&&requestAnimationFrame(r)},requestAnimationFrame(r),setTimeout(function(){i=.045},800),this.animationRunning=o,this.stopAnimation=function(){o=!1}))},o.prototype.hideHover=function(){var t;"hover"===this.data.get("type")&&((t=this.ref("animation-rect"))&&(t.style.transition="160ms ease-in opacity",t.style.opacity="0"),this.stopAnimation&&this.stopAnimation())},o.trimWhitespace="all",o.computed={svgWidth:function(){var t=this.data.get("padding"),e=this.data.get("width");return 2*Number(t)+Number(e)},svgHeight:function(){var t=this.data.get("padding"),e=this.data.get("height");return 2*Number(t)+Number(e)}},o);function o(){var t=null!==i&&i.apply(this,arguments)||this;return t.hoverAngle=0,t}e["default"]=a},function(t,e){t.exports=' '},function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AI_SEARCH_ANIMATION_LAST_DATE=o.AI_SEARCH_CLICK_COUNT=o.INPUT_PANEL_BTN_CLICKED_GUIDE=void 0;var n=e(1),i=e(0),a=(0,n.__importDefault)(e(58)),r=(0,n.__importDefault)(e(523));o.INPUT_PANEL_BTN_CLICKED_GUIDE="INPUT_PANEL_BTN_CLICKED_GUIDE",o.AI_SEARCH_CLICK_COUNT="AI_SEARCH_CLICK_COUNT",o.AI_SEARCH_ANIMATION_LAST_DATE="AI_SEARCH_ANIMATION_LAST_DATE";var s,a=(s=i.Component,(0,n.__extends)(l,s),l.prototype.initData=function(){return{panel:{},pos:0,isHover:!1,isShowGuide:!1,showHoverAnimation:!1,aiSearchTextCarouselSample:!1,aiSearchTextRandomSample:!1,linerColorConfig:[{offset:"0%",color:"#fff",opacity:"1"},{offset:"30%",color:"#fff",opacity:"0.2"},{offset:"60%",color:"#6547FF",opacity:"0.4"},{offset:"90%",color:"#4769FF",opacity:"0.5"},{offset:"100%",color:"#0090FE",opacity:"0.7"}],btnIconUrl:"https://psstatic.cdn.bcebos.com/aife/static/wenAI_1761814195000.png"}},l.prototype.inited=function(){var t,e,n;"ai_search"===this.data.get("panel.type")&&(e=(t=this.data.get("panel.scrollTextList"))&&null!=t&&t.length?null===(e=t[0])||void 0===e?void 0:e.text:this.data.get("panel.text"),n=t&&null!=t&&t.length?null===(n=t[0])||void 0===n?void 0:n.url:this.data.get("panel.url"),this.data.set("panel.text",e),this.data.set("panel.url",n))},l.prototype.attached=function(){var t,e,n=this,i=this.data.get("panel");i.guide&&(e=this.checkShowGuide(),this.data.set("isShowGuide",e)),"base"===this.data.get("area")&&this.sendShowLog(),"ai_search"!==(null==i?void 0:i.type)||!this.data.get("aiSearchTextCarouselSample")||1<(null==(t=this.data.get("panel.scrollTextList"))?void 0:t.length)&&((e=this.ref("carousel-container"))&&(this._carousel=new r["default"](e,{texts:t,interval:4e3,animationTime:400,containerHeight:20,itemHeight:20},{onItemChange:function(t){n.data.set("panel.url",t.url||n.data.get("panel.url"))}}))),"ai_search"===(null==i?void 0:i.type)&&this.getAiSearchClickCount()<8&&this.shouldShowAnimationToday()&&setTimeout(function(){var t=document.querySelector("#chat-input-anime-video"),e=n.ref("border-animation");!t&&e&&(n.updateAnimationLastDate(),e.showIncomeAnimation())},100)},l.prototype.disposed=function(){this._carousel&&(this._carousel.destroy(),this._carousel=null)},l.prototype.sendShowLog=function(){var t=this.data.get("panel");this.fire("show-log",{value:"ai_search"===(null==t?void 0:t.type)?"home_operate":"capsule_bub",ext:{area:this.data.get("area"),function_type:null==t?void 0:t.type,pos:this.data.get("pos"),content:this.data.get("panel.content")||this.data.get("panel.text"),function_list:[this.data.get("panel.content")||this.data.get("panel.text")]}})},l.prototype.handlePanelBtnClick=function(){var t,e=this.data.get("panel"),n="ai_search"===(null==e?void 0:e.type);if(n&&this.incrementAiSearchClickCount(),e.guide){this.data.set("isShowGuide",!1);var i={};try{var a=localStorage.getItem(o.INPUT_PANEL_BTN_CLICKED_GUIDE);a?(i=JSON.parse(a))[e.type]="1":((t={})[e.type]="1",i=t),localStorage.setItem(o.INPUT_PANEL_BTN_CLICKED_GUIDE,JSON.stringify(i))}catch(err){console.warn(err)}}n=n?this.rightClick?"right":"left":this.data.get("area");this.rightClick=undefined,this.fire("click",{panel:e,pos:this.data.get("pos"),content:this.data.get("panel.content")||this.data.get("panel.text"),area:n})},l.prototype.checkShowGuide=function(){var t=this.data.get("panel");if(t.guide)try{var e=localStorage.getItem(o.INPUT_PANEL_BTN_CLICKED_GUIDE),n=e&&JSON.parse(e)||{};return!e||!n[t.type]}catch(err){return console.warn(err),!1}return!1},l.prototype.showHover=function(){var t=this.data.get("panel");this.data.set("isHover",!0),this.fire("hover",t);t=this.ref("border-animation");t&&(this.setBorderAnimationInfo(),t.showHover())},l.prototype.hideHover=function(){this.data.set("isHover",!1);var t=this.ref("border-animation");t&&t.hideHover()},l.prototype.getAiSearchClickCount=function(){try{var t=localStorage.getItem(o.AI_SEARCH_CLICK_COUNT);return t?parseInt(t,10):0}catch(err){return console.warn("Failed to get AI search click count:",err),0}},l.prototype.incrementAiSearchClickCount=function(){try{var t=this.getAiSearchClickCount();localStorage.setItem(o.AI_SEARCH_CLICK_COUNT,String(t+1))}catch(err){console.warn("Failed to increment AI search click count:",err)}},l.prototype.shouldShowAnimationToday=function(){try{var t=localStorage.getItem(o.AI_SEARCH_ANIMATION_LAST_DATE),e=(new Date).toDateString();return!t||t!==e}catch(err){return console.warn("Failed to check animation last date:",err),!0}},l.prototype.updateAnimationLastDate=function(){try{var t=(new Date).toDateString();localStorage.setItem(o.AI_SEARCH_ANIMATION_LAST_DATE,t)}catch(err){console.warn("Failed to update animation last date:",err)}},l.prototype.handleRightBtnClick=function(){this.rightClick=!0},l.prototype.setBorderAnimationInfo=function(){var t=this.ref("ai-search-btn");t&&(this.data.set("aiSearchWidth",t.offsetWidth),this.data.set("aiSearchHeight",t.offsetHeight))},l.trimWhitespace="all",l.components={"border-animation-svg":a["default"]},l);function l(){var t=null!==s&&s.apply(this,arguments)||this;return t._carousel=null,t}o["default"]=a},function(t,e,n){"use strict";function a(t){return''+t+""}Object.defineProperty(e,"__esModule",{value:!0}),e.processTextWithGradient=void 0,e.processTextWithGradient=a;var i=(o.prototype.next=function(){var e,n,t,i,a,o=this;this.isAnimating||this.config.texts.length<=1||(this.isAnimating=!0,e=this.textElements[this.currentIndex],n=(this.currentIndex+1)%this.config.texts.length,t=this.textElements[n],i=function(t){t.target===e&&"transform"===t.propertyName&&(e.removeEventListener("transitionend",i),e.style.transition="none",e.style.transform="translateY("+o.config.itemHeight+"px)",e.style.opacity="0",e.offsetHeight,e.style.transition="transform "+o.config.animationTime+"ms ease, opacity "+o.config.animationTime+"ms ease",o.currentIndex=n,o.isAnimating=!1,o.callbacks.onItemChange&&o.callbacks.onItemChange(o.config.texts[o.currentIndex],o.currentIndex),o.config.autoPlay&&!o.isPaused&&o.executeCarousel())},e.addEventListener("transitionend",i),a=this.config.animationTime,e.style.transition="transform "+a+"ms ease-in-out, opacity "+a+"ms ease-in-out",t.style.transition="transform "+a+"ms ease-in-out, opacity "+a+"ms ease-in-out",e.style.transform="translateY(-"+this.config.itemHeight+"px)",e.style.opacity="0",t.style.transform="translateY(0)",t.style.opacity="1")},o.prototype.start=function(){this.config.texts.length<=1||(this.isPaused=!1,this.executeCarousel())},o.prototype.pause=function(){this.isPaused=!0,this.timer&&(clearTimeout(this.timer),this.timer=null)},o.prototype.resume=function(){this.config.autoPlay&&(this.isPaused=!1,this.executeCarousel())},o.prototype.stop=function(){this.pause(),this.config.autoPlay=!1},o.prototype.updateTexts=function(t){this.config.texts=t,this.currentIndex=0,this.setupContainer(),this.createTextElements(),this.config.autoPlay&&1
{{ showContent }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),l=n(527),u=n(6),a=(i=o.Component,(0,a.__extends)(c,i),c.prototype.initData=function(){return{content:"",initContent:"",top:"",maxWidth:"",isShowInit:!1,isHovering:!1,anchor:"center",position:"top",actualPosition:"top",autoFlipRightEdge:!1,buttonTipsDays:[4,8]}},c.prototype.attached=function(){var t=this;if(this.data.get("initContent")){var e,n=!1;try{var i=Number(localStorage.getItem(l.ASK_AI_VISITED_TIMES_KEY)),a=this.data.get("buttonTipsDays"),o=localStorage.getItem(l.TOOLTIP_LAST_SHOWN_DATE_KEY),r=(new Date).toISOString().split("T")[0];i?o!==r?(i++,a.includes(String(i))&&(n=!0),localStorage.setItem(l.ASK_AI_VISITED_TIMES_KEY,i),localStorage.setItem(l.TOOLTIP_LAST_SHOWN_DATE_KEY,r)):this.data.set("initContent",""):(n=!0,i=1,localStorage.setItem(l.ASK_AI_VISITED_TIMES_KEY,i),localStorage.setItem(l.TOOLTIP_LAST_SHOWN_DATE_KEY,r))}catch(s){console.log(s)}n&&(n=!!document.querySelector(".firework-canvas"),e=function(){t.data.set("isShowInit",!0),window.setTimeout(function(){t.data.set("isShowInit",!1),t.data.set("initContent","")},3e3)},n?(this.fireworkListener=function(){e(),t.fireworkListener&&(u.$&&(0,u.$)(window).off(c.FIREWORK_FINISHED_EVENT,t.fireworkListener),t.fireworkListener=null)},u.$&&(0,u.$)(window).on(c.FIREWORK_FINISHED_EVENT,this.fireworkListener)):e())}},c.prototype.detached=function(){this.fireworkListener&&(u.$&&(0,u.$)(window).off(c.FIREWORK_FINISHED_EVENT,this.fireworkListener),this.fireworkListener=null),this.data.set("isShowInit",!1),this.data.set("initContent","")},c.prototype.showTooltip=function(){var t=this;this.data.set("initContent",""),this.data.set("actualPosition",this.data.get("position")),this.data.set("isHovering",!0),this.fire("hover",{}),this.nextTick(function(){t.autoFlipRightEdge()})},c.prototype.hideTooltip=function(){this.data.set("isHovering",!1)},c.prototype.autoFlipRightEdge=function(){var t;!this.data.get("autoFlipRightEdge")||"right"!==this.data.get("position")||(t=null===(t=this.el)||void 0===t?void 0:t.querySelector("."+this.data.get("$style").tooltip))&&(t=t.getBoundingClientRect(),window.innerWidth-t.right<24&&this.data.set("actualPosition","left"))},c.trimWhitespace="all",c.FIREWORK_FINISHED_EVENT="festival-firework-finished",c.computed={getAnchorStyle:function(){return this.data.get("$style")["anchor-"+this.data.get("anchor")]},getPositionStyle:function(){return this.data.get("$style")["position-"+this.data.get("actualPosition")]},getTooltipStyle:function(){var t=this.data.get("top"),e=this.data.get("maxWidth"),n="";return t&&(n+="top: "+t+"px;"),e&&(n+="max-width: "+e+"px;"),n},showContent:function(){var t=this.data.get("isHovering"),e=this.data.get("content"),n=this.data.get("initContent");return t?e:n}},c);function c(){var t=null!==i&&i.apply(this,arguments)||this;return t.fireworkListener=null,t}e["default"]=a},function(t,e){t.exports='
{{ fileNameBase }}{{ newStyle ? fileNameExt : \'\' }}{{ fileNameExt }} {{ message }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{visible:!1,isView:!1,message:"",fileNameBase:"",fileNameExt:"",newStyle:!1,showIcon:!1,duration:2e3,timer:null}},o.prototype.show=function(){var e=this;document.body.appendChild(this.el),this.data.set("visible",!0),this.nextTick(function(){e.data.set("isView",!0),clearTimeout(e.data.get("timer"));var t=setTimeout(function(){e.hide()},e.data.get("duration"));e.data.set("timer",t)})},o.prototype.hide=function(){var t=this;this.data.set("isView",!1);var e=setTimeout(function(){t.data.set("visible",!1)},300);clearTimeout(this.data.get("timer")),clearTimeout(e),this.data.set("timer",null)},o.trimWhitespace="all",o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports='
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{afxUrl:"https://psstatic.cdn.bcebos.com/basics/chat/afx 2_1750155358000.mp4",bgWidth:"100%",bgHeight:"100%",imgType:"",supportPropagation:!1,inView:!0,autoplay:!0,loop:!1,alphaDirection:"left",resourceWidth:400,resourceHeight:400,hasPlay:!1}},o.prototype.attached=function(){var i=this;this.data.get("afxUrl")?this.nextTick(function(){i.createVideoElement();var e=i.video;i.videoEventListener(e,"play"),i.videoEventListener(e,"pause"),i.videoEventListener(e,"ended");var n=i.ref("canvas");i.canvas=n,i.bindInitAnimation=i.initCanPlayThrough.bind(i),i.bindHandleNotLoopEnded=i.handleNotLoopEnded.bind(i),i.video.addEventListener("canplaythrough",i.bindInitAnimation,{once:!0}),i.video.addEventListener("ended",i.bindHandleNotLoopEnded),i.watch("afxUrl",function(t){i.video.pause(),i.video.src=t,i.video.load(),i.data.get("autoplay")&&i.data.get("inView")&&(i.initAnimation(n,e),i.frameDrawHandler=i.frameDrawHandler||i.prepareFrameDraw(i.gl,i.posBuffer,i.videoTexture,e),i.playVideo(e))})}):console.error("[component animation-video]: afxUrl is required")},o.prototype.detached=function(){var t;null!==(t=this.video)&&void 0!==t&&t.removeEventListener("canplaythrough",this.bindInitAnimation),null!==(t=this.video)&&void 0!==t&&t.removeEventListener("ended",this.bindHandleNotLoopEnded),clearTimeout(this.timer),this.timer=null},o.prototype.initCanPlayThrough=function(){var e=this,n=this.video;this.initAnimation(this.canvas,n),this.frameDrawHandler=this.frameDrawHandler||this.prepareFrameDraw(this.gl,this.posBuffer,this.videoTexture,n),this.data.get("autoplay")&&this.data.get("inView")&&this.playVideo(n),this.watch("inView",function(t){t&&n&&e.playVideo(n)})},o.prototype.playVideo=function(t){!t||(t=t.play())&&t["catch"](function(t){console.error("animation video play error",t)})},o.prototype.createVideoElement=function(){var t,e=document.createElement("video");e.muted=!0,e.volume=0,e.setAttribute("crossorigin","anonymous"),e.setAttribute("webkit-playsinline","true"),e.setAttribute("playsinline","true"),e.setAttribute("x-webkit-airplay","true"),e.setAttribute("t7-video-player-type","inline"),this.data.get("loop")&&e.setAttribute("loop",""),e.src=this.data.get("afxUrl"),e.load(),e.style.display="none",null!==(t=null===document||void 0===document?void 0:document.body)&&void 0!==t&&t.appendChild(e),this.video=e},o.prototype.handleNotLoopEnded=function(){},o.prototype.videoEventListener=function(t,e){var n=this;t&&t.addEventListener(e,function(){var t;"play"===e?null!==(t=n.frameDrawHandler)&&void 0!==t&&t.startFrameUpdate():"pause"!==e&&"ended"!==e||null!==(t=n.frameDrawHandler)&&void 0!==t&&t.stopFrameUpdate()},!1)},o.prototype.safeNumber=function(t){return isNaN(parseInt(t,10))?0:parseInt(t,10)},o.prototype.initAnimation=function(t,e){if(t&&e){var n=this.data.get("alphaDirection"),i=this.safeNumber(this.data.get("resourceWidth")),a=this.safeNumber(this.data.get("resourceHeight"));t.width=Math.ceil(i/2),t.height=a;e=t.getContext("webgl");if(!e)throw"WebGLRenderingContext Error";e.viewport(0,0,t.width,t.height),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT);i=this.createVertexBuffer(e,[-1,-1,1,-1,-1,1,1,1]),a=this.createProgram(e,"\n attribute vec2 position;\n varying vec2 v_Texcoord;\n void main() {\n v_Texcoord = (position + 1.0) * 0.5;\n gl_Position = vec4(position, 0.0, 1.0);\n }\n","\n precision highp float;\n uniform sampler2D tex;\n varying vec2 v_Texcoord;\n uniform int alphaDirection; // alpha 通道的方向,为 0 时表示 alpha 通道在左边,为 1 时,表示 alpha 通道在右边\n void main() {\n // 取左边画面的像素\n vec2 left = v_Texcoord * vec2(0.5, 1.0);\n\n // 取右边画面的像素\n vec2 right = v_Texcoord * vec2(0.5, 1.0) + vec2(0.5, 0.0);\n\n if (alphaDirection == 1) {\n vec3 rgb = texture2D(tex, left).rgb;\n float a = texture2D(tex, right).r;\n gl_FragColor = vec4(rgb, a);\n }\n else {\n vec3 rgb = texture2D(tex, right).rgb;\n float a = texture2D(tex, left).r;\n gl_FragColor = vec4(rgb, a);\n }\n }\n");a&&i&&(t=e.getUniformLocation(a,"tex"),e.useProgram(a),this.setVertexBuffer(e,a,"position",i,2),e.uniform1i(t,0),a=e.getUniformLocation(a,"alphaDirection"),e.uniform1i(a,"right"===n?1:0),this.videoTexture=this.createImageTexture(e),this.gl=e,this.posBuffer=i)}},o.prototype.createVertexBuffer=function(t,e){var n=t.createBuffer();return e&&this.updateVertexBuffer(t,n,e),n},o.prototype.updateVertexBuffer=function(t,e,n){t.bindBuffer(t.ARRAY_BUFFER,e),n instanceof Array&&(n=new Float32Array(n)),t.bufferData(t.ARRAY_BUFFER,n,t.STATIC_DRAW)},o.prototype.createProgram=function(e,t,n){var i=e.createShader(e.VERTEX_SHADER),a=e.createShader(e.FRAGMENT_SHADER);if(!i||!a)return null;e.shaderSource(i,t),e.shaderSource(a,n),e.compileShader(i),e.compileShader(a),[i,a].forEach(function(t){e.getShaderParameter(t,e.COMPILE_STATUS)});n=e.createProgram();return n?(e.attachShader(n,i),e.attachShader(n,a),e.linkProgram(n),n):null},o.prototype.setVertexBuffer=function(t,e,n,i,a){t.bindBuffer(t.ARRAY_BUFFER,i);n=t.getAttribLocation(e,n);t.enableVertexAttribArray(n),t.vertexAttribPointer(n,a,t.FLOAT,!1,0,0)},o.prototype.createImageTexture=function(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.bindTexture(t.TEXTURE_2D,null),e},o.prototype.prepareFrameDraw=function(t,e,n,i){var a=t.UNSIGNED_BYTE,o=null,r=function(){o=(i.readyState
{{buttonTextMap && buttonTextMap[button.optionType] ? buttonTextMap[button.optionType] : button.defaultText}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),n=(0,a.__importDefault)(n(537)),r={constellation:"directive-panel",gender:"directive-panel"},n=(i=o.Component,(0,a.__extends)(s,i),s.prototype.initData=function(){return{numeroButtonData:[],openPanelType:"",openType:"",panelComponents:r,buttonTextMap:{constellation:"",gender:"",birthplace:null,birthday:""},downImg:"https://psstatic.cdn.bcebos.com/aife/image/12_12_1760441491000.png",upImg:"https://psstatic.cdn.bcebos.com/aife/image/upas_1760441610000.png"}},s.prototype.attached=function(){var i=this,t=this.data.get("numeroButtonData");this.nextTick(function(){t.forEach(function(t){var e,n=t.data[0];n.value&&((e=(0,a.__assign)({},i.data.get("buttonTextMap")))[t.optionType]=n.value,i.data.set("buttonTextMap",e))})})},s.prototype.detached=function(){window.removeEventListener("resize",this.listener),this.listener&&document.removeEventListener("click",this.listener,!0)},s.prototype.ubcClickLog=function(t){return JSON.stringify({value:"",ubcExt:{button_text:t}})},s.prototype.handleButtonClick=function(t,e){var n=t.optionType,i=this.data.get("openType");this.sendUbcLog("click","searchkuang_option",{function_type:this.data.get("openPanelType"),function_pos:e+1,option_type:n,button_text:t.defaultText}),i===n?this.closePanel(n):(i&&this.closePanel(i),this.openPanel(n))},s.prototype.getNumeroBtnVal=function(t){return(null==t?void 0:t.data[0]).value},s.prototype.getNumeroInfo=function(){var t=this.data.get("numeroButtonData")||[],i=this.data.get("buttonTextMap")||{};return t.map(function(t){var e=t.defaultText,n=t.optionType;return{optionType:n,type:e,text:i[n]||t.defaultText,value:i[n]}})},s.prototype.openPanel=function(i){var t,a=this;this.listener&&document.removeEventListener("click",this.listener,!0),this.data.get("openType")!==i&&((t=this.data.get("openType"))&&this.closePanel(t),this.data.set("openType",i),this.listener=function(t){var e=document.querySelector("#numero-panel-"+i),n=t.target.closest("#numero-button-container-"+i);!e||e.contains(t.target)||n||a.closePanel(i)},document.addEventListener("click",this.listener,{capture:!0}))},s.prototype.closePanel=function(t){this.data.get("openType")===t&&(this.data.set("openType",""),this.listener&&document.removeEventListener("click",this.listener,!0))},s.prototype.handlePanelAction=function(t){var e;this.data.get("openType")===t.type&&((e=(0,a.__assign)({},this.data.get("buttonTextMap")||{}))[t.type]=t.text,this.data.set("buttonTextMap",e))},s.prototype.sendUbcLog=function(e,n,i){void 0===i&&(i={}),window.require(["superman/components/ubc"],function(t){t=new t.Ubc(window.require,{ubcid:18463});"click"===e?null!=t&&t.sendClickLog(n,i):"show"===e?null!=t&&t.sendShowLog(n,i):null!=t&&t.sendLog(e,n,i)})},s.components={"directive-panel":n["default"]},s);function s(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports="

{{title}}

"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),o={"选择性别":"gender","选择星座":"constellation"},n=(i=n.Component,(0,a.__extends)(r,i),r.prototype.initData=function(){return{panelData:[],selectedDirectiveButtons:{}}},r.prototype.attached=function(){var t=this.data.get("numeroBtnValue");this.data.set("selectedButton",t)},r.prototype.handleBtnClick=function(t){var e=this.data.get("panelData")[0],n=o[e.text],e=(0,a.__assign)({},this.data.get("selectedDirectiveButtons")||{});e[n]=t,this.data.set("selectedDirectiveButtons",e),this.fire("panel-action",{text:t,type:n})},r.components={},r.computed={buttonList:function(){var t=this.data.get("panelData")[0];switch(t.text){case"选择星座":return t.constellationData;case"选择性别":return t.subMenu;default:return[]}},title:function(){return this.data.get("panelData")[0].text||""},selectedButton:function(){var t=this.data.get("panelData")[0],t=o[t.text];return this.data.get("selectedDirectiveButtons")[t]||""}},r);function r(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports='
{{ musicButtonActiveValue[button.optionType].text | buttonText(button.defaultText) }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),n=(0,a.__importDefault)(n(543)),r={musicStyle:"cs-music-tooltip",timbre:"cs-music-tooltip",wordMethod:"cs-music-tooltip"},s={musicStyle:"选择曲风",timbre:"选择音色",wordMethod:"选择生成方式"},n=(i=o.Component,(0,a.__extends)(l,i),l.prototype.initData=function(){return{musicButtonData:[],openPanelType:"",musicButtonsComponents:r,musicButtonsTitles:s,musicButtonActiveValue:{musicStyle:{},timbre:{},wordMethod:{text:"AI写歌词"}},downImg:"https://psstatic.cdn.bcebos.com/aife/image/12_12_1760441491000.png",upImg:"https://psstatic.cdn.bcebos.com/aife/image/upas_1760441610000.png"}},l.prototype.attached=function(){var e=this;this.watch("musicButtonActiveValue",function(t){Array.isArray(t)&&(t=t.reduce(function(t,e){return e&&e.type&&(t[e.type]=e),t},{}),e.data.set("musicButtonActiveValue",(0,a.__assign)({},t)))})},l.prototype.detached=function(){window.removeEventListener("resize",this.listener),this.listener&&document.removeEventListener("click",this.listener,!0),this.listener=null},l.prototype.getFirstOptionText=function(e){var t=this.data.get("musicButtonData").find(function(t){return t.optionType===e});return t&&Array.isArray(t.data)&&t.data[0]&&t.data[0].text||""},l.prototype.sendUbcLog=function(e,n,i){void 0===i&&(i={}),window.require(["superman/components/ubc"],function(t){t=new t.Ubc(window.require,{ubcid:18463});"click"===e?null!=t&&t.sendClickLog(n,i):"show"===e?null!=t&&t.sendShowLog(n,i):null!=t&&t.sendLog(e,n,i)})},l.prototype.openPanel=function(i){var t,a=this;this.listener&&document.removeEventListener("click",this.listener,!0),this.data.get("openType")!==i&&((t=this.data.get("openType"))&&this.closePanel(t),this.data.set("openType",i),this.listener=function(t){var e=document.querySelector("#music-panel-"+i),n=t.target.closest("#music-button-container-"+i);!e||e.contains(t.target)||n||a.closePanel(i)},document.addEventListener("click",this.listener,{capture:!0}))},l.prototype.closePanel=function(t){this.data.get("openType")===t&&(this.data.set("openType",""),this.listener&&document.removeEventListener("click",this.listener,!0))},l.prototype.handleButtonClick=function(t,e){var n=t.optionType,i=this.data.get("openType");this.sendUbcLog("click","searchkuang_option",{function_type:this.data.get("openPanelType"),function_pos:e+1,option_type:n,button_text:t.defaultText}),i===n?this.closePanel(n):(i&&this.closePanel(i),this.openPanel(n))},l.prototype.getMusicBtnVal=function(t){return(null==t?void 0:t.data[0]).value},l.prototype.handleMusicButtonClick=function(e){switch(e.optionType){case"musicStyle":this.data.apply("musicButtonActiveValue",function(t){return(0,a.__assign)((0,a.__assign)({},t),{musicStyle:e})});break;case"timbre":this.data.apply("musicButtonActiveValue",function(t){return(0,a.__assign)((0,a.__assign)({},t),{timbre:e})});break;case"wordMethod":this.data.apply("musicButtonActiveValue",function(t){return(0,a.__assign)((0,a.__assign)({},t),{wordMethod:e})}),this.data.set("musicPlaceHolder",e.inputPanelText)}},l.filters={buttonText:function(t,e){return[this.getFirstOptionText("musicStyle"),this.getFirstOptionText("timbre")].includes(t)||!t?e:t}},l.components={"cs-music-tooltip":n["default"]},l);function l(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports="

{{ title }}

{{ item.text }}
"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),n=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{title:"",optionType:"",musicData:{},activeValue:{}}},o.prototype.showActiveItemClass=function(t,e){var n=this.data.get("musicData.defaultText"),i=this.data.get("musicData.data"),i=i&&i[0]&&i[0].text||"";return null!=t&&t.text?t.text===e.text:[i,n].includes(e.text)},o.prototype.handleBtnClick=function(t){this.fire("btn-click",(0,a.__assign)({optionType:this.data.get("optionType")},t))},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports='
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(1),a=n(0),n=(0,r.__importDefault)(n(547)),n=(i=a.Component,(0,r.__extends)(o,i),o.prototype.initData=function(){return{drawButtonsData:[],drawButtonActiveValue:{style:{},ratio:{},recommend:{}}}},o.prototype.handleDrawButtonClick=function(t){switch(t.optionType){case"recommend":this.fire("add-input-content",{word:t.text,noClear:!0});break;case"style":this.data.set("drawButtonActiveValue.style",t);break;case"ratio":this.data.set("drawButtonActiveValue.ratio",t)}},o.prototype.handleDrawButtonsSettings=function(t){var e,n;"init"===t.type?this.data.set("drawButtonsData",t.pictureOptions):"show"===t.type?(e=(n=t||{}).openPanelMode,n=void 0===(n=n.extData)?{}:n,this.fire("outside-panel-click",{needShowPlaceholder:!1,openPanelMode:void 0===e?"":e}),n=n.aiPictureCreate||{},this.handleInvalidDrawData(n)):"change"===t.type&&this.handleInvalidDrawData(t.drawStyle)},o.prototype.handleInvalidDrawData=function(i){var t=this.data.get("drawButtonActiveValue"),e=this.data.get("drawButtonsData"),a={};e.forEach(function(t){a[t.optionType]=t.data});var o={};Object.keys(i).forEach(function(t){var e,n=i[t];n&&(e=(a[t]||[]).find(function(t){return t.text===n}),o[t]=e?{optionType:t,text:e.text,icon:e.icon}:{optionType:t,text:"",icon:""})}),this.data.set("drawButtonActiveValue",(0,r.__assign)((0,r.__assign)({},t),o))},o.prototype.getDrawInfo=function(){return this.data.get("drawButtonActiveValue")},o.prototype.sendUbcLog=function(t){var e=t.type,n=t.value,t=t.ext,i=void 0===t?{}:t;window.require(["superman/components/ubc"],function(t){t=new t.Ubc(window.require,{ubcid:18463});"click"===e?null!=t&&t.sendClickLog(n,i):"show"===e?null!=t&&t.sendShowLog(n,i):null!=t&&t.sendLog(e,n,i)})},o.components={"cs-draw-button":n["default"]},o.messages={"ui:draw-button-click":function(t){this.handleDrawButtonClick(t.value)},"log:send-ubc-log":function(t){this.sendUbcLog(t.value)}},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports='
{{drawButtonActiveValue[item.optionType].text || item.defaultText}}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),r=(0,a.__importDefault)(n(550)),s=(0,a.__importDefault)(n(553)),n=(0,a.__importDefault)(n(556)),l={style:"cs-input-style",ratio:"cs-input-ratio",recommend:"cs-input-recommend"},n=(i=o.Component,(0,a.__extends)(u,i),u.prototype.initData=function(){return{drawButtonsComponents:l,open:"",tooltipPosition:"top",downImg:"https://psstatic.cdn.bcebos.com/aife/image/12_12_1760441491000.png",upImg:"https://psstatic.cdn.bcebos.com/aife/image/upas_1760441610000.png"}},u.prototype.attached=function(){},u.prototype.detached=function(){this.clickListener&&document.removeEventListener("click",this.clickListener,!0)},u.prototype.handleTooltipChange=function(t,e){var n=t.optionType,i=t.defaultText,t=this.data.get("drawButtonActiveValue")||{};this.dispatch("log:send-ubc-log",{type:"click",value:"searchkuang_option",ext:{button_text:(null===(t=t[n])||void 0===t?void 0:t.text)||i,function_type:n,option_type:i,function_pos:e+1}});e=this.data.get("open");e===n?this.closeTooltip(n):(e&&this.closeTooltip(e),this.openTooltip(n))},u.prototype.openTooltip=function(i){var t,a=this;this.clickListener&&document.removeEventListener("click",this.clickListener,!0),this.data.get("open")!==i&&((t=this.data.get("open"))&&this.closeTooltip(t),this.data.set("open",i),this.clickListener=function(t){var e=document.querySelector("#draw-tooltip-"+i),n=t.target.closest("#draw-button-container-"+i);!e||e.contains(t.target)||n||a.closeTooltip(i)},document.addEventListener("click",this.clickListener,{capture:!0}))},u.prototype.closeTooltip=function(t){this.data.get("open")===t&&(this.data.set("open",""),this.clickListener&&document.removeEventListener("click",this.clickListener,!0))},u.prototype.handleDrawBtnClick=function(t){"recommend"!==t.optionType&&this.closeTooltip(t.optionType),this.dispatch("ui:draw-button-click",t)},u.prototype.handleClick=function(t){t.stopPropagation()},u.components={"cs-input-ratio":r["default"],"cs-input-recommend":s["default"],"cs-input-style":n["default"]},u);function u(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports='
选择比例
{{ item.text }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),n=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{drawData:{}}},o.prototype.attached=function(){this.dispatch("log:send-ubc-log",{type:"show",value:"searchkuang_option",ext:{function_type:this.data.get("drawData.optionType"),option_type:this.data.get("drawData.defaultText"),function_pos:this.data.get("order")}})},o.prototype.handleBtnClick=function(t,e){this.dispatch("log:send-ubc-log",{type:"click",value:"searchkuang_option_board",ext:{button_text:null==t?void 0:t.text,function_pos:e+1,function_type:this.data.get("drawData.optionType"),option_type:this.data.get("drawData.defaultText")}}),this.fire("btn-click",(0,a.__assign)({optionType:"ratio"},t))},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports='
推荐词
{{ itemData.text }}
{{ word }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{drawData:{data:[]}}},o.prototype.attached=function(){this.dispatch("log:send-ubc-log",{type:"show",value:"searchkuang_option",ext:{function_type:this.data.get("drawData.optionType"),function_pos:this.data.get("order"),option_type:this.data.get("drawData.defaultText")}})},o.prototype.handleBtnClick=function(t,e,n){this.dispatch("log:send-ubc-log",{type:"click",value:"searchkuang_option_board",ext:{button_text:e,function_pos:n+1,function_type:this.data.get("drawData.optionType"),option_type:this.data.get("drawData.defaultText")}}),this.fire("btn-click",{optionType:"recommend",text:e})},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports="
选择风格
{{ item.text }}
"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),n=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{drawStyleData:[[]]}},o.prototype.attached=function(){this.dispatch("log:send-ubc-log",{type:"show",value:"searchkuang_option",ext:{function_type:this.data.get("drawData.optionType"),function_pos:this.data.get("order"),option_type:this.data.get("drawData.defaultText")}}),this.data.set("drawStyleData",this.splitArrayToN(this.data.get("drawData.data"),6))},o.prototype.splitArrayToN=function(t,e){for(var n=[],i=0;i
自动检测
{{ selectedLanguage }}
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),o=n(0),n=(0,a.__importDefault)(n(562)),r="浏览器语言",n=(i=o.Component,(0,a.__extends)(s,i),s.prototype.initData=function(){return{isOpen:!1,selectedLanguage:"",languageList:[],panelDirection:"down",arrowIcon:"https://psstatic.cdn.bcebos.com/aife/superman/arrow-right_1765817762000.svg",downIcon:"https://psstatic.cdn.bcebos.com/aife/image/12_12_1760441491000.png",upIcon:"https://psstatic.cdn.bcebos.com/aife/static/cc_1760512076000.png",defaultLang:{},translateOption:[]}},s.prototype.attached=function(){var t={value:navigator&&navigator.language?navigator.language:"zh",label:r};this.data.set("selectedLanguage",r),this.data.set("defaultLang",t)},s.prototype.detached=function(){this.listener&&document.removeEventListener("click",this.listener,!0)},s.prototype.handleLanguageButtonClick=function(t){t.stopPropagation(),this.data.get("isOpen")?this.closeLanguagePanel():this.openLanguagePanel(),this.fire("send-ubc-log",{type:"click",value:"language_choose"})},s.prototype.openLanguagePanel=function(){var i=this;this.listener&&document.removeEventListener("click",this.listener,!0),this.data.set("isOpen",!0),this.listener=function(t){var e=document.querySelector("#translate-language-panel"),n=document.querySelector("#translate-language-button");n&&n.contains(t.target)||e&&!e.contains(t.target)&&i.closeLanguagePanel()},document.addEventListener("click",this.listener,{capture:!0})},s.prototype.closeLanguagePanel=function(){this.data.set("isOpen",!1),this.listener&&document.removeEventListener("click",this.listener,!0)},s.prototype.handleLanguageAction=function(t){var e=this;this.data.set("selectedLanguage",t.label),this.fire("send-ubc-log",{type:"click",value:"language_choose_board"}),setTimeout(function(){e.closeLanguagePanel()},10)},s.prototype.clear=function(){this.closeLanguagePanel(),this.data.set("selectedLanguage","浏览器语言")},s.prototype.getTargetLanguage=function(){var t=this.data.get("selectedLanguage"),e=this.data.get("languageList");if(t!==r)return t;var n=this.data.get("defaultLang").value,e=e.find(function(t){return t.logogram===n});return e?e.label:n},s.components={"language-selector":n["default"]},s.computed={languageList:function(){var t=this.data.get("defaultLang"),e=this.data.get("translateOption");return[t].concat(e)}},s);function s(){return null!==i&&i.apply(this,arguments)||this}e["default"]=n},function(t,e){t.exports="
{{language.label}} {{language.value}}
"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{languageList:[],selectedLanguage:"",panelData:null}},o.prototype.selectLanguage=function(t,e){t.stopPropagation(),this.data.set("selectedLanguage",e.label),this.fire("panel-action",e)},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e){t.exports='
更多
'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(1),n=n(0),a=(i=n.Component,(0,a.__extends)(o,i),o.prototype.initData=function(){return{icon:"https://psstatic.cdn.bcebos.com/aife/static/more-menu_1756807326000.svg"}},o.prototype.handleMenuClick=function(t){t.stopPropagation(),t.target!==t.currentTarget&&this.close()},o.prototype.fireShowLog=function(){this.fire("menu-show",{})},o.prototype.close=function(){var t=this.ref("menu");t&&(t.style.display="none",setTimeout(function(){t.style.display=""},100))},o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(441)},function(t,e,n){var i=n(2),a=[n(442)],o=n(108),r=n(109)["default"];t.exports=n(109),t.exports["default"]=i(r,o,a)},function(t,e,n){var i=n(443);(i="string"==typeof i?[[t.i,i,""]]:i).locals&&(t.exports=i.locals);(0,n(4)["default"])("285fce29",i,!0,{runAsProduction:!0})},function(t,e,n){(e=n(3)(!1)).push([t.i,".chat-input-background_3edHa {\n position: relative;\n}\n.chat-input-background_3edHa #voice-input-wrapper .chat-voice-input-mic-icon svg {\n opacity: 1;\n}\n.chat-input-background_3edHa #voice-input-wrapper .chat-input-d-tooltip .tooltip {\n z-index: 300;\n}\nbody.home-index-middle .active-single-line .two-line-input.chat-input-main-focus .chat-input-container {\n padding-right: 2.5px !important;\n padding-bottom: 2.5px !important;\n}\nbody.home-index-middle .active-single-line #chat-input-main .chat-input-wrapper #chat-input-panel .chat-input-panel-divider {\n right: 2.5px !important;\n}\nbody.home-index-middle .active-single-line #chat-input-main .chat-input-textarea {\n width: calc(100% - 6px);\n margin-right: 6px;\n}\nbody.home-index-middle .active-single-line #chat-input-main .chat-input-ai .ai-input-editor {\n padding-right: 15px;\n margin-right: -3px;\n}\nbody.home-index-middle .active-single-line #chat-input-main .chat-input-wrapper.chat-ai-wrapper.chat-ai-file-wrapper {\n padding-left: 9px;\n}\nbody.home-index-middle .active-single-line #chat-input-main .chat-input-wrapper.chat-ai-wrapper.chat-ai-file-wrapper .chat-input-container {\n padding-top: 6px;\n}\nbody.home-index-middle .active-single-line #chat-input-main.one-line-input .chat-input-wrapper.chat-ai-wrapper.chat-ai-file-wrapper {\n padding-left: 8px;\n}\nbody.home-index-middle .active-single-line #chat-input-main.one-line-input .chat-input-wrapper.chat-ai-wrapper.chat-ai-file-wrapper .chat-input-container {\n padding-top: 9px;\n}\n.weak-svg_2Rvl2 svg,\n.weak-svg_2Rvl2 img {\n opacity: 0.85;\n}\n.weak-svg_2Rvl2:hover svg,\n.weak-svg_2Rvl2:hover img {\n opacity: 1;\n}\n.aisearch-btn_1yI-K {\n margin-left: -6px;\n border-radius: 12px;\n border: 0.5px solid #DBDCE0;\n height: 38px;\n display: flex;\n align-items: center;\n padding: 0 18px 0 15px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 500;\n box-sizing: border-box;\n color: var(--exp-color-text-deep, #333333);\n}\n.aisearch-btn_1yI-K.jump-btn_2QC9p {\n color: #4E6EF2;\n font-weight: 500;\n}\n.aisearch-btn_1yI-K.new-brand-btn_1WMjQ {\n padding: 0 15px;\n}\n.aisearch-btn_1yI-K.new-brand-btn_1WMjQ .ds-btn_2pPkz {\n margin-left: 0;\n}\n.aisearch-btn_1yI-K.new-brand-btn_1WMjQ .ds-btn_2pPkz img {\n height: 14px;\n}\n.aisearch-btn-active_2XFWO {\n background-color: rgba(78, 110, 242, 0.09);\n color: #4e6ef2;\n border-color: rgba(78, 110, 242, 0.12);\n font-weight: 500;\n}\n.aisearch-btn-active_2XFWO .new-input-img_2U7f2 {\n opacity: 1;\n filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(2345%) hue-rotate(218deg) brightness(103%) contrast(99%);\n}\n.ai-search-btn-svg_vi_CZ {\n margin-left: -6px;\n}\n.left-tool_12WeH {\n display: flex;\n}\n.left-tool_12WeH .overword-tip_3QK26 {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 15px;\n color: var(--exp-color-text-light, #9195a3);\n font-size: 14px;\n -webkit-font-smoothing: antialiased;\n /* 标准抗锯齿 */\n -moz-osx-font-smoothing: grayscale;\n /* 针对Mac的字体平滑 */\n}\n.left-tool_12WeH .overword-tip-pure_3yM61 {\n margin-left: 0;\n}\n.left-tool_12WeH .overword-tip_3QK26 .overword-submit_29wEi {\n margin-left: 9px;\n color: #4e6ef2;\n cursor: pointer;\n}\n.left-tool_12WeH .ds-btn_2pPkz {\n display: flex;\n align-items: center;\n margin-left: 7px;\n}\n.left-tool_12WeH .ds-btn_2pPkz img {\n height: 14px;\n}\n.right-tool_3we_U {\n display: flex;\n}\n.right-tool_3we_U.right-tool-no-margin_1fwj_ {\n margin-right: -15px;\n}\n.right-tool_3we_U > *:not(:last-child) {\n margin-right: 15px;\n}\n.right-tool_3we_U .tool-item_1e6GD {\n display: flex;\n cursor: pointer;\n color: var(--exp-color-text-deep, #222222);\n}\n.right-tool_3we_U .tool-item_1e6GD svg {\n display: block;\n}\n.right-tool_3we_U .tool-item_1e6GD:hover {\n color: #4e6ef2;\n}\n.right-tool_3we_U .tool-item_1e6GD.upload-btn-disabled_1sius:hover {\n color: #222;\n}\n.right-tool_3we_U .upload-merge-active_d-mBE {\n color: #4e6ef2;\n}\n.right-tool_3we_U .upload-btn-disabled_1sius {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.upload-merge-wrapper_eD9Bq {\n position: relative;\n display: flex;\n align-items: center;\n}\n.upload-expand-panel_2SAhB {\n position: absolute;\n left: -16px;\n top: calc(100% + 6px);\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 144px;\n padding: 9px 0;\n background: #fff;\n border-radius: 18px;\n border: 0.5px solid #dbdce0;\n box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.08);\n z-index: 200;\n}\n.upload-expand-panel_2SAhB > div:not(:first-child) {\n margin-top: 3px;\n}\n.upload-panel-item_2C8G6 {\n display: flex;\n align-items: center;\n min-width: 126px;\n height: 36px;\n padding: 0 9px;\n border-radius: 12px;\n box-sizing: border-box;\n margin: 0 16px;\n cursor: pointer;\n color: var(--exp-color-text-deep, #333333);\n font-size: 14px;\n line-height: 36px;\n position: relative;\n white-space: nowrap;\n}\n.upload-panel-item_2C8G6 svg {\n flex-shrink: 0;\n width: 18px;\n height: 18px;\n margin-right: 6px;\n}\n.upload-panel-item_2C8G6 span {\n font-size: 14px;\n color: var(--exp-color-text-deep, #333333);\n}\n.upload-panel-item_2C8G6:hover {\n background-color: #4E6EF217;\n color: #4e6ef2;\n}\n.upload-panel-item_2C8G6:hover span {\n color: #4e6ef2;\n}\n.panel-list_8jHmm {\n display: flex;\n justify-content: center;\n position: absolute;\n width: 100%;\n bottom: -84px;\n}\n.panel-list_8jHmm > *:not(:last-child) {\n margin-right: 9px;\n}\n.smart-input-mic_3blO0 {\n display: none;\n}\n.drop-down-wrapper_2KOP3 .guide:before {\n content: '';\n position: absolute;\n top: -1px;\n right: -1px;\n width: 7px;\n height: 7px;\n background-color: #f73131;\n border-radius: 50px;\n box-shadow: 0px 1.56px 7.78px 0px #ff274b4d;\n}\n.drop-down-btn_2L7_a {\n position: relative;\n cursor: pointer;\n border-radius: 12px;\n height: 36px;\n box-sizing: border-box;\n flex-grow: 1;\n flex-shrink: 0;\n background: #f6f7fe;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: 500;\n color: var(--exp-color-text-deep, #333333);\n}\n.drop-down-btn_2L7_a:hover {\n color: #4e6ef2;\n background: #eff2fe;\n}\n.drop-down-btn_2L7_a:hover img {\n filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(2345%) hue-rotate(218deg) brightness(103%) contrast(99%);\n}\n.drop-down-menu-wrapper_-I6Hm {\n top: 100%;\n left: 0;\n}\n.drop-down-menu_1hfyl.drop-down-menu_1hfyl.drop-down-menu_1hfyl > * {\n height: 32px;\n padding-left: 9px;\n background: #fff;\n}\n.drop-down-menu_1hfyl.drop-down-menu_1hfyl.drop-down-menu_1hfyl > *:hover {\n background: rgba(78, 110, 242, 0.06);\n}\n.drop-down-menu_1hfyl.drop-down-menu_1hfyl.drop-down-menu_1hfyl > *:not(:last-child) {\n margin-bottom: 8px;\n}\n.drop-down-menu_1hfyl.drop-down-menu_1hfyl.drop-down-menu_1hfyl * {\n justify-content: flex-start;\n}\n.drop-down-menu_1hfyl.drop-down-menu_1hfyl.drop-down-menu_1hfyl .panel-guide:before {\n top: 4px;\n left: 74px;\n}\n.drop-down-menu_1hfyl.drop-down-menu_1hfyl.drop-down-menu_1hfyl .deep-research-panel:before {\n left: 87px;\n}\nbody:not(.home-index-middle) #chat-textarea,\nbody:not(.home-index-middle) #chat-input-area {\n min-height: 28px;\n}\nbody:not(.home-index-middle) #chat-input-main .chat-input-tool {\n padding-top: 7px;\n}\nbody:not(.home-index-middle) .smart_input_superman #chat-input-main #voice-input-wrapper svg {\n color: #222;\n}\nbody:not(.home-index-middle) .smart_input_superman #chat-input-main #voice-input-wrapper svg:hover {\n color: #4e6ef2;\n}\nbody:not(.home-index-middle) .smart-input-new-style #chat-input-main {\n border-radius: 21px;\n}\nbody:not(.home-index-middle) .smart-input-new-style #chat-textarea,\nbody:not(.home-index-middle) .smart-input-new-style #chat-input-area {\n min-height: 49px;\n}\nbody:not(.home-index-middle) .smart-input-new-style.smart_input_height_superman.smart_input_superman #head_wrapper.search-box-new-head-wrapper {\n height: calc(35% + 120px);\n}\nbody:not(.home-index-middle) .smart-input-new-style .aisearch-btn_1yI-K {\n padding: 0 12px 0 9px;\n height: 36px;\n}\nbody:not(.home-index-middle) .smart-input-new-style .panel-list_8jHmm {\n bottom: -60px;\n}\nbody:not(.home-index-middle) .smart-input-new-style .weak-svg_2Rvl2 svg,\nbody:not(.home-index-middle) .smart-input-new-style .weak-svg_2Rvl2 img {\n opacity: 1;\n}\nbody:not(.home-index-middle) .smart-input-new-style .s-bottom-space {\n margin-top: 13px;\n}\nbody:not(.home-index-middle) .smart-input-new-style #s_wrap.s-isindex-wrap {\n margin-top: 13px;\n}\nbody:not(.home-index-middle) .smart-input-new-style .s-hotsearch-wrapper-no-login {\n margin-top: 100px;\n}\n#right-tool *:not(.cos-icon),\n#left-tool *:not(.cos-icon),\n.panel-list_8jHmm *:not(.cos-icon) {\n font-family: PingFang SC, Arial, sans-serif !important;\n}\n",""]),e.locals={"chat-input-background":"chat-input-background_3edHa",chatInputBackground:"chat-input-background_3edHa","weak-svg":"weak-svg_2Rvl2",weakSvg:"weak-svg_2Rvl2","aisearch-btn":"aisearch-btn_1yI-K",aisearchBtn:"aisearch-btn_1yI-K","jump-btn":"jump-btn_2QC9p",jumpBtn:"jump-btn_2QC9p","new-brand-btn":"new-brand-btn_1WMjQ",newBrandBtn:"new-brand-btn_1WMjQ","ds-btn":"ds-btn_2pPkz",dsBtn:"ds-btn_2pPkz","aisearch-btn-active":"aisearch-btn-active_2XFWO",aisearchBtnActive:"aisearch-btn-active_2XFWO","new-input-img":"new-input-img_2U7f2",newInputImg:"new-input-img_2U7f2","ai-search-btn-svg":"ai-search-btn-svg_vi_CZ",aiSearchBtnSvg:"ai-search-btn-svg_vi_CZ","left-tool":"left-tool_12WeH",leftTool:"left-tool_12WeH","overword-tip":"overword-tip_3QK26",overwordTip:"overword-tip_3QK26","overword-tip-pure":"overword-tip-pure_3yM61",overwordTipPure:"overword-tip-pure_3yM61","overword-submit":"overword-submit_29wEi",overwordSubmit:"overword-submit_29wEi","right-tool":"right-tool_3we_U",rightTool:"right-tool_3we_U","right-tool-no-margin":"right-tool-no-margin_1fwj_",rightToolNoMargin:"right-tool-no-margin_1fwj_","tool-item":"tool-item_1e6GD",toolItem:"tool-item_1e6GD","upload-btn-disabled":"upload-btn-disabled_1sius",uploadBtnDisabled:"upload-btn-disabled_1sius","upload-merge-active":"upload-merge-active_d-mBE",uploadMergeActive:"upload-merge-active_d-mBE","upload-merge-wrapper":"upload-merge-wrapper_eD9Bq",uploadMergeWrapper:"upload-merge-wrapper_eD9Bq","upload-expand-panel":"upload-expand-panel_2SAhB",uploadExpandPanel:"upload-expand-panel_2SAhB","upload-panel-item":"upload-panel-item_2C8G6",uploadPanelItem:"upload-panel-item_2C8G6","panel-list":"panel-list_8jHmm",panelList:"panel-list_8jHmm","smart-input-mic":"smart-input-mic_3blO0",smartInputMic:"smart-input-mic_3blO0","drop-down-wrapper":"drop-down-wrapper_2KOP3",dropDownWrapper:"drop-down-wrapper_2KOP3","drop-down-btn":"drop-down-btn_2L7_a",dropDownBtn:"drop-down-btn_2L7_a","drop-down-menu-wrapper":"drop-down-menu-wrapper_-I6Hm",dropDownMenuWrapper:"drop-down-menu-wrapper_-I6Hm","drop-down-menu":"drop-down-menu_1hfyl",dropDownMenu:"drop-down-menu_1hfyl"},t.exports=e},function(t,e,n){var i=n(2),a=[n(445)],o=n(110),r=n(111)["default"];t.exports=n(111),t.exports["default"]=i(r,o,a)},function(t,e,n){var i=n(446);(i="string"==typeof i?[[t.i,i,""]]:i).locals&&(t.exports=i.locals);(0,n(4)["default"])("9aa2c530",i,!0,{attributes:{"data-for":"result"},runAsProduction:!0})},function(t,e,n){(e=n(3)(!1)).push([t.i,".chat-input-anchor {\n position: relative;\n width: 100%;\n height: 100%;\n -webkit-font-smoothing: antialiased;\n /* 标准抗锯齿 */\n -moz-osx-font-smoothing: grayscale;\n /* 针对Mac的字体平滑 */\n}\n#chat-input-main {\n position: absolute;\n top: 0;\n width: 100%;\n z-index: 99;\n border-radius: 19px;\n}\n#chat-input-main * {\n font-family: arial;\n}\n#chat-input-main.chat-input-main-focus:before {\n opacity: 0.14;\n}\n#chat-input-main.chat-input-main-focus .chat-input-wrapper {\n box-shadow: 0 13px 18px -15px rgba(77, 128, 255, 0.2);\n}\n#chat-input-main.chat-input-main-focus .chat-input-wrapper.chat-ai-wrapper #chat-input-panel {\n display: block;\n}\n#chat-input-main.chat-input-main-focus .chat-input-wrapper-box-shadow {\n box-shadow: 0 10px 40px -8px rgba(77, 128, 255, 0.1);\n}\n#chat-input-main.chat-input-main-focus .chat-input-textarea {\n max-height: 70px;\n overflow-x: hidden;\n overflow-y: auto;\n}\n#chat-input-main.chat-input-main-focus .chat-input-ai .ai-input-editor {\n max-height: 70px;\n overflow-y: scroll;\n}\n#chat-input-main.openning-anime .chat-input-wrapper {\n box-shadow: 0 0 0 rgba(0, 0, 0, 0);\n}\n#chat-input-main.openning-anime .chat-input-wrapper-box-shadow {\n box-shadow: 0 0 0 rgba(0, 0, 0, 0);\n}\n#chat-input-main.openning-anime .chat-input-op-anime {\n z-index: 2;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n border-radius: inherit;\n overflow: hidden;\n transition: opacity 1s ease;\n}\n#chat-input-main.openning-anime .chat-input-op-anime:before {\n content: '';\n width: 1000px;\n height: 1000px;\n top: 50%;\n left: 50%;\n transform-origin: center;\n position: absolute;\n background-size: 100% 100%;\n animation: rotateAndFade 5s linear forwards;\n background-image: url(https://gips0.baidu.com/it/u=14154217,3818936281&fm=3028&app=3028&f=PNG&fmt=auto&q=100&size=f384_384);\n}\n@keyframes rotateAndFade {\n 0% {\n opacity: 0;\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 20% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(120deg);\n /* 1s 旋转 120° */\n }\n 80% {\n opacity: 1;\n transform: translate(-50%, -50%) rotate(480deg);\n /* 接着旋转两圈(2s + 1s) */\n }\n 100% {\n opacity: 0;\n transform: translate(-50%, -50%) rotate(600deg);\n /* 最后 1s 再转 120° */\n }\n}\n#chat-input-main .chat-input-wrapper-border {\n z-index: 1;\n position: absolute;\n border: 1.5px solid transparent;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n border-radius: inherit;\n background: #4e6ef2;\n background: linear-gradient(white, white) padding-box, linear-gradient(160deg, #3377fe, #4c6fff, #8370ff, #ba59ff) border-box;\n}\n#chat-input-main .chat-input-wrapper-border.chat-input-wrapper-border-ai-search {\n z-index: 2;\n}\n#chat-input-main .chat-input-wrapper-box-shadow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n border-radius: inherit;\n transition: box-shadow 240ms ease;\n box-shadow: 0 10px 40px -8px rgba(77, 128, 255, 0.05);\n}\n#chat-input-main .chat-input-wrapper {\n position: relative;\n z-index: 3;\n border: 1.5px solid transparent;\n border-radius: inherit;\n background: linear-gradient(white, white) padding-box, transparent border-box;\n background-origin: border-box;\n background-clip: padding-box, border-box;\n transition: box-shadow 240ms ease;\n box-shadow: 0 13px 18px -15px rgba(77, 128, 255, 0.1);\n}\n#chat-input-main .chat-input-wrapper .chat-input-container {\n padding: 9px 9px 9px 0px;\n}\n#chat-input-main .chat-input-wrapper .chat-input-container:hover {\n cursor: text;\n}\n#chat-input-main .chat-input-wrapper.chat-ai-wrapper #chat-input-panel {\n display: none;\n}\n#chat-input-main .chat-input-wrapper.chat-ai-wrapper #chat-input-panel.panel-expand {\n opacity: 1;\n transition: max-height 280ms ease, opacity 280ms ease;\n}\n#chat-input-main .chat-input-wrapper.chat-ai-wrapper #chat-input-panel.panel-shrink {\n opacity: 0;\n max-height: 0;\n transition: max-height 160ms ease, opacity 160ms ease;\n}\n#chat-input-main .chat-input-wrapper.chat-ai-wrapper .chat-input-container {\n padding-left: 12px;\n}\n#chat-input-main .chat-input-wrapper.chat-ai-wrapper.chat-ai-file-wrapper .chat-input-container {\n padding-left: 12px;\n}\n#chat-input-main .chat-input-wrapper.chat-normal-wrapper .chat-input-container {\n padding-left: 18px;\n}\n#chat-input-main .chat-input-wrapper.chat-normal-wrapper #chat-input-panel.panel-expand {\n opacity: 1;\n}\n#chat-input-main .chat-input-wrapper.chat-normal-wrapper #chat-input-panel.panel-shrink {\n display: none;\n}\n#chat-input-main .chat-input-wrapper #chat-input-panel {\n position: relative;\n overflow: hidden;\n}\n#chat-input-main .chat-input-wrapper #chat-input-panel .chat-input-panel-divider {\n margin-top: 1px;\n border-top: 0.3px solid #dbdce0;\n position: absolute;\n left: 15px;\n right: 9px;\n top: 0;\n}\n#chat-input-main .chat-input-wrapper #chat-input-panel .chat-input-panel-container {\n max-height: inherit;\n overflow: hidden;\n border-bottom-left-radius: 18px;\n border-bottom-right-radius: 18px;\n}\n#chat-input-main .chat-input-scroll-style::-webkit-scrollbar {\n display: block;\n width: 4px;\n}\n#chat-input-main .chat-input-scroll-style:hover::-webkit-scrollbar-thumb {\n background-color: rgba(78, 110, 242, 0.1);\n border-radius: 4px;\n}\n#chat-input-main .chat-input-scroll-style::-webkit-scrollbar-track {\n box-shadow: none;\n background-color: initial;\n}\n#chat-input-main .chat-input-textarea {\n width: 100%;\n box-sizing: border-box;\n max-height: 26px;\n cursor: auto;\n padding: 0;\n overflow: hidden;\n resize: none;\n font-size: 16px;\n border: none;\n outline: none;\n line-height: 26px;\n padding-right: 6px;\n display: block;\n caret-color: #335bff;\n}\n#chat-input-main .chat-input-textarea::placeholder {\n padding-left: 1px;\n color: #9195a3;\n}\n#chat-input-main .chat-input-ai {\n position: relative;\n padding-left: 6px;\n}\n#chat-input-main .chat-input-ai .ai-input-prefix-wrapper {\n z-index: 1;\n display: inline-flex;\n align-items: center;\n position: relative;\n cursor: pointer;\n user-select: none;\n}\n#chat-input-main .chat-input-ai .ai-input-prefix-wrapper .ai-input-prefix-container {\n height: 24px;\n padding: 0 6px;\n border-radius: 6px;\n background: #F6F7FE;\n display: flex;\n align-items: center;\n}\n#chat-input-main .chat-input-ai .ai-input-prefix-wrapper .close-icon {\n margin-left: 3px;\n}\n#chat-input-main .chat-input-ai .ai-input-prefix-wrapper .ai-input-prefix {\n user-select: none;\n font-size: 16px;\n line-height: 16px;\n font-weight: 500;\n background: linear-gradient(90deg, #2867fa, #873cff);\n -webkit-background-clip: text;\n color: transparent;\n -webkit-text-fill-color: transparent;\n /* Safari 兼容 */\n}\n#chat-input-main .chat-input-ai .ai-input-prefix-wrapper .ai-input-prefix-holder {\n width: 6px;\n height: 1em;\n vertical-align: baseline;\n background: transparent;\n}\n#chat-input-main .chat-input-ai .cs-pc-input-agent {\n display: inline-block;\n color: #2440B3;\n padding-left: 3px;\n padding-right: 3px;\n font-weight: 500;\n}\n#chat-input-main .chat-input-ai .cs-pc-input-agent .agent-icon-ai {\n font-size: 11px;\n line-height: 11px;\n position: relative;\n top: -4px;\n font-weight: 400;\n}\n#chat-input-main .chat-input-ai .ai-input-editor {\n outline: none;\n line-height: 28px;\n font-size: 16px;\n cursor: text;\n max-height: 28px;\n overflow-y: hidden;\n overflow-x: hidden;\n caret-color: #335bff;\n -moz-user-select: text;\n user-select: text;\n padding-right: 9px;\n margin-right: -9px;\n}\n#chat-input-main .chat-input-ai .ai-input-editor.ai-input-caret-hidden {\n caret-color: transparent;\n}\n#chat-input-main .chat-input-ai .ai-input-editor.ai-input-placeholder:after {\n color: #9195a3;\n content: attr(placeholder);\n padding-left: 1px;\n}\n#chat-input-main .chat-input-ai .ai-input-editor * {\n text-indent: 0;\n}\n#chat-input-main .chat-input-ai .ai-input-editor .input-custom-item {\n padding: 0 6px;\n border-radius: 6px;\n background-color: rgba(78, 110, 242, 0.09);\n max-width: calc(100% - 27px);\n font-weight: 500;\n color: #4e6ef2;\n display: inline-block;\n line-height: 24px;\n}\n#chat-input-main .chat-input-ai .ai-input-editor .input-custom-item:focus {\n outline: none;\n}\n#chat-input-main .chat-input-ai .ai-input-editor .input-custom-placeholder:after {\n content: attr(placeholder);\n color: rgba(78, 110, 242, 0.4);\n}\n#chat-input-main .chat-input-ai .ai-input-editor .input-custom-no-width {\n user-select: none;\n display: inline-block;\n width: 3px;\n}\n#chat-input-main .chat-input-tool {\n padding-top: 9px;\n align-items: center;\n display: flex;\n justify-content: center;\n width: 100%;\n}\n#chat-input-main .chat-input-tool * {\n user-select: none;\n}\n#chat-input-main .chat-input-tool .tools-placeholder-wrapper {\n flex: 1 1;\n min-width: 12px;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper {\n padding-left: 9px;\n background: #fff;\n border-radius: 12px;\n align-items: center;\n display: flex;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool {\n display: flex;\n align-items: center;\n margin-right: 18px;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool > .tools-clear-icon:only-child {\n margin-right: 0;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool .tools-clear-icon {\n display: none;\n cursor: pointer;\n margin-right: 15px;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool .tools-clear-icon.show-clear-icon {\n display: block;\n opacity: 0.85;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool .tools-clear-icon svg {\n display: block;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool #voice-input-wrapper:not(:last-child) {\n margin-right: 18px;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #right-tool #voice-input-wrapper:empty {\n margin-right: 0;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #chat-submit-button {\n font-size: 17px;\n font-weight: 500;\n width: 108px;\n height: 44px;\n cursor: pointer;\n color: #fff;\n border-radius: 15px;\n position: relative;\n border: none;\n background: linear-gradient(136deg, #286aff, #4e6ef2, #7274f9, #9f66ff);\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #chat-submit-button:hover {\n background-image: linear-gradient(rgba(0, 0, 0, 0.09), rgba(0, 0, 0, 0.09)), linear-gradient(136deg, #286aff, #4e6ef2, #7274f9, #9f66ff);\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #chat-submit-button-ai {\n cursor: pointer;\n opacity: 0.3;\n}\n#chat-input-main .chat-input-tool .right-tools-wrapper #chat-submit-button-ai.chat-submit-button-ai-active {\n opacity: 1;\n}\n.chat-input-drag-mask {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(255, 255, 255, 0.75);\n -webkit-backdrop-filter: blur(10px);\n backdrop-filter: blur(10px);\n pointer-events: none;\n z-index: 99999;\n color: #333333;\n}\n.chat-input-drag-mask-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n top: 40%;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n}\n.chat-input-drag-mask-image {\n height: 84px;\n width: 175px;\n}\n.chat-input-drag-mask-title {\n font-size: 21px;\n font-weight: 500;\n margin-top: -2px;\n}\n.chat-input-drag-mask-content {\n margin-top: 9px;\n font-size: 14px;\n}\n.chat-input-drag-mask-sub-content {\n margin-top: 3px;\n font-size: 14px;\n}\n.smart-input-new-style #chat-input-main .chat-input-wrapper-border {\n border: 1px solid transparent;\n background: linear-gradient(120.58deg, #7AA2FF 3.49%, #878FFF 99.21%);\n}\n.smart-input-new-style #chat-input-main .chat-input-wrapper-box-shadow {\n box-shadow: 0px 8px 36px -18px rgba(77, 128, 255, 0.28);\n}\n.smart-input-new-style #chat-input-main.chat-input-main-focus .chat-input-wrapper-box-shadow {\n box-shadow: 0px 8px 22px -15px rgba(77, 128, 255, 0.1);\n}\n#chat-input-main.one-line-input #chat-input-area {\n width: 100%;\n}\n#chat-input-main.one-line-input .chat-input-wrapper .chat-input-container {\n padding-bottom: 9px;\n}\n#chat-input-main.one-line-input .chat-input-tool {\n position: absolute;\n right: 2.5px;\n top: 2.5px;\n padding-top: 0;\n width: auto;\n}\n#chat-input-main.one-line-input .chat-input-tool #left-tool {\n display: none;\n}\n#chat-input-main.one-line-input .chat-input-tool #chat-submit-button {\n height: 38px;\n}\n#chat-input-main.one-line-input .chat-input-tool #voice-input-wrapper .listening-pill {\n height: 38px;\n}\n.chat-input-anchor-ai-search #chat-input-main {\n border-radius: 21px;\n}\n.chat-input-anchor-ai-search #chat-input-main.chat-input-main-focus .chat-input-textarea {\n max-height: 260px;\n}\n.chat-input-anchor-ai-search #chat-input-main.chat-input-main-focus .chat-input-ai .ai-input-editor {\n max-height: 176px;\n}\n.chat-input-anchor-ai-search #chat-input-main.chat-input-main-focus .chat-ai-file-wrapper .ai-input-editor {\n max-height: 147px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-tool {\n padding-top: 9px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-textarea {\n min-height: 45px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-wrapper.chat-normal-wrapper.chat-ai-file-wrapper .chat-input-container {\n padding-left: 18px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-ai-file-wrapper .chat-input-container {\n padding-top: 12px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-container {\n padding: 9px 12px 11px 12px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-container .right-tools-wrapper .chat-voice-input .chat-voice-input-mic-icon svg {\n color: #333;\n opacity: 1;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-container .right-tools-wrapper .chat-voice-input .chat-voice-input-mic-icon svg:hover {\n color: #4e6ef2;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-container .chat-input-ai {\n min-height: 69px;\n}\n.chat-input-anchor-ai-search #chat-input-main .chat-input-scroll-style {\n scrollbar-width: auto;\n scrollbar-color: auto;\n}\n@keyframes rotateForever {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.ai-input-file-delete {\n width: 15px;\n height: 15px;\n position: fixed;\n display: none;\n}\n.ai-input-file-delete .ai-input-file-delete-icon {\n width: 100%;\n height: 100%;\n}\n.ai-input-file {\n position: relative;\n height: 28px;\n max-width: 243px;\n display: inline-flex;\n flex-direction: row;\n cursor: pointer;\n padding-right: 6px;\n vertical-align: bottom;\n align-items: center;\n}\n.ai-input-file:hover .ai-input-file-delete {\n display: flex;\n}\n.ai-input-file:hover .ai-input-file-inner {\n background: rgba(78, 110, 242, 0.06);\n}\n.ai-input-file .ai-input-file-inner {\n position: relative;\n height: 28px;\n max-width: 243px;\n display: inline-flex;\n flex-direction: row;\n border-radius: 6px;\n background-color: #f5f6f9;\n box-sizing: border-box;\n cursor: pointer;\n padding: 3px 9px 3px 3px;\n vertical-align: bottom;\n align-items: center;\n}\n.ai-input-file .ai-input-file-icon {\n position: relative;\n}\n.ai-input-file .ai-input-file-icon .ai-input-file-icon-img {\n width: 20px;\n height: 20px;\n border-radius: 6px;\n display: block;\n}\n.ai-input-file .ai-input-file-name {\n font-size: 16px;\n line-height: 16px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ai-input-file .ai-input-file-name-container {\n display: flex;\n align-items: center;\n font-size: 14px;\n line-height: 14px;\n margin-left: 3px;\n overflow: hidden;\n}\n.ai-input-file .ai-input-file-name-container .ai-input-file-name {\n max-width: 100px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n line-height: 14px;\n}\n.ai-input-file .ai-input-file-name-container .ai-input-file-num {\n white-space: nowrap;\n font-size: 14px;\n line-height: 14px;\n}\n.ai-input-file-uploading .ai-input-file-icon-loading {\n position: absolute;\n top: calc(50% - 5px);\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n animation: rotateForever 1s linear infinite;\n}\n.ai-input-file-failed .ai-input-file-content {\n color: #848691;\n}\n.ai-input-image {\n position: relative;\n vertical-align: bottom;\n width: 28px;\n height: 28px;\n display: inline-flex;\n flex-direction: row;\n border-radius: 6px;\n cursor: pointer;\n margin-right: 6px;\n}\n.ai-input-image .ai-input-image-bg {\n height: 100%;\n width: 100%;\n object-fit: cover;\n border-radius: 6px;\n min-width: 100%;\n}\n.ai-input-image .ai-input-image-num {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 2;\n color: white;\n font-size: 14px;\n font-weight: bold;\n}\n.ai-input-image:hover .ai-input-file-delete {\n display: flex;\n}\n.ai-input-image-uploading .ai-input-file-icon-loading {\n position: absolute;\n top: calc(50% - 5px);\n left: calc(50% - 5px);\n width: 10px;\n height: 10px;\n animation: rotateForever 1s linear infinite;\n}\n.multi-image-mask::before {\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 6px;\n background: rgba(0, 0, 0, 0.5);\n}\n.ai-bdsug.ai-bdsug-new {\n font-size: 14px;\n font-weight: 400;\n color: #1e1f24;\n padding-bottom: 14px;\n margin-top: 10px;\n -webkit-font-smoothing: auto;\n -moz-osx-font-smoothing: auto;\n}\n.ai-bdsug.ai-bdsug-new ul {\n /* 通用直达模板热标样式 */\n /* 老数据热标样式 */\n /* 通用直达模板 */\n /* 文件样式 */\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-store span {\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li {\n position: relative;\n padding-left: 0 !important;\n padding-right: 9px;\n min-height: 28px;\n line-height: 28px;\n cursor: pointer;\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li b {\n font-weight: 400;\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li .sug-highlight-red {\n color: #ee0333;\n}\n.ai-bdsug.ai-bdsug-new ul li .bdsug-store-del {\n right: 9px;\n text-decoration: none;\n}\n.ai-bdsug.ai-bdsug-new ul li .bdsug-store-del:hover {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li:not([class*='bdsug-no-avoid'])[data-no-ai-sug='1'] .ask-ai-tail-wrapper {\n display: none !important;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-wrapper {\n display: flex;\n flex: 1;\n align-self: stretch;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-wrapper:hover {\n font-weight: 500;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-wrapper:hover .ask-ai-tail-text {\n background: linear-gradient(90deg, #2867fa 0%, #873cff 100%);\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n color: transparent;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail {\n display: flex;\n align-items: center;\n padding-right: 12px;\n opacity: 0;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-icon {\n margin-right: 6px;\n width: 14px;\n height: 14px;\n background-image: url('https://psstatic.cdn.bcebos.com/aife/static/star_new_1770104836000.png');\n background-repeat: no-repeat;\n background-position: center;\n background-size: 14px 14px;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-icon::before {\n content: '';\n background-image: url('https://psstatic.cdn.bcebos.com/multimode/ai-icon-bold_1759053952000.png');\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-line {\n width: 0.5px;\n height: 10px;\n background-color: #000000;\n margin-right: 21px;\n opacity: 0.2;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-text {\n font-size: 14px;\n background: linear-gradient(90deg, #2867fa 0%, #873cff 100%);\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n color: transparent;\n}\n.ai-bdsug.ai-bdsug-new ul li .ask-ai-tail-blank {\n flex: 1;\n height: 32px;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade {\n color: #1e1f24;\n min-height: 32px;\n line-height: 32px;\n display: flex;\n align-items: center;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade b {\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade .direct-sug-wrap {\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade .direct-sug-wrap .name {\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade .direct-sug-wrap .brief,\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade .direct-sug-wrap .info {\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade:first-child {\n margin-top: -2px;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-upgrade:last-child {\n margin-bottom: -3px;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-color-red {\n color: #ee0333;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-color-red .sug-content {\n color: #ee0333;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ask-tail {\n display: flex;\n padding-left: 16px;\n align-items: center;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ask-tail .sug-content {\n box-sizing: border-box;\n min-width: 200px;\n padding-left: 15px;\n padding-right: 54px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n white-space: pre;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ask-tail .sug-content b {\n color: #1e1f24;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ask-tail .sug-content.sug-content-double {\n width: 100%;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ask-tail .direct-sug-wrap {\n display: flex;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-hover-upgrade .sug-content {\n padding-right: 100px;\n min-width: 240px;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-hover-upgrade .sug-content:hover {\n font-weight: 500;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-hover-upgrade .sug-content:hover .search-sug-icon {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/search-hover-border_1768225457000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-ai-hover-upgrade .ask-ai-tail-line {\n margin-right: 12px;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s {\n background-color: #335cff0d;\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .ori-his {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .ori-his.ainew-his,\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .bdsug-s-aifile {\n background-image: linear-gradient(45deg, #4e6ef2, #873cff);\n -webkit-background-clip: text;\n background-clip: text;\n color: transparent !important;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s b {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .direct-sug-wrap .name {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .direct-sug-wrap .brief,\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .direct-sug-wrap .info {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .ask-ai-tail {\n opacity: 1;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .search-sug-icon {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/search-hover_1756192477000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .search-sug-icon.ai_guide {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/ai-icon-hover_1756192461000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .search-sug-icon.ai_his {\n background-image: url('https://psstatic.cdn.bcebos.com/multimode/ai-icon-bold_1759053952000.png');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .search-sug-icon.ai_new_his {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/static/star-hover_1765347114000.png');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .search-sug-icon.new_his {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/static/normal-hover_1765347379000.png');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .search-sug-icon.ask-ai-tail-icon {\n background-image: url('https://psstatic.cdn.bcebos.com/basics/aichat/star_linear_1768206600000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s.bdsug-color-red {\n color: #ee0333;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .sug-content {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .sug-content span:not([class*='sug-tag-comm']),\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s .sug-content b {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s.bdsug-ai-hover-upgrade .sug-content:hover {\n font-weight: 500;\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s.bdsug-ai-hover-upgrade .sug-content:hover .search-sug-icon {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/search-hover-border_1768225457000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul li.bdsug-s.bdsug-ai-hover-upgrade .sug-content:hover b {\n font-weight: 500;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-tag-text {\n position: sticky;\n right: -4px;\n margin-top: -2.5px;\n display: inline-block;\n box-sizing: border-box;\n margin-left: 6px;\n padding: 1px;\n font-size: 12px;\n line-height: 12px;\n font-weight: 500;\n text-align: center;\n border-radius: 4px;\n vertical-align: middle;\n border-width: 1px;\n border-style: solid;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-tag-img {\n height: 18px;\n max-width: 80px;\n vertical-align: middle;\n margin-left: 6px;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-new-tag {\n text-align: center;\n margin-left: 6px;\n box-sizing: border-box;\n font-size: 12px;\n line-height: 14px;\n padding: 1px 4px;\n font-weight: 500;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-new-tag-grey {\n color: #858585;\n border: 1px solid rgba(133, 133, 133, 0.5);\n border-radius: 4px;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-new-tag-blue {\n color: #3366ff;\n border: 1px solid rgba(51, 102, 255, 0.4);\n border-radius: 4px;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-new-tag-orange {\n color: #ff3333;\n border: 1px solid rgba(255, 51, 51, 0.4);\n border-radius: 4px;\n}\n.ai-bdsug.ai-bdsug-new ul .sug-hot-orange,\n.ai-bdsug.ai-bdsug-new ul .sug-hot-grey,\n.ai-bdsug.ai-bdsug-new ul .sug-hot-blue {\n display: inline-block;\n width: 12px;\n height: 12px;\n font-size: 12px;\n line-height: 12px;\n padding: 2px;\n text-align: center;\n font-weight: 500;\n margin-left: 6px;\n vertical-align: text-bottom;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap {\n display: block;\n width: 100%;\n height: 40px;\n padding: 9px 0;\n color: #626675;\n /* 顶部样式 */\n /* 底部样式 */\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .left-img-wrap {\n position: relative;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .left-img-wrap::before {\n content: '';\n width: 38px;\n height: 38px;\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n border: 1px solid rgba(0, 0, 0, 0.06);\n border-radius: 9px;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .left-img {\n box-sizing: border-box;\n float: left;\n width: 40px;\n height: 40px;\n border-radius: 9px;\n margin-right: 6px;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .content {\n float: left;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .header {\n margin-bottom: 9px;\n line-height: 18px;\n height: 18px;\n vertical-align: middle;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .name {\n float: left;\n font-size: 16px;\n font-weight: 500;\n color: #626675;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .tag-img {\n width: 18px;\n margin-left: 4px;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .more {\n line-height: 14px;\n width: 240px;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .brief,\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .info {\n font-size: 14px;\n font-weight: 400;\n color: #626675;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .brief {\n margin-right: 6px;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .right-btn {\n float: right;\n margin-top: 8px;\n margin-right: 6px;\n width: 60px;\n height: 24px;\n text-align: center;\n font-size: 14px;\n color: #3366ff;\n line-height: 24px;\n background-image: linear-gradient(111deg, #e8f7ff 0%, #edf0ff 100%);\n border-radius: 12px;\n}\n.ai-bdsug.ai-bdsug-new ul .direct-sug-wrap .right-btn:hover {\n background: #315efb;\n color: #fff;\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon {\n margin-right: 6px;\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/search_1756192482000.svg');\n background-repeat: no-repeat;\n background-position: center;\n background-size: 14px 14px;\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon::before {\n content: '度';\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/search-hover_1756192477000.svg');\n visibility: hidden;\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon.ai_guide {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/ai_1756192472000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon.ai_guide::before {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/ai-icon-hover_1756192461000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon.ai_his {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/superman/ai_1756192472000.svg');\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon.ai_new_his {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/static/clock-circle-star_1765279751000.png');\n}\n.ai-bdsug.ai-bdsug-new ul .search-sug-icon.new_his {\n background-image: url('https://psstatic.cdn.bcebos.com/aife/static/normal_1765347349000.png');\n}\n.ai-bdsug.ai-bdsug-new ul .pc-aifile-img-container {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 6px;\n margin-right: 3px;\n}\n.ai-bdsug.ai-bdsug-new ul .pc-aifile-img-container img {\n width: 14px;\n height: 14px;\n border-radius: 3px;\n}\n.ai-bdsug.ai-bdsug-new ul .pc-aifile-img-container.pc-aifile-single-img {\n box-shadow: 0 0 0 0.5px rgba(220, 221, 224, 0.3) inset;\n border-radius: 3px;\n}\n.ai-bdsug.ai-bdsug-new ul .img-more-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 14px;\n height: 14px;\n background-color: #00000033;\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n color: #ffffff;\n line-height: 1;\n}\n.ai-bdsug.ai-bdsug-new ul .pc-aifile-info {\n display: flex;\n font-size: 14px;\n color: #9195a3;\n}\n.ai-bdsug.ai-bdsug-new ul .pc-aifile-more {\n margin-left: 3px;\n color: #9195a3;\n}\n.ai-bdsug.ai-bdsug-new .bdsug-feedback-tool-zone {\n margin-top: 10px;\n}\n.ai-bdsug.ai-bdsug-new .bdsug-feedback-tool-zone .setup_storeSug:hover {\n color: #4e6ef2 !important;\n}\n.ai-bdsug.ai-bdsug-new .bdsug-feedback-tool-zone .del_all_storeSug:hover {\n color: #4e6ef2 !important;\n}\n.ai-bdsug.ai-bdsug-new .bdsug-feedback-tool-zone .more_storeSug:hover {\n color: #4e6ef2 !important;\n}\n.ai-bdsug.ai-bdsug-new .bdsug-feedback-tool-zone *:last-child {\n margin-right: 0 !important;\n}\n.ai-bdsug.ai-bdsug-new .ai-bdsug-feedback-wrap {\n background: none;\n text-align: right;\n margin-right: 15px;\n}\n.ai-bdsug.ai-bdsug-new .ai-bdsug-feedback-wrap .bdsug-feedback {\n color: #9195a3;\n font-size: 13px;\n cursor: pointer;\n}\n.ai-bdsug.ai-bdsug-new .ai-bdsug-feedback-wrap .bdsug-feedback:hover {\n color: #4e6ef2;\n}\n.ai-bdsug.ai-bdsug-new.bdsug-ai-upgrade .ai-bdsug-feedback-wrap {\n margin-right: 16.5px;\n}\n.ai-bdsug.ai-bdsug-new.bdsug-ai-upgrade .bdsug-feedback-tool-zone {\n text-align: right;\n margin-right: 13.5px;\n}\n.ai-sug-panel-list {\n -webkit-font-smoothing: auto;\n -moz-osx-font-smoothing: auto;\n display: flex;\n justify-content: start;\n margin-bottom: 10px;\n margin-left: 17px;\n}\n.ai-sug-panel-list .ai-sug-panel-divider {\n height: 14px;\n margin: 0 7.5px;\n align-self: center;\n border-right: 0.5px solid #dbdce0;\n}\n.ai-sug-panel-list .ai-sug-panel-btn {\n cursor: pointer;\n padding: 0 7.5px;\n border-radius: 9px;\n height: 30px;\n display: flex;\n align-items: center;\n font-size: 14px;\n line-height: 14px;\n}\n.ai-sug-panel-list .ai-sug-panel-btn img {\n height: 14px;\n width: 14px;\n margin-right: 6px;\n}\n.ai-sug-panel-list .ai-sug-panel-btn:hover {\n color: #315efb;\n}\n.ai-sug-panel-list .ai-sug-panel-btn:hover img {\n filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(2345%) hue-rotate(218deg) brightness(103%) contrast(99%);\n}\n.ai-input-file-swiper-container {\n width: 100%;\n position: relative;\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-left-button,\n.ai-input-file-swiper-container .ai-input-file-swiper-right-button {\n position: absolute;\n top: 0;\n height: 100%;\n width: 59px;\n z-index: 2;\n display: flex;\n align-items: center;\n opacity: 1;\n transition: opacity 0.3s;\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-left-button.ai-input-file-swiper-hidden,\n.ai-input-file-swiper-container .ai-input-file-swiper-right-button.ai-input-file-swiper-hidden {\n opacity: 0;\n pointer-events: none;\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-left-button {\n left: 0;\n background: linear-gradient(92.65deg, #ffffff 2.78%, rgba(255, 255, 255, 0) 98.37%);\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-right-button {\n right: 0;\n background: linear-gradient(92.65deg, rgba(255, 255, 255, 0) 2.78%, #ffffff 98.37%);\n}\n.ai-input-file-swiper-container .ai-input-file-left-icon-wrapper,\n.ai-input-file-swiper-container .ai-input-file-right-icon-wrapper {\n width: 30px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: 9px;\n border-radius: 50%;\n background-color: rgba(255, 255, 255, 0.7);\n box-shadow: 0px 1.578px 9.467px rgba(0, 0, 0, 0.1);\n cursor: pointer;\n}\n.ai-input-file-swiper-container .ai-input-file-left-icon-wrapper:hover,\n.ai-input-file-swiper-container .ai-input-file-right-icon-wrapper:hover {\n background-color: #ffffff;\n}\n.ai-input-file-swiper-container .ai-input-file-left-icon-wrapper:hover .cs-icon-arrow-left,\n.ai-input-file-swiper-container .ai-input-file-right-icon-wrapper:hover .cs-icon-arrow-left,\n.ai-input-file-swiper-container .ai-input-file-left-icon-wrapper:hover .cs-icon-arrow-right,\n.ai-input-file-swiper-container .ai-input-file-right-icon-wrapper:hover .cs-icon-arrow-right {\n filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(2345%) hue-rotate(218deg) brightness(103%) contrast(99%);\n}\n.ai-input-file-swiper-container .ai-input-file-right-icon-wrapper {\n margin-left: 20px;\n}\n.ai-input-file-swiper-container .ai-input-file-cs-icon-left,\n.ai-input-file-swiper-container .ai-input-file-cs-icon-right {\n width: 100%;\n height: 100%;\n color: var(--cos-color-text);\n font-weight: 700;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.ai-input-file-swiper-container .ai-input-file-cs-icon-left .ai-input-file-cs-icon-arrow-left,\n.ai-input-file-swiper-container .ai-input-file-cs-icon-right .ai-input-file-cs-icon-arrow-left,\n.ai-input-file-swiper-container .ai-input-file-cs-icon-left .ai-input-file-cs-icon-arrow-right,\n.ai-input-file-swiper-container .ai-input-file-cs-icon-right .ai-input-file-cs-icon-arrow-right {\n height: 25px;\n width: 25px;\n}\n.ai-input-file-swiper-container .ai-input-file-cs-icon-left .ai-input-file-cs-icon-arrow-left,\n.ai-input-file-swiper-container .ai-input-file-cs-icon-right .ai-input-file-cs-icon-arrow-left {\n transform: rotate(180deg);\n}\n.ai-input-file-swiper-container .ai-input-file-cs-icon-left {\n margin-right: 2px;\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-scroll-container {\n position: relative;\n width: 100%;\n overflow-x: auto;\n scrollbar-width: none;\n /* Firefox */\n -ms-overflow-style: none;\n /* IE and Edge */\n z-index: 1;\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-scroll-container::-webkit-scrollbar {\n display: none;\n /* Chrome, Safari and Opera */\n}\n.ai-input-file-swiper-container .ai-input-file-swiper-wrapper {\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: max-content;\n column-gap: 9px;\n width: max-content;\n padding-right: 4px;\n}\n.ai-chat-input-file-container {\n margin-top: 3px;\n margin-bottom: 12px;\n}\n@keyframes rotateForever {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.ai-chat-input-file-container .ai-chat-input-file-delete {\n width: 15px;\n height: 15px;\n position: absolute;\n top: -1px;\n right: -1px;\n display: none;\n}\n.ai-chat-input-file-container .ai-chat-input-file-delete .ai-chat-input-file-delete-icon {\n width: 100%;\n height: 100%;\n}\n.ai-chat-input-file-container .ai-chat-input-file {\n position: relative;\n width: 228px;\n height: 60px;\n display: flex;\n flex-direction: row;\n border-radius: 12px;\n background-color: #F5F6FA;\n padding: 12px;\n box-sizing: border-box;\n cursor: pointer;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-icon {\n width: 36px;\n height: 36px;\n border-radius: 9px;\n margin-right: 9px;\n position: relative;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-icon .ai-chat-input-file-icon-img {\n border-radius: 9px;\n border: 0.5px solid #fff;\n width: 100%;\n height: 100%;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-content {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-start;\n height: 100%;\n overflow: hidden;\n flex: 1;\n padding: 1.5px 0;\n box-sizing: border-box;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-content .ai-chat-input-file-name {\n font-size: 12px;\n font-weight: 500;\n width: 100%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-content .ai-chat-input-file-desc {\n font-size: 12px;\n font-weight: 400;\n width: 100%;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-content .ai-chat-input-file-desc-success {\n display: flex;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-content .ai-chat-input-file-desc-success-name {\n margin-right: 6px;\n flex: 0 1 auto;\n}\n.ai-chat-input-file-container .ai-chat-input-file .ai-chat-input-file-content .ai-chat-input-file-desc-success-size {\n flex: 1;\n}\n.ai-chat-input-file-container .ai-chat-input-file:hover {\n background: rgba(78, 110, 242, 0.06);\n}\n.ai-chat-input-file-container .ai-chat-input-file:hover .ai-chat-input-file-delete {\n display: flex;\n}\n.ai-chat-input-file-container .ai-chat-input-file-uploading .ai-chat-input-file-icon-loading {\n position: absolute;\n top: 10px;\n left: 10px;\n width: 16px;\n height: 16px;\n animation: rotateForever 1s linear infinite;\n}\n.ai-chat-input-file-container .ai-chat-input-file-failed .ai-chat-input-file-content {\n color: #848691;\n}\n.ai-chat-input-file-container .ai-chat-input-image {\n position: relative;\n width: 54px;\n height: 54px;\n display: flex;\n flex-direction: row;\n border-radius: 12px;\n cursor: pointer;\n box-sizing: border-box;\n}\n.ai-chat-input-file-container .ai-chat-input-image .ai-chat-input-image-bg {\n object-fit: cover;\n border-radius: 12px;\n min-width: 100%;\n border: 0.5px solid #DCDDE0;\n box-sizing: border-box;\n}\n.ai-chat-input-file-container .ai-chat-input-image:hover .ai-chat-input-file-delete {\n display: flex;\n}\n.ai-chat-input-file-container .ai-chat-input-image-uploading .ai-chat-input-file-icon-loading {\n position: absolute;\n top: 15px;\n left: 15px;\n width: 24px;\n height: 24px;\n animation: rotateForever 1s linear infinite;\n}\n.ai-chat-input-file-container .ai-chat-input-file-click-upload {\n width: 60px;\n height: 60px;\n border-radius: 15px;\n background-color: #f5f6f9;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n}\n.ai-chat-input-file-container .ai-chat-input-file-click-upload:hover {\n background: rgba(78, 110, 242, 0.06);\n}\n.ai-chat-input-file-container .ai-chat-input-file-click-upload:hover img {\n filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(2345%) hue-rotate(218deg) brightness(103%) contrast(99%);\n}\n.ai-chat-input-file-container .ai-chat-input-file-click-upload .ai-chat-input-upload-img {\n height: 25px;\n width: 25px;\n}\n.ai-chat-input-file-container .image-click-upload {\n width: 54px;\n height: 54px;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-image {\n width: 60px;\n height: 60px;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-image-uploading .ai-chat-input-file-icon-loading {\n top: 18px;\n left: 18px;\n}\n.ai-chat-input-file-container-merge .image-click-upload {\n width: 60px;\n height: 60px;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file {\n width: 196px;\n height: 60px;\n flex-direction: column;\n padding: 12px 12px 9px;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-name {\n width: 100%;\n height: 14px;\n line-height: 14px;\n font-size: 14px;\n font-weight: 500;\n color: #222;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta {\n margin-top: 7px;\n height: 18px;\n display: flex;\n align-items: center;\n width: 100%;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta .ai-chat-input-file-icon {\n width: 18px;\n height: 18px;\n border-radius: 4.5px;\n margin-right: 6px;\n flex-shrink: 0;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta .ai-chat-input-file-icon .ai-chat-input-file-icon-img {\n border-radius: 4.5px;\n border: 0.25px solid #fff;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta .ai-chat-input-file-icon-placeholder {\n background-color: #D0D1D5;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta .ai-chat-input-file-meta-text {\n flex: 1;\n min-width: 0;\n height: 18px;\n line-height: 18px;\n font-size: 12px;\n font-weight: 400;\n color: #9195a3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta .ai-chat-input-file-meta-text .ai-chat-input-file-meta-type {\n color: #9195a3;\n margin-right: 6px;\n flex-shrink: 0;\n text-transform: uppercase;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file .ai-chat-input-file-meta .ai-chat-input-file-meta-text .ai-chat-input-file-meta-size {\n flex-shrink: 0;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file-mask {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 12px;\n background-color: rgba(0, 0, 0, 0.15);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 2;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file-mask .ai-chat-input-file-mask-loading {\n width: 24px;\n height: 24px;\n animation: rotateForever 1s linear infinite;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file-uploading .ai-chat-input-file-meta-text {\n color: #9195A3 !important;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file-delete {\n z-index: 3;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file-failed {\n background-color: #f5f6fa;\n}\n.ai-chat-input-file-container-merge .ai-chat-input-file-failed .ai-chat-input-file-name,\n.ai-chat-input-file-container-merge .ai-chat-input-file-failed .ai-chat-input-file-meta-text {\n color: #848691 !important;\n}\n.ai-input-file-guide-wrapper {\n width: 100%;\n height: 30px;\n margin-bottom: 12px;\n font-size: 14px;\n font-weight: 400;\n color: #333;\n}\n.ai-input-file-guide-wrapper .ai-input-file-guide-item {\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n height: 30px;\n padding: 0 12px;\n background-color: #f5f6f9;\n border-radius: 9px;\n}\n.ai-input-file-guide-wrapper .ai-input-file-guide-item .ai-input-file-guide-icon {\n width: 16px;\n height: 16px;\n object-fit: contain;\n margin-right: 6px;\n}\n.ai-input-file-guide-wrapper .ai-input-file-guide-item:hover {\n cursor: pointer;\n background: rgba(78, 110, 242, 0.06);\n color: #4E6EF2;\n}\n.ai-input-file-guide-wrapper .ai-input-file-guide-item:hover .ai-input-file-guide-icon {\n filter: brightness(0) saturate(100%) invert(35%) sepia(77%) saturate(2345%) hue-rotate(218deg) brightness(103%) contrast(99%);\n}\n.ai-input-file-guide-wrapper .ai-input-file-guide-disabled {\n opacity: 0.4;\n}\n.ai-input-file-guide-tooltip {\n display: none;\n}\n.snap-text-panel {\n max-height: inherit;\n padding-top: 12px;\n box-sizing: border-box;\n}\n.snap-text-panel .snap-text-panel-content {\n box-sizing: border-box;\n padding-left: 12px;\n display: flex;\n flex-wrap: wrap;\n max-height: 346px;\n overflow-y: scroll;\n overflow-x: hidden;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item {\n position: relative;\n overflow: hidden;\n cursor: pointer;\n margin-right: 12px;\n margin-bottom: 12px;\n margin-top: 3px;\n box-sizing: border-box;\n border-radius: 15px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item .snap-text-item-img-container {\n position: relative;\n border-radius: 15px;\n overflow: hidden;\n width: 100%;\n aspect-ratio: 3 / 2;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item .snap-text-item-img {\n width: 100%;\n aspect-ratio: 3 / 2;\n object-fit: cover;\n transition: transform 240ms ease-in-out;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item .snap-text-item-text {\n box-sizing: border-box;\n margin-top: 9px;\n padding: 0 6px;\n font-weight: 500;\n font-size: 14px;\n line-height: 14px;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: center;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item .snap-text-item-btn {\n position: absolute;\n font-size: 14px;\n bottom: 38px;\n transition: opacity 240ms ease-in-out;\n left: 50%;\n transform: translateX(-50%);\n width: 88px;\n height: 30px;\n z-index: 10;\n border-radius: 15px;\n background: #000000CC;\n color: #FFFFFF;\n display: flex;\n justify-content: center;\n align-items: center;\n opacity: 0;\n backdrop-filter: blur(30px);\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item .snap-text-item-btn:hover {\n backdrop-filter: blur(30px);\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item .snap-text-item-hover-mask {\n display: none;\n position: absolute;\n height: 60px;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.264) 100%);\n box-shadow: 0px 4px 4px 0px #00000040;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item:hover .snap-text-item-img {\n transform: scale(1.05);\n transform-origin: center center;\n}\n.snap-text-panel .snap-text-panel-content .snap-text-item:hover .snap-text-item-btn {\n opacity: 1;\n}\n.snap-text-panel .snap-text-panel-content .use-model-tag {\n position: absolute;\n top: 15px;\n left: 15px;\n z-index: 10;\n border-radius: 3px;\n padding-top: 2px;\n padding-right: 3px;\n padding-bottom: 2px;\n padding-left: 3px;\n font-size: var(--cos-text-caption, 12px);\n font-weight: 500;\n color: #fff;\n white-space: nowrap;\n backdrop-filter: blur(24px);\n background: linear-gradient(131deg, #286AFF 8.81%, #4E6EF2 33.25%, #7274F9 67.89%, #9F66FF 94.56%), rgba(0, 0, 0, 0.3);\n}\n.chat-input-single-line-exp .chat-input-textarea {\n line-height: 25px;\n max-height: 25px;\n}\n.chat-input-single-line-exp .ai-input-editor {\n line-height: 25px;\n max-height: 25px;\n}\n.chat-input-single-line-exp.chat-input-main-focus .chat-input-textarea {\n max-height: 62.5px;\n}\n.chat-input-single-line-exp .chat-input-wrapper.chat-ai-wrapper.chat-ai-file-wrapper {\n padding-left: 12.5px !important;\n}\n.chat-input-single-line-exp .chat-input-wrapper-border {\n background: #4e6ef2 !important;\n}\n#chat-input-main.chat-input-single-line-exp .chat-input-tool .right-tools-wrapper #chat-submit-button {\n width: var(--chat-submit-btn-width, 108px);\n height: 38px;\n background: #f0f3ff;\n border-radius: 12px;\n color: #4E6EF2;\n font-size: 17px;\n font-weight: var(--chat-submit-btn-font-weight, 500);\n border: none;\n cursor: pointer;\n}\n#chat-input-main.chat-input-single-line-exp .chat-input-tool .right-tools-wrapper #chat-submit-button:hover {\n background: linear-gradient(rgba(78, 110, 242, 0.06), rgba(78, 110, 242, 0.06)), #f0f3ff;\n}\n",""]),t.exports=e},function(t,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var w=b(1),x=b(57),h=b(448),_=b(449),u=b(450),p=b(113),y=b(451),g=b(452),S=b(112),n=(i.prototype.init=function(){var t,e;this.clearEl=this.rootDom.querySelector(".tools-clear-icon"),this.wrapperEl=this.rootDom.querySelector(".chat-input-wrapper"),this.inputEl=this.rootDom.querySelector("#chat-textarea"),this.panelEl=this.rootDom.querySelector("#chat-input-panel"),this.inputMainDom=this.rootDom.querySelector("#chat-input-main"),this.inputContainEl=this.rootDom.querySelector(".chat-input-container"),this.voiceInputWrapperEl=this.rootDom.querySelector("#voice-input-wrapper"),this.numeroElClass=".cs-input-city-selector",null!==(t=this.inputEl)&&void 0!==t&&t.removeAttribute("onkeydown"),this.isChatSearch||this.initSugInstace(),this.singleLineExperiment&&null!==(e=this.inputMainDom)&&void 0!==e&&e.classList.add("chat-input-single-line-exp")},i.prototype.attached=function(t){var e,n,i=t.initialFocus,a=t.hasOpenAnime,o=void 0!==a&&a,r=t.useBuiltInVoice,s=void 0!==r&&r,l=t.spaceVoice,a=void 0!==l&&l,r=t.blockSelectors,l=t.spaceVoiceScrollContainer,t=t.scene;void 0!==i&&!i||(null!==(i=this.inputEl)&&void 0!==i&&i.focus(),null!==(i=this.inputMainDom)&&void 0!==i&&i.classList.add("chat-input-main-focus")),s&&this.renderVoiceInputBtn(),a&&!(0,S.isSafari)()&&(this.spaceVoiceEnabled=!0,this.spaceVoiceScrollContainer=l,this.scene=t,this.bindSpaceVoice(r)),o&&(o=(new Date).toISOString().split("T")[0],localStorage.getItem(u.INPUT_ANIME_LS_KEY)!==o&&(localStorage.setItem(u.INPUT_ANIME_LS_KEY,o),null!=(e=this.inputMainDom)&&e.classList.add("openning-anime"),n=setTimeout(function(){null!=e&&e.classList.remove("openning-anime")},u.OPENING_ANIMATION_DURATION),document.querySelector(".chat-input-anchor").addEventListener("click",function(){clearTimeout(n),e.querySelector(".chat-input-op-anime").style.opacity="0";var t=setTimeout(function(){null!=e&&e.classList.remove("openning-anime"),clearTimeout(t)},1200)},!0)))},i.prototype.nextTick=function(t){var r=this;return this.nextTicksCallbackList.push(null!=t?t:function(){}),this.pending||(this.pending=!0,Promise.resolve().then(function(){var t,e;r.pending=!1;var n=r.nextTicksCallbackList.slice(0);r.nextTicksCallbackList.length=0;try{for(var i=(0,w.__values)(n),a=i.next();!a.done;a=i.next())(0,a.value)()}catch(o){t={error:o}}finally{try{a&&!a.done&&(e=i["return"])&&e.call(i)}finally{if(t)throw t.error}}})),t?Promise.resolve():new Promise(function(t){r.nextTicksCallbackList.push(t)})},i.prototype.getMode=function(){return this.mode},i.prototype.getInputEl=function(){return this.inputEl},i.prototype.getDefaultModel=function(){return this.defaultModel},i.prototype.emitAiToolChange=function(t,e,n){n=(0,w.__assign)({mode:this.mode,panelType:this.currentPanelName,panelName:this.currentPanelChineseName,action:t,trigger:e,hasAgent:this.hasAgent,hasFile:!(null===(e=this.inputEl)||void 0===e||!e.querySelector("#ai-input-file-tag")),hasPrefix:!!this.prefixEl,inputValue:this.getValue(),isComposing:this.aiInputStatus.isComposing,isUserInput:this.aiInputStatus.isUserInput,isCustomInput:this.aiInputStatus.isCustomInput},n);this.eventEmitter.emit("ai-tool-change",n)},i.prototype.setMode=function(t){var e,n=this,i=this.rootDom.querySelector("#chat-input-area");i&&t!==this.mode&&((this.mode=t)===y.ChatInputMode.AI?(this.savedNormalInputDom=i.innerHTML,i.innerHTML='\n \n \n \n \n ',null!==(e=this.wrapperEl)&&void 0!==e&&e.classList.add("chat-ai-wrapper"),null!==(e=this.wrapperEl)&&void 0!==e&&e.classList.remove("chat-normal-wrapper"),this.inputEl=this.rootDom.querySelector("#ai-input #ai-input-editor"),this.sugPanelInstance&&(null!==(e=null===(e=this.panelEl)||void 0===e?void 0:e.querySelector(".ai-bdsug"))&&void 0!==e&&e.remove(),null!==(e=null===(e=this.panelEl)||void 0===e?void 0:e.querySelector(".ai-sug-panel-list"))&&void 0!==e&&e.remove(),this.sugPanelInstance.destroy(),this.sugPanelInstance=null)):(this.isChatSearch?i.innerHTML='':i.innerHTML=this.savedNormalInputDom||'\n \n ',this.inputEl=this.rootDom.querySelector("#chat-textarea"),null!==(i=this.wrapperEl)&&void 0!==i&&i.classList.add("chat-normal-wrapper"),null!==(i=this.wrapperEl)&&void 0!==i&&i.classList.remove("chat-ai-wrapper"),this.panelEl.style.maxHeight="0",this.isChatSearch||this.nextTick(function(){n.mode===y.ChatInputMode.NORMAL&&n.initSugInstace()})),this.eventBinder.clear(y.ListenerEventType.INPUT),this.bindInputAreaEvent(),this.eventEmitter.emit("change",t),this.emitAiToolChange("mode-change","system",{mode:t}))},i.prototype.getCustomInputNode=function(t){var n=[];return t.forEach(function(t,e){"text"===t.type?n.push((0,_.getTextNode)(t)):"input"===t.type&&(n.push((0,_.getNoWidthNode)()),n.push((0,_.getInputNode)(t,e)),n.push((0,_.getNoWidthNode)()))}),n},i.prototype.upperPcInput=function(a,o,r,s){var l,u,c,p;return(0,w.__awaiter)(this,void 0,void 0,function(){var e,n,i=this;return(0,w.__generator)(this,function(t){return e=null===(l=this.inputEl)||void 0===l?void 0:l.querySelector(".ai-input-editor-content"),(e=a.isChatSearch?this.inputEl:e)?(r&&null!==(u=null===(u=this.inputEl)||void 0===u?void 0:u.querySelector(".ai-input-prefix"))&&void 0!==u&&u.setAttribute("data-function-tab",r),s&&null!==(p=null===(c=this.inputEl)||void 0===c?void 0:c.querySelector(".ai-input-prefix"))&&void 0!==p&&p.setAttribute("data-function-name",s),"text"===o?(n=document.createTextNode(a.word),e.appendChild(n)):"input-custom"===o?(n=(0,_.handleCustomInputData)(a),this.getCustomInputNode(n).forEach(function(t){null!=e&&e.appendChild(t)})):"agent"===o&&this.addAiInputAgent({agentName:a.source_name,agentId:a.agent_id,agentSearchId:a.agent_search_id}),setTimeout(function(){var t;null!==(t=i.inputEl)&&void 0!==t&&t.classList.remove("ai-input-caret-hidden"),(0,_.focusNeedInput)(i.inputEl.querySelector(".ai-input-editor-content")),i.inputEl.scrollTop=null===(t=i.inputEl)||void 0===t?void 0:t.scrollHeight},80),this.stopVoiceRecording()):null!==(c=this.inputEl)&&void 0!==c&&c.classList.remove("ai-input-caret-hidden"),[2]})})},i.prototype.getStatusInfo=function(){return{panelName:this.getCurrentPanelName()}},i.prototype.setInitalRow=function(t){this.initialRow=t},i.prototype.addAiInputContent=function(t){var e,n;if(null!==(e=this.inputEl)&&void 0!==e&&e.classList.add("ai-input-caret-hidden"),t.noClear||this.clearInput(!1),this.getValue().length>=this.getMaxInputLength())return this.eventEmitter.emit("threshold",this.getMaxInputLength()),void(null!==(n=this.inputEl)&&void 0!==n&&n.classList.remove("ai-input-caret-hidden"));null!==(n=t.inputCustom)&&void 0!==n&&n.length?(this.isChatSearch&&(this.aiInputStatus.isCustomInput=!0),this.upperPcInput(t.inputCustom,"input-custom",t.functionTab,t.functionName)):t.word&&this.upperPcInput(t,"text")},i.prototype.fileUpLoadInput=function(){var t;this.mode!==y.ChatInputMode.AI?(this.temporaryContent=this.getValue(),this.isVoiceRecording&&(this.voiceInputInitialValue=this.temporaryContent),this.sugPanelInstance&&(null!==(t=null===(t=this.panelEl)||void 0===t?void 0:t.querySelector(".ai-bdsug"))&&void 0!==t&&t.remove(),null!==(t=null===(t=this.panelEl)||void 0===t?void 0:t.querySelector(".ai-sug-panel-list"))&&void 0!==t&&t.remove(),this.sugPanelInstance.destroy(),this.sugPanelInstance=null),this.setMode(y.ChatInputMode.AI)):"ai_read"===this.getCurrentPanelName()&&!this.getAiInputStatus().isUserInput&&this.getValue()&&this.clearInput(!1),null!==(t=this.wrapperEl)&&void 0!==t&&t.classList.add("chat-ai-file-wrapper"),this.resetPlaceholder("描述想要了解的内容"),this.temporaryContent&&(this.setValue(this.temporaryContent),this.temporaryContent="")},i.prototype.reset=function(){this.closePanel()},i.prototype.resetPanelStatus=function(){var t;null!==(t=this.wrapperEl)&&void 0!==t&&t.classList.remove("chat-ai-file-wrapper")},i.prototype.getFunctionInfo=function(){var t=null===(t=this.inputEl)||void 0===t?void 0:t.querySelector(".ai-input-prefix");return{functionType:(null==t?void 0:t.getAttribute("data-function-type"))||"",functionTab:(null==t?void 0:t.getAttribute("data-function-tab"))||"",functionName:(null==t?void 0:t.getAttribute("data-function-name"))||""}},i.prototype.setPrefixNodeStatus=function(t){void 0===t&&(t=!0),this.fileEl&&(this.fileEl.style.display=t?"inline-block":"none")},i.prototype.updatePanelData=function(e){var n=this;void 0===e&&(e={}),this.currentPanelInstance?(Object.keys(e).forEach(function(t){n.currentPanelInstance.data.set(t,e[t])}),this.currentPanelInstance.update&&this.currentPanelInstance.update()):console.error("没有正在显示的面板实例")},i.prototype.addAiInputPrefix=function(t,e){var n;this.inputEl&&this.mode===y.ChatInputMode.AI&&((n=document.createElement("span")).className="ai-input-prefix-wrapper",n.contentEditable="false",n.innerHTML='\n \n \n '+t+'\n \n \n \n \n ',this.bindPrefixEvent(n),(0,_.createAiInputEditorContent)(this.inputEl),this.inputEl.insertBefore(n,this.inputEl.firstChild),this.prefixEl=n)},i.prototype.addAiInputAgent=function(t){var e,n=this;(this.inputEl&&!this.hasAgent||"orion"!==(null==t?void 0:t.agentType))&&(this.setMode(y.ChatInputMode.AI),(e=document.createElement("span")).className="cs-pc-input-agent",e.contentEditable="false",e.innerText="@"+t.agentName,this.inputEl.append(e),this.agentEl=e,this.hasAgent||this.removeUserInputSugText(),this.nextTick(function(){(0,_.focusInputLast)(n.inputEl)}),this.hasAgent=!0,this.emitAiToolChange("agent-add","manual",{agentInfo:t}))},i.prototype.removeUserInputSugText=function(){var e=this,t=null!==(n=this.inputEl.childNodes)&&void 0!==n?n:[],n=Array.from(t).findIndex(function(t){return t===e.agentEl});if(!(n<=0))for(var i=n-1;0<=i;i--)if(t[i]&&t[i].nodeType===Node.TEXT_NODE){var a=t[i].textContent.lastIndexOf("@");if(-1!==a){t[i].textContent=t[i].textContent.substring(0,a);break}t[i].textContent=""}},i.prototype.bindPrefixEvent=function(t){var e,n,i=this;t&&(e=t.querySelector(".close-icon"),t.addEventListener("mousedown",n=function(t){t.stopPropagation(),i.eventEmitter.emit("prefix-click"),i.emitAiToolChange("prefix-close","prefix-click"),i.closePanel(),null!=e&&e.removeEventListener("mousedown",n),i.stopVoiceRecording()}))},i.prototype.renderAiInputFilePrefix=function(g,f,m){var v;return void 0===f&&(f=1),void 0===m&&(m=!1),(0,w.__awaiter)(this,void 0,void 0,function(){var s,l,u,c,e,n,i,a,o,r,p,d,h=this;return(0,w.__generator)(this,function(t){switch(t.label){case 0:return[4,Promise.resolve().then(function(){return(0,w.__importStar)(b(453))})];case 1:if(p=t.sent(),s=p.getFileIcon,l=p.getImageUrl,u=p.IconMaps,c=!!g.isMixed,this.fileEl&&this.fileEl.classList.contains("ai-input-image")===("image"===g.uploadType)){switch(e=this.fileEl.querySelector(".ai-input-file-name"),n=this.fileEl.querySelector(".ai-input-file-num"),i=this.fileEl.querySelector(".ai-input-file-icon-img"),a=this.fileEl.querySelector(".ai-input-image-bg"),o=this.fileEl.querySelector(".ai-input-image-num"),r=this.fileEl.querySelector(".ai-input-file-icon-loading"),g.uploadType){case"file":e&&(e.innerText=g.fileName),n&&(c?(n.innerText=" 等"+f+"个文件和图片",m&&(i.src="https://psstatic.cdn.bcebos.com/basics/aichat/folder-%20color_1756432409000.png",null!=r&&r.remove())):1===f?(n.innerText=" "+f+"个文件",m&&(i.src=s(g),null!=r&&r.remove())):(n.innerText=" 等"+f+"个文件",m&&(i.src="https://psstatic.cdn.bcebos.com/basics/aichat/folder-%20color_1756432409000.png",null!=r&&r.remove())));break;case"image":a&&g.url&&(a.src=g.url),o&&(o.innerText=f.toString())}return[2]}return(this.fileEl&&(null!==(v=this.fileElMutationObserver)&&void 0!==v&&v.disconnect(),this.fileEl.remove(),this.fileEl=null,this.fileElMutationObserver=null),this.inputEl&&this.mode===y.ChatInputMode.AI&&g)?(d=document.createDocumentFragment(),p=function(t,e){var n,i,a,o,r=document.createElement("span");return(h.fileEl=r).contentEditable="false",r.id="ai-input-file-tag",r.style.display=null!==(n=h.inputMainDom)&&void 0!==n&&n.classList.contains("one-line-input")?"inline-block":"none",r.className=["file"===t?"ai-input-file":"ai-input-image",0===e.status||1===e.status?"file"===t?"ai-input-file-uploading":"ai-input-image-uploading":"",3===e.status?"ai-input-file-failed":""].filter(Boolean).join(" "),"file"===t?((o=document.createElement("span")).className="ai-input-file-inner",(a=document.createElement("span")).className="ai-input-file-icon",(n=document.createElement("img")).className="ai-input-file-icon-img",n.src=c?"https://psstatic.cdn.bcebos.com/basics/aichat/folder-%20color_1756432409000.png":s(e),a.appendChild(n),0!==e.status&&1!==e.status||((i=document.createElement("img")).className="ai-input-file-icon-loading",i.src=u.loadingIcon,a.appendChild(i)),o.appendChild(a),n=document.createElement("span"),i=document.createElement("span"),a=document.createElement("span"),n.className="ai-input-file-name-container",i.className="ai-input-file-name",a.className="ai-input-file-num",i.textContent=e.fileName,a.textContent=c?" 等"+f+"个文件和图片":" "+f+"个文件",n.appendChild(i),n.appendChild(a),o.appendChild(n),r.appendChild(o)):"image"===t&&(o=document.createElement("img"),t=document.createElement("div"),o.className="ai-input-image-bg",t.className="ai-input-image-num",o.src=l(e),t.innerText=f.toString(),r.classList.add("multi-image-mask"),r.appendChild(o),r.appendChild(t)),r},"file"!==g.uploadType&&"image"!==g.uploadType||(p=p(g.uploadType,g),d.appendChild(p)),null!==(v=this.inputEl.querySelector("#ai-input-file-tag"))&&void 0!==v&&v.remove(),this.getCurrentPanelName()?this.inputEl.appendChild(d):this.inputEl.insertBefore(d,this.inputEl.firstChild),this.fileElMutationObserver||(this.fileElMutationObserver=new MutationObserver(function(t){var e,n,i,a;if(h.mode!==y.ChatInputMode.NORMAL){var o=[];try{for(var r=(0,w.__values)(t),s=r.next();!s.done;s=r.next())s.value.removedNodes.forEach(function(t){return o.push(t)})}catch(p){e={error:p}}finally{try{s&&!s.done&&(n=r["return"])&&n.call(r)}finally{if(e)throw e.error}}try{for(var l=(0,w.__values)(o),u=l.next();!u.done;u=l.next())!function(e){"ai-input-file-tag"===e.id&&Promise.resolve().then(function(){var t;null!==(t=h.inputEl)&&void 0!==t&&t.contains(e)||null!==(t=h.inputEl)&&void 0!==t&&t.insertBefore(e,h.inputEl.firstChild)})}(u.value)}catch(d){c={error:d}}finally{try{u&&!u.done&&(i=l["return"])&&i.call(l)}finally{if(c)throw c.error}}var c=null===(i=h.inputEl)||void 0===i?void 0:i.querySelector("#ai-input-file-tag");c&&c!==(null===(i=h.inputEl)||void 0===i?void 0:i.firstChild)&&null!==(a=h.inputEl)&&void 0!==a&&a.insertBefore(c,h.inputEl.firstChild)}}),this.fileElMutationObserver.observe(this.inputEl,{childList:!0,subtree:!0})),(d=this.inputEl.lastChild)&&d.nodeType===Node.TEXT_NODE&&" "===d.data||this.inputEl.appendChild(document.createTextNode(" ")),this.temporaryContent&&g.status===x.UploadStatus.BOS_SUCCESS&&(this.temporaryContent=this.getValue(),this.setValue(""),this.getValue()||this.setValue(this.temporaryContent),this.temporaryContent=""),this.temporaryContent&&(this.getValue()||this.setValue(this.temporaryContent)),this.emitAiToolChange("file-add","upload",{fileItem:g}),this.resetPlaceholder("描述想要了解的内容"),this.nextTick(function(){(0,_.setCursorToNode)(h.inputEl.lastChild)}),[2]):[2]}})})},i.prototype.bindFilePrefixEvent=function(e){var n,i,a=this;e&&(n=e.querySelector(".ai-input-file-delete"),this.eventBinder.add(e,"mouseenter",function(){var t=e.getBoundingClientRect();n.style.cssText="\n top: "+(t.top-4.5)+"px;\n left: "+(t.right-11)+"px;\n ",a.eventEmitter.emit("prefix-file-hover")},y.ListenerEventType.OTHER),i=function(t){t.stopPropagation(),a.deletePrefixFile(),a.eventEmitter.emit("prefix-file-click-delete"),a.emitAiToolChange("file-remove","delete-button"),null!=n&&n.removeEventListener("mousedown",i),a.fileElMutationObserver&&(a.fileElMutationObserver.disconnect(),a.fileElMutationObserver=null)},n.addEventListener("mousedown",i),e.appendChild(n))},i.prototype.setValue=function(t){var e,n=this;this.inputEl&&(this.mode===y.ChatInputMode.NORMAL?this.inputEl.value=t:(Array.from(this.inputEl.childNodes).forEach(function(t){t.nodeType===Node.TEXT_NODE&&n.inputEl.removeChild(t)}),this.isChatSearch?(0,_.appendChildToAiInputWithBr)(this.inputEl,t):(e=document.createTextNode(t),this.inputEl.appendChild(e))),this.checkClearIcon(),this.resetPlaceholder(),this.recalculateInputHeight(),this.overflowToMultiline&&1===this.initialRow&&this.throttledCheckOverflow(""===t))},i.prototype.setFocus=function(){var t;null!==(t=this.inputEl)&&void 0!==t&&t.focus()},i.prototype.getValue=function(){var e=this;if(!this.inputEl)return"";if(this.mode===y.ChatInputMode.NORMAL)return this.isChatSearch?this.inputEl.value:this.inputEl.value.replace(/\n/g," ").trim();var t=Array.from(this.inputEl.childNodes);return 0===t.length?"":t.filter(function(t){return!(t instanceof HTMLElement&&(t.classList.contains("ai-input-prefix-wrapper")||t.classList.contains("ai-input-file")||t.classList.contains("cs-pc-input-agent")||t.classList.contains("ai-input-image")))}).map(function(t){return t.nodeType===Node.TEXT_NODE?t.textContent||"":t instanceof HTMLElement?e.isChatSearch&&t instanceof HTMLBRElement?"\n":t.innerText:""}).join("").trim()},i.prototype.getHasAgent=function(){return this.hasAgent},i.prototype.closeSugUpdate=function(){var t;null!==(t=null===(t=this.sugPanelInstance)||void 0===t?void 0:t.sug)&&void 0!==t&&t.closeSugUpdate()},i.prototype.deletePrefixFile=function(){var t;null!==(t=this.fileEl)&&void 0!==t&&t.remove(),null!==(t=this.fileElMutationObserver)&&void 0!==t&&t.disconnect(),this.fileEl=null,this.fileElMutationObserver=null,this.eventEmitter.emit("prefix-file-click-delete"),this.emitAiToolChange("file-remove","delete-button")},i.prototype.openAiPanel=function(n,i,a){var o;return void 0===i&&(i=n),void 0===a&&(a={}),(0,w.__awaiter)(this,void 0,void 0,function(){var e;return(0,w.__generator)(this,function(t){return e=null===(o=n.type)||void 0===o?void 0:o.replace(/^new_/,""),this.sugPanelInstance&&(null!==(o=null===(o=this.panelEl)||void 0===o?void 0:o.querySelector(".ai-bdsug"))&&void 0!==o&&o.remove(),null!==(o=null===(o=this.panelEl)||void 0===o?void 0:o.querySelector(".ai-sug-panel-list"))&&void 0!==o&&o.remove(),this.sugPanelInstance.destroy(),this.sugPanelInstance=null),n&&this.currentPanelName===e?(0,_.focusInputLast)(this.inputEl):(this.defaultModel=null,this.mode===y.ChatInputMode.AI&&this.closePanel({needFocus:!1}),this.currentPanelName=e,this.currentPanelChineseName=n.text,this.setMode(y.ChatInputMode.AI),this.addAiInputPrefix(n.text,e),this.checkClearIcon(),"ai_ppt"===e?this.setPlaceHolder("输入想要生成的PPT主题和具体要求,快速生成PPT"):this.setPlaceHolder((null==i?void 0:i.place_holder)||"问我任何问题"),this.renderPanelFromSanComponent(e,i,a),this.eventEmitter.emit("panel-render",(0,w.__assign)((0,w.__assign)({},n),{type:e})),this.emitAiToolChange("panel-open","panel-render",i),this.addDefaultContent(i),this.stopVoiceRecording()),[2]})})},i.prototype.addDefaultContent=function(t){var e=this,n=null==t?void 0:t["function"],i=null==t?void 0:t.default_content;(n||i)&&(n?this.nextTick(function(){var t;e.addAiInputContent({inputCustom:(null===(t=null==n?void 0:n.data)||void 0===t?void 0:t.input.input_custom)||{}})}):(this.addPrefixHolder(),this.aiPrefixContent=i,this.nextTick(function(){e.setValue(i)})))},i.prototype.resetAiInputStatus=function(){this.aiInputStatus={isComposing:!1,isBreakRow:!1,isCustomInput:!1,isUserInput:!1}},i.prototype.getAiInputStatus=function(){return this.aiInputStatus},i.prototype.closePanel=function(t){var e,n=this,i=(t||{}).needFocus,t=void 0===i||i,a=this.panelEl;if(a){if(this.aiPrefixContent="",this.currentPanelName="",this.currentPanelInstance&&(null!==(e=(i=this.currentPanelInstance).dispose)&&void 0!==e&&e.call(i),this.currentPanelInstance=null),this.resetAiInputStatus(),this.setMode(y.ChatInputMode.NORMAL),a.querySelector(".ai-bdsug"))a.querySelectorAll(".chat-input-panel-container").forEach(function(t){return t.remove()});else for(;a.firstChild;)a.removeChild(a.firstChild);this.eventEmitter.emit("panel-close"),this.emitAiToolChange("panel-close","panel-close"),null!==(e=this.prefixEmptyDom)&&void 0!==e&&e.remove(),this.prefixEmptyDom=null,this.checkClearIcon(),t&&setTimeout(function(){var t;n.mode===y.ChatInputMode.NORMAL&&document.activeElement!==n.inputEl&&((0,_.focusInputLast)(n.inputEl),t=n.getValue().length,n.inputEl.setSelectionRange(t,t))},80)}},i.prototype.showPlaceHolder=function(){var t;null!==(t=this.inputEl)&&void 0!==t&&t.classList.contains("ai-input-placeholder")||null!==(t=this.inputEl)&&void 0!==t&&t.classList.add("ai-input-placeholder")},i.prototype.hidePlaceHolder=function(){var t,e;null!==(t=this.inputEl)&&void 0!==t&&t.classList.contains("ai-input-placeholder")&&null!==(e=this.inputEl)&&void 0!==e&&e.classList.remove("ai-input-placeholder")},i.prototype.checkClearIcon=function(){var t;this.getValue()?null!==(t=this.clearEl)&&void 0!==t&&t.classList.add("show-clear-icon"):null!==(t=this.clearEl)&&void 0!==t&&t.classList.remove("show-clear-icon")},i.prototype.renderPanelFromSanComponent=function(t,i,a){var e,o=this;void 0===a&&(a={});var r=this.panelEl;if(r){var s=document.createElement("div");s.className="chat-input-panel-container";var n=((n={})[y.ChatPanel.CREATE]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(454))})},n[y.ChatPanel.PHOTO]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(461))})},n[y.ChatPanel.MUSIC]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(468))})},n[y.ChatPanel.NUMERO]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(475))})},n[y.ChatPanel.READ]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.DEEP_RESEARCH]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.CODE]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.PPT]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n[y.ChatPanel.TRANSLATE]=function(){return Promise.resolve().then(function(){return(0,w.__importStar)(b(40))})},n);try{n[t],null!==(e=n[t])&&void 0!==e&&e.call(n).then(function(t){var e=t["default"]||t;o.currentPanelInstance&&(null!==(n=(t=o.currentPanelInstance).dispose)&&void 0!==n&&n.call(t),o.currentPanelInstance=null);var n=(0,w.__assign)((0,w.__assign)({},i),{hoverText:i.hover_text||"做同款"}),e=new e({data:(0,w.__assign)((0,w.__assign)({},n),a)});e.on("click",function(t,e){null!=t&&t.usedModel?o.defaultModel=t.usedModel:o.defaultModel=null,o.eventEmitter.emit("panel-item-click",t,e),o.stopVoiceRecording()}),e.on("input-upload",o.handleInputUpload.bind(o)),e.attach(s),o.renderPanelDivider(),r.appendChild(s),o.currentPanelInstance=e})}catch(err){console.error("面板加载失败",err)}}},i.prototype.handleVoiceRecognized=function(t){var e,n=this;this.voiceRecognizedText=t;var i=""+this.voiceInputInitialValue+t;this.mode===y.ChatInputMode.AI?(this.voiceRecognitionNode&&this.voiceRecognitionNode.parentNode?this.voiceRecognitionNode.textContent=t:(t=document.createTextNode(t),this.voiceRecognitionNode=t,null!==(e=this.inputEl)&&void 0!==e&&e.appendChild(t)),this.nextTick(function(){(0,_.focusInputLast)(n.inputEl)})):(this.setValue(i),this.nextTick(function(){n.setFocus()})),this.inputEl.scrollTop=null===(e=this.inputEl)||void 0===e?void 0:e.scrollHeight,this.recalculateInputHeight(),this.eventEmitter.emit("input",i)},i.prototype.renderVoiceInputBtn=function(){var n=this;Promise.resolve().then(function(){return(0,w.__importStar)(b(484))}).then(function(t){var e;n.voiceInputInstance||null!==(e=n.voiceInputWrapperEl)&&void 0!==e&&e.hasChildNodes()||((t=new(t["default"]||t)).data.set("scene",n.scene||"result"),t.data.set("spaceVoice",n.spaceVoiceEnabled),t.on("recording-start",function(t){n.voiceRecognitionNode=null,n.voiceInputInitialValue=n.getValue(),n.isVoiceRecording=!0,n.voiceRecordingStartTime=Date.now(),n.voiceRecognizedText="",n.eventEmitter.emit("voice-input-start",t)}),t.on("recognized",function(t){n.handleVoiceRecognized(t),n.eventEmitter.emit("voice-input-recognized",t)}),t.on("recording-stop",function(){n.finishVoiceInput()}),t.on("recording-error",function(t){n.finishVoiceInput(),n.eventEmitter.emit("voice-input-error",t)}),t.on("tip-show",function(){n.eventEmitter.emit("voice-input-tip-show")}),t.attach(n.voiceInputWrapperEl),n.voiceInputInstance=t)})},i.prototype.bindSpaceVoice=function(i){var t,a=this,o=!1,r=null,s=null,l=!1,u=!1,c=!0;null!==(t=this.spaceVoiceVisibilityObserver)&&void 0!==t&&t.disconnect(),this.spaceVoiceVisibilityObserver=null,"undefined"!=typeof IntersectionObserver&&this.inputMainDom&&(this.spaceVoiceVisibilityObserver=new IntersectionObserver(function(t){t=t[t.length-1];c=!(null==t||!t.isIntersecting)}),this.spaceVoiceVisibilityObserver.observe(this.inputMainDom)),this.eventBinder.add(document,"compositionstart",function(){u=!0},y.ListenerEventType.OTHER,!0),this.eventBinder.add(document,"compositionend",function(){u=!1},y.ListenerEventType.OTHER,!0),this.eventBinder.add(document,"keydown",function(t){var e,n;return!l||t.isComposing||u||"Process"!==t.key&&(" "===t.key||"Space"===t.code)?void("Process"===t.key||" "!==t.key&&"Space"!==t.code||t.isComposing||u||a.isSpaceVoiceModalOpen(i)||!c&&!l||(!(n=document.activeElement)||n===document.body||null!==(e=a.inputEl)&&void 0!==e&&e.contains(n)||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable)&&(t.preventDefault(),t.repeat||(l=!0,s&&window.clearTimeout(s),s=window.setTimeout(function(){(s=null,p.prewarmRecorder)()["catch"](function(){})},300),r&&window.clearTimeout(r),r=window.setTimeout(function(){var t,e;r=null,l&&(o=!0,null!==(t=a.inputEl)&&void 0!==t&&t.focus(),a.mode===y.ChatInputMode.NORMAL&&(e=a.inputEl.value.length,a.inputEl.setSelectionRange(e,e)),null!==(t=a.inputEl)&&void 0!==t&&t.click(),null!==(t=null===(e=a.voiceInputInstance)||void 0===e?void 0:e.startRecording)&&void 0!==t&&t.call(e,"space"))},500)))):(l=!1,r&&(window.clearTimeout(r),r=null),s&&(window.clearTimeout(s),s=null),void(o?(o=!1,null!==(t=null===(n=a.voiceInputInstance)||void 0===n?void 0:n.resetRecording)&&void 0!==t&&t.call(n)):(0,p.discardPrewarmRecorder)()))},y.ListenerEventType.OTHER,!0),this.eventBinder.add(document,"keyup",function(t){var e;"Process"===t.key||" "!==t.key&&"Space"!==t.code||l&&(l=!1,t.isComposing||u||(s&&(window.clearTimeout(s),s=null),r&&(window.clearTimeout(r),r=null),o?(o=!1,null!==(t=null===(e=a.voiceInputInstance)||void 0===e?void 0:e.resetRecording)&&void 0!==t&&t.call(e)):((0,p.discardPrewarmRecorder)(),a.compensateSpaceShortPress())))},y.ListenerEventType.OTHER,!0);this.eventBinder.add(window,"blur",function(){var t,e;l&&(l=!1,s&&(window.clearTimeout(s),s=null),r&&(window.clearTimeout(r),r=null),o?(o=!1,null!==(e=null===(t=a.voiceInputInstance)||void 0===t?void 0:t.resetRecording)&&void 0!==e&&e.call(t)):((0,p.discardPrewarmRecorder)(),a.compensateSpaceShortPress()))},y.ListenerEventType.OTHER)},i.prototype.compensateSpaceShortPress=function(){document.activeElement===this.inputEl?(this.mode!==y.ChatInputMode.AI||this.getValue())&&document.execCommand&&document.execCommand("insertText",!1," "):this.getScroller(this.spaceVoiceScrollContainer).scrollBy({top:.8*window.innerHeight,behavior:"smooth"})},i.prototype.getScroller=function(t){var e;if("function"==typeof t){if(e=t())return e}else if(t)if(e=document.querySelector(t))return e;return window},i.prototype.isSpaceVoiceModalOpen=function(t){return!(!t||!t.length)&&t.some(function(t){t=document.querySelector(t);if(!t)return!1;t=getComputedStyle(t);return"none"!==t.display&&"hidden"!==t.visibility})},i.prototype.finishVoiceInput=function(){var t;this.isVoiceRecording&&(t=0e.clientHeight)return;if(("auto"===n.overflowX||"scroll"===n.overflowX)&&e.scrollWidth>e.clientWidth&&Math.abs(t.deltaX)>Math.abs(t.deltaY))return;e=e.parentElement}var i=t.deltaY;t.preventDefault(),t.stopPropagation(),a.inputEl.scrollTop+=i},y.ListenerEventType.OTHER,{passive:!1})},i.prototype.bindWindowScroll=function(){var i=this,e=!1,n=window.scrollY;this.eventBinder.add(window,"scroll",function(){var t;window.scrollY!==n&&(e||(1!==i.initialRow||null!==(t=i.wrapperEl)&&void 0!==t&&t.classList.contains("one-line-input")||null!==(t=i.wrapperEl)&&void 0!==t&&t.classList.add("one-line-input"),window.requestAnimationFrame(function(){var t;null!==(t=i.inputEl)&&void 0!==t&&t.blur(),e=!1}),e=!0))},y.ListenerEventType.OTHER);var a,o,r=document.querySelector(".smart_input_superman #head");r&&(a=!1,o=r.scrollTop,this.eventBinder.add(r,"wheel",function(t){for(var e,n=t.target;n&&n!==document.body;){if("chat-input-main"===n.id)return;n=n.parentElement}r.scrollTop!==o&&(a||(1!==i.initialRow||null!==(e=i.wrapperEl)&&void 0!==e&&e.classList.contains("one-line-input")||null!==(e=i.wrapperEl)&&void 0!==e&&e.classList.add("one-line-input"),window.requestAnimationFrame(function(){var t;null!==(t=i.inputEl)&&void 0!==t&&t.blur(),a=!1}),a=!0))},y.ListenerEventType.OTHER))},i.prototype.bindWindowDrag=function(){var i,a,o=this;this.disableAi||((i=document.createElement("div")).className="chat-input-drag-mask",i.innerHTML='\n
\n \n
\n '+u.DRAGCONTENT.TITLE+'\n
\n
\n '+u.DRAGCONTENT.FILETEXT+'\n
\n
\n '+u.DRAGCONTENT.IMAGETEXT+"\n
\n
\n ",a=0,this.eventBinder.add(window,"dragenter",function(t){var e,n=t.dataTransfer;n&&null!==(e=n.types)&&void 0!==e&&e.includes("Files")&&(t.preventDefault(),1===++a&&(document.body.contains(i)||document.body.appendChild(i),i.style.display="flex",o.eventEmitter.emit("drag-show",{event:t})))},y.ListenerEventType.OTHER),this.eventBinder.add(window,"dragleave",function(t){var e,n=t.dataTransfer;n&&null!==(e=n.types)&&void 0!==e&&e.includes("Files")&&(t.preventDefault(),0===(a=Math.max(0,a-1))&&(i.style.display="none"))},y.ListenerEventType.OTHER),this.eventBinder.add(window,"dragover",function(t){var e,n=t.dataTransfer;n&&null!==(e=n.types)&&void 0!==e&&e.includes("Files")&&t.preventDefault()},y.ListenerEventType.OTHER),this.eventBinder.add(window,"drop",function(t){var e,n=t.dataTransfer;n&&null!==(e=n.types)&&void 0!==e&&e.includes("Files")&&(t.preventDefault(),a=0,i.style.display="none",o.eventEmitter.emit("drag-done",{event:t,fileSuffix:(0,_.getDragFileType)(t.dataTransfer)}),o.extractFilesFromEvent(t.dataTransfer))},y.ListenerEventType.OTHER))},i.prototype.bindContainerClick=function(){var t=this;this.inputContainEl&&this.inputEl&&this.eventBinder.add(this.inputContainEl,"click",function(){return(0,w.__awaiter)(t,void 0,void 0,function(){var e;return(0,w.__generator)(this,function(t){return(0,_.hasSelection)()||(this.mode===y.ChatInputMode.NORMAL?(e=this.inputEl).setSelectionRange(e.value.length,e.value.length):(0,_.focusInputLast)(this.inputEl)),[2]})})},y.ListenerEventType.OTHER)},i.prototype.bindBeforeInput=function(){var o=this;this.inputEl&&this.eventBinder.add(this.inputEl,"beforeinput",function(t){var e=o.getValue(),n=window.getSelection(),i=n&&0!==n.rangeCount?n.toString().length:0,a="";"insertText"!==t.inputType&&"insertCompositionText"!==t.inputType||(a=null!==(n=t.data)&&void 0!==n?n:"");i=e.length-i+a.length,a=o.getMaxInputLength();e.length>=a&&i>e.length&&(o.eventEmitter.emit("threshold",a),t.preventDefault())},y.ListenerEventType.INPUT)},i.prototype.getMaxInputLength=function(){return this.currentPanelName===y.ChatPanel.MUSIC?u.AI_MUSIC_INPUT_MAX_LENGTH:this.isChatSearch?u.CHAT_INPUT_MAX_LENGTH:u.INPUT_MAX_LENGTH},i.prototype.bindMousedown=function(){this.inputEl&&this.eventBinder.add(this.inputEl,"mousedown",function(t){t.stopPropagation()},y.ListenerEventType.INPUT)},i.prototype.bindClick=function(){var n=this;this.inputEl&&this.eventBinder.add(this.inputEl,"click",function(t){var e;t.stopPropagation(),n.overflowToMultiline||null===(e=n.inputMainDom)||void 0===e||e.classList.remove("one-line-input"),n.eventEmitter.emit("click",{type:"input",value:n.getValue(),event:t})},y.ListenerEventType.INPUT)},i.prototype.bindPaste=function(){var s=this;this.inputEl&&this.eventBinder.add(this.inputEl,"paste",function(t){var e,n=t.clipboardData,i=n.getData("text/plain");if(""!==i){if(s.mode===y.ChatInputMode.NORMAL){var a=s.getValue(),o=s.getMaxInputLength(),r=s.inputEl,r=(null!==(e=r.selectionEnd)&&void 0!==e?e:0)-(null!==(r=r.selectionStart)&&void 0!==r?r:0);if(a.length-r+i.length<=o)return}return t.preventDefault(),void s.handlePasteText(n)}n.files&&0=t&&(this.eventEmitter.emit("threshold",t),i=0<(n=t+e-n.length)?i.slice(0,n):""),document.execCommand&&document.execCommand("insertText",!1,i)||(a=i.split("\n"),this.mode===y.ChatInputMode.NORMAL?(0,_.insertAtTextareaRange)(this.inputEl,i):a.forEach(function(t,e){t=document.createTextNode(t);(0,_.insertAtRange)(t),e!==a.length-1&&(0,_.insertAtRange)(document.createElement("br"))})),(0,_.isCursorAtEnd)(this.inputEl)&&(this.inputEl.scrollTop=this.inputEl.scrollHeight))},i.prototype.getCurrentPanelName=function(){return this.currentPanelName},i.prototype.setPlaceHolder=function(t){var e;this.inputEl&&(this.inputEl.setAttribute("placeholder",t),this.mode===y.ChatInputMode.AI&&null!==(e=this.inputEl)&&void 0!==e&&e.classList.add("ai-input-placeholder"))},i.prototype.resetPlaceholder=function(t){var e,n;this.inputEl&&(e=this.inputEl.getAttribute("placeholder"),t&&e!==t&&(this.inputEl.setAttribute("placeholder",t),this.mode===y.ChatInputMode.AI&&null!==(n=this.inputEl)&&void 0!==n&&n.classList.add("ai-input-placeholder")),t=this.aiPrefixContent,n=this.getValue(),!t&&!n||t===n&&!this.aiInputStatus.isUserInput?this.showPlaceHolder():this.hidePlaceHolder())},i.prototype.clearInput=function(t){if(void 0===t&&(t=!1),this.inputEl instanceof HTMLTextAreaElement)this.setValue("");else if(t)this.currentPanelName?this.closePanel():this.setValue(""),this.isChatSearch&&(this.hasAgent=!1,this.aiInputStatus.isCustomInput=!1);else{for(var e=this.inputEl,n=e.childNodes.length-1;0<=n;n--){var i=e.childNodes[n];i.nodeType!==Node.ELEMENT_NODE&&e.removeChild(i)}var a=this.inputEl.querySelector(".ai-input-editor-content");a?Array.from(a.childNodes).forEach(function(t){a.removeChild(t)}):(0,_.createAiInputEditorContent)(this.inputEl);var o=this.inputEl.querySelector(".ai-input-editor-content");null!=o&&o.appendChild(document.createTextNode(" ")),(0,_.focusInputLast)(o)}null!==(o=this.inputEl)&&void 0!==o&&o.focus(),this.recalculateInputHeight()},i.prototype.destroy=function(){var t,e;null!==(t=this.sugPanelInstance)&&void 0!==t&&t.destroy(),(this.sugPanelInstance=null)!==(t=null===(e=this.sanInstance)||void 0===e?void 0:e.dispose)&&void 0!==t&&t.call(e),this.rootDom.innerHTML="",this.eventBinder.clear(),null!==(e=this.spaceVoiceVisibilityObserver)&&void 0!==e&&e.disconnect(),this.spaceVoiceVisibilityObserver=null,this.stopVoiceRecording(),null!==(e=null===(t=this.voiceInputInstance)||void 0===t?void 0:t.dispose)&&void 0!==e&&e.call(t),this.voiceInputInstance=null,this.throttledCheckOverflow.cancel(),null!==(e=this.overflowDetector)&&void 0!==e&&e.destroy()},i.prototype.initSugInstace=function(){return(0,w.__awaiter)(this,void 0,Promise,function(){var e,n;return(0,w.__generator)(this,function(t){switch(t.label){case 0:return e={bds:window.bds,maxNum:10,withoutRich:window.bds.comm.supportis,withoutZhixin:!0,form:document.querySelector("#form"),ipt:this.inputEl,newIpt:this.inputEl,newWrapper:this.panelEl,aiWrapper:this.panelEl,cbname:"bdsugresultcb",sugClickCallback:this.sugClick.bind(this),sugFocusCallback:this.sugFocus.bind(this),sugFeedbackClick:this.sugFeedbackClick.bind(this),hideSugCallback:this.hideSug.bind(this),useFeedback:!window.bds.comm.ishome,showSugCallback:this.showSug.bind(this),submission:window.form_submit},this.sugPanelInstance&&(this.sugPanelInstance.destroy(),this.sugPanelInstance=null),[4,Promise.resolve().then(function(){return(0,w.__importStar)(b(494))})];case 1:return n=t.sent(),n=n["default"]||n,n=new n(e),this.sugPanelInstance=n,this.renderPanelDivider(),[2]}})})},i.prototype.renderPanelDivider=function(){var t,e;this.panelEl.querySelector(".chat-input-panel-divider")||((t=document.createElement("div")).className="chat-input-panel-divider",(e=null===(e=this.panelEl)||void 0===e?void 0:e.firstChild)?this.panelEl.insertBefore(t,e):null!==(e=this.panelEl)&&void 0!==e&&e.appendChild(t))},i.prototype.bindChatTool=function(){var l=this,t=this.rootDom.querySelector(".chat-input-tool");this.eventBinder.add(this.inputContainEl,"mousedown",function(t){t.target.closest(l.numeroElClass)?t.stopPropagation():document.activeElement===l.inputEl&&(t.preventDefault(),t.stopPropagation())},y.ListenerEventType.TOOLS),this.eventBinder.add(this.inputContainEl,"click",function(t){t.target.closest(l.numeroElClass)?t.stopPropagation():(null!=t&&t.stopPropagation(),l.nextTick(function(){(0,_.hasSelection)()||(0,_.focusInputLast)(l.inputEl)}),l.eventEmitter.emit("click",{type:"tool",value:l.getValue(),event:t}))},y.ListenerEventType.TOOLS),this.eventBinder.add(t,"mousedown",function(t){l.inputEl&&(t.target.closest(l.numeroElClass)?t.stopPropagation():document.activeElement===l.inputEl&&(t.preventDefault(),t.stopPropagation()))},y.ListenerEventType.TOOLS),this.eventBinder.add(t,"click",function(t){l.inputEl&&(t.target.closest(l.numeroElClass)?t.stopPropagation():document.activeElement===l.inputEl&&(t.preventDefault(),t.stopPropagation(),l.eventEmitter.emit("click",{type:"tool",value:l.getValue(),event:t})))},y.ListenerEventType.TOOLS),this.eventBinder.add(this.panelEl,"mousedown",function(t){t.target.closest(l.numeroElClass)?t.stopPropagation():t.preventDefault()},y.ListenerEventType.PANEL);var u=null;this.eventBinder.add(this.panelEl,"wheel",function(t){for(var e=t.target;e&&e!==l.panelEl;){if(50t},a.prototype.checkContentObscured=function(t,e){if(!t)return!1;if(!e||""===(null===(a=t.value)||void 0===a?void 0:a.trim()))return!1;var n=t.value,i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),e=a.right-i.right,e=i.width+e+6;if(e-=a.width,n===this.lastCheckedText&&e===this.lastAvailableWidth)return this.lastObscuredResult;if(this.lastCheckedText=n,this.lastAvailableWidth=e,this.measureTextOverflow(n,t,e))return this.lastObscuredResult=!0;t=t.scrollHeight>t.clientHeight;return this.lastObscuredResult=t},a.prototype.resetStyleCache=function(){var t;(this.textareaStyleCache=null)!==(t=this.measureEl)&&void 0!==t&&t.parentNode&&this.measureEl.parentNode.removeChild(this.measureEl),this.measureEl=null},a.prototype.resetResultCache=function(){this.lastCheckedText="",this.lastObscuredResult=!1,this.lastAvailableWidth=0},a.prototype.destroy=function(){this.resetStyleCache(),this.resetResultCache()},a);function a(){this.textareaStyleCache=null,this.measureEl=null,this.lastCheckedText="",this.lastObscuredResult=!1,this.lastAvailableWidth=0}e.OverflowDetector=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.appendChildToAiInputWithBr=e.createAiInputEditorContent=e.getDragFileType=e.hitSample=e.getDataFromDom=e.isCursorAtEnd=e.hasSelection=e.insertAtTextareaRange=e.insertAtRange=e.handleCustomInputData=e.isCaretAtEnd=e.createSugPanelDom=e.handleInputFieldBackspace=e.handleInputFieldChange=e.existCustomNode=e.focusNeedInput=e.focusInputLast=e.getCustomInputNode=e.getInputNode=e.getTextNode=e.getCursorPosition=e.setCursorToNode=e.deleteWaitNode=e.cancelWaitDeleteNode=e.setWaitDeleteNode=e.isWaitDeleteNode=e.isInputFieldNode=e.isNoWidthNode=e.isInputNode=e.getNoWidthNode=e.clearCustomNode=void 0;var c=n(1),i=n(112),u=n(57),p="input-custom-item",a="input-custom-placeholder",o="input-custom-no-width",r="deletion",s="input-custom-need-clear-text";function l(){var t=document.createElement("div");return t.innerHTML=' ',t.childNodes[0]}function d(t){return!(null===(t=null==t?void 0:t.className)||void 0===t||!t.includes(p))}function h(t){return!(null===(t=null==t?void 0:t.className)||void 0===t||!t.includes(o))}function g(t){return null==t?void 0:t.classList.contains("ai-input-editor-content")}function f(t){null!=t&&t.setAttribute&&t.setAttribute(r,"0")}function m(t){var e,n;d(t)&&(e=null==t?void 0:t.nextSibling,n=null==t?void 0:t.previousSibling,e instanceof HTMLElement&&h(e)&&e.remove(),n instanceof HTMLElement&&h(n)&&n.remove(),t.remove())}function v(t){var e,n,i;!t||(n=t.parentNode)&&n instanceof HTMLElement&&n.isContentEditable&&(e=document.createRange(),t.nodeType===Node.TEXT_NODE?e.setStart(i=t,i.length):t instanceof HTMLElement&&0\n {{data.usedModel.modelTitle}}\n
\n \n
\n
\n
{{data.text}}
\n \n {{hoverText}}\n \n \n ',o);function o(){return null!==i&&i.apply(this,arguments)||this}e["default"]=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=(0,n(1).__importDefault)(n(485));e["default"]=n["default"]},function(t,e,n){var i=n(2),a=[n(486)],o=n(131),r=n(132)["default"];t.exports=n(132),t.exports["default"]=i(r,o,a)},function(t,e,n){var i=n(487);(i="string"==typeof i?[[t.i,i,""]]:i).locals&&(t.exports=i.locals);(0,n(4)["default"])("3859b14f",i,!0,{attributes:{"data-for":"result"},runAsProduction:!0})},function(t,e,n){(e=n(3)(!1)).push([t.i,".chat-voice-input {\n user-select: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n height: 100%;\n}\n.chat-voice-input:hover {\n color: #4e6ef2;\n}\n.chat-voice-input .chat-voice-input-mic-icon {\n display: block;\n width: 20px;\n height: 20px;\n}\n.chat-voice-input.chat-voice-input-recording .chat-voice-input-mic-icon {\n display: none;\n}\n.chat-voice-input .chat-voice-input-pill {\n display: inline-flex;\n align-items: center;\n gap: 10px;\n height: 36px;\n width: 98px;\n line-height: 28px;\n padding: 0 12px;\n border-radius: 12px;\n background: #4e6ef20a;\n white-space: nowrap;\n animation: chat-voice-input-pill-enter 200ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;\n box-sizing: border-box;\n overflow: hidden;\n}\n.chat-voice-input .chat-voice-input-pill:hover {\n background: #4e6ef217;\n}\n@keyframes chat-voice-input-pill-enter {\n 0% {\n opacity: 0;\n -webkit-clip-path: inset(0 0 0 calc(100% - 34px));\n clip-path: inset(0 0 0 calc(100% - 34px));\n }\n 100% {\n opacity: 1;\n -webkit-clip-path: inset(0 0 0 0);\n clip-path: inset(0 0 0 0);\n }\n}\n.chat-voice-input .chat-voice-input-pill-text {\n font-size: 14px;\n line-height: 14px;\n font-weight: 500;\n color: #333;\n}\n.chat-voice-input .chat-voice-input-pill-bars {\n display: inline-flex;\n gap: 3px;\n align-items: center;\n height: 12px;\n}\n.chat-voice-input .chat-voice-input-pill-bars .chat-voice-input-pill-bars-bar {\n width: 2px;\n border-radius: 32px;\n height: 4px;\n background: #4e6ef2;\n transform-origin: center center;\n transition: height 120ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-title {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-title .chat-voice-input-dialog-title-icon {\n flex: 0 0 auto;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips {\n color: #333;\n text-align: left;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item {\n margin-bottom: 21px;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item:last-child {\n margin-bottom: 0px;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item .chat-voice-input-dialog-tips-item-title {\n font-weight: 600;\n line-height: 14px;\n font-size: 14px;\n margin-bottom: 9px;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item .chat-voice-input-dialog-tips-item-title .chat-voice-input-dialog-tips-item-title-index {\n margin-right: 4px;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item .chat-voice-input-dialog-tips-item-desc {\n color: #666;\n line-height: 13px;\n font-size: 13px;\n font-weight: 400;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item .chat-voice-input-dialog-tips-item-img {\n width: 380px;\n height: 220px;\n border-radius: 9px;\n overflow: hidden;\n margin-top: 21px;\n}\n.chat-input-dialog-wrapper .chat-voice-input-dialog-tips .chat-voice-input-dialog-tips-item .chat-voice-input-dialog-tips-item-img img {\n width: 100%;\n height: 100%;\n}\n",""]),t.exports=e},function(t,e,n){var i=n(2),a=[n(489)],o=n(133),r=n(134)["default"];t.exports=n(134),t.exports["default"]=i(r,o,a)},function(t,e,n){var i=n(490);(i="string"==typeof i?[[t.i,i,""]]:i).locals&&(t.exports=i.locals);(0,n(4)["default"])("21c4d6b2",i,!0,{attributes:{"data-for":"result"},runAsProduction:!0})},function(t,e,n){(e=n(3)(!1)).push([t.i,".chat-input-dialog-wrapper {\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.chat-input-dialog-wrapper .chat-dialog-mask {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background: rgba(19, 20, 24, 0.5);\n}\n.chat-input-dialog-wrapper .chat-dialog {\n font-family: arial;\n position: relative;\n display: flex;\n flex-direction: column;\n background: #fff;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);\n box-sizing: border-box;\n max-width: calc(100vw - 32px);\n width: fit-content;\n padding: 21px 0 21px 21px;\n /* 右边不设置padding,让滚动条贴边 */\n z-index: 1;\n max-height: 70%;\n overflow: hidden;\n}\n.chat-input-dialog-wrapper .chat-dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 21px;\n padding-right: 21px;\n /* 补充右边距 */\n}\n.chat-input-dialog-wrapper .chat-dialog-title {\n font-size: 18px;\n line-height: 18px;\n font-weight: 500;\n color: #1f2329;\n}\n.chat-input-dialog-wrapper .chat-dialog-close {\n appearance: none;\n border: none;\n background: transparent;\n cursor: pointer;\n color: #666;\n padding: 4px;\n border-radius: 6px;\n}\n.chat-input-dialog-wrapper .chat-dialog-close:hover {\n background: #f5f7fa;\n color: #333;\n}\n.chat-input-dialog-wrapper .chat-dialog-body {\n min-height: 0;\n font-size: 14px;\n color: #333;\n line-height: 22px;\n overflow-y: scroll;\n /* 对于 Firefox,回退到使用普通的滚动条 */\n overflow-y: overlay;\n /* 对于 Chrome 和 Edge,使用 overlay 滚动条 */\n padding-right: 21px;\n}\n.chat-input-dialog-wrapper .chat-dialog-body::after {\n content: '';\n position: sticky;\n left: 0;\n right: 0;\n height: 15px;\n pointer-events: none;\n z-index: 1;\n display: block;\n bottom: 0;\n background: linear-gradient(to top, var(--cos-color-bg) 0%, transparent 100%);\n}\n.chat-input-dialog-wrapper .chat-dialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding-right: 21px;\n /* 补充右边距 */\n}\n.chat-input-dialog-wrapper .chat-dialog-btn {\n width: 80px;\n height: 30px;\n font-size: 13px;\n line-height: 13px;\n font-weight: 400;\n border-radius: 9999px;\n border: none;\n cursor: pointer;\n}\n.chat-input-dialog-wrapper .chat-dialog-btn-cancel {\n background: #eef3ff;\n color: #4e6ef2;\n}\n.chat-input-dialog-wrapper .chat-dialog-btn-ok {\n background: #4e6ef2;\n color: #fff;\n}\n.chat-input-dialog-wrapper .chat-dialog-btn:active {\n transform: translateY(1px);\n}\n",""]),t.exports=e},function(t,e,n){var i=n(2),a=[n(492)],o=n(135),r=n(136)["default"];t.exports=n(136),t.exports["default"]=i(r,o,a)},function(t,e,n){var i=n(493);(i="string"==typeof i?[[t.i,i,""]]:i).locals&&(t.exports=i.locals);(0,n(4)["default"])("d05a92d2",i,!0,{attributes:{"data-for":"result"},runAsProduction:!0})},function(t,e,n){(e=n(3)(!1)).push([t.i,".chat-input-d-tooltip .tooltip-wrapper {\n position: relative;\n cursor: pointer;\n}\n.chat-input-d-tooltip .tooltip-wrapper:hover .tooltip {\n opacity: 1;\n}\n.chat-input-d-tooltip .tooltip-wrapper .tooltip {\n background-color: #fff;\n color: #333;\n box-sizing: border-box;\n display: inline-block;\n max-width: 300px;\n width: max-content;\n min-width: fit-content;\n font-size: 14px;\n text-align: left;\n padding: 9px 12px;\n border-radius: 12px;\n position: absolute;\n z-index: 6;\n left: 50%;\n transform: translateX(-50%);\n opacity: 0;\n transition: opacity 0.2s;\n box-shadow: 0 6px 21px 0 rgba(30, 31, 36, 0.2);\n}\n.chat-input-d-tooltip .tooltip-wrapper .tooltip.tooltip-visible {\n opacity: 1;\n}\n.chat-input-d-tooltip .tooltip-wrapper .tooltip.tooltip-bottom {\n top: 100%;\n margin-top: 10px;\n}\n.chat-input-d-tooltip .tooltip-wrapper .tooltip.tooltip-bottom:before {\n content: '';\n position: absolute;\n top: -6px;\n left: 50%;\n margin-left: -6px;\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid #fff;\n}\n.chat-input-d-tooltip .tooltip-wrapper .tooltip.tooltip-top {\n bottom: 100%;\n margin-bottom: 10px;\n}\n.chat-input-d-tooltip .tooltip-wrapper .tooltip.tooltip-top:before {\n content: '';\n position: absolute;\n bottom: -6px;\n left: 50%;\n margin-left: -6px;\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid #fff;\n}\n",""]),t.exports=e},function(t,e,n){var n=[e,n(495)],n=function(t,a){"use strict";var e;function o(t,e){for(var n=0;n%3E]/g,">").replace(/"/g,""").replace(/'/g,"'")}return SUGOBJ.prototype={updateInitData:function updateInitData(type){var me=this,opts=me.opts||{};me.setsug=!0,me.setsugstorage=!0,me.sets={},me.sugcookie=navigator.cookieEnabled&&/sug=(\d)/.test(document.cookie)?RegExp.$1:3,me.sugstorecookie=navigator.cookieEnabled&&/sugstore=(\d)/.test(document.cookie)?RegExp.$1:1,me.bds&&me.bds.comm&&me.bds.comm.personalData&&("string"==typeof me.bds.comm.personalData?me.sets=eval("("+me.bds.comm.personalData+")"):me.sets=me.bds.comm.personalData),me.sets.errno&&0===me.sets.errno&&me.sets.sugSet&&me.sets.sugSet.ErrMsg&&"SUCCESS"===me.sets.sugSet.ErrMsg?"0"===me.sets.sugSet.value&&(me.setsug=!1):"0"===me.sugcookie&&(me.setsug=!1),me.sets.errno&&0===me.sets.errno&&me.sets.sugStoreSet&&me.sets.sugStoreSet.ErrMsg&&"SUCCESS"===me.sets.sugStoreSet.ErrMsg?"0"===me.sets.sugStoreSet.value&&(me.setsugstorage=!1):"0"===me.sugstorecookie&&(me.setsugstorage=!1),me.loggedon=me.bds&&(0,_util.bdsStore)()&&!(0,_util.bdsStore)().disabled&&navigator.cookieEnabled,me.showsug=opts.showsug||me.setsug,me.showsugstore=opts.showsugstore||me.showsug&&me.loggedon&&me.setsugstorage,me.query=me.bds.comm.query,me.pinyin=me.bds.comm.pinyin,me.sugHost=me.bds.comm.sugHost||"",me.sid=navigator.cookieEnabled&&/H_PS_PSSID=([0-9_]+)/.test(document.cookie)?RegExp.$1:me.bds.comm.sid;var canWriteStore=!0,isLogin=me.bds&&me.bds.comm&&me.bds.comm.username;(isLogin||me.bds&&me.bds.se&&(0,_util.bdsStore)()&&1==(0,_util.bdsStore)().get("wwwPassLogout"))&&(canWriteStore=!1),me.bds&&me.bds.comm&&me.bds.comm.sampleval&&-1<$.inArray("sample_his",me.bds.comm.sampleval)&&(canWriteStore=!0),("init"!==type||document.referrer)&&canWriteStore&&me.writeStore(),me.writeStore(),me.getStore(),(0,_util.bdsStore)().set("wwwPassLogout",0)},check:function(){var t=this;t.value!==t.ipt.value&&t.showValue!==t.ipt.value&&(t.inputValue=t.showValue=t.value=t.ipt.value,t.bds&&t.bds.comm&&0===t.bds.comm.ishome&&t.addStat("oq",t.bds.comm.confirmQuery?xss(t.bds.comm.confirmQuery):""),t.bds&&t.bds.comm&&t.bds.comm.confirmQid&&t.addStat("rsv_pq",t.bds.comm.confirmQid),$(t.ipt).trigger("inputChange",[t]),t.shouldSugUpdate?t.request(t.value):t.shouldSugUpdate=!0)},startCircle:function(){var t=this;t.timer||($(t.ipt).trigger("start",[t]),t.timer=setTimeout(function e(){t.check(),t.timer=setTimeout(e,200)},200),supportInputEvent&&$(t.ipt).bind("input",function(){t.check()}))},stopCircle:function(){this.timer&&(clearTimeout(this.timer),supportInputEvent&&$(this.ipt).unbind("input"),this.timer=null,$(this.ipt).trigger("stop",[this]))},callback:function(t,e){var n=this;if(t&&(t.g||t.z||n.checkStore(t)&&0BDSUG_QUERY_LEV&&(c.fq=s[u].s-BDSUG_QUERY_LEV+1),(!c.hide||("search_sug_1"===i.currentSugSample||"search_sug_2"===i.currentSugSample||"search_sug_5"===i.currentSugSample||i.isSugSample3&&0===i.currentSearchStatus)&&""!==t)&&(delete c.hide,r.push(c)),10h?i.currentSearchStatus=1:i.currentSearchStatus=0,2==+e&&(g="&hot_launch=",1===i.currentSearchStatus?g+=1:g+=0,p+=g),""!==t&&$.stringify&&r.length&&(a+="&his="+encodeURIComponent($.stringify(r))),0s.prevQuery.length;var i=!1;if(s.backDelete=!1,e.length'+n.site+""+n.showurl+"官网

":s.html='

'+n.site+""+n.showurl+"

",s.type="direct";break;case"ala":s.html="

"+u+"

"+n.word+"

",s.type="ala",s.alaid=n.id;break;case"store":2===n["new"]&&(u+=' [企业]'),s.html=''+u+"",S.isSugSample&&c&&(s.html=''+u),!S.bds.comm.username&&"|"===n||(s.html+='删除'),s.type="store",s.pinyin=n,s.s=a;break;case"direct_new":!function(t){!t.flag||(i=t.value&&t.value.tag)&&(u+=''+i+"");{var e,n,i,a,o,r;"1020"===t.type&&t.value&&(a=t.value.img,o=t.value.brief||"",r=t.value.info||"",e=t.value.name[0]&&t.value.name[0].text||"",n=t.value.link,i="",(a||o)&&(s.isDouble=!0),o=o?''+o+"":"",r=r?''+r+"":"",u=s.isDouble?(t.value&&t.value.img&&(i='
'),a=w(t.value),o='
'+e+""+a+'
'+o+r+"
",r=S.aiSugSample?"":'
查看
',n?"'+i+o+r+"":'
'+i+o+r+"
"):S.highlightExperiment?b(e,l)+w(t.value,t.flag):f(e,S.queryValue)+w(t.value,t.flag))}}(o),s.html=u;break;default:n&&n["new"]&&2===n["new"]&&(u+=' [企业]'),"sug"===i&&S.isSugSample&&c&&(u=''+u),s.html=u}var p=i.includes("his")||"store"===i;(p&&S.iconAiHisSample||!p&&!s.html.includes("direct-sug-wrap"))&&(d=i,p?S.aiHisSample&&S.judeAiHis(s.real_type)?d="ask-ai-tail-icon":S.hisNewIconSample&&S.judeAiHis(s.real_type)?d="ai_new_his":S.hisNewIconSample&&!S.judeAiHis(s.real_type)&&(d="new_his"):S.aiSugSample&&(d="sug"),s.html=''+s.html);var d;p&&["his_pc_aifile","his_pc_aipic","his_pc_aiintention"].includes(s.real_type)&&r&&r.length&&(t=S.suffixToFileType(r[0].file_type),e="pc-aifile-img-container",VALID_FILE_ICONS[t]||1!==r.length||(e+=" pc-aifile-single-img"),d=("his_pc_aipic"===s.real_type||"his_pc_aiintention"===s.real_type)&&1
'+r.length+"
":'
',e=1'+(t?"":r[0].file_name)+(e?"等"+r.length+"个"+("his_pc_aifile"===s.real_type?"文件":"图片"):""))+"");r=!S.aiDistanceNoAvoid&&s.no_ai_sug||s.isDouble||p;if(s.html=''+s.html+"",p||(s.html+=""),!S.withoutZhixin&&0').length<=1&&(s.html+=h));return s;function f(t,e){var n=i.includes("his")||"store"===i;return t=S.iconAiHisSample&&n&&bds.comm.ishome?$.subByte(t,"72"):S.iconAiHisSample&&n&&!bds.comm.ishome?$.subByte(t,"66"):S.boardWidthSample&&n&&bds.comm.ishome?$.subByte(t,"80"):S.boardWidthSample&&n&&!bds.comm.ishome?$.subByte(t,"73"):S.boardWidthSample&&!n&&bds.comm.ishome?$.subByte(t,"72"):!S.boardWidthSample||n||bds.comm.ishome?$.subByte(t,"41"):$.subByte(t,"70"),t=e&&t?(t=$.trim(t),e=$.trim(e),0===t.indexOf(e)&&t!==e?m(t,e):t!==e?-1!==t.indexOf(e)?function(t,e){t=v(t),e=v(e);var n=t.indexOf(e);if(-1===n)return t;var i="",a=t.substring(0,n),t=t.substring(n+e.length);a&&(i+=""+a+"");i+=e,t&&(i+=""+t+"");return i}(t,e):m(t,e,!0):v(t)):v(t)}function m(t,e,n){var i=2'+t+"":n+(""+t.substring(e)+"")}function v(t){return t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")}function b(e,t){if(!e||!Array.isArray(t)||0===t.length)return v(e||"");var n=t.filter(function(t){return t&&"number"==typeof t.begin&&"number"==typeof t.end&&t.begin<=t.end&&0<=t.begin&&t.end'+v(e.substring(s,r))+"",a=r)}return a'+t.tag+""||!1:""}function x(t,e){return'"+t.text+""||!1}function _(t){if(!t)return"";var e=parseInt("0x"+t.slice(1,3),16)/255;return"rgba("+[parseInt("0x"+t.slice(3,5),16),parseInt("0x"+t.slice(5,7),16),parseInt("0x"+t.slice(7,9),16),e].join(",")+");"}function y(t,e){t=t.image;return t?'':""}}},isShowDirectSug:function(t){if("1020"===t.type&&t.value){var e=t.value.name[0]&&t.value.name[0].text||"",n=t.value.img,i=t.value.brief||"",t=t.value.info||"";if(!e)return!1;if(n&&!i&&!t)return!1}return!0},sendSpecialSugClickLog:function(t,e,n){c({rsv_ct:10,rsv_cst:t,rsv_clk_extra:JSON.stringify({flag:e,index:n})})},suffixToFileType:function(t){if(!t)return"unknown";t=t.toLowerCase();return fileTypeMap[t]||"unknown"},render:function(r){var p=this;if(p.is_selecting=!1,p.sugcontainer||(p.sugcontainer=document.createElement("DIV"),f=p.searchNewStyle,l=" bdsug-ai-upgrade",p.isSugSample3&&(l=" bdsug-sample3"),p.iconAiHisSample&&(l+=" bdsug-ai-his"),p.sugcontainer.className=f?"sam-bdsug ai-bdsug ai-bdsug-new new-pmd"+l:"ai-bdsug ai-bdsug-new new-pmd"+l,$(p.sugcontainer).delegate(".ask-ai-tail","mouseenter",function(t){var e=$(this).parents(".bdsug-item"),n=e.find(".direct-sug-wrap");(0,_ubcLog.sendUbcLog)("show","sug_aihover",{query:p.ipt.value||"",recom_query:e.attr("data-key"),order:p.index+1,no_ai_value:$(e).data("noAiSug")||0,aisou_text:p.askAiTailText,sug_type:0')),$(p.aiWrapper).find(".bdsug-tmp").length||$(p.aiWrapper).append($('
')),$(p.sugcontainer).find(".bdsug-box").on("mouseenter",function(){$(p.sugcontainer).addClass("bdsug-showzx"),$(u[p.index]).addClass("bdsug-s")}).on("mouseleave",function(){$(p.sugcontainer).removeClass("bdsug-showzx"),$(u[p.index]).removeClass("bdsug-s bdsug-keyboard bdsug-mouse"),$(p.sugcontainer).css({height:"auto"})}).on("click",function(t){t.stopPropagation()})),$(p.aiWrapper).find(".bdsug-tmp").empty();var d=$("
  • ").appendTo($("
    ").addClass("bdsug-showzx").appendTo($(p.aiWrapper).find(".bdsug-tmp"))),h=$("
    ").css({position:"absolute",display:"inline-block",top:"-10000px",left:"-10000px"}).appendTo($(p.aiWrapper).find(".bdsug-tmp"));$.each(u,function(t,e){h.html($(e).html());h.width()>d.width()-$(p.sugcontainer).find(".bdsug-arrow").width()-28&&$(e).addClass("bdsug-overflow c-line-clamp1")});var g="0";if(0===p.bds.comm.ishome?g="0":1===p.bds.comm.ishome&&window.s_domain&&"home"===window.s_domain.base?g="2":1===p.bds.comm.ishome&&(g="1"),""===p.value&&r.length){for(var f,m=0,e=0;e关闭历史')===p.hisSwitch&&(f=""),l=p.bds.comm.username?'
    '+f+'删除历史更多历史
    ':'
    关闭历史
    ',$(p.sugcontainer).append(l),$(p.sugcontainer).find(".del_all_storeSug").click(function(){var t,e,n;(0,_ubcLog.sendUbcLog)("click","delete_his",{area:"delete"}),p.isSugSample&&c({rsv_ct:10,rsv_cst:12}),p.dataStored[0]&&p.dataStored[0].pinyin&&"|"===p.dataStored[0].pinyin&&(t=p.bds.comm.smartSearchBox&&p.bds.comm.smartSearchBox.token,e=Date.now(),n=(bds.comm.ishome?window.s_session:bds.comm).qid,n=window.btoa(t+"||"+e+"|"+n)+"-"+n,$.ajax({type:"POST",dataType:"json",scriptCharset:"utf-8",timeout:6e3,url:"https://www.baidu.com/my/clearhistory?tk="+n,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(){}})),p.storearr=[],p.setStore(),p.hideSug(),(window["BD_PS_C"+(new Date).getTime()]=new Image).src=s+"/w.gif?q=delall&fm=beha&rsv_sug=delall&rsv_sid="+p.bds.comm.sid+"&t="+(new Date).getTime()+"&rsv_sug9=es_"+g+"_"+(p.bds.comm.supportis?1:0)+"&path=http://www.baidu.com"}),$(p.sugcontainer).find(".more_storeSug").click(function(){(0,_ubcLog.sendUbcLog)("click","more_his"),ns_c({pj_name:"hs_sug_more"})}),$(p.sugcontainer).find(".close_hotSug").click(function(){p.hideSug(),ns_c({pj_name:"hot_sug_close"})}),$(p.sugcontainer).find(".setup_storeSug").click(function(){(0,_ubcLog.sendUbcLog)("click","close_his"),p.bds.event.trigger("bd.se.loadpanel",{tab:"general",tipsConfig:{content:p.bds&&p.bds.comm&&p.bds.comm.username?"关闭该账号下所有设备的搜索历史":"该选项可以关闭您的历史记录",wrapper:"#se-setting-5"}}),p.hideSug(),ns_c({pj_name:"hs_sug_setup"})}))}$.each(u,function(i,a){var o=i;r[i]&&"store"===r[i].type&&$(a).find("u").click(function(t){var e,n;t.stopPropagation(),$(a).remove(),p.bds&&p.bds.comm&&p.bds.comm.username&&(e=$(this).parents(".bdsug-item").attr("data-key"),(0,_ubcLog.sendUbcLog)("click","single_his_delete",{recom_query:e}),t=(t=r[i].payload)&&t.fid,p.requestDelHis(e,t)),r[o].pinyin&&"|"===r[o].pinyin?(n=!(p.dataCached={}),$.each(p.storearr,function(t,e){encodeURIComponent(p.dataArray[o].value)===p.storearr[t].q&&(n=t)})):(n=!1,$.each(p.storearr,function(t,e){p.dataArray[o].pinyin===decodeURIComponent(p.storearr[t].p)&&(n=t)})),!1!==n&&(p.storearr.splice(n,1),p.setStore()),(window["BD_PS_C"+(new Date).getTime()]=new Image).src=s+"/w.gif?q="+encodeURIComponent(r[o].value)+"&fm=beha&rsv_sug=del&rsv_sid="+p.bds.comm.sid+"&t="+(new Date).getTime()+(""===p.value?"&rsv_sug9=es_"+g+"_"+(p.bds.comm.supportis?1:0):"")+"&path=http://www.baidu.com"})}),!!window.ActiveXObject&&(!document.documentMode||document.documentMode<=9)||""!==p.value&&!1!==p.useFeedback&&($(p.sugcontainer).append('
    反馈
    '),$(".ai-bdsug-feedback-wrap").on("click",function(){var n=p.dataArray;p.dataArray.forEach(function(t,e){n[e]=t.value}),p.isSugSample&&c({rsv_ct:10,rsv_cst:13});var t=p.requestDefaultData.g_mot||[];("search_sug_2"===p.currentSugSample||"search_sug_5"===p.currentSugSample||p.isSugSample3&&0===p.currentSearchStatus)&&3<=t.length&&t.forEach(function(t){n.push(t.q)}),p.sugFeedbackClick(),p.bds.se.ShortCut.initSugBar(n),p.hideSug()})),$(p.ipt).trigger("render",[p]),p.renderCallback(),p.visible||p.hideSug(),p.showSug();-1!==["search_sug_2","search_sug_3-1","search_sug_3-2","search_sug_4-1","search_sug_4-2","search_sug_5"].indexOf(p.currentSugSample)&&p.showRightContent&&(p.backFrame||"search_sug_5"===p.currentSugSample&&p.backDelete)?$(".wrapper_new #"+p.inputDomId+" .ai-bdsug-new").addClass("search-sug-short"):$(".wrapper_new #"+p.inputDomId+" .ai-bdsug-new").removeClass("search-sug-short")}else p.hideSug()},renderSugContainer:function(){var t;this.sugcontainer||(this.sugcontainer=document.createElement("DIV"),t=this.searchNewStyle,this.sugcontainer.className=t?"sam-bdsug ai-bdsug ai-bdsug-new new-pmd bdsug-sample3":"ai-bdsug ai-bdsug-new new-pmd bdsug-sample3"),$(this.sugcontainer).prependTo(this.aiWrapper)},escapeHTML:function(t){return t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")},requestDelHis:function(t,e){$.ajax({type:"POST",scriptCharset:"utf-8",dataType:"json",timeout:6e3,url:"https://www.baidu.com/recsys/hisproxy/data/usrdelete?usegosug=1",data:{items:JSON.stringify([{query:e?e+t:t,ts:""}]),imod:2,usrdelete:1},xhrFields:{withCredentials:!0},crossDomain:!0,success:function(){}})},setLeftGussStyle:function(){$("#sugSearchGuessUl").attr("id","leftSugSearchHisUl"),$("bdsug ai-bdsug-new new-pmd").css("overflow","hidden"),$(".wrapper_new #"+this.inputDomId+" .ai-bdsug-new").css("overflow","hidden")},renderRecomend:function(t,e,n){var i=this;i.renderSugContainer();var a=t||[];if($("#sugSearchGuessUl")[0]&&$("#sugSearchGuessUl")[0].remove(),$("#leftSugSearchHisUl")[0]&&$("#leftSugSearchHisUl")[0].remove(),3<=a.length){var o=document.createElement("ul"),t=i.requestDefaultData.g_mot;t&&0===t.length?(o.setAttribute("id","leftSugSearchHisUl"),i.setLeftGussStyle()):o.setAttribute("id","sugSearchGuessUl"),i.sugcontainer.appendChild(o);t=document.createElement("div");t.setAttribute("class","search-recommend-title"),t.innerHTML=i.escapeHTML(e),$("#sugSearchGuessUl")[0]&&$("#sugSearchGuessUl")[0].append(t);for(var r=0;r'+i.escapeHTML(a[r].q),i.setSug(s,a[r]),$(i.sugcontainer).delegate("li","mouseenter",function(){$(this).addClass("bdsug-s")}).delegate("li","mouseleave",function(){$(this).removeClass("bdsug-s bdsug-keyboard bdsug-mouse")}).delegate("li","click",function(){i.startCircle();var t=$(this).attr("data-key");i.newIpt&&(i.newIpt.textContent=t),i.sugValue=i.showValue=i.value=i.ipt.value=t,i.index=$(i.sugcontainer).find("li").index($(this)),i.ipt.value?i.quickdelete._show():i.quickdelete._hide(),i.hideSug(),$(i.ipt).trigger("formSubmit")}),o.appendChild(s)}($("#sugSearchGuessUl li").length?$("#sugSearchGuessUl li"):$("#leftSugSearchHisUl li")).each(function(t){var e=i.backFrame?1:0;$(this).click(function(){c({rsv_ct:10,rsv_cst:3,rsv_clk_extra:JSON.stringify({index:t,pos:n,status:i.currentSearchStatus,test:i.currentSugSample,backFrame:e})})})});e=$("#sugSearchGuessUl").height(),t=$("#normalSugSearchUl").height();t'+e+n+a+"
    ";$(i.sugcontainer).append(a),$(i.sugcontainer).find(".del_storeSug").click(function(){c({rsv_ct:10,rsv_cst:12}),i.aa=!0,i.dataStored[0]&&i.dataStored[0].pinyin&&"|"===i.dataStored[0].pinyin&&$.ajax({type:"POST",dataType:"json",scriptCharset:"utf-8",timeout:6e3,url:"https://www.baidu.com/recsys/hisproxy/data/usrclear",xhrFields:{withCredentials:!0},crossDomain:!0,success:function(){}}),i.storearr=[];try{localStorage.setItem("BDSUGSTORED","")}catch(err){console.error(err)}$("#sugSearchHisUl li").each(function(){$(this).remove()}),$("#sugSearchGuessUl").attr("id","leftSugSearchHisUl");var t="0";0===i.bds.comm.ishome?t="0":1===i.bds.comm.ishome&&window.s_domain&&"home"===window.s_domain.base?t="2":1===i.bds.comm.ishome&&(t="1");var e=window["BD_PS_C"+(new Date).getTime()]=new Image,n=i.bds&&i.bds.util&&i.bds.util.domain?i.bds.util.domain.get("http://sclick.baidu.com"):"http://sclick.baidu.com";e.src=n+"/w.gif?q=delall&fm=beha&rsv_sug=delall&rsv_sid="+i.bds.comm.sid+"&t="+(new Date).getTime()+"&rsv_sug9=es_"+t+"_"+(i.bds.comm.supportis?1:0)+"&path=http://www.baidu.com"}),$(i.sugcontainer).find(".more_storeSug").click(function(){ns_c({pj_name:"hs_sug_more"})}),$(i.sugcontainer).find(".close_hotSug").click(function(){i.hideSug(),ns_c({pj_name:"hot_sug_close"})}),$(i.sugcontainer).find(".setup_storeSug").click(function(){i.bds.event.trigger("bd.se.loadpanel",{tab:"general",tipsConfig:{content:i.bds&&i.bds.comm&&i.bds.comm.username?"关闭该账号下所有设备的搜索历史":"该选项可以关闭您的历史记录",wrapper:"#se-setting-5"}}),i.hideSug(),ns_c({pj_name:"hs_sug_setup"})}),$(".bdsug-feedback").on("click",function(){c({rsv_ct:10,rsv_cst:13});var e=[];(t.g_mot&&t.g_mot.length&&t.g_mot).forEach(function(t){e.push(t.q)}),i.bds.se.ShortCut.initSugBar(e),i.hideSug()})},setAutocomplete:function(t){$(this.ipt).attr("autocomplete",t)},setSug:function(t,e){var n=e.value||e.q,i=e.type,e=e.no_ai_sug?1:0;$(t).attr("data-key",n),$(t).attr("data-no-ai-sug",e),i&&$(t).addClass("bdsug-"+i)},setupSug:function(){var t=this,e=t.ipt&&t.ipt.value;e?t.requesting||(t.dataCached[e]&&!t.onlyCache?t.callback(t.dataCached[e],"2"):t.request(e,"2")):t.dataCached[e]?t.onlyCache||t.callback(t.dataCached[e],"2"):t.request(e)},hasShown:function(){var t=$("#chat-input-panel");return!(!this.visible&&!t.hasClass("panel-expand"))},showSug:function(){var t,e,n=this;n.index=-1,n.sugcontainer&&0!==n.sugcontainer.clientHeight||(t=n.ipt&&n.ipt.value?"sug_board":"his_board",e={his_list:n.dataStored.map(function(t,e){return{his_type:n.judeAiHis(t.real_type)?"ai":"common",order:e+1,recom_query:t.value,his_type_2nd:t.real_type}})},(0,_ubcLog.sugHisShowSend)(t,"his_board"==t?e:{}),0<(e=$(n.sugcontainer).find(".bdsug-ai-guide")).length&&(i=e.parent().attr("data-key"),(0,_ubcLog.aiGuideShowSend)({query:n.ipt.value||"",recom_query:i}))),0<$(n.sugcontainer).find(".direct-sug-wrap").length&&(0,_ubcLog.imgSugSend)("show",n.ipt.value,"pic");var i=$(n.sugcontainer).find(".bdsug-item"),a=[];i.each(function(t,e){e=$(e);"1"===e.attr("data-no-ai-sug")&&a.push({item_name:e.attr("data-key")||e.text().trim()||"",item_pos:t+1})}),0=t&&(this.index=-1),this.selectSug(this.index)},jumpToAiChat:function(t,e,n){var i=3'))},removeStat:function(t){if(!this.withoutStat&&($(this.form).find('input[type="hidden"][name="'+t+'"]').remove(),!this.stat))try{delete this.stat[t]}catch(e){}},setNewsRsv:function(t){"sug"===t?this.addStat("rsv_dl","news_t_sug"):"box"===t?this.addStat("rsv_dl","news_t_sk"):"his"===t&&this.addStat("rsv_dl","news_t_his")},clearStat:function(){var t=this;t.bds&&t.bds.comm&&t.bds.comm.isAsync&&(t.removeStat("rsp"),t.removeStat("prefixsug"),1===t.bds.comm.ishome?t.addStat("rsv_dl","ib"):"news"===t.tn?t.setNewsRsv("box"):t.addStat("rsv_dl","tb")),t.rsv_sug7=[0,0,0],t.removeStat("rsv_n"),t.removeStat("rsv_sug"),t.removeStat("rsv_sug1"),t.removeStat("rsv_sug2"),t.removeStat("rsv_sug3"),t.removeStat("rsv_sug4"),t.removeStat("rsv_sug5"),t.removeStat("rsv_sug6"),t.removeStat("rsv_sug7"),t.removeStat("rsv_sug8"),t.removeStat("rsv_sug9"),t.stat={}},uploadAllFile:function(t){var a=this,o=t.files,r=t.fid,s=5;return function(){var e=[],n=0;return function i(){if(n>=o.length)return Promise.resolve(e);var t=o.slice(n,n+s).map(function(t){return a.uploadFile(r,t)});return n+=s,Promise.all(t).then(function(t){return e.push.apply(e,t),i()})}()}()},uploadFile:function(t,e){var n=this.bds.comm.smartSearchBox&&this.bds.comm.smartSearchBox.token,i=Date.now(),a=undefined,a=(bds.comm.ishome?window.s_session:bds.comm).qid,a=window.btoa(n+"||"+i+"|"+a)+"-"+a;return $.ajax({type:"POST",dataType:"json",contentType:"application/json; charset=utf-8",scriptCharset:"utf-8",timeout:6e3,data:JSON.stringify({from:"his",id:e.file_id,name:e.file_name,path:e.file_path,size:e.file_size,type:this.judeFileType(e.file_type)}),crossDomain:!0,url:"https://chat.baidu.com/aichat/api/file/upload?tk="+a,success:function(t){return t.data},error:function(t){throw console.error(t),t}})},judeFileType:function(t){return fileTypeMap[t]?"file":"image"},getRsvStatus:function(t){var e=this,n=[],i=[-2];if(e.rsv_sug){for(var a in i=[-1],e.dataArray)t===e.dataArray[a].value&&(i=[0,a],a'),function(t){var e;for(n.remove(),e=0;e=this.opts.logmaxnum;)this.logs.shift();return!0},analyseLog:function(){var e,t,n,i,a,o,r,s=this;0document.w=window<\/script>"),l.close(),s=l.w.frames[0].document,i=s.createElement("div")}catch(p){i=t.createElement("div"),s=t.body}o.set=u(function(t,e,n){return e=c(e),n===undefined?o.remove(e):(t.setAttribute(e,o.serialize(n)),void t.save(r))}),o.get=u(function(t,e){return e=c(e),o.deserialize(t.getAttribute(e))}),o.remove=u(function(t,e){e=c(e),t.removeAttribute(e),t.save(r)}),o.clear=u(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(r);for(var n,i=0;n=e[i];i++)t.removeAttribute(n.name);t.save(r)}),o.getAll=u(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(r);for(var n,i={},a=0;n=e[a];++a)i[n]=o.get(n);return i})}try{o.set(a,a),o.get(a)!=a&&(o.disabled=!0),o.remove(a)}catch(p){o.disabled=!0}return o}()}.apply(e,[e]);e===undefined||(t.exports=e)},function(t,e,n){"use strict";function a(t,e){var i,a,o,r,n=e.containerWidth,s=e.defaultMinWidth,l=e.buttonGap,e=e.moreButtonWidth,e=function(t,e){for(var n=e.length-1;0<=n;n--)if(t>=e[n].minWidth)return e[n].visibleCount;return 1}(n,(i=t,a=(e={defaultMinWidth:s,buttonGap:l,moreButtonWidth:e}).defaultMinWidth,o=e.buttonGap,r=e.moreButtonWidth,i.map(function(t,e){var n=e+1,e=i.slice(0,n).reduce(function(t,e){return t+(e.minWidth||a)},0);return{visibleCount:n,minWidth:n