本次同步 09-12 至 09-28 的代码变更,主要内容: 新增功能 - 修改密码:后端新增 ChangePasswordRequest DTO 与UserController/UserService 对应接口,前端新增 ChangePasswordDialog 并在 Header 接入入口 - 文件预览组件重构:file-preview 目录拆分出 VideoPreview(支持 blobUrl 直传)、 ImagePreview、AudioPreview,index.tsx 统一调度各类型预览器 - 新增 my_ops 算子模块:markitdown_parser、mineru_pdf_parser、text_quality_evaluator - 新增 tools/minio-file-server MinIO 文件服务 功能增强 - 数据清洗:cleaning_task_service/scheduler/routes 重构, data_juicer_executor 与 wrapper 增强,OperatorTable/LogsTable/TaskDetail 同步调整 - 数据标注:annotation sync.py、project.py 接口与schema 更新 - 数据采集、算子市场、首页与菜单路由相关页面调整 - DataJuicer 算子接入(useOperatorOperations、dj_ops_schema) 结构调整 - deepflow/ 更名为 deep-flow/(419 个文件重命名) - 新增 helm 部署编排、GitHub Actions 之外的自建镜像构建脚本 未纳入本次提交 - scripts-backup/、runtime/python-executor-backup/、components_backup/(备份目录) - *.backup*、__pycache__ 产物 - zh_core_web_sm-3.8.0-py3-none-any.whl(46MB 构建产物) - DataX/(内嵌独立仓库,远程亦未收录其源码)
10 lines
63 KiB
JavaScript
10 lines
63 KiB
JavaScript
define("@baidu/ala-util/san-component",["require","san","@baidu/ala-util/ala"],(function(e){var t=e("san"),n=e("@baidu/ala-util/ala"),i=t.Component,o=n.hydrateCardInfo;function a(e){if(this.injectService){var t=this.inited;this.inited=function(){this.__cardInject(),t&&t.call(this)}}if("render-hydrate"===this.constructor.ssr){var a=this.attached,r=this.constructor.messages||{},s=o.get();if(this.attached=function(){this.__cardReady=+new Date,a&&a.call(this)},this.constructor.messages=Object.assign(r,{"sc-send-log":function(e){e&&e.value&&n.sendLog(e.value.data,e.value.tplInfo)},"sc-send-midlog":function(e){e&&e.value&&window.page&&window.page.log&&window.page.log.send(e.value.data)},"sc-on-webview-show":function(e){e&&e.value&&s&&"wise"===s.env&&window.require(["@baidu/www-wise"],(function(t){t&&t.onWebviewShow&&t.onWebviewShow(e.value)}))}}),s&&"wise"===s.env&&s.prod){var c=this.error;this.error=function(e,t,n){window.require(["atom-logger"],(function(i){i.errorHandler(e,t,n,{card:s.name,env:s.log&&s.log.env})})),c&&c.call(this,e,t,n),console.error(e)}}}i.call(this,e)}return a.prototype=Object.create(i.prototype),a.prototype.constructor=a,a.prototype.__cardInject=function(){for(var e,t=this.owner||this;t.owner;)t=t.owner;if(t&&t.__inject)e=t.__inject;else{var n=o.get();e=n&&n.inject,this.__inject=e}e&&this.injectService(e)},{Component:a}}));define("@baidu/ala-util/preload",["require"],(function(n){function e(n,e){var t={lid:Date.now(),ts:Date.now(),info:JSON.stringify(n),dim:JSON.stringify({tpl:e}),pid:"4_66",type:"dist",group:"predownload"};(new Image).src="https://sp1.baidu.com/5b1ZeDe5KgQFm2e88IuM_a/mwb2.gif?"+function(n){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e.join("&")}(t)}return function(t,i){n(["@baidu/ala-util/prefetch"],(function(n){t||(t={}),t.netconf="1",n.downloadSwanPackages(t).then((function(n){e({result:"success"},i)}))["catch"]((function(n){e({result:"fail"},i)}))}))}}));define("@baidu/ala-util/prefetch",["require","@searchfe/underscore","@searchfe/promise","@baidu/Boxjs-search","@baidu/prefetch-app-data"],(function(e){e("@searchfe/underscore");var a=e("@searchfe/promise"),r=["ecom","wise_brand_ad","prefetch"];var d={};return d["download"+window.atob("U3dhbg==")+"Packages"]=function(d,t,n){if(!n||-1===r.indexOf(n))return a.resolve();var o=e("@baidu/Boxjs-search"),c={name:window.atob("c3dhbg==")+"-downloadPackages",data:d};return t&&(c.abtest=t),o.net.download(c)},d["prefetch"+window.atob("U3dhbg==")+"AppData"]=function(d,t){return t&&-1!==r.indexOf(t)?e("@baidu/prefetch-app-data").prefetchAppData(d):a.resolve()},d}));/**
|
||
* @license
|
||
* Lodash (Custom Build) <https://lodash.com/>
|
||
* Build: `lodash core -o ./dist/lodash.core.js`
|
||
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/
|
||
define("@baidu/ala-util/lodash",["require"],(function(n){var t,r="Expected a function",e=1,u=2,i=9007199254740991,o="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",a="[object Boolean]",l="[object Date]",p="[object Error]",s="[object Function]",v="[object GeneratorFunction]",h="[object Number]",y="[object Object]",g="[object Proxy]",b="[object RegExp]",_="[object String]",j=/[&<>"']/g,m=RegExp(j.source),d="object"==typeof global&&global&&global.Object===Object&&global,O="object"==typeof self&&self&&self.Object===Object&&self,w=d||O||Function("return this")();function A(n,t){return n.push.apply(n,t),n}function x(n){return function(r){return null==r?t:r[n]}}var E,T=(E={"&":"&","<":"<",">":">",'"':""","'":"'"},function(n){return null==E?t:E[n]});var F,N,k=Array.prototype,S=Object.prototype,D=S.hasOwnProperty,I=0,P=Function.prototype.toString,R=P.call(Object),q=S.toString,B=Object.create,M=S.propertyIsEnumerable,W=w.isFinite,$=(F=Object.keys,N=Object,function(n){return F(N(n))}),G=Math.max;function L(n){return n instanceof C?n:new C(n)}var z=function(){function n(){}return function(r){if(!Ln(r))return{};if(B)return B(r);n.prototype=r;var e=new n;return n.prototype=t,e}}();function C(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function J(n,r,e){var u=n[r];D.call(n,r)&&qn(u,e)&&(e!==t||r in n)||U(n,r,e)}function U(n,t,r){n[t]=r}function V(n,e,u){if("function"!=typeof n)throw new TypeError(r);return setTimeout((function(){n.apply(t,u)}),e)}C.prototype=z(L.prototype),C.prototype.constructor=C;var H,K,Q=(H=tn,function(n,t){if(null==n)return n;if(!Wn(n))return H(n,t);for(var r=n.length,e=K?r:-1,u=Object(n);(K?e--:++e<r)&&!1!==t(u[e],e,u););return n});function X(n,r,e){for(var u=-1,i=n.length;++u<i;){var o=n[u],c=r(o);if(null!=c&&(f===t?c==c:e(c,f)))var f=c,a=o}return a}function Y(n,t){var r=[];return Q(n,(function(n,e,u){t(n,e,u)&&r.push(n)})),r}function Z(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=mn),u||(u=[]);++i<o;){var c=n[i];t>0&&r(c)?t>1?Z(c,t-1,r,e,u):A(u,c):e||(u[u.length]=c)}return u}var nn=function(n){return function(t,r,e){for(var u=-1,i=Object(t),o=e(t),c=o.length;c--;){var f=o[n?c:++u];if(!1===r(i[f],f,i))break}return t}}();function tn(n,t){return n&&nn(n,t,nt)}function rn(n,t){return Y(t,(function(t){return Gn(n[t])}))}function en(n){return function(n){return q.call(n)}(n)}function un(n,t){return n>t}var on=ft;function cn(n,r,i,f,s){return n===r||(null==n||null==r||!zn(n)&&!zn(r)?n!=n&&r!=r:function(n,r,i,f,s,v){var g=Mn(n),j=Mn(r),m=g?c:en(n),d=j?c:en(r),O=(m=m==o?y:m)==y,w=(d=d==o?y:d)==y,A=m==d;v||(v=[]);var x=Nn(v,(function(t){return t[0]==n})),E=Nn(v,(function(n){return n[0]==r}));if(x&&E)return x[1]==r;if(v.push([n,r]),v.push([r,n]),A&&!O){var T=g?function(n,r,i,o,c,f){var a=i&e,l=n.length,p=r.length;if(l!=p&&!(a&&p>l))return!1;var s=-1,v=!0,h=i&u?[]:t;for(;++s<l;){var y,g=n[s],b=r[s];if(y!==t){if(y)continue;v=!1;break}if(h){if(!yn(r,(function(n,t){if(!En(h,t)&&(g===n||c(g,n,i,o,f)))return h.push(t)}))){v=!1;break}}else if(g!==b&&!c(g,b,i,o,f)){v=!1;break}}return v}(n,r,i,f,s,v):function(n,t,r,e,u,i,o){switch(r){case a:case l:case h:return qn(+n,+t);case p:return n.name==t.name&&n.message==t.message;case b:case _:return n==t+""}return!1}(n,r,m);return v.pop(),T}if(!(i&COMPARE_PARTIAL_FLfuncToStringAG)){var F=O&&D.call(n,"__wrapped__"),N=w&&D.call(r,"__wrapped__");if(F||N){T=s(F?n.value():n,N?r.value():r,i,f,v);return v.pop(),T}}if(!A)return!1;T=function(n,r,u,i,o,c){var f=u&e,a=nt(n),l=a.length,p=nt(r),s=p.length;if(l!=s&&!f)return!1;var v=l;for(;v--;){var h=a[v];if(!(f?h in r:D.call(r,h)))return!1}var y=!0,g=f;for(;++v<l;){var b,_=n[h=a[v]],j=r[h];if(!(b===t?_===j||o(_,j,u,i,c):b)){y=!1;break}g||(g="constructor"==h)}if(y&&!g){var m=n.constructor,d=r.constructor;m==d||!("constructor"in n)||!("constructor"in r)||"function"==typeof m&&m instanceof m&&"function"==typeof d&&d instanceof d||(y=!1)}return y}(n,r,i,f,s,v);return v.pop(),T}(n,r,i,f,cn,s))}function fn(n){return"function"==typeof n?n:null==n?ut:("object"==typeof n?pn:x)(n)}function an(n,t){return n<t}function ln(n,t){var r=-1,e=Wn(n)?Array(n.length):[];return Q(n,(function(n,u,i){e[++r]=t(n,u,i)})),e}function pn(n){var t=$(n);return function(r){var i=t.length;if(null==r)return!i;for(r=Object(r);i--;){var o=t[i];if(!(o in r)||!cn(n[o],r[o],e|u))return!1}return!0}}function sn(n,t){return wn(On(n,t,ut),n+"")}function vn(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(u);++e<u;)i[e]=n[e+t];return i}function hn(n){return vn(n,0,n.length)}function yn(n,t){var r;return Q(n,(function(n,e,u){return!(r=t(n,e,u))})),!!r}function gn(n,r,e,u){var i=!e;e||(e={});for(var o=-1,c=r.length;++o<c;){var f=r[o],a=u?u(e[f],n[f],f,e,n):t;a===t&&(a=n[f]),i?U(e,f,a):J(e,f,a)}return e}function bn(n){return sn((function(r,e){var u=-1,i=e.length,o=i>1?e[i-1]:t;for(o=n.length>3&&"function"==typeof o?(i--,o):t,r=Object(r);++u<i;){var c=e[u];c&&n(r,c,u,o)}return r}))}function _n(n,t,e,u){if("function"!=typeof n)throw new TypeError(r);var i=1&t,o=function(n){return function(){var t=arguments,r=z(n.prototype),e=n.apply(r,t);return Ln(e)?e:r}}(n);return function c(){for(var t=-1,r=arguments.length,f=-1,a=u.length,l=Array(a+r),p=this&&this!==w&&this instanceof c?o:n;++f<a;)l[f]=u[f];for(;r--;)l[f++]=arguments[++t];return p.apply(i?e:this,l)}}function jn(n,r,e,u){return n===t||qn(n,S[e])&&!D.call(u,e)?r:n}function mn(n){return Mn(n)||Bn(n)}function dn(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}function On(n,r,e){return r=G(r===t?n.length-1:r,0),function(){for(var t=arguments,u=-1,i=G(t.length-r,0),o=Array(i);++u<i;)o[u]=t[r+u];u=-1;for(var c=Array(r+1);++u<r;)c[u]=t[u];return c[r]=e(o),n.apply(this,c)}}var wn=ut;function An(n){return(null==n?0:n.length)?Z(n,1):[]}function xn(n){return n&&n.length?n[0]:t}function En(n,t,r){for(var e=null==n?0:n.length,u=((r="number"==typeof r?r<0?G(e+r,0):r:0)||0)-1,i=t==t;++u<e;){var o=n[u];if(i?o===t:o!=o)return u}return-1}function Tn(n){var t=L(n);return t.__chain__=!0,t}var Fn,Nn=(Fn=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:Vn(r);return u<0&&(u=G(e+u,0)),function(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}(n,fn(t),u)},function(n,r,e){var u=Object(n);if(!Wn(n)){var i=fn(r);n=nt(n),r=function(n){return i(u[n],n,u)}}var o=Fn(n,r,e);return o>-1?u[i?n[o]:o]:t});function kn(n,t){return Q(n,fn(t))}function Sn(n,t,r){return function(n,t,r,e,u){return u(n,(function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)})),r}(n,fn(t),r,arguments.length<3,Q)}function Dn(n,e){var u;if("function"!=typeof e)throw new TypeError(r);return n=Vn(n),function(){return--n>0&&(u=e.apply(this,arguments)),n<=1&&(e=t),u}}var In=sn((function(n,t,r){return _n(n,33,t,r)})),Pn=sn((function(n,t){return V(n,1,t)})),Rn=sn((function(n,t,r){return V(n,Hn(t)||0,r)}));function qn(n,t){return n===t||n!=n&&t!=t}var Bn=on(function(){return arguments}())?on:function(n){return zn(n)&&D.call(n,"callee")&&!M.call(n,"callee")},Mn=Array.isArray;function Wn(n){return null!=n&&function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=i}(n.length)&&!Gn(n)}var $n=function(n){return zn(n)&&en(n)==l};function Gn(n){if(!Ln(n))return!1;var t=en(n);return t==s||t==v||t==f||t==g}function Ln(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function zn(n){return null!=n&&"object"==typeof n}function Cn(n){return"number"==typeof n||zn(n)&&en(n)==h}var Jn=function(n){return zn(n)&&en(n)==b};function Un(n){return"string"==typeof n||!Mn(n)&&zn(n)&&en(n)==_}var Vn=Number,Hn=Number;function Kn(n){return"string"==typeof n?n:null==n?"":n+""}var Qn=bn((function(n,t){gn(t,$(t),n)})),Xn=bn((function(n,t){gn(t,dn(t),n)})),Yn=bn((function(n,t,r,e){gn(t,tt(t),n,e)}));var Zn=sn((function(n){return n.push(t,jn),Yn.apply(t,n)}));var nt=$,tt=dn,rt=function(n){return wn(On(n,t,An),n+"")}((function(n,t){return null==n?{}:function(n,t){return n=Object(n),Sn(t,(function(t,r){return r in n&&(t[r]=n[r]),t}),{})}(n,t)}));function et(n){return null==n?[]:function(n,t){return ln(t,(function(t){return n[t]}))}(n,nt(n))}function ut(n){return n}var it,ot=fn;function ct(n,t,r){var e=nt(t),u=rn(t,e);null!=r||Ln(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=rn(t,nt(t)));var i=!(Ln(r)&&"chain"in r&&!r.chain),o=Gn(n);return Q(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=hn(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,A([this.value()],arguments))})})),n}function ft(){}function at(n,r,e){var u,i,o,c,f,a,l=0,p=!1,s=!1,v=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function h(r){var e=u,o=i;return u=i=t,l=r,c=n.apply(o,e)}function y(n){var e=n-a;return a===t||e>=r||e<0||s&&n-l>=o}function g(){var n=Date.now();if(y(n))return b(n);f=setTimeout(g,function(n){var t=n-l,e=r-(n-a);return s?Math.min(e,o-t):e}(n))}function b(n){return f=t,v&&u?h(n):(u=i=t,c)}function _(){var n=Date.now(),e=y(n);if(u=k.slice.call(arguments),i=this,a=n,e){if(f===t)return function(n){return l=n,f=setTimeout(g,r),p?h(n):c}(a);if(s)return f=setTimeout(g,r),h(a)}return f===t&&(f=setTimeout(g,r)),c}return r=+r||0,Ln(e)&&(p=!!e.leading,o=(s="maxWait"in e)?Math.max(+e.maxWait||0,r):o,v="trailing"in e?!!e.trailing:v),_.cancel=function(){f!==t&&clearTimeout(f),l=0,u=a=i=f=t},_.flush=function(){return f===t?c:b(Date.now())},_}return L.assignIn=Xn,L.before=Dn,L.bind=In,L.chain=Tn,L.compact=function(n){return Y(n,Boolean)},L.concat=function(){var n=arguments.length;if(!n)return[];for(var t=Array(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return A(Mn(r)?hn(r):[r],Z(t,1))},L.create=function(n,t){var r=z(n);return null==t?r:Qn(r,t)},L.defaults=Zn,L.defer=Pn,L.delay=Rn,L.filter=function(n,t){return Y(n,fn(t))},L.flatten=An,L.flattenDeep=function(n){return(null==n?0:n.length)?Z(n,Infinity):[]},L.iteratee=ot,L.keys=nt,L.map=function(n,t){return ln(n,fn(t))},L.matches=function(n){return pn(Qn({},n))},L.mixin=ct,L.negate=function(n){if("function"!=typeof n)throw new TypeError(r);return function(){var t=arguments;return!n.apply(this,t)}},L.once=function(n){return Dn(2,n)},L.pick=rt,L.slice=function(n,r,e){var u=null==n?0:n.length;return r=null==r?0:+r,e=e===t?u:+e,u?vn(n,r,e):[]},L.sortBy=function(n,r){var e=0;return r=fn(r),ln(ln(n,(function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}})).sort((function(n,r){return function(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=r!==t,c=null===r,f=r==r;if(!c&&n>r||u&&o&&f||!e&&f||!i)return 1;if(!u&&n<r||c&&e&&i||!o&&i||!f)return-1}return 0}(n.criteria,r.criteria)||n.index-r.index})),x("value"))},L.tap=function(n,t){return t(n),n},L.thru=function(n,t){return t(n)},L.toArray=function(n){return Wn(n)?n.length?hn(n):[]:et(n)},L.values=et,L.debounce=at,L.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return Ln(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),at(n,t,{leading:e,maxWait:t,trailing:u})},L.extend=Xn,L.assign=Xn,ct(L,L),L.clone=function(n){return Ln(n)?Mn(n)?hn(n):gn(n,$(n)):n},L.escape=function(n){return(n=Kn(n))&&m.test(n)?n.replace(j,T):n},L.every=function(n,r,e){return function(n,t){var r=!0;return Q(n,(function(n,e,u){return r=!!t(n,e,u)})),r}(n,fn(r=e?t:r))},L.find=Nn,L.forEach=kn,L.has=function(n,t){return null!=n&&D.call(n,t)},L.head=xn,L.identity=ut,L.indexOf=En,L.isArguments=Bn,L.isArray=Mn,L.isBoolean=function(n){return!0===n||!1===n||zn(n)&&en(n)==a},L.isDate=$n,L.isEmpty=function(n){return Wn(n)&&(Mn(n)||Un(n)||Gn(n.splice)||Bn(n))?!n.length:!$(n).length},L.isEqual=function(n,t){return cn(n,t)},L.isFinite=function(n){return"number"==typeof n&&W(n)},L.isFunction=Gn,L.isNaN=function(n){return Cn(n)&&n!=+n},L.isNull=function(n){return null===n},L.isNumber=Cn,L.isObject=Ln,L.isPlainObject=function(n){if(!zn(n)||"[object Object]"!=en(n))return!1;var t=Object.getPrototypeOf(n);if(null===t)return!0;var r=D.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&P.call(r)==R},L.isRegExp=Jn,L.isString=Un,L.isUndefined=function(n){return n===t},L.last=function(n){var r=null==n?0:n.length;return r?n[r-1]:t},L.max=function(n){return n&&n.length?X(n,ut,un):t},L.min=function(n){return n&&n.length?X(n,ut,an):t},L.noop=ft,L.reduce=Sn,L.result=function(n,r,e){var u=null==n?t:n[r];return u===t&&(u=e),Gn(u)?u.call(n):u},L.size=function(n){return null==n?0:(n=Wn(n)?n:$(n)).length},L.some=function(n,r,e){return yn(n,fn(r=e?t:r))},L.uniqueId=function(n){var t=++I;return Kn(n)+t},L.each=kn,L.first=xn,ct(L,(it={},tn(L,(function(n,t){D.call(L.prototype,t)||(it[t]=n)})),it),{chain:!1}),L.VERSION="4.17.4",Q(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],(function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:k)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);L.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Mn(u)?u:[],n)}return this[r]((function(r){return t.apply(Mn(r)?r:[],n)}))}})),L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=function(){return n=this.__wrapped__,Sn(this.__actions__,(function(n,t){return t.func.apply(t.thisArg,A([n],t.args))}),n);var n},L}));define("@baidu/ala-util/fetch",["require"],(function(e){return window.fetch}));define("@baidu/ala-util/fetch-jsonp",["require","@baidu/ala-util/es6-promise"],(function(e){"use strict";var t=e("@baidu/ala-util/es6-promise"),n=5e3,i="callback";function r(e){try{delete window[e]}catch(t){window[e]=undefined}}function o(e){var t=document.getElementById(e);t&&document.getElementsByTagName("head")[0].removeChild(t)}return function(e){var a=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],u=e,c=a.timeout||n,d=a.jsonpCallback||i,l=undefined;return new t((function(n,i){var s=a.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),m=d+"_"+s;window[s]=function(e){n({ok:!0,json:function(){return t.resolve(e)}}),l&&clearTimeout(l),o(m),r(s)},u+=-1===u.indexOf("?")?"?":"&";var f=document.createElement("script");f.setAttribute("src",""+u+d+"="+s),a.charset&&f.setAttribute("charset",a.charset),f.id=m,document.getElementsByTagName("head")[0].appendChild(f),l=setTimeout((function(){i(new Error("JSONP request to "+e+" timed out")),r(s),o(m)}),c),f.onerror=function(){i(new Error("JSONP request to "+e+" failed")),r(s),o(m),l&&clearTimeout(l)}}))}}));define("@baidu/ala-util/es6-promise",["require"],(function(e){return window.Promise}));define("@baidu/ala-util/env",["require","exports"],(function(i,a){(function(i,a){var e=this.os={},o=this.browser={},t=i.match(/Web[kK]it[\/]{0,1}([\d.]+)/),r=i.match(/(Android);?[\s\/]+([\d.]+)?/),n=!!i.match(/\(Macintosh\; Intel /),s=i.match(/(iPad).*OS\s([\d_]+)/),h=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!s&&i.match(/(iPhone\sOS)\s([\d_]+)/),c=i.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),m=/Win\d{2}|Windows/.test(a),l=i.match(/Windows Phone ([\d.]+)/),v=c&&i.match(/TouchPad/),b=i.match(/Kindle\/([\d.]+)/),p=i.match(/Silk\/([\d._]+)/),S=i.match(/(BlackBerry).*Version\/([\d.]+)/),f=i.match(/(BB10).*Version\/([\d.]+)/),u=i.match(/(RIM\sTablet\sOS)\s([\d.]+)/),k=i.match(/PlayBook/),w=i.match(/Chrome\/([\d.]+)/)||i.match(/CriOS\/([\d.]+)/),P=i.match(/Firefox\/([\d.]+)/),g=i.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),M=i.match(/MSIE\s([\d.]+)/)||i.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),O=!w&&i.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),T=O||i.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(o.webkit=!!t)&&(o.version=t[1]),r&&(e.android=!0,e.version=r[2]),d&&!h&&(e.ios=e.iphone=!0,e.version=d[2].replace(/_/g,".")),s&&(e.ios=e.ipad=!0,e.version=s[2].replace(/_/g,".")),h&&(e.ios=e.ipod=!0,e.version=h[3]?h[3].replace(/_/g,"."):null),l&&(e.wp=!0,e.version=l[1]),c&&(e.webos=!0,e.version=c[2]),v&&(e.touchpad=!0),S&&(e.blackberry=!0,e.version=S[2]),f&&(e.bb10=!0,e.version=f[2]),u&&(e.rimtabletos=!0,e.version=u[2]),k&&(o.playbook=!0),b&&(e.kindle=!0,e.version=b[1]),p&&(o.silk=!0,o.version=p[1]),!p&&e.android&&i.match(/Kindle Fire/)&&(o.silk=!0),w&&(o.chrome=!0,o.version=w[1]),P&&(o.firefox=!0,o.version=P[1]),g&&(e.firefoxos=!0,e.version=g[1]),M&&(o.ie=!0,o.version=M[1]),T&&(n||e.ios||m)&&(o.safari=!0,e.ios||(o.version=T[1])),O&&(o.webview=!0),e.tablet=!!(s||k||r&&!i.match(/Mobile/)||P&&i.match(/Tablet/)||M&&!i.match(/Phone/)&&i.match(/Touch/)),e.phone=!(e.tablet||e.ipod||!(r||d||c||S||f||w&&i.match(/Android/)||w&&i.match(/CriOS\/([\d.]+)/)||P&&i.match(/Mobile/)||M&&i.match(/Touch/)))}).call(a,navigator?navigator.userAgent:"",navigator?navigator.platform:"")}));define("@baidu/ala-util",["require","@baidu/ala-util/lodash","@baidu/ala-util/env","@baidu/ala-util/fetch-jsonp","@baidu/ala-util/es6-promise","@baidu/ala-util/fetch","@baidu/ala-util/preload","@baidu/ala-util/prefetch"],(function(t){var e={},n=e=t("@baidu/ala-util/lodash"),o=t("@baidu/ala-util/env"),a=t("@baidu/ala-util/fetch-jsonp");e.os=o.os,e.browser=o.browser;var r=e.Promise=t("@baidu/ala-util/es6-promise"),i=t("@baidu/ala-util/fetch");e.preload=t("@baidu/ala-util/preload"),e.prefetch=t("@baidu/ala-util/prefetch");var s={mode:"same-origin",credentials:"same-origin"},c={jsonpCallback:"cb"},u=e.URL={};function l(t,e){var n={};for(var o in e=Array.isArray(e)?e:[e],t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function f(t,e,o){var a,r=n.isArray(e),i=n.isPlainObject(e);for(var s in e)if(e.hasOwnProperty(s)){var c=e[s];a=n.isObject(c)||n.isArray(c),o&&(s=o+"["+(i||a?s:"")+"]"),!o&&r?t.add(c.name,c.value):a?f(t,c,s):t.add(s,c)}}function d(t){var e={};try{window[t].setItem("_t",1),window[t].removeItem("_t"),e.enabled=!0}catch(a){e.enabled=!1}if(!e.enabled)return{enabled:!1,storgae:{},setItem:function(t,e){this.storgae[t]=e},removeItem:function(t){null!=this.storgae[t]&&delete this.storgae[t]},getItem:function(t){return this.storgae[t]}};var n=window[t],o="search_ala_";return e.getItem=function(t){return n.getItem(o+t)},e.setItem=function(t,e){n.setItem(o+t,e)},e.removeItem=function(t){n.removeItem(o+t)},e}e.omit=l,e.fetch=function(t,e){var r=e.data,f=(e.method||"get").toLowerCase();switch(e=n.assign({},"jsonp"===f?c:s,l(e,["data"])),f){case"get":e.headers=n.assign({"Content-Type":"application/json; charset=UTF-8"},e.headers);case"jsonp":r&&(t+=(t.indexOf("?")>=0?"&":"?")+u.params(r));break;case"post":"undefined"!=typeof FormData&&e.body instanceof FormData||(e.headers=n.assign({"Content-Type":"application/x-www-form-urlencoded"},e.headers),r&&!e.body&&(e.body=u.params(r)))}return("jsonp"===f?a(t,e):i(t,e)).then((function(t){var e=t.status,n=t.statusText;return o.browser.qq&&"boolean"!=typeof t.ok&&(t.ok=+e>=200&&+e<300),t.json().then((function(e){if(t.ok)return e;throw new Error(n)}))}))},u.params=function(t){var e=[],o=encodeURIComponent;return e.add=function(t,e){n.isFunction(e)&&(e=e()),null===e&&(e=""),this.push(o(t)+"="+o(e))},f(e,t),e.join("&").replace(/%20/g,"+")},u.parse=function(t){var e=document.createElement("a");return e.href=t,{href:e.href,host:e.host||location.host,port:"0"===e.port||""===e.port?function(t){switch(t){case"http:":return 80;case"https:":return 443;default:return location.port}}(e.protocol):e.port,hash:e.hash,hostname:e.hostname||location.hostname,pathname:"/"!==e.pathname.charAt(0)?"/"+e.pathname:e.pathname,protocol:e.protocol&&":"!==e.protocol?e.protocol:location.protocol,search:e.search,query:u.qs(e.search.slice(1))}},u.qs=function(t){if(!t)return{};var e=decodeURIComponent;return t.split("&").reduce((function(t,o){var a=o.indexOf("="),r=e(o.slice(0,a)),i=e(o.slice(a+1));if(!r)return t;var s=t[r];return n.isArray(s)?s.push(i):t[r]=s?[s,i]:i,t}),{})},n(["width","height"]).forEach((function(t){e[t]=function(e){return e.getBoundingClientRect()[t]}})),e.position=function(t){var e=t.getBoundingClientRect(),n=document.documentElement,o=document.body,a=n.clientTop||o.clientTop||0,r=n.clientLeft||o.clientLeft||0,i=window.pageYOffset||n.scrollTop,s=window.pageXOffset||n.scrollLeft;return{left:parseFloat(e.left)+s-r,top:parseFloat(e.top)+i-a}},e.loadJS=function(t){return new r((function(e,n){var o=document.getElementsByTagName("script")[0],a=document.createElement("script");a.src=t,a.async=!0,o.parentNode.insertBefore(a,o),a.onload=function(){e(a=null)},a.onerror=function(t){a=null,n(t)}}))},e.ls=d("localStorage"),e.ss=d("sessionStorage");var p=e.eventHub={instance:null,commonCb:function(e){var n=this;t(["@baidu/atom-web-runtime"],(function(t){n.instance||(n.instance=new t),e&&e()}))},$on:function(t,e){var n=this;this.commonCb((function(){n.instance.$on(t,e)}))},$emit:function(t){var e=this,n=arguments;this.commonCb((function(){e.instance.$emit.apply(e.instance,[t].concat(Array.from(n).slice(1)))}))},$off:function(t,e){var n=this;this.commonCb((function(){n.instance.$off(t,e)}))},$once:function(t,e){var n=this;this.commonCb((function(){n.instance.$once(t,e)}))}};return e.triggerTopNav=function(t,e,n,o){"wise"!==n.env?o&&o.trigger(t,e):p.$emit(t,e)},e}));define("@baidu/ala-util/global-api",["require","@baidu/ala-util/ala"],(function(i){var h=i("@baidu/ala-util/ala");return{ahighlight:function(i,t){var l=this.$root.filterMap&&this.$root.filterMap.highlightMap,a=null;if(l&&(a=t&&t.highlight?(l=l.hasHighlight)&&l[t.highlight]&&l[t.highlight][i]:(l=l.noHighlight)&&l[i]),!a&&t&&t.highlight&&(a=h.highLight(i,t.highlight)),!a)throw new Error("[atom runtime] highlight filter error.");return a}}}));define("@baidu/ala-util/swan-web-utils",["require"],(function(n){return{isWebView:function(){return!!window.navigator&&window.navigator.userAgent.includes("swan")},hijackLinkClick:function(n){if(!window.handlePress){window.handlePress=!0;var e=0,t=0;document.body.addEventListener("touchstart",(function(n){var a=n.changedTouches[0];0,e=a.pageX,t=a.pageY}),!1),document.body.addEventListener("touchend",(function(n){var a=n.changedTouches[0],o=a.pageX-e,s=a.pageY-t;Math.sqrt(o*o+s*s)<10&&i(n)}),!1)}function a(n,e,t){if("a"===e.tagName.toLowerCase()){var i=e.href||e.dataset.href;t(n,e,/^\/sf\?/.test(i)?window.location.origin+i:i)}else/^\/sf\?/.test(e.dataset.href)?t(n,e,window.location.origin+e.dataset.href):e.parentElement&&a(n,e.parentElement,t)}function i(e){a(e,e.target,n)}},loadSwanSDK:function(e){window.swan?e(window.swan):n(["https://b.bdstatic.com/searchbox/icms/searchbox/js/swan-2.0.6"],(function(){e(window.swan||{})}))}}}));define("@baidu/ala-util/video-utils",["require","@baidu/Boxjs-search","@searchfe/user-agent","uiamd/bdbox/base","versions-compare","@baidu/ala-util","@baidu/ala-util/lodash","@baidu/ala-util/md5","@searchfe/underscore","webb/instance","@baidu/boxx"],(function(e){var r=e("@baidu/Boxjs-search"),o=e("@searchfe/user-agent"),a=e("uiamd/bdbox/base"),t=e("versions-compare"),n=e("@baidu/ala-util"),i=e("@baidu/ala-util/lodash"),s=e("@baidu/ala-util/md5"),c=e("@searchfe/underscore"),u=e("webb/instance"),d=e("@baidu/boxx"),p=u.getInstance("1_5"),l={},m={},f=e("uiamd/bdbox/base");function g(e){var r=s(e+"_"+Date.now(),16).slice(8,24);return window.page.utils.cookie("seClickID",r,{expires:36e5,domain:"baidu.com",path:"/"}),r}function h(e){var r=e.imgSrc,o=e.pd,a=e.pos;if(!r)return!1;var t=new Image;function n(e,r){w.sendWebbLog({imgSrc:e.imgSrc,pd:e.pd,pos:e.pos,errorType:r})}t.onload=function(){(function(e){var r=e.naturalWidth||e.width,o=e.naturalHeight||e.height;if(r<10||o<10)return!1;return!0})(this)||n(e,["mini_size"]),l[a]===undefined&&(l[a]=0),function(e,r,o){m[e]&&(clearTimeout(m[e]),m[e]=null);m[e]=setTimeout((function(){p.send("count_comm",{imgCount:r},{pos:e,pd:o},null,{group:"imgCount"}),m[e]=null,l[e]=0}),500)}(a,++l[a],o),t.onload=t.onerror=null},t.onerror=function(){n(e,["error"]),t.onload=t.onerror=null},t.src=r,t.complete&&t.onload()}function b(e){var r=[];try{for(var o=$(e).closest("[srcid]")[0];e&&e!==o;){for(var a=e.previousSibling,t=1;a;)1===a.nodeType&&a.nodeName===e.nodeName&&t++,a=a.previousSibling;var n=$(e).data("module");n=n?"("+n+")":"",r.push(e.nodeName.toLowerCase()+(t>1?t:"")+n),e=e.parentNode}}catch(i){r=[]}return r.reverse().join("-")}function v(){var e=navigator.userAgent||"",r=!1;return/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari\/[^a-z]+)$)/i.test(e)&&o.isIOS()&&(r=!0),r}var w={setH5ClickId:g,getNaBrowserParams:function(){var e=this;return new Promise((function(o,a){e._getBrowserParams?o(e._getBrowserParams):r.data.get({name:"browser-params"}).then((function(r){e._getBrowserParams=r,o(r)}))["catch"]((function(e){a()}))}))},setFullScreen:function(e){var n=o.isBaiduBox()&&!o.isBaiduBoxLite()&&!/info baiduboxapp/.test(window.navigator.userAgent)&&t(o.baiduBoxVersion(),"11.6")>=0;this.getNaBrowserParams().then((function(o){if(!o||1!==parseInt(o.canOpenWebView,10)||!1===e)if(n)r.data.set({name:"searchframe-config",data:{fullscreen:1,disablerefresh:1,statusBarHide:1,showFloatingButton:0,hidesearchbox:1}}).then((function(e){}))["catch"]((function(e){}));else if(a){var t=a.getVersion();a.isIOS&&1===a.version_compare(t,"8.5.0")&&a.ios.invokeApp("v5/browser/setfullscreen",{upgrade:0,fullscreen:1})}}))["catch"]((function(){}))},canXspAutoPlayBrowser:function(){return o.isBaiduBox()||(e=navigator.userAgent||"",r=!1,/(?:Chrome|CrMo|CriOS)\/([0-9]{1,2}\.[0-9]\.[0-9]{3,4}\.[0-9]+)/i.test(e)&&!/(samsung|miuibrowser|ucbrowser|qqbrowser|huaweibrowser|oppobrowser|vivobrowser|lebrowser|mzbrowser)/i.test(e)&&(r=!0),r)||v();var e,r},sendWebbErrorLog:function(e,r){if(r=r||{},e){var o=i.assign({msg:e.message?e.message:e.toString(),stack:e.stack,pageUrl:window.location.href},r);p.send(r.type||"et_comm",o,{pageType:"A",browser:this.browser(),system:this.system()},null,{group:r.group||"js"})}},sendUrlFeatureCostLog:function(e,r){if(r=r||{},e){var a={};for(var t in r){var n=t&&t.replace("Measure",""),i=n+"Count";a[n+"Cost"]=r[t]?r[t].cost:0,a[i]=r[t]?r[t].count:0}p.send(r.type||"pf_comm",a,{type:e,browser:!0===o.isBaiduBox()?"box":"unbox",system:this.system()},null,{group:"url_trans_feature_cost"})}},sendWebbLog:function(r){var o=this;e(["webb/instance"],(function(e){e.getInstance("1_5").send(r.type||"et_comm",{msg:r.msg||"img_error",src:r.imgSrc||""},{pos:r.pos||"",pd:r.pd||"",browser:o.browser(),system:o.system(),errorType:r.errorType||""},null,{group:r.group||"imgloaderror"})}))},system:function(){var e="other";return o.isAndroid()?e="android":o.isIOS()&&(e="ios"),e},browser:function(){var e="other",r=window.navigator.userAgent;return o.isBaiduBox()?e="box":v()?e="safari":o.isChromeMobile()||o.isCriOS()?e="chrome":o.isSearchCraft()?e="searchCraft":o.isQQBrowser()?e="qq":o.isUC()?e="uc":o.isMiuiBrowser()?e="mi":/vivobrowser/i.test(r)?e="vivo":/oppobrowser/i.test(r)&&(e="oppo"),e},xspOpenNa:function(e,r,s,c){var u=+new Date,d=b(c.target),p=n.URL.parse(e).query,l=JSON.parse(p.params),m=JSON.parse(p.searchParams),f=m.logUrl,g=m.logParams;try{var h=g?n.URL.qs(g):n.URL.parse(f).query,v=n.getEventSignature(c),w=i.assign({},JSON.parse(h.clk_info),{t:u,xpath:d,sig:v}),x=window.A.log.settings,S=x.PARAMS,y=[s.ensrcid,s.order,x.sPARAMS.pn,x.sPARAMS.rn,"sf"+r].join("_"),I=s.srcid+"_"+s.order,P=n.URL.params(i.assign(h,{w:S.w,t:S.t,fm:window.A.log.list[I].fm,ala_clk:y,clk_info:JSON.stringify(w)}));g?m.logParams=P:(t(o.baiduBoxVersion(),"11.15")>=0&&(l.sourceWebUrl=location.href),m.logUrl="https://m.baidu.com/tc?"+P),l.ext=JSON.stringify(i.assign(JSON.parse(l.ext),{t:u}));var C=l.request_ext.lid;l.request_ext.c_applid=(C&&C.length>0?C.substr(C.length-5):0)+u}catch(c){}var R="";R=(e&&e.split("?")[0]+"?")+"params="+encodeURIComponent(JSON.stringify(l))+"&searchParams="+encodeURIComponent(JSON.stringify(m)),g&&(R+="&useTpl=1"),a.schema(new URL(R))},toTalos:function(e,r,o){var a=n.URL.parse(e).query,t=JSON.parse(a.params),i=JSON.parse(a.searchParams),s=e&&e.split("?")[0]+"?";if(r){var c=t.url,u=c.split("?")[0],d=n.URL.parse(c).query,p=d.biz_params?JSON.parse(decodeURIComponent(d.biz_params)):{};d.biz_params=JSON.stringify(Object.assign(p,r)),t.url=u+"?"+n.URL.params(d)}return t.extra=o||"",s+"params="+encodeURIComponent(JSON.stringify(t))+"&searchParams="+encodeURIComponent(JSON.stringify(i))},dspOpenNa:function(e,r,t,n){r.searchParams.logUrl=this._makeTcLog(e,r,n);var i="";1===(t=parseInt(t,10))?i="baiduboxapp://v43/browserVideo/invokeVideoLandingPage?":3!==t&&4!==t||(i="baiduboxapp://video/invokeVideoDetail?",o.isAndroid()&&(i+='toolbaricons={"toolids":["2","3"]}&')),i=i+"params="+encodeURIComponent(JSON.stringify(r.baiduappParams))+"&searchParams="+encodeURIComponent(JSON.stringify(r.searchParams)),a.schema(new URL(i))},_makeTcLog:function(e,r,o,a){var t=+new Date,s=b(e.target),c=window.A.log.settings,u=c.PARAMS,d=n.getEventSignature(e),p=[o.ensrcid,o.order,c.sPARAMS.pn,c.sPARAMS.rn,"o"].join("_"),l=o.srcid+"_"+o.order;try{var m=r.logParams||{};m.clk_info=decodeURIComponent(m.clk_info),m.src=decodeURIComponent(m.src);var f={t:t,xpath:s,sig:d};a&&(f.seClickID=a);var g=i.assign({},JSON.parse(m.clk_info),f)}catch(e){}return"https://m.baidu.com/tc?"+n.URL.params(i.assign(m,{clk_info:JSON.stringify(g),w:u.w,t:u.t,order:o.order,fm:window.A.log.list[l].fm,ala_clk:p,ala_clk_t:$(e.target).text().substr(0,20)}))},dspOpenImmersive:function(e,r,o,t){var n=s(page.comm.lid+"_"+new Date).slice(8,24);r.searchParams.logUrl=this._makeTcLog(e,r,t,n);var c=o.baiduappParam&&o.baiduappParam.extRequest||{},u={pd:"search",from:"search",tpl:"search",page:"immersive_na",collectionType:"immersive",insert_ids:"sv_"+o.vid,extRequest:i.assign({},c,{seClickID:n})},d="baiduboxapp://v8/video/collections?params="+encodeURIComponent(JSON.stringify(u))+"&searchParams="+encodeURIComponent(JSON.stringify(r.searchParams));a.schema(new URL(d))},getXpath:b,debounce:function(e,r){var o=null;return function(){null!==o&&clearTimeout(o),o=setTimeout(e,r)}},sendPrLog:function(e,r,a,t){t.send({ct:88,cst:e,clk_extra:JSON.stringify({t:o.isIOS()?25:24}),clk_info:JSON.stringify({xpath:this.getXpath(r),srcid:a&&a.srcid||"",tplname:a&&a.tplname||""})})},getPrefetch:function(e,r,o){r.send({ct:88,cst:o.cst,clk_extra:JSON.stringify({t:o.t,loc:o.loc})});var t="baiduboxapp://v45/search/videoPrefetch?params="+encodeURIComponent(JSON.stringify(e))+"&upgrade=0";window.searchboxBoxjsId&&"swan"!==window.searchboxBoxjsId&&(t=t+"&oauthType="+window.searchboxBoxjsId),a.schema(new URL(t))},preFetchAction:{FIRST_PREFETCH:0,SCROLL_PREFETCH:1,CLICK_PREFETCH:2},formatPubTime:function(e){if(!e)return"";var r="",o="string"==typeof e?parseInt(e,10):e,a=Math.floor(Date.now()/1e3)-o;return a/86400>=365?r=Math.floor(a/31536e3)+"年前":a/86400>=30&&a/86400<365?r=Math.floor(a/2592e3)+"个月前":a/86400>=1&&a/86400<30?r=Math.floor(a/86400)+"天前":a/86400<1&&(a/3600>=1&&a/3600<24?r=Math.floor(a/3600)+"小时前":a/60>=1&&a/60<60?r=Math.floor(a/60)+"分钟前":a>=1&&a<60&&(r=a+"秒前")),r},formatCount:function(e){if(!e)return"";var r=(e+"").length;return r>=1&&r<5?e+"":5===r?parseFloat((e/1e4).toFixed(1))+"万":r>=6&&r<9?(e/1e4).toFixed(0)+"万":9===r?parseFloat((e/1e8).toFixed(1))+"亿":r>=10?(e/1e8).toFixed(0)+"亿":void 0},formatDurTime:function(e){var r=parseInt(e||0,10),o=Math.floor(r/3600),a=[Math.floor((r-3600*o)/60),(r-3600*o)%60],t=["00","0"],n="";o>0&&a.unshift(o);var i=a.length-1;return a.forEach((function(e,r){var o=e.toString().length;n+=r!==i?o<2?t[e.toString().length]+e+":":e+":":o<2?t[e.toString().length]+e:e})),n},getMobileNetVideoAutoplaySwitchType:function(){return new Promise((function(e,r){var o="MN_autoplayType"+Date.now();window[o]=function(r){var o=1;try{o=+JSON.parse(r).data.value||0}catch(a){}e(o)},f.schema("baiduboxapp://searchVideo/getMobileNetVideoAutoplaySwitchType?callback="+o)}))},showNaUnwifiToast:function(e,r){if(e&&!r&&o.isBaiduBox()&&t(o.baiduBoxVersion(),"12.3.0")>=0){var a=encodeURIComponent(JSON.stringify(e));f.schema("baiduboxapp://searchframe/showMobileNetPushVideoSettingPageToast?params="+a)}},isDomInview:function(e,r,o){var a=r||1,t=e.getBoundingClientRect(),n=(o=o||{}).left||0,i=o.top||0,s=window.innerWidth||document.documentElement.clientWidth,c=window.innerHeight||document.documentElement.clientHeight,u=t.width*(1-a),d=t.height*(1-a);return t.top+d-i>0&&c+d>t.height+t.top&&t.left+u-n>0&&s+u>t.width+t.left},getNetWork:function(){var e=this;return new Promise((function(r,o){var a="unkown";d.canIUse("device.getNetworkType")?d.call("device.getNetworkType",{success:function(e){a=e&&e.data&&e.data.networkType,r(a)},fail:function(o){r(a),e.sendWebbErrorLog(o,{errMsg:"network error"})}}):r(a)}))},sendImgErrorLog:function(e,r,o){"[object Object]"!==Object.prototype.toString.call(e)?(o=o||"poster",e.forEach((function(e){h({pd:r.pd,pos:r.pos,imgSrc:e[o]})}))):h(e)},getVideoHistoryPlayerInfo:function(e,r,a){return new Promise((function(n,i){if(o.isIOS()&&o.isBaiduBox()&&t(o.baiduBoxVersion(),"11.24.0")>=0)if(e&&(r||a)){var s="getPlayerInfo"+Date.now(),c=encodeURIComponent(JSON.stringify({vid:e,pageUrl:r}));window[s]=function(e){try{var r=JSON.parse(e).data;n({vid:r.vid,progress:r.progress})}catch(o){i(o)}n(e)},f.schema("baiduboxapp://video/readVideoHistoryPlayerInfo?params="+c+"&callback="+s)}else i();else i()}))},setVideoHistoryPlayerInfo:function(e,r,a,n){if(o.isIOS()&&o.isBaiduBox()&&t(o.baiduBoxVersion(),"11.24.0")>=0&&e&&(r||n)){var i=encodeURIComponent(JSON.stringify({vid:e,pageUrl:r,progress:Math.ceil(a)||0})),s=encodeURIComponent(JSON.stringify({vid:e,pageUrl:r,seek:Math.ceil(a)||0}));f.schema("baiduboxapp://video/saveVideoHistoryPlayerInfo?params="+i),f.schema("baiduboxapp://video/seekPlayer?params="+s)}},addIvkParamsClickId:function(e,r,o){if(c.get(e,"urlParams.ivkParams.control")){var a=e.urlParams.ivkParams.control;if(+(a.ext?JSON.parse(a.ext):{}).shouldAutoSendTcLog&&c.get(a,"extLogContent.clkInfo")){var t=g(o);r&&"function"==typeof r.$set&&r.$set(a.extLogContent.clkInfo,"seClickID",t)}}},changeTabSchemaExtra:function(e,r,o){var a=new RegExp(encodeURIComponent(',"extra":"')+"(.*?)"+encodeURIComponent('"')),t=a.exec(e),n="&"+r+"="+o;if(t&&t[1]){var i=decodeURIComponent(t[1]),s=new RegExp("(&"+r+"=)(.*?)($|&)"),c=i.replace(s,"$3")+n;e=e.replace(a,encodeURIComponent(',"extra":"'+c+'"'))}else e=e.replace(new RegExp("("+encodeURIComponent("}")+"&searchParams)"),encodeURIComponent(',"extra":"'+n+'"')+"$1");return e}};return w}));define("@baidu/ala-util/ala",["require","@baidu/ala-util/lodash","@baidu/ala-util","@baidu/ala-util/na/utils","@baidu/ala-util/na/naConfig","@baidu/ala-util/md5","@baidu/boxx","@baidu/pst-log","@searchfe/user-agent","versions-compare"],(function(e){var r,t=e("@baidu/ala-util/lodash"),a=e("@baidu/ala-util"),i=e("@baidu/ala-util/na/utils"),n=e("@baidu/ala-util/na/naConfig").CONF,o=e("@baidu/ala-util/md5"),c=e("@baidu/boxx"),s=e("@baidu/pst-log"),p={tcUrl:"href",originUrl:"data-url",log:"data-log",tcRedirect:"data-tc-redirect",fastUrl:"origin-url"},l={sf:"sf",xcx:"xcx",na:"na",easybrowse:"scheme"};function u(e){if(!e)return!1;e=e.replace(/&/g,"&");var r={};return r.query=e.replace(/([^?]+)\?/g,(function(e,t){return r.path=t,""})).replace(/#.*/,(function(e){return r.hash=e,""})),r.params={},r.query.split("&").forEach((function(e,t){var a=e.split("=");a[0]&&(r.params[a[0]]=a.length>1?decodeURIComponent(a[1]):"")})),r}function m(e){if(!e)return!1;var t=u(e=e.replace(/&/g,"&")),a=t.params.tj;if(a){var i=(a&&a.split("_")[4]).match(/(\w+)(\d+)/);if(i){var n={};n[i[1]]=i[2],d(n)}}return!r&&d({l:0}),t}function d(e){r||(r={}),t.forEach(e,(function(e,t){r[t]=+e?+e:1}))}function f(e){return e===undefined||null===e||""===e}function g(e,r,a){var i,n=t.isArray(r),o=t.isPlainObject(r);for(var c in r)if(r.hasOwnProperty(c)){var s=r[c];i=t.isObject(s)||t.isArray(s),a&&(c=a+"["+(o||i?c:"")+"]"),!a&&n?e.add(s.name,s.value):i?g(e,s,c):e.add(c,s)}}function x(e){var r=[],a=encodeURIComponent;return r.add=function(e,r){t.isFunction(r)&&(r=r()),null===r&&(r=""),this.push(a(e)+"="+a(r))},g(r,e),r.join("&").replace(/%20/g,"+")}function h(e,r){var t,a,i={type:"",mipUrl:"",cacheUrl:"",baiduUrl:"",mainUrl:"",isHttps:!1,hasQuery:!1},n="https://mipcache.bdstatic.com/c/",o="https://m.baidu.com/mip/c/";return r&&(o="https://m.baidu.com/"+r+"/c/"),0===e.indexOf(n)?(i.type="MIP-Cache Url",t=new RegExp(n+"(s/)?(\\S+)")):0===e.indexOf(o)?(i.type="Baidu Url",t=new RegExp(o+"(s/)?(\\S+)")):(i.type="MIP Url",t=new RegExp("http(s)?://(\\S+)")),!!(a=t.exec(e))&&(a[1]&&(i.isHttps=!0),i.mainUrl=function(e){var r=e.replace(new RegExp("/","g"),"%2F");return decodeURIComponent(r)}(a[2]),i.mipUrl="http"+(i.isHttps?"s":"")+"://"+i.mainUrl,i.cacheUrl=n+(i.isHttps?"s/":"")+i.mainUrl,i.baiduUrl=o+(i.isHttps?"s/":"")+function(e){var r=encodeURIComponent(e);r=r.replace(/%2F/g,"/");for(var t=0;t<r.length;t++){var a=r.charAt(t),i=r.charAt(t+1);if("/"!==a||"/"===i)for(;"/"===r.charAt(t)&&t<r.length;)r=r.slice(0,t)+"%2F"+r.slice(t+1),t+=3}return r}(i.mainUrl),i)}function v(e){var r;return e&&"string"==typeof e?r=e:e&&e.url&&(r=e.url),r}function y(e,r){var t=e.xfrom,a=e.sfrom,i=r.lid,n=r.srcid;return[t?"xr["+t+"]":"",a?"sr["+a+"]":"",i?"lid["+i+"]":"",n?"si["+n+"]":""].filter((function(e){return!!e})).join("_")}var _={makeEasybrowseParams:function(e){if(e&&e.data){var r={};return"bjh"===e.type&&(r.extra=e.extra?e.extra:"bjh_easy"),{type:"na",options:e,clickData:{clk_info:r,cyc:1}}}},makeTcLink:function(e,a,i){if("pc"===a.env){var n={type:"tc",tcUrl:j=v(e.url||e.src)};return i?n:n.tcUrl}a.isNp&&(t.isObject(e.url)||e.src||(e.src=e.url),e.pd=page.comm.pd||"",e.tn=page.comm.tn||"");var o=m(a.asyncTcUrl);if(!o)throw new Error("makeTcLink parameter error.");var c,s="l",p=a.srcid+"_"+a.order+"_"+page.comm.pn+"_"+page.comm.rn+"_";if(e.tjType&&(s=e.tjType,delete e.tjType),e.tj5)e.tj=p+e.tj5,delete e.tj5;else{if(!r[s]){var l={};l[s]=0,d(l)}e.tj=p+s+r[s]++}e.extra&&e.extra.length>1e3&&(e.extra=e.extra.slice(0,1e3)),"wise"===a.env?c=a.order:"sf"===a.env&&(c=function(e){for(var r=window.location.href,t=(r=decodeURIComponent(r)).split("&"),a=0;a<t.length;a++){var i=t[a];if(!f(i)){var n=i.split("=");if(n[0]===e&&!f(n[0])&&!f(n[1]))return n[1]}}}("frorder"));var u=t.assign({isAtom:1,order:c},o.params,e);f(e.url)||(f(e.url.rloc)||(u.rloc=e.url.rloc),delete u.url),f(e.nsrc)||(u.nsrc=e.nsrc),f(u.nsrc)||(t.assign(u,{bdenc:1}),delete u.src);var g=["nsrc","nt","sto","waplogo","ref","lid","fm","dict","src","di","sec","l","vipsign","module","cyc","pd","tn","w_qd","eqid","wd","bjh","na","bdver"];t.forEach(u,(function(e,r){a.isNp?("wd"!==r&&f(e)||-1===g.indexOf(r))&&delete u[r]:f(e)&&delete u[r]}));var h=x(u),y=o.path+"?"+h;"https:"===location.protocol&&/^http:\/\/m.baidu.com\//.test(y)&&(y=y.replace(/^http/,"https"));n={type:"tc",tcUrl:y};var k=v(e.url||e.src);if(k&&/^https?:\/\/[^/]*\.baidu\.com\//.test(k)&&!e.isXcx&&!e.easybrowse){n.originUrl=k;var b={};e.nsrc?b.e=e.nsrc:b.mu=k,e.cyc&&(b.c=e.cyc),e.extra&&(b.extra=e.extra),n.log=JSON.stringify(b),e.isSf&&(n.type="sf")}var w=e.xcxParams;if(e.isXcx&&w&&"0"!==w.xcx_meta_reduce){n.type="xcx";var O=w.appkey||w.xcx_appkey||"",S=w.path||w.xcx_path||"",U=w.query||w.xcx_query||"",I=w.from||w.xcx_from||"",L=w.ext||w.xcx_ext||"";L=function(e,r){if(r&&'"wise"'===r.env){(f(e)||"null"===e)&&(e={});var t=r.tplname?r.tplname+(r.lego_id?"|"+r.lego_id:""):"",a=r.srcid?r.srcid:"";e.tplname=e.tplname?e.tplname:t,e.srcid=e.srcid?e.srcid:a}return e}(L,a);var j=w.url||w.xcx_url||"";n.options={xcxAppKey:O,xcxPath:S,xcxQuery:U,xcxFrom:I,xcxExt:L,xcxUrl:j};var P={type:"xcx",xcx_id:O,xcx_path:S,xcx_from:I};if("wise"===a.env){var N={clk_info:P,cyc:1};f(u.rloc)||(N.rloc=u.rloc),n.clickData=JSON.stringify(N)}else{N={clk_info:P,c:1};f(u.rloc)||(N.rloc=u.rloc),n.log=JSON.stringify(N)}if(+e.xcx_log_mu){var C={};try{C=n.log?JSON.parse(n.log):{}}catch(E){C={}}var J=function(e,r,t){return(r||"").slice(0,1),"https://"+e+".smartapps.cn"+r+(t?"?"+t:"")}(O,S,U);1==+e.xcx_log_mu&&J?C.mu=J:2==+e.xcx_log_mu&&k&&(C.mu=k),n.log=JSON.stringify(C)}}if(e.easybrowse&&!y.match(/(tc\?)(.*)srd=1(.*)?dict=([2-3][0-9]|64|72)/i)){var q=_.makeEasybrowseParams(e.easybrowse);q&&(n.type=q.type,n.options=q.options,N=q.clickData),n.tcUrl=y}if(a.is_group&&a.group_id){C={};if(n.log)try{C=JSON.parse(n.log)}catch(E){C={}}C.group_id=a.group_id,n.log=JSON.stringify(C)}return"wise"===a.env&&(n.hrsf=1,"sf"===n.type&&(n.type="tc")),!0===i?n:n.tcUrl},makeSearchLink:function(e,r,i){"/"===(e=t.assign({sa:"re_"+r.order+"_"+r.srcid,prefix:location.protocol+"//"+(page&&page.comm&&page.comm.searchLinkHost||location.host)},e)).prefix.slice(-1)&&(e.prefix=e.prefix.slice(0,-1));var n={sa:e.sa.substr(0,50)};!0!==i?["st","euri","prese"].forEach((function(r){e[r]&&(n[r]=e[r])})):(n=t.assign({},a.omit(e,["prefix","query","sa"]),n),n=t.reduce(n,(function(e,r,t){return e[encodeURIComponent(t)]=encodeURIComponent(r),e}),{}));var o="";return-1===(o="pc"===r.env?function(e,r,t){var a=t||"/s";if(bds&&bds.comm)var i={wd:encodeURIComponent(e),rsv_pq:bds.comm.qid,oq:encodeURIComponent(bds.comm.query),rsv_t:bds.comm.encTn,tn:bds.comm.tn,ie:"utf-8"};var n=Object.assign({},r,i),o=[];return Object.keys(n).forEach((function(e){o.push(e+"="+n[e])})),a+"?"+o.join("&")}(e.query,n):page.utils.link.getSearchUrl(e.query,n)).indexOf(e.prefix)&&(o=e.prefix+o),o},makeSearchTcLink:function(e,r){return this.makeTcLink({src:this.makeSearchLink(e,r),tjType:e.tjType,tj5:e.tj5},r)},makeSfLink:function(e,r){var t=v(e.url),i={mu:t};e.cyc&&(i.c=e.cyc),e.extra&&e.extra.length>1e3&&(e.extra=e.extra.slice(0,1e3)),e.extra&&(i.extra=e.extra),r.is_group&&r.group_id&&(i.group_id=r.group_id);var n,o=function(e,r){if(!/\/s\?/.test(e))return!1;var t=a.URL.parse(e).query;return!!t.word&&(t.query=t.word,delete t.word,t.asctag=(new Date).getTime(),_.makeSearchLink(t,r,!0))}(t,r);o?(n=o.replace(/^http(s)?:\/\/[^\/]+/,""),e.options='{"useWebview": false}'):(/word=/.test(t)||(t+="&word="+r.word),/title=/.test(t)||(t+="&title="+r.word),n=t.replace(/^http(s)?:\/\/m.baidu.com/,""),r.lid&&(n+="&lid="+r.lid),n+="&ms=1",r.isNp||(n+="&frsrcid="+r.srcid,n+="&frorder="+r.order),e.anchor&&(n+="#"+e.anchor));var c={type:"sf",sfUrl:n,options:e.options,log:JSON.stringify(i),tcUrl:this.makeTcLink({src:location.protocol+"//"+(page&&page.comm&&page.comm.searchLinkHost||location.host)+n,cyc:e.cyc,extra:e.extra},r)};page&&page.comm&&page.comm.sampleval&&page.comm.sampleval.WISE_TPL_TTI_COMMON_SAMPLE&&page.comm.sampleval.WISE_TPL_TTI_COMMON_SAMPLE;return"wise"===r.env&&(c.type="tc",c.hrsf=1),c},makeMipLink:function(e,r){var t=v(e.url),a={mu:t};if(e.cyc&&(a.c=e.cyc),e.extra&&e.extra.length>1e3&&(e.extra=e.extra.slice(0,1e3)),e.extra&&(a.extra=e.extra),r.is_group&&r.group_id&&(a.group_id=r.group_id),!t||!/^http(s)?:\/\//.test(t))throw new Error('makeMipLink parameter error: "url" or "url.url" can not be empty, and must start with "http://" or "https://".');if(!e.title)throw new Error('makeMipLink parameter error: "title" can not be empty.');var i=page.comm.mipAladdinPrefix;e.isInstanceServices&&(i=page.comm.mipInstantServicesPrefix);var n=h(t,i);if(!n)throw new Error("makeMipLink parameter error: wrong url format.");var o=n.baiduUrl.slice(19);r.isPC&&(o+="?ms=1&fromSite=pc");var c="",s=t.indexOf("#");s>=0&&s<t.length-1&&(c=t.slice(s+1)+"&");var p="#"+c,l=["word=",r.word];r.lid&&l.push("&lid=",r.lid),r.srcid&&l.push("&srcid=",r.srcid),l.push("&mipanchor=",c);var u=p+l.join(""),m={title:e.title,lid:r.lid,mipCustomHash:encodeURIComponent(u)},d={type:"sf",sfUrl:o,options:JSON.stringify(m),log:JSON.stringify(a),tcUrl:this.makeTcLink({src:location.protocol+"//m.baidu.com"+o,cyc:e.cyc,extra:e.extra},r)};return"wise"===r.env&&(d.type="tc",d.hrsf=1),d},makeTimg:function(e){var r;if(page.comm.timgPre&&(r=u(page.comm.timgPre)),!r||!e.imgsrc)throw new Error("makeTimg parameter error!");var a=t.assign({},r.params,{size:e.cuttype||undefined,quality:e.size||60,src:e.imgsrc,di:e.di,sec:e.sec});return r.path+"?"+x(a)},highLight:function(e,r){f(r)&&(r=window.bds?bds.comm.query:page.comm.query),r=decodeURIComponent(r);var t=new RegExp("("+r+")","ig");return e.replace(t,(function(e,r){return"<em>"+r+"</em>"}))},getHttpsHost:function(e){return(window.bds?bds.util.domain:page.https.domain).get(e)},setHttpsHost:function(e,r){if(/^http:\/\//.test(e)||/^https:\/\//.test(e)||/^\/\//.test(e))throw new Error('setHttpsHost parameter error: kdomain should not start with "http(s)://".');if(!/^https:\/\//.test(r))throw new Error('setHttpsHost parameter error: vdomain should start with "https://".');(window.bds?bds.util.domain:page.https.domain).set(e,r)},sendLog:function(r,a,i){if("pc"!==a.env){var n={srcid:a.srcid,tplname:a.tplname+(a.lego_id?"|"+a.lego_id:"")};if(r=function(e,r){var t=e;if(!r||!t)return t;var a=r.logCommonInfo&&r.logCommonInfo.actionInfo||{};if(a.clkInfo&&Object.assign(t,a.clkInfo),a.extra)try{var i=JSON.parse(t.extra||"{}");t.extra=JSON.stringify(Object.assign(i,a.extra))}catch(n){console.error(n)}return t}(r,a),r.extra&&r.extra.length>1e3&&(r.extra=r.extra.slice(0,1e3)),"wise"===a.env){t.assign(n,{type:"o",t:+new Date},r),delete n.src;var c={};if(["ct","cst","clk_from","clk_extra","extra","cyc","hwj","tcreq4log"].forEach((function(e){f(n[e])||(c[e]=n[e],delete n[e])})),a.is_group&&a.group_id){n.group_id=a.group_id;var s=page.comm.sigmaConf;s&&s.isMax&&(n.group_mtype="1",n.group_bz_mcid=s.bzMaxMcid)}page&&page.comm&&"note"===page.comm.pd&&(n.tab_se="1",n.pd="note"),t.assign(c,{fm:r.fm||"alop",clk_info:JSON.stringify(n),order:a.order,lid:a.lid,ala_clk:[a.ensrcid,a.order,page.comm.pn,page.comm.rn,"o"].join("_")}),r.src&&(c.src=r.src),c.hasOwnProperty("tcreq4log")&&0!==c.tcreq4log&&1!==c.tcreq4log&&delete c.tcreq4log,A.log.send(A.getLogUrl(c))}else if("sf"===a.env){if(!i||!i.comm||!i.log)throw new Error("sendLog parameter error: viewPage.");var p={c:"cyc",e:"nsrc",m:"mip",ct:"ct",cst:"cst",hwj:"hwj",clk_from:"clk_from",clk_extra:"clk_extra",extra:"extra"},l={order:a.order};for(var u in p)u in r&&("m"!==u?l[p[u]]=r[u]:r[p[u]]=r[u],delete r[u]);l.nsrc&&(l.bdenc=1),t.assign(r,n,{referlid:i.comm.referlid,applid:i.comm.applid,frsrcid:i.comm.frsrcid,frorder:i.comm.frorder}),delete r.link,i.log.sendInfo(r,l)}!function(r,a){var i=e("@searchfe/user-agent"),n=e("versions-compare"),c=page&&page.comm&&page.comm.sampleval&&"1"===page.comm.sampleval.GUIYUAN_ES_LOG,s=i.isBaiduBox()&&n(i.baiduBoxVersion(),"11.23")>=0;if(r&&a&&(!c||s)){if((f(r.tcreq4log)||1===r.tcreq4log)&&1!==r.needTransportDuration){var p=["sf","na","scheme","jump"];if(page&&page.comm&&page.comm.sampleval&&"1"===page.comm.sampleval.SEND_LOG_XCX&&p.push("xcx"),!r.type||-1===p.indexOf(r.type)||"scheme"===r.type&&(!r.xpath||-1===r.xpath.indexOf("bjh_easy")))return}var l={srcid:a.srcid,tplname:a.tplname+(a.lego_id?"|"+a.lego_id:""),group_id:a.group_id,order:a.order,lid:window.page.comm.lid};a.logCommonInfo&&a.logCommonInfo.timeInfo&&Object.assign(l,a.logCommonInfo.timeInfo);var u={t:Date.now()};if(Object.keys(l).forEach((function(e){l[e]&&(u[e]=l[e])})),s){var m="baiduboxapp://searchframe/transportDurationParams?params="+encodeURIComponent(JSON.stringify({extClickParams:u})),d=document.createElement("iframe");d.src=m,d.style.display="none",document.body.appendChild(d),setTimeout((function(){document.body.removeChild(d)}),200)}else if(!c)try{var g=l.lid+"_"+o(l.lid+"_"+Date.now(),16).slice(-8);window.localStorage.setItem("wise_dur_clkparams",JSON.stringify(t.assign({clickid:g},u)))}catch(x){}}}(r,a)}},sfRedirect:function(e,r,a,i){var n,o,c;if(a&&a.event&&a.event.target&&(o=_.getXPath(a.event.target,r)),"wise"===r.env){if(n=location.protocol+"//m.baidu.com"+e[0],a){var s=m(n=this.makeTcLink({src:n,isSf:!0},r));if(s.params&&s.params.clk_info){var p={};try{p=JSON.parse(s.params.clk_info)}catch(l){}p.xpath=o,s.params.clk_info=JSON.stringify(p)}n=s.path+"?"+x(s.params)}window.location.href=n}else a&&(c=a.options||{},o&&t.assign(c,{xpath:o}),_.sendLog.apply(null,[c,r,i])),window.fif.action.redirect.apply(null,e)},getXPath:function(e,r){var t=function(e,r){for(var t=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!t.call(e,r);)e=e.parentElement;return e}(e,r&&"wise"!==r.env?"[data-srcid]":"[srcid]");function a(e){var r=[],t=e;for(t=t.previousSibling;t;)t.tagName===e.tagName&&r.push(t),t=t.previousSibling;return r.length}for(var i,n=[];e&&e!==t;){i=a(e);var o=e.getAttribute("data-module");o=o?"("+o+")":"",n.push(e.nodeName.toLowerCase()+(i>0?i+1:"")+o),e=e.parentNode}return n.reverse().join("-")},createMakeJumpLinkContext:function(e,r){var t=this,i=e.query,n=e.tplInfo,c=i.get("xcxAdapt")||{},s=i.get("superframe"),p={app:c.app||"",appVer:c.appVer||"",fwVer:c.fwVer||"",gameVer:c.gameVer||"",header:c.schemeHeader||"",uuid:c.uuid||"",model:c.model||"",vendor:c.vendor||"",sdkVer:c.sdkVer||"",customParams:c.customParams||""};for(var l in p)Object.hasOwnProperty.call(p,l)&&!p[l]&&delete p[l];var u={pageData:{common:{req:{lid:i.get("lid"),pu:i.get("pu")},xcxAdapt:p},linkReqInfo:{req:{pn:i.get("pn"),rn:i.get("rn"),abct:i.get("abct"),from:i.get("from"),ref:i.get("ref"),w_qd:i.get("wqd")}}},alaData:[{tplt:n.tplname,legoId:n.lego_id||"",order:n.order,srcid:n.srcid,enresourceid:n.ensrcid}]};r&&(u.pageData.linkReqInfo.isNewUtil=r);var m=1===e.useAttributePlugin;m&&(u.pageData.linkReqInfo.useAttributePlugin=e.useAttributePlugin),1==+s&&Object.assign(u.pageData.linkReqInfo.req,{superframe:s||"",atn:i.get("atn")||"",pd:i.get("pd")||"",tn:i.get("tn")||"",frsrcid:i.get("frsrcid")||"",frorder:i.get("frorder")||"",mainTpl:i.get("mainTpl")||"",applid:i.get("applid")||"",referlid:i.get("referlid")||""});var d=JSON.stringify(u.pageData),f=JSON.stringify(u.alaData);return{urlParamsList:{},getJumpLink:function(e,r){var a=this.urlParamsList[o(e)];if(a&&a.urlParams&&a.urlParams.tcUrl)return a;if(a&&a.linkAttributes&&a.linkAttributes.href)return a;if(r&&(r.nsrc||r.src)){r.url=e;var i=t.makeTcLink(r,n,!0);return m?{url:e,linkAttributes:t.makeLinkAttributes(i,n)}:{url:e,urlParams:i}}return null},fetch:function(e,r){var t=this;return(r=r||{}).data||(r.data={}),Object.assign(r.data,{pageData:d,alaData:f,na_switch:1}),a.fetch(e,r).then((function(e){var r={};return e.url_na_transparent_params=e.url_na_transparent_params||[],e.url_na_transparent_params.forEach((function(e){Object.assign(r,e.url_na_params)})),Object.assign(t.urlParamsList,r),e}))}}},createMakeJumpLinkContextNew:function(e){return this.createMakeJumpLinkContext(e,!0)},getSfappQueryApi:function(){var e=document.querySelector('[data-for="query"]'),r={};try{e&&(r=JSON.parse(e.innerHTML.replace(/<>/g,">")))}catch(t){}return{get:function(e){return r[e]}}},resolveMakeJumpLinkTpl:function(e,r,t){t.URL=r;var a=function(e,r,t){return Object.keys(r).forEach((function(i){var n=t?t+"."+i:i,o=r[i];o&&"object"==typeof o&&(e=a(e,o,n));var c="__"+n+"__%(\\d+)?__";e=e.replace(new RegExp(c,"g"),(function(e,t){var a=r[i];if(t)for(var n=String(t).length/2,o=0;o<n;o++)a=encodeURIComponent(a);return a}))})),e},i=t.xcx_path;if("xcx"===e.type&&i&&"/"===i.substr(0,1)&&(e.clickData=a(e.clickData,t),t.xcx_path=i.substr(1)),(e=a(JSON.stringify(e),t))&&/^(.+?)\.baidu\.com:\d{4}/.test(location.href)&&/__(.+?)__%(\d+)?__/.test(e)){var n=e.match(/(__[^%\?]+?__)/g)||[];console.warn("卡片调用resolveMakeJumpLinkTpl方法检测到还有占位符没有被替换,请确认传入的option数据是否完整:\n未替换列表:"+n.join("、")+"\n完整url:\n"+e)}try{return JSON.parse(e)}catch(o){console.log(o)}},openSwan:function(e,r){if(!(e=e||{}).xcxParams||!e.xcxParams.xcx_appkey||!r)return u(),Promise.reject(1);var i=e.xcxParams||{},n=i.xcx_path||"",o=i.xcx_query||"",p=i.xcx_from||("wise"===r.env?"1081000900000000":"");if(n.indexOf("?")>-1){var l=n.split("?");n=l[0],o=l[1]+"&"+o}function u(){if(e.fail&&e.fail(),!e.ignoreDegrade){var r=e.url;(r||e.xcxParams&&e.xcxParams.xcx_appkey)&&(r||(r="https://mbd.baidu.com/ma/landingpage?t=smartapp_share&appid="+i.xcx_appkey+"&from="+p+"&url="+encodeURIComponent(n+"&"+o)),location.href=r)}}if(!c.canIUse("swan.open"))return u(),Promise.reject(2);if("0"===i.xcx_meta_reduce)return u(),Promise.reject(3);var m=t.assign({searchid:r.lid,tplname:r.tplname,srcid:r.srcid,order:r.order,url:i.xcx_url?i.xcx_url:n+"&"+o,click:Date.now()+""},i.xcx_ext);s.isValid()&&(m.token="swanubc",t.assign(m,s.getCurrent()));var d=a.URL.qs(o),f={from:p,ext:m,sysExt:{sessionId:y(d,r)}};return e.beforeOpen&&e.beforeOpen(),new Promise((function(e,r){c.swan.open({appKey:i.xcx_appkey,path:n,query:d,from:p,oauthType:"search",_baiduboxapp:f,success:function(r){e(r)},fail:function(){u(),r(4)}})}))},hydrateCardInfo:{info:null,set:function(e){this.info=e},get:function(){return this.info}},makeLinkAttributes:function(e,r){if("object"!=typeof e||null===e||e&&e.urlParams)return e;var t={},a={};try{a=JSON.parse(e.clickData||"{}")}catch(i){}return l[e.type]&&(a.type=l[e.type]),e.sfUrl&&(a.sfpath=e.sfUrl),t["data-click-info"]=JSON.stringify(a),Object.keys(e).forEach((function(r){p[r]&&(t[p[r]]=e[r])})),e.sfUrl&&e.options&&(t["data-sf-options"]=e.options),e.ivkParams&&e.ivkParams.control&&(t["data-ivk"]=JSON.stringify(e.ivkParams)),"xcx"===e.type&&e.options?t["data-xcx"]=JSON.stringify(e.options):"na"===e.type&&(e.busiParams&&(t["data-busi"]=JSON.stringify(e.busiParams)),e.options&&(t["data-light"]=JSON.stringify(e.options))),r&&"pc"===r.env?t.target="_blank":(t.target="_self",t["data-noblank"]=!0),t}};return _.makeNaLink=function(e,r,a,o){try{var c=r||{},s=n[e],p={tcUrl:_.makeTcLink({src:r.url},a),type:"tc"},l={type:""};if(c.clkInfo&&"object"==typeof c.clkInfo&&(l=t.assign(l,c.clkInfo),p.clickData=JSON.stringify({clk_info:c.clkInfo})),!e||!s)return p;var u=i.getUaInfo(),m=u.isAndriod,d=u.isIOS,f=u.isBaidubox,g=u.isBoxLite,x=u.browseVersion,h=i.isH5Jump(s,m,d,f,g,x),v=i.isLogSchemeJump(s,m,d,f,g,x),y={h5Jump:h,deviceJump:v,between:!v&&!h},k="",b=null;if(y.h5Jump)return p;if(y.between){if(!s.alwaysSchema)return p;l.type="na",l.naType=e,k="baiduboxapp://"+s.getSchema(c,a,y),s.getClkInfo&&(l=s.getClkInfo(c.url,c,l)),b={clk_info:l}}y.deviceJump&&(l.type="na",-1===k.indexOf("baiduboxapp")&&(l.naType=e,k="baiduboxapp://"+s.getSchema(c,a,y),s.getClkInfo&&(l=s.getClkInfo(c.url,c,l)),b={clk_info:l}),k=s.getLogSchema?s.getLogSchema(k,c.url,c,a):i.getCommonLogSchema(a,c.url,k,c));var w={tcUrl:k,type:l.type};return b&&(w.clickData=JSON.stringify(b)),w}catch(O){}},_}));define("@baidu/ala-util/md5",["require"],(function(n){"use strict";function r(n,r){var t=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(t>>16)<<16|65535&t}function t(n,t,e,u,o,c){return r((f=r(r(t,n),r(u,c)))<<(i=o)|f>>>32-i,e);var f,i}function e(n,r,e,u,o,c,f){return t(r&e|~r&u,n,r,o,c,f)}function u(n,r,e,u,o,c,f){return t(r&u|e&~u,n,r,o,c,f)}function o(n,r,e,u,o,c,f){return t(r^e^u,n,r,o,c,f)}function c(n,r,e,u,o,c,f){return t(e^(r|~u),n,r,o,c,f)}function f(n,t){var f,i,a,h,d;n[t>>5]|=128<<t%32,n[14+(t+64>>>9<<4)]=t;var l=1732584193,g=-271733879,v=-1732584194,C=271733878;for(f=0;f<n.length;f+=16)i=l,a=g,h=v,d=C,l=e(l,g,v,C,n[f],7,-680876936),C=e(C,l,g,v,n[f+1],12,-389564586),v=e(v,C,l,g,n[f+2],17,606105819),g=e(g,v,C,l,n[f+3],22,-1044525330),l=e(l,g,v,C,n[f+4],7,-176418897),C=e(C,l,g,v,n[f+5],12,1200080426),v=e(v,C,l,g,n[f+6],17,-1473231341),g=e(g,v,C,l,n[f+7],22,-45705983),l=e(l,g,v,C,n[f+8],7,1770035416),C=e(C,l,g,v,n[f+9],12,-1958414417),v=e(v,C,l,g,n[f+10],17,-42063),g=e(g,v,C,l,n[f+11],22,-1990404162),l=e(l,g,v,C,n[f+12],7,1804603682),C=e(C,l,g,v,n[f+13],12,-40341101),v=e(v,C,l,g,n[f+14],17,-1502002290),l=u(l,g=e(g,v,C,l,n[f+15],22,1236535329),v,C,n[f+1],5,-165796510),C=u(C,l,g,v,n[f+6],9,-1069501632),v=u(v,C,l,g,n[f+11],14,643717713),g=u(g,v,C,l,n[f],20,-373897302),l=u(l,g,v,C,n[f+5],5,-701558691),C=u(C,l,g,v,n[f+10],9,38016083),v=u(v,C,l,g,n[f+15],14,-660478335),g=u(g,v,C,l,n[f+4],20,-405537848),l=u(l,g,v,C,n[f+9],5,568446438),C=u(C,l,g,v,n[f+14],9,-1019803690),v=u(v,C,l,g,n[f+3],14,-187363961),g=u(g,v,C,l,n[f+8],20,1163531501),l=u(l,g,v,C,n[f+13],5,-1444681467),C=u(C,l,g,v,n[f+2],9,-51403784),v=u(v,C,l,g,n[f+7],14,1735328473),l=o(l,g=u(g,v,C,l,n[f+12],20,-1926607734),v,C,n[f+5],4,-378558),C=o(C,l,g,v,n[f+8],11,-2022574463),v=o(v,C,l,g,n[f+11],16,1839030562),g=o(g,v,C,l,n[f+14],23,-35309556),l=o(l,g,v,C,n[f+1],4,-1530992060),C=o(C,l,g,v,n[f+4],11,1272893353),v=o(v,C,l,g,n[f+7],16,-155497632),g=o(g,v,C,l,n[f+10],23,-1094730640),l=o(l,g,v,C,n[f+13],4,681279174),C=o(C,l,g,v,n[f],11,-358537222),v=o(v,C,l,g,n[f+3],16,-722521979),g=o(g,v,C,l,n[f+6],23,76029189),l=o(l,g,v,C,n[f+9],4,-640364487),C=o(C,l,g,v,n[f+12],11,-421815835),v=o(v,C,l,g,n[f+15],16,530742520),l=c(l,g=o(g,v,C,l,n[f+2],23,-995338651),v,C,n[f],6,-198630844),C=c(C,l,g,v,n[f+7],10,1126891415),v=c(v,C,l,g,n[f+14],15,-1416354905),g=c(g,v,C,l,n[f+5],21,-57434055),l=c(l,g,v,C,n[f+12],6,1700485571),C=c(C,l,g,v,n[f+3],10,-1894986606),v=c(v,C,l,g,n[f+10],15,-1051523),g=c(g,v,C,l,n[f+1],21,-2054922799),l=c(l,g,v,C,n[f+8],6,1873313359),C=c(C,l,g,v,n[f+15],10,-30611744),v=c(v,C,l,g,n[f+6],15,-1560198380),g=c(g,v,C,l,n[f+13],21,1309151649),l=c(l,g,v,C,n[f+4],6,-145523070),C=c(C,l,g,v,n[f+11],10,-1120210379),v=c(v,C,l,g,n[f+2],15,718787259),g=c(g,v,C,l,n[f+9],21,-343485551),l=r(l,i),g=r(g,a),v=r(v,h),C=r(C,d);return[l,g,v,C]}function i(n){var r,t="",e=32*n.length;for(r=0;r<e;r+=8)t+=String.fromCharCode(n[r>>5]>>>r%32&255);return t}function a(n){var r,t=[];for(t[(n.length>>2)-1]=undefined,r=0;r<t.length;r+=1)t[r]=0;var e=8*n.length;for(r=0;r<e;r+=8)t[r>>5]|=(255&n.charCodeAt(r/8))<<r%32;return t}function h(n){var r,t,e="0123456789abcdef",u="";for(t=0;t<n.length;t+=1)r=n.charCodeAt(t),u+=e.charAt(r>>>4&15)+e.charAt(15&r);return u}function d(n){return unescape(encodeURIComponent(n))}function l(n){return function(n){return i(f(a(n),8*n.length))}(d(n))}function g(n,r){return function(n,r){var t,e,u=a(n),o=[],c=[];for(o[15]=c[15]=undefined,u.length>16&&(u=f(u,8*n.length)),t=0;t<16;t+=1)o[t]=909522486^u[t],c[t]=1549556828^u[t];return e=f(o.concat(a(r)),512+8*r.length),i(f(c.concat(e),640))}(d(n),d(r))}return function(n,r,t){return r?t?g(r,n):h(g(r,n)):t?l(n):h(l(n))}}));define("@baidu/ala-util/na/utils",["require","@searchfe/user-agent","versions-compare"],(function(o){var e=o("@searchfe/user-agent"),n=o("versions-compare");function i(o,e,n,i,r){typeof r===undefined&&(r="");var s={failUrl:r,logParams:"pu=$pu&baiduid=$baiduid&tcreq4log=1&isAtom=1&cyc=1"},a=A.log.settings.PARAMS,t=A.log.settings.sPARAMS,c={tplname:o.tplname,srcid:o.srcid,ivkStatus:"new_ivk_success",type:"na",naType:"",ivkSource:"h5_schema"};return i.naType&&(c.naType=i.naType),s.logParams+="&clk_info=".concat(JSON.stringify(c)),s.logParams+=i.extra?"&extra="+i.extra:"",s.logParams+="&lid=".concat(o.lid,"&l=").concat(a.l,"&t=").concat(a.t,"&ref=").concat(a.ref,"&from=").concat(a.from,"&order=").concat(o.order),s.logParams+="&w=".concat(a.w),s.logParams+="&tj=".concat(o.tplname,"_").concat(o.order,"_").concat(t.pn,"_").concat(t.rn,"_l"),s.logParams+="&src=".concat(encodeURIComponent(encodeURIComponent(e))),"".concat(n,"&searchParams=").concat(encodeURIComponent(JSON.stringify(s)),"&useTpl=1").replace("?&","?")}return{makeInvokeUrl:i,isH5Jump:function(o,e,i,r,s,a){var t=!1;return!o||!r&&!s||r&&!o.bdBoxVersion||s&&!o.liteVersion?t=!0:r&&o.bdBoxVersion?e?t=n(o.bdBoxVersion.andriod.supportNaVersion,a)>0:i&&(t=n(o.bdBoxVersion.ios.supportNaVersion,a)>0):s&&o.liteVersion&&(e?t=n(o.liteVersion.andriod.supportNaVersion,a)>0:i&&(t=n(o.liteVersion.ios.supportNaVersion,a)>0)),t},isLogSchemeJump:function(o,e,i,r,s,a){var t=!1;return o&&(r||s)?r&&o.bdBoxVersion?e?t=n(o.bdBoxVersion.andriod.supportDeviceLogVersion,a)<=0:i&&(t=n(o.bdBoxVersion.ios.supportDeviceLogVersion,a)<=0):s&&o.liteVersion&&(e?t=n(o.liteVersion.andriod.supportDeviceLogVersion,a)<=0:i&&(t=n(o.liteVersion.ios.supportDeviceLogVersion,a)<=0)):t=!1,t},getUaInfo:function(){var o=e.isAndroid(),n=e.isIOS(),i=e.isBaiduBox(),r=e.isBaiduBoxLite()||e.isBaiduBoxJisu(),s=e.baiduBoxVersion();return{isAndriod:o,isIOS:n,isBaidubox:i&&!r,isBoxLite:r,browseVersion:r||i?s.join("."):""}},getCommonLogSchema:function(o,e,n,r){return i(o,e,n,r,e)}}}));define("@baidu/ala-util/na/naConfig",["require","@baidu/ala-util/lodash"],(function(a){var i=a("@baidu/ala-util/lodash");function n(a){return a?{srcid:a.srcid,tplname:a.tplname,qid:a.lid}:null}return{CONF:{"poi.LandingPage":{bdBoxVersion:{andriod:{supportNaVersion:"11.10",supportDeviceLogVersion:"11.13"},ios:{supportNaVersion:"11.12",supportDeviceLogVersion:"11.13"}},alwaysSchema:!0,getSchema:function(a,o){var e=a.naParam,r=n(o);return"v44/browser/invokePoiLandingPage?params=".concat(encodeURIComponent(JSON.stringify(i.assign({},e,r))))}},"poi.DetailPage":{bdBoxVersion:{andriod:{supportNaVersion:"11.13",supportDeviceLogVersion:"11.13"},ios:{supportNaVersion:"11.13",supportDeviceLogVersion:"11.13"}},alwaysSchema:!0,getSchema:function(a,o){var e=a.naParam,r=n(o);return"v44/browser/invokePoiDetailPage?params=".concat(encodeURIComponent(JSON.stringify(i.assign({},e,r))))}}}}}));define("@baidu/ala-util/update",["require","@baidu/ala-util/lodash"],(function(a){var r=a("@baidu/ala-util/lodash").assign,t=Object.prototype.hasOwnProperty;var c="$push",l="$unshift",n="$splice",e="$set",u="$merge",i="$apply",o=[c,l,n,e,u,i].reduce((function(a,r){return a[r]=!0,a}),{});return function p(a,s){if(t.call(s,e))return s[e];var f,h=(f=a,Array.isArray(f)?f.concat():f&&"object"==typeof f?r(new f.constructor,f):f);for(var d in t.call(s,u)&&r(h,s[u]),t.call(s,c)&&s[c].forEach((function(a){h.push(a)})),t.call(s,l)&&(h=s[l].concat(h)),t.call(s,n)&&s[n].forEach((function(a){h.splice.apply(h,a)})),t.call(s,i)&&(h=s[i](h)),s)o.hasOwnProperty(d)&&o[d]||(h[d]=p(a[d],s[d]));return h}})); |