Files
deepdata/my_ops/markitdown_parser/index_files/index-d3e1522e_g4-m.js
沃巴蒂 ff22ed3a8b feat(deepdata): 引入修改密码、文件预览组件与清洗算子增强,deepflow 改名为 deep-flow
本次同步 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/(内嵌独立仓库,远程亦未收录其源码)
2026-10-03 22:44:56 +08:00

2 lines
192 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
define('head-script/pc/static/index',['require','exports'],(function(e,t){;"use strict";function n(e){var t=escape(e);if(t){window.__perf_www_datas=window.__perf_www_datas||{};var n=(null===performance||void 0===performance?void 0:performance.now)&&performance.now();window.__perf_www_datas[t]=n}}var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,n,s):i(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{c(r.next(e))}catch(t){a(t)}}function o(e){try{c(r["throw"](e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((r=r.apply(e,t||[])).next())}))}function h(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),"throw":o(1),"return":o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(c){o=[6,c],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}t.__assign=function(){return t.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.__assign.apply(this,arguments)};var u=Object.create?function(e,t,n,r){r===undefined&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||u(t,e,n)}function d(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)s.push(r.value)}catch(o){i={error:o}}finally{try{r&&!r.done&&(n=a["return"])&&n.call(a)}finally{if(i)throw i.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)r[i]=a[s];return r}function g(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||o(e,t)}))})}function o(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(c,l):h(a[0][2],n)}catch(r){h(a[0][3],r)}var n}function c(e){o("next",e)}function l(e){o("throw",e)}function h(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:!1}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=d(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t};function N(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return C(t,e),t}function k(e){return e&&e.__esModule?e:{"default":e}}function S(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function E(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function O(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var P="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function D(e){function t(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(a){t(a)}}if(e.hasError)throw e.error}()}var T={__extends:i,__assign:t.__assign,__rest:a,__decorate:s,__param:o,__metadata:c,__awaiter:l,__generator:h,__createBinding:u,__exportStar:p,__values:d,__read:f,__spread:v,__spreadArrays:m,__spreadArray:g,__await:y,__asyncGenerator:b,__asyncDelegator:w,__asyncValues:_,__makeTemplateObject:x,__importStar:N,__importDefault:k,__classPrivateFieldGet:S,__classPrivateFieldSet:E,__classPrivateFieldIn:O,__addDisposableResource:I,__disposeResources:D},R=Object.freeze({__proto__:null,__addDisposableResource:I,get __assign(){return t.__assign},__asyncDelegator:w,__asyncGenerator:b,__asyncValues:_,__await:y,__awaiter:l,__classPrivateFieldGet:S,__classPrivateFieldIn:O,__classPrivateFieldSet:E,__createBinding:u,__decorate:s,__disposeResources:D,__esDecorate:function(e,t,n,r,i,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,c=r.kind,l="getter"===c?"get":"setter"===c?"set":"value",h=!t&&e?r["static"]?e:e.prototype:null,u=t||(h?Object.getOwnPropertyDescriptor(h,r.name):{}),p=!1,d=n.length-1;d>=0;d--){var f={};for(var v in r)f[v]="access"===v?{}:r[v];for(var v in r.access)f.access[v]=r.access[v];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var m=(0,n[d])("accessor"===c?{get:u.get,set:u.set}:u[l],f);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(o=s(m.get))&&(u.get=o),(o=s(m.set))&&(u.set=o),(o=s(m.init))&&i.unshift(o)}else(o=s(m))&&("field"===c?i.unshift(o):u[l]=o)}h&&Object.defineProperty(h,r.name,u),p=!0},__exportStar:p,__extends:i,__generator:h,__importDefault:k,__importStar:N,__makeTemplateObject:x,__metadata:c,__param:o,__propKey:function(e){return"symbol"==typeof e?e:"".concat(e)},__read:f,__rest:a,__runInitializers:function(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0},__setFunctionName:function(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})},__spread:v,__spreadArray:g,__spreadArrays:m,__values:d,"default":T}),j=function(){function e(e,t){this.lifecycle={},this.amd=e,this.pageLifecycle=t}return e.prototype.initPageLifecycle=function(){this.lifecycle=this.pageLifecycle.init()},e}();function L(e){return""===e||"undefined"===e||"null"===e||null===e||e===undefined}function M(e,t,n){var r,i,a=Object.entries(e),s=n||{},o=s.encode,c=void 0===o||o,l=s.supportNoMeaningVal,h=void 0!==l&&l,u=[];try{for(var p=d(a),v=p.next();!v.done;v=p.next()){var m=f(v.value,2),g=m[0],y=m[1];if(h&&L(y)&&(y=""),h||!L(y)){var b=c?encodeURIComponent(g):g,w=c?encodeURIComponent(String(y)):String(y);u.push("".concat(b,"=").concat(w))}}}catch(_){r={error:_}}finally{try{v&&!v.done&&(i=p["return"])&&i.call(p)}finally{if(r)throw r.error}}return u.join(t)}function B(e,t){e.className=e.className.replace(t,"")}function U(e,t){e.className=(e.className+" "+t).replace(/^\s+/g,"")}function F(e,t){return t.test(e.className)}function J(){return window.document.documentElement.clientWidth}function z(e){return"[object Object]"===Object.prototype.toString.call(e)}function q(e){return new RegExp("^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\'\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$").test(e)}var H={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","&":"&amp;"},V=t.__assign(t.__assign({},H),{" ":"&nbsp;"}),W=new RegExp("[".concat(Object.keys(H).join(""),"]"),"g"),G=new RegExp("[".concat(Object.keys(V).join(""),"]"),"g");var Q=function(){return new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(navigator.userAgent)};function K(e){if(Q()&&!window.opera){document.createStyleSheet().cssText=e}else{var t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(e)),document.getElementsByTagName("HEAD")[0].appendChild(t)}}var Y=function(){function e(){this.keys={},this.paths={},this.bundles={},this.version={}}return e.prototype.addPaths=function(e){z(e)&&(window.require.config({paths:e}),Object.assign(this.keys,e))},e.prototype.addConfig=function(e){var t=this;z(e)&&(window.require.config(e),Object.keys(e).forEach((function(n){for(var r in t[n]=t[n]||{},e[n])e[n].hasOwnProperty(r)&&e[n][r]&&(t[n][r]=e[n][r])})))},e.prototype.getPath=function(e){if(e&&"string"==typeof e)return this.keys[e]||this.paths[e]||""},e.prototype.getBundle=function(e){var t=this;if(e&&"string"==typeof e){var n=this.bundles,r="",i="";return Object.keys(n).forEach((function(n){var a,s;try{for(var o=d(n),c=o.next();!c.done;c=o.next()){var l=c.value;if(l===e||l instanceof RegExp&&l.test(e)){r=n,i=t.getPath(n);break}}}catch(h){a={error:h}}finally{try{c&&!c.done&&(s=o["return"])&&s.call(o)}finally{if(a)throw a.error}}})),{name:r,path:i}}},e.prototype.exist=function(e){return e&&"undefined"!=typeof this.keys[e]},e}(),X=function(){function e(e,t,n){this.isBlockEvent=!1,this.blockEventList=[],this.lifecycleConfig=t,this.eventBus=n.initEventBus(e,t).get()}return e.prototype.init=function(){var e=this;return window.addEventListener("load",(function(){e.fire("load")}),!1),document.addEventListener("DOMContentLoaded",(function(){e.fire("DOMContentLoaded")}),!1),document.addEventListener("unload",(function(){e.fire("unload")})),this.mountLifecycle(),this},e.prototype.mountLifecycle=function(){var e=this,t=this.lifecycleConfig.lifecycle||{};Object.keys(t).forEach((function(t){e.lifecycleFactory(t,e.lifecycleConfig[t])}))},e.prototype.lifecycleFactory=function(e,t){var n=this;this["on".concat(e)]=function(r,i){var a=Object.assign({},t,i);n.eventBus.lifecycle[e].on(r,a)},this["fire".concat(e)]=function(t){void 0===t&&(t={}),n.fire(e,t)},this["off".concat(e)]=function(t){n.eventBus.lifecycle[e].off(t)}},e.prototype.fire=function(e,n){this.isBlockEvent&&this.blockEventList.push({eventName:e,data:n}),this.eventBus.lifecycle[e].emit(t.__assign({type:e},n))},e.prototype.pause=function(){this.isBlockEvent=!0},e.prototype.resume=function(){var e=this;this.isBlockEvent=!1,this.blockEventList.length>0&&this.blockEventList.forEach((function(t){e.blockEventList.splice(0,1),e.fire(t.eventName,t.data)}))},e}(),Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var te,ne={exports:{}};te=ne,function(e){var t=1;function n(){}function r(){return!0}function i(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];void 0!==r&&(e[n]=r)}return e}function a(e,t){var n=e.prototype,r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,i(e.prototype,n)}function s(e,t){if(e&&e.length>0)for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function c(e,t,n,r){e.addEventListener?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}var l={animate:1,animateMotion:1,animateTransform:1,circle:1,ellipse:1,line:1,polygon:1,polyline:1,rect:1,defs:1,g:1,marker:1,mask:1,"missing-glyph":1,pattern:1,svg:1,symbol:1,desc:1,metadata:1,font:1,"font-face":1,linearGradient:1,radialGradient:1,stop:1,image:1,path:1,use:1,glyph:1,textPath:1,text:1,tref:1,tspan:1,clipPath:1,cursor:1,filter:1,foreignObject:1,view:1};function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var u,p=[],d="function"==typeof Promise&&/native code/.test(Promise),f="function"==typeof setImmediate&&/native code/.test(setImmediate);function v(e,t){if(t&&(e=function(e,t){var n=Function.prototype.bind,r=Array.prototype.slice;if(n&&e.bind===n)return n.apply(e,r.call(arguments,1));var i=r.call(arguments,2);return function(){return e.apply(t,i.concat(r.call(arguments)))}}(e,t)),p.push(e),!u)if(u=function(){var e=p.slice(0);p=[],u=null;for(var t=0,n=e.length;t<n;t++)e[t]()},f)setImmediate(u);else if("function"==typeof MessageChannel){var n=new MessageChannel,r=n.port2;n.port1.onmessage=u,r.postMessage(1)}else d?Promise.resolve().then(u):setTimeout(u,0)}var m="undefined"!=typeof navigator&&navigator.userAgent.match(/(msie|trident)(\s*|\/)([0-9]+)/i),g=m?m[3]-0:0;g&&!/msie/i.test(m[1])&&(g+=4);var y=g&&g<9,b={area:1,base:1,br:1,col:1,embed:1,hr:1,img:1,input:1,link:1,meta:1,param:1,source:1,track:1,wbr:1};function w(e){var t=function(){};return t.isRequired=n,t}var _={array:w(),object:w(),func:w(),string:w(),number:w(),bool:w(),symbol:w(),any:w,arrayOf:w,instanceOf:w,shape:w,oneOf:w,oneOfType:w,objectOf:w,exact:w};function x(e){this.source=e,this.len=this.source.length,this.index=0}function C(e){return e.replace(/-+(.)/gi,(function(e,t){return t.toUpperCase()}))}x.prototype.nextCode=function(){return this.index++,this.source.charCodeAt(this.index)},x.prototype.goUntil=function(e){for(var t;this.index<this.len&&(t=this.source.charCodeAt(this.index));)switch(t){case 32:case 9:case 13:case 10:this.index++;break;default:return t===e?(this.index++,1):void 0}},x.prototype.match=function(e,t){e.lastIndex=this.index;var n=e.exec(this.source);if(n&&(!t||this.index===n.index))return this.index=e.lastIndex,n};var N={allowpaymentrequest:1,async:1,autofocus:1,autoplay:1,checked:1,controls:1,"default":1,defer:1,disabled:1,formnovalidate:1,hidden:1,ismap:1,itemscope:1,loop:1,multiple:1,muted:1,nomodule:1,novalidate:1,open:1,readonly:1,required:1,reversed:1,selected:1,typemustmatch:1};function k(e){return e.match(/\s*([\$0-9a-z_]+)/gi,1)[1]}function S(e){var t=R(e);if(e.goUntil(),63===e.source.charCodeAt(e.index)){e.index++;var n=S(e);if(e.goUntil(),58===e.source.charCodeAt(e.index))return e.index++,{type:10,segs:[t,n,S(e)]}}return t}function E(e){var t=k(e);switch(t){case"true":case"false":return{type:3,value:"true"===t};case"null":return{type:13}}var n={type:4,paths:[{type:1,value:t}]};e:for(;;)switch(e.source.charCodeAt(e.index)){case 46:e.index++,n.paths.push({type:1,value:k(e)});break;case 91:e.index++,n.paths.push(S(e)),e.goUntil(93);break;default:break e}return n}function A(e,t){e.goUntil();var n,r=E(e);if(e.goUntil(40))for(n=[];!e.goUntil(41);)n.push(S(e)),e.goUntil(44);else t&&(n=t);return n&&(r={type:6,name:r,args:n}),r}function O(e){e.goUntil();var t=e.source.charCodeAt(e.index);switch(t){case 33:case 43:case 45:return e.index++,function(e,t){switch(t){case 33:var n;switch(e.type){case 2:case 1:case 3:n=!e.value;break;case 12:case 11:n=!1;break;case 13:n=!0}if(null!=n)return{type:3,value:n};break;case 43:switch(e.type){case 2:case 1:case 3:return{type:2,value:+e.value}}break;case 45:switch(e.type){case 2:case 1:case 3:return{type:2,value:-e.value}}}return{type:9,expr:e,operator:t}}(O(e),t);case 34:case 39:return function(e){var t,n=e.source.charCodeAt(e.index),r="";e:for(;t=e.nextCode();)switch(t){case 92:switch(t=e.nextCode()){case 117:r+=String.fromCharCode(parseInt(e.source.slice(e.index+1,e.index+5),16)),e.index+=4;break;case 120:r+=String.fromCharCode(parseInt(e.source.slice(e.index+1,e.index+3),16)),e.index+=2;break;case 98:r+="\b";break;case 102:r+="\f";break;case 110:r+="\n";break;case 114:r+="\r";break;case 116:r+="\t";break;case 118:r+="\x0B";break;default:r+=String.fromCharCode(t)}break;case n:e.index++;break e;default:r+=String.fromCharCode(t)}return{type:1,value:r}}(e);case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return{type:2,value:+e.match(/[0-9]+(\.[0-9]+)?/g,1)[0]};case 40:return function(e){e.index++;var t=S(e);return e.goUntil(41),t.parenthesized=!0,t}(e);case 91:e.index++;for(var n=[];!e.goUntil(93);){var r={};n.push(r),46===e.source.charCodeAt(e.index)&&e.match(/\.\.\.\s*/g)&&(r.spread=!0),r.expr=S(e),e.goUntil(44)}return{type:12,items:n};case 123:e.index++;for(var i=[];!e.goUntil(125);)r={},i.push(r),46===e.source.charCodeAt(e.index)&&e.match(/\.\.\.\s*/g)?(r.spread=!0,r.expr=S(e)):(r.name=O(e),e.goUntil(58)?r.expr=S(e):r.expr=r.name,4===r.name.type&&(r.name=r.name.paths[0])),e.goUntil(44);return{type:11,items:i}}return A(e)}function I(e){for(var t=O(e);;){e.goUntil();var n=e.source.charCodeAt(e.index);switch(n){case 37:case 42:case 47:e.index++,t={type:8,operator:n,segs:[t,O(e)]};continue}break}return t}function P(e){for(var t=I(e);;){e.goUntil();var n=e.source.charCodeAt(e.index);switch(n){case 43:case 45:e.index++,t={type:8,operator:n,segs:[t,I(e)]};continue}break}return t}function D(e){var t=P(e);e.goUntil();var n=e.source.charCodeAt(e.index);switch(n){case 60:case 62:return 61===e.nextCode()&&(n+=61,e.index++),{type:8,operator:n,segs:[t,P(e)]}}return t}function T(e){var t=function(e){var t=D(e);e.goUntil();var n=e.source.charCodeAt(e.index);switch(n){case 61:case 33:if(61===e.nextCode())return n+=61,61===e.nextCode()&&(n+=61,e.index++),{type:8,operator:n,segs:[t,D(e)]};e.index--}return t}(e);if(e.goUntil(),38===e.source.charCodeAt(e.index)){if(38===e.nextCode())return e.index++,{type:8,operator:76,segs:[t,T(e)]};e.index--}return t}function R(e){var t=T(e);if(e.goUntil(),124===e.source.charCodeAt(e.index)){if(124===e.nextCode())return e.index++,{type:8,operator:248,segs:[t,R(e)]};e.index--}return t}function j(e){if(e)return"object"==typeof e&&e.type?e:S(new x(e))}function L(e,t){var n=A(new x(e),t);return 6!==n.type&&(n={type:6,name:n,args:t||[]}),n}var M={lt:"<",gt:">",nbsp:" ",quot:'"',emsp:" ",ensp:" ",thinsp:" ",copy:"©",reg:"®",zwnj:"‌",zwj:"‍",amp:"&"};function B(e){return e.replace(/&#(x[0-9a-f]+|[0-9]+);/g,(function(e,t){return 120===t.charCodeAt(0)?String.fromCharCode(parseInt(t.slice(1),16)):String.fromCharCode(+t)})).replace(/&([a-z]+);/gi,(function(e,t){return M[t]||e}))}function U(e,t){var n,r=0,i=[],a=-1;function s(e){var t=i[a];t&&1===t.type?t.value=t.value+e:i[++a]={type:1,value:e}}for(var o=(t=t||["{{","}}"])[0],c=o.length,l=t[1],h=l.length;;){var u,p=e.indexOf(o,r),d=e.indexOf(l,r);if(-1===p||d<p)break;for((u=e.slice(r,p))&&s(B(u));e.indexOf(l,d+1)===d+1;)d++;var f=new x(e.slice(p+c,d));if(!f.goUntil(125)&&f.index<f.len){for(var v={type:5,expr:S(f),filters:[]};f.goUntil(124);){var m=A(f,[]);switch(m.name.paths[0].value){case"html":break;case"raw":v.original=1;break;default:v.filters.push(m)}}n=n||v.original,i[++a]=v}else s(o+f.source+l);r=d+h}switch((u=e.slice(r))&&s(B(u)),i.length){case 0:return{type:1,value:""};case 1:return 5!==i[0].type||0!==i[0].filters.length||i[0].original?i[0]:i[0].expr}return n?{type:7,segs:i,original:1}:{type:7,segs:i}}function F(e,t,n,r){var i,a,s=t.indexOf("-");switch(s>0&&(a=t.slice(0,s),i=t.slice(s+1)),a){case"on":var o,c={name:i,modifier:{}};for(e.events.push(c);(o=n.indexOf(":"))>0;){var l=n.slice(0,o);if(!/^[a-z]+$/i.test(l))break;c.modifier[l]=!0,n=n.slice(o+1)}c.expr=L(n,[{type:4,paths:[{type:1,value:"$event"}]}]);break;case"san":case"s":"else-if"===i&&(i="elif");var h=function(e,t,n){switch(e){case"is":case"show":case"html":case"bind":case"if":case"elif":return{value:j(t.replace(/(^\{\{|\}\}$)/g,""))};case"else":return{value:{}};case"transition":return{value:L(t)};case"ref":return{value:U(t,n.delimiters)};case"for":var r=new x(t),i=r.match(/^\s*([$0-9a-z_]+)(\s*,\s*([$0-9a-z_]+))?\s+in\s+/gi,1);if(i){var a={item:i[1],value:O(r)};if(i[3]&&(a.index=i[3]),r.match(/\s*trackby\s+/gi,1)){var s=r.index;a.trackBy=E(r),a.trackByRaw=r.source.slice(s,r.index)}return a}}}(i,n,r);h&&(e.directives[i]=h);break;case"var":e.vars||(e.vars=[]),e.vars.push({name:C(i),expr:j(n.replace(/(^\{\{|\}\}$)/g,""))});break;case"attr":e.attrs||(e.attrs=[]),e.attrs.push({name:i,expr:n?U(n,r.delimiters):N[i]?{type:3,value:!0}:{type:1,value:""}});break;default:if("prop"===a&&(t=i),n&&0===n.indexOf("{=")&&"=}"===n.slice(-2))return void e.props.push({name:t,expr:j(n.slice(2,-2)),x:1});var u=U(n||"",r.delimiters);if(""===u.value)N[t]&&(u={type:3,value:!0});else switch(t){case"class":case"style":switch(u.type){case 7:for(var p=0,d=u.segs.length;p<d;p++)5===u.segs[p].type&&u.segs[p].filters.push({type:6,name:{type:4,paths:[{type:1,value:"_"+t}]},args:[]});break;case 5:u.filters.push({type:6,name:{type:4,paths:[{type:1,value:"_"+t}]},args:[]});break;default:1!==u.type&&(u={type:5,expr:u,filters:[{type:6,name:{type:4,paths:[{type:1,value:"_"+t}]},args:[]}]})}}e.props.push(null!=n?{name:t,expr:u}:{name:t,expr:u,noValue:1})}}function J(e,t){(t=t||{}).trimWhitespace=t.trimWhitespace||"none";var n={directives:{},props:[],events:[],children:[]};if("string"!=typeof e)return n;var r=new x(e=e.replace(/<!--([\s\S]*?)-->/gm,""));r.goUntil();for(var i,a=/<(\/)?([a-z][a-z0-9-]*)\s*/gi,s=/([-:0-9a-z\[\]_]+)(\s*=\s*(([^'"<>\s]+)|"([^"]*?)"|'([^']*?)'))?\s*/gi,o=n,c=[n],l=0,h=r.index;null!=(i=r.match(a));){var u=r.index-i[0].length,p=i[1],d=i[2];if(p){if(62===r.source.charCodeAt(r.index)){var f=l;for(A(e.slice(h,u));f>0&&c[f].tagName!==d;)f--;f>0&&(o=c[l=f-1]),r.index++}}else{for(var v={directives:{},props:[],events:[],children:[],tagName:d},m=b[d];;){var g=r.source.charCodeAt(r.index);if(62===g){r.index++;break}if(47===g&&62===r.source.charCodeAt(r.index+1)){r.index+=2,m=1;break}if(!g){A(r.source.slice(h)),v=null;break}var y=r.match(s,1);if(!y){A(r.source.slice(h,r.index)),v=null;break}F(v,y[1],y[2]?y[5]||y[6]||y[4]||"":void 0,t)}if(v){if(A(e.slice(h,u)),v.directives.show){for(var w=null,_=v.props.length;_--;)if("style"===v.props[_].name){w=v.props[_];break}var C={type:10,segs:[v.directives.show.value,{type:1,value:""},{type:1,value:";display:none;"}]};w?7===w.expr.type?w.expr.segs.push(C):v.props[_].expr={type:7,segs:[w.expr,C]}:v.props.push({name:"style",expr:C})}if(v.directives["else"]||v.directives.elif){for(var N=o.children.length,k=null;N--;){var S=o.children[N];if(!S.textExpr){k=S;break}o.children.splice(N,1)}k&&(k.elses=k.elses||[],k.elses.push(v))}else{if("tr"===v.tagName&&"table"===o.tagName){var E={directives:{},props:[],events:[],children:[],tagName:"tbody"};o.children.push(E),o=E,c[++l]=E}o.children.push(v)}m||(o=v,c[++l]=v)}}h=r.index}return A(r.source.slice(h).replace(/^\s+$/,"")),n;function A(e){switch(t.trimWhitespace){case"blank":/^\s+$/.test(e)&&(e=null);break;case"all":e=e.replace(/(^\s+|\s+$)/g,"")}if(e){var n=U(e,t.delimiters),r=o.children[o.children.length-1],i=r&&r.textExpr;i?i.segs?i.segs=i.segs.concat(n.segs||n):null!=i.value&&null!=n.value?i.value=i.value+n.value:r.textExpr={type:7,segs:[i].concat(n.segs||n)}:o.children.push({textExpr:n})}}}function z(e,t,n){for(var r=t;r;){if("function"==typeof r.error)return void r.error(e,t,n);r=r.parentComponent}throw e}function q(e){if("object"==typeof e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}return e}var $={url:encodeURIComponent,_class:function(e){return e instanceof Array?e.join(" "):e},_style:q,_xclass:function(e,t){return e instanceof Array&&(e=e.join(" ")),e?t?t+" "+e:e:t},_xstyle:function(e,t){return(e=e&&q(e))?t?t+";"+e:e:t}};function H(e,t,n){if(null!=e.value)return e.value;var r;switch(e.type){case 13:return null;case 9:switch(r=H(e.expr,t,n),e.operator){case 33:r=!r;break;case 43:r=+r;break;case 45:r=0-r}return r;case 8:r=H(e.segs[0],t,n);var a=H(e.segs[1],t,n);switch(e.operator){case 37:r%=a;break;case 43:r+=a;break;case 45:r-=a;break;case 42:r*=a;break;case 47:r/=a;break;case 60:r=r<a;break;case 62:r=r>a;break;case 76:r=r&&a;break;case 94:r=r!=a;break;case 121:r=r<=a;break;case 122:r=r==a;break;case 123:r=r>=a;break;case 155:r=r!==a;break;case 183:r=r===a;break;case 248:r=r||a}return r;case 10:return H(e.segs[H(e.segs[0],t,n)?1:2],t,n);case 12:r=[];for(var s=0,o=e.items.length;s<o;s++){var c=H((l=e.items[s]).expr,t,n);l.spread?c&&(r=r.concat(c)):r.push(c)}return r;case 11:for(r={},s=0,o=e.items.length;s<o;s++){var l;c=H((l=e.items[s]).expr,t,n),l.spread?c&&i(r,c):r[H(l.name,t,n)]=c}return r;case 4:return t.get(e);case 5:if(r=H(e.expr,t,n),n)for(s=0,o=e.filters.length;s<o;s++){var h=e.filters[s],u=h.name.paths[0].value;switch(u){case"url":case"_class":case"_style":r=$[u](r);break;case"_xclass":case"_xstyle":r=$[u](r,H(h.args[0],t,n));break;default:try{r=n.filters[u]&&n.filters[u].apply(n,[r].concat(V(h.args,t,n)))}catch(m){z(m,n,"filter:"+u)}}}return null==r&&(r=""),r;case 6:if(n&&4===e.name.type){var p=n,d=e.name.paths.length;for(s=0;p&&s<d;s++)p=p[H(e.name.paths[s],t,n)];p&&(r=p.apply(n,V(e.args,t,n)))}break;case 7:var f="";for(s=0,o=e.segs.length;s<o;s++){var v=e.segs[s];f+=v.value||H(v,t,n)}return f}return r}function V(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(H(e[i],t,n));return r}function W(e,t,n){for(var r=0,i=t.length;r<i;r++)if(G(e,t[r],n))return 1;return 0}function G(e,t,n){switch(t.type){case 4:for(var r=t.paths,i=r.length,a=e.paths,s=a.length,o=1,c=0;c<i;c++){var l=r[c],h=l.value;if(null==h&&G(e,l,n)){o=1;break}o&&c<s&&(h||H(l,n))!=a[c].value&&(o=0)}return o&&(o=Math.max(1,s-i+2)),o;case 9:return G(e,t.expr,n)?1:0;case 7:case 8:case 10:return W(e,t.segs,n);case 12:case 11:for(c=0;c<t.items.length;c++)if(G(e,t.items[c].expr,n))return 1;break;case 5:if(G(e,t.expr,n))return 1;for(c=0;c<t.filters.length;c++)if(W(e,t.filters[c].args,n))return 1;break;case 6:if(W(e,t.name.paths,n)||W(e,t.args,n))return 1}return 0}function Q(e){return this[e]}var K={start:{is:Q},compiled:{is:Q,compiled:!0},inited:{is:Q,compiled:!0,inited:!0},created:{is:Q,compiled:!0,inited:!0,created:!0},attached:{is:Q,compiled:!0,inited:!0,created:!0,attached:!0},leaving:{is:Q,compiled:!0,inited:!0,created:!0,attached:!0,leaving:!0},detached:{is:Q,compiled:!0,inited:!0,created:!0,detached:!0},disposed:{is:Q,disposed:!0}};function Y(e,t){var n=e._pi[t];if(null!=n)return e.props[n]}var X={readonly:"readOnly",cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder","for":"htmlFor"};function Z(e,t,n){var r=X[n]||n,i=null!=t;r in e?e[r]=i?t:"":i&&e.setAttribute(n,t),i||e.removeAttribute(n)}function ee(e,t,n){e.setAttribute(n,t)}function ne(e,t,n){e[X[n]||n]=!!t}function re(e,t,n,r){g>9&&!e.value&&t&&(r.__bkph=!0,v((function(){r.__bkph=!1}))),Z(e,t,n)}var ie={id:function(e,t){null!=t?e.id=t:e.id&&e.removeAttribute("id")},style:function(e,t){e.style.cssText=t},"class":function(e,t){(g||e.className!==t)&&(e.className=t)},slot:n,draggable:ne},ae={checkbox:function(e,t){if(e instanceof Array)for(var n=e.length;n--;)if(e[n]===t)return!0},radio:function(e,t){return e===t}},se={input:{multiple:ne,checked:function(e,t,n,r){var i=t,a=Y(r.aNode,"value"),s=Y(r.aNode,"type");if(a&&s){var o=H(s.expr,r.scope,r.owner);if(ae[o]){var c=Y(r.aNode,"checked");null==c||c.hintExpr||(c.hintExpr=a.expr),i=!!ae[o](t,r.data?H(a.expr,r.data,r):H(a.expr,r.scope,r.owner))}}ne(e,i,"checked"),g&&g<8&&!r.lifeCycle.attached&&ne(e,i,"defaultChecked")},placeholder:re,readonly:ne,disabled:ne,autofocus:ne,required:ne},option:{value:function(e,t,n,r){Z(e,t,n),function(e,t){for(var n=e.parent;n&&"select"!==n.tagName;)n=n.parent;if(n){var r,i,a=null;if((r=Y(n.aNode,"value"))&&(i=r.expr)&&(a=5===n.nodeType?H(i,n.data,n):H(i,n.scope,n.owner)||""),a===t)return 1}}(r,t)&&(e.selected=!0)}},select:{readonly:ne,disabled:ne,autofocus:ne,required:ne},textarea:{placeholder:re,readonly:ne,disabled:ne,autofocus:ne,required:ne},button:{disabled:ne,autofocus:ne,type:function(e,t){null!=t?e.setAttribute("type",t):e.removeAttribute("type")}}};function oe(e,t){if(l[e])return ee;var n=se[e];n||(n=se[e]={});var r=n[t];return r||(r=ie[t]||Z,n[t]=r),r}function ce(e,t,n){var r=e.option.target;return r&&r.node===t&&(!n||r.prop===n)}function le(e,t,n){for(var r=e,i=0;null!=r&&i<t.paths.length;i++)r=r[H(t.paths[i],n)];return r}function he(e,t){this.parent=t,this.raw=e||{},this.listeners=[]}function ue(e,t,n,r,i,a){if(n>=r)return i;null==e&&(e={});var s=t[n],o=H(s,a),c=e;if(e instanceof Array){var l=+o;o=isNaN(l)?o:l,(c=e.slice(0))[o]=ue(e[o],t,n+1,r,i,a)}else if("object"==typeof e){c={};var h=!0;for(var u in e)e.hasOwnProperty(u)&&(u===o?(h=!1,c[o]=ue(e[o],t,n+1,r,i,a)):c[u]=e[u]);h&&(c[o]=ue(e[o],t,n+1,r,i,a))}return null==s.value&&(t[n]={type:"string"==typeof o?1:2,value:o}),c}function pe(e,t,n,r){var i=e.expr.args;return function(a){r||(a=a||window.event);var s=le(t,e.expr.name,n);if("function"==typeof s&&s.apply(t,i.length?V(i,new he({$event:a},n),t):[]),e.modifier.prevent)return a.preventDefault&&a.preventDefault(),!1;e.modifier.stop&&(a.stopPropagation?a.stopPropagation():a.cancelBubble=!0)}}function de(e,t){if(t)for(var n=0;n<e.length;n++){var r=e[n];if(!r.overview){var i=r.expr.paths;r.overview=i[0].value,i.length>1&&(r.extOverview=i[0].value+"."+i[1].value,r.wildOverview=i[0].value+".*")}if(t[r.overview]||r.wildOverview&&t[r.wildOverview]||r.extOverview&&t[r.extOverview])return!0}}function fe(e,t,n){t&&(n?t.insertBefore(e,n):t.appendChild(e))}he.prototype.listen=function(e){"function"==typeof e&&this.listeners.push(e)},he.prototype.unlisten=function(e){for(var t=this.listeners.length;t--;)e&&this.listeners[t]!==e||this.listeners.splice(t,1)},he.prototype.fire=function(e){for(var t=0;t<this.listeners.length;t++)this.listeners[t].call(this,e)},he.prototype.get=function(e,t){var n=this.raw;if(!e)return n;"object"!=typeof e&&(e=j(e));var r=e.paths;if(t=t||this,void 0===(n=n[r[0].value])&&this.parent)n=this.parent.get(e,t);else for(var i=1,a=r.length;null!=n&&i<a;i++)n=n[r[i].value||H(r[i],t)];return n},he.prototype.set=function(e,t,n){if(n=n||{},e=j(e),this.get(e)!==t||n.force){var r=(e={type:4,paths:e.paths.slice(0)}).paths[0].value;this.raw[r]=ue(this.raw[r],e.paths,1,e.paths.length,t,this),n.silent||n.silence||n.quiet||this.fire({type:1,expr:e,value:t,option:n})}},he.prototype.assign=function(e,t){for(var n in t=t||{},e)this.set({type:4,paths:[{type:1,value:n}]},e[n],t)},he.prototype.merge=function(e,t,n){for(var r in n=n||{},e=j(e),t)this.set({type:4,paths:e.paths.concat([{type:1,value:r}])},t[r],n)},he.prototype.apply=function(e,t,n){e=j(e);var r=this.get(e);this.set(e,t(r),n)},he.prototype.splice=function(e,t,n){n=n||{},e={type:4,paths:(e=j(e)).paths.slice(0)};var r=this.get(e),i=[];if(r instanceof Array){var a=t[0],s=r.length;a>s?a=s:a<0&&(a=s+a)<0&&(a=0);var o=r.slice(0);i=o.splice.apply(o,t);var c=e.paths[0].value;this.raw[c]=ue(this.raw[c],e.paths,1,e.paths.length,o,this),n.silent||n.silence||n.quiet||this.fire({expr:e,type:2,index:a,deleteCount:i.length,value:i,insertions:t.slice(2),option:n})}return i},he.prototype.push=function(e,t,n){var r=this.get(e);if(r instanceof Array)return this.splice(e,[r.length,0,t],n),r.length+1},he.prototype.pop=function(e,t){var n=this.get(e);if(n instanceof Array){var r=n.length;if(r)return this.splice(e,[r-1,1],t)[0]}},he.prototype.shift=function(e,t){return this.splice(e,[0,1],t)[0]},he.prototype.unshift=function(e,t,n){var r=this.get(e);if(r instanceof Array)return this.splice(e,[0,0,t],n),r.length+1},he.prototype.removeAt=function(e,t,n){this.splice(e,[t,1],n)},he.prototype.remove=function(e,t,n){var r=this.get(e);if(r instanceof Array)for(var i=r.length;i--;)if(r[i]===t){this.splice(e,[i,1],n);break}};var ve={"class":1,style:1};function me(e,t){if(this.index=0,this.target=e,this.doc=e.ownerDocument,t)this.children=[t,t.nextSibling],this.current=t,this.next=this.children[1];else{this.children=[];for(var n,r=e.firstChild;r;){switch(n=r.nextSibling,r.nodeType){case 3:case 1:case 8:this.children.push(r)}r=n}this.current=this.children[0],this.next=this.children[1]}}function ge(e,t,n,r,i,a){if(this.aNode=e,this.owner=r,this.scope=n,this.parent=t,this.lifeCycle=K.start,this.children=[],this.parentComponent=5===t.nodeType?t:t.parentComponent,this.tagName=i||e.tagName,y&&this.tagName.indexOf("-")>0&&(this.tagName="div"),e._i++,this._sbindData=ze(e.directives.bind,this.scope,this.owner),this.lifeCycle=K.inited,a){var s=a.current;if(!s)throw new Error("[SAN HYDRATE ERROR] Element not found. \nPaths: "+He(this).join(" > "));if(1!==s.nodeType)throw new Error("[SAN HYDRATE ERROR] Element type not match, expect 1 but "+s.nodeType+".\nPaths: "+He(this).join(" > "));if(s.tagName!==this.tagName.toUpperCase()&&s.tagName!==this.tagName)throw new Error("[SAN HYDRATE ERROR] Element tagName not match, expect "+this.tagName+" but meet "+s.tagName+".\nPaths: "+He(this).join(" > "));this.el=s,a.goNext(),ke(this,this.scope,this.owner),this.lifeCycle=K.created,this._attached(),this.lifeCycle=K.attached}}function ye(e,t,n,r,i,a){if(e.elem)return new ge(e,t,n,r,a,i);if(e.Clazz)return new e.Clazz(e,t,n,r,i);var s=r.components&&r.components[a||e.tagName];if(s)return"function"==typeof s?new s({source:e,owner:r,scope:n,parent:t,hydrateWalker:i}):new Ne({source:e,owner:r,scope:n,parent:t,hydrateWalker:i},s);if(e.directives.is)switch(a){case"fragment":case"template":return new xe(e,t,n,r,i)}else e.elem=!0;return new ge(e,t,n,r,a,i)}function be(e,t,n){for(var r=e&&e.length;r--;)e[r].dispose(t,n)}function we(e,t,n,r,i){if(e.elem)return new ge(e,t,n,r,i);if(e.Clazz)return new e.Clazz(e,t,n,r);var a=r.components&&r.components[i||e.tagName];if(a)return"function"==typeof a?new a({source:e,owner:r,scope:n,parent:t}):new Ne({source:e,owner:r,scope:n,parent:t},a);if(e.directives.is)switch(i){case"fragment":case"template":return new xe(e,t,n,r)}else e.elem=!0;return new ge(e,t,n,r,i)}function _e(e,t){var n=e.ownerDocument;this.sel=n.createComment(this.id),fe(this.sel,e,t);for(var r=0;r<this.aNode.children.length;r++){var i=we(this.aNode.children[r],this,this.childScope||this.scope,this.childOwner||this.owner);this.children.push(i),i.attach(e,t)}this.el=n.createComment(this.id),fe(this.el,e,t),this.lifeCycle=K.attached}function xe(e,n,r,i,a){if(this.aNode=e,this.owner=i,this.scope=r,this.parent=n,this.parentComponent=5===n.nodeType?n:n.parentComponent,this.id=t++,this.lifeCycle=K.start,this.children=[],a){var s;a.current&&8===a.current.nodeType?(this.sel=a.current,s=1,a.goNext()):(this.sel=a.doc.createComment(this.id),fe(this.sel,a.target,a.current));for(var o=this.aNode.children,c=0,l=o.length;c<l;c++)this.children.push(ye(o[c],this,this.scope,this.owner,a));s?(this.el=a.current,a.goNext()):(this.el=a.doc.createComment(this.id),fe(this.el,a.target,a.current)),this.lifeCycle=K.attached}}function Ce(e){be(this.children,e,1),e||h(this.el),this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=K.disposed,this._ondisposed&&this._ondisposed()}function Ne(e,n){this.options=e,this.loader=n,this.id=t++,this.children=[];var r=e.hydrateWalker;if(r){var i=this.loader.placeholder;i&&(this.children[0]=new i(e)),this.el=r.doc.createComment(this.id),fe(this.el,r.target,r.current);var a=this;this.loader.start((function(e){a.onload(e)}))}e.hydrateWalker=null}function ke(e,t,n){if(!e.aNode.directives.html)for(var r=new me(e.el),i=e.aNode.children,a=0,s=i.length;a<s;a++)e.children.push(ye(i[a],e,t,n,r))}function Se(e,t){var n=l[e.tagName]&&t.createElementNS?t.createElementNS("http://www.w3.org/2000/svg",e.tagName):t.createElement(e.tagName);e._el=n;for(var r=0,i=e.props.length;r<i;r++){var a=e.props[r];null!=a.expr.value&&a.handler(n,a.expr.value,a.name,e)}return v((function(){e._el=null,e._i=0})),n}function Ee(e){var t,n=e.aNode.directives.transition,r=e.owner;if(5===e.nodeType){var i=e.source&&e.source.directives.transition;i?n=i:r=e}if(n&&r&&"function"==typeof(t=le(r,n.value.name)))try{t=t.apply(r,V(n.value.args,e.scope,r))}catch(a){z(a,r,"transitionCreate")}return t||e.transition}function Ae(){if(!this.lifeCycle.leaving){if(!this.disposeNoTransition){var e=Ee(this);if(e&&e.leave){this._toPhase?this._toPhase("leaving"):this.lifeCycle=K.leaving;var t=this;try{return void e.leave(this.el,(function(){t._leave()}))}catch(n){z(n,5===this.nodeType?this.parentComponent:this.owner,"transitionLeave")}}}this._leave()}}function Oe(e,t){this.leaveDispose=1,this.disposeNoDetach=e,this.disposeNoTransition=t,this.detach()}me.prototype.goNext=function(){this.current=this.children[++this.index],this.next=this.children[this.index+1]},ge.prototype.nodeType=4,ge.prototype.attach=function(e,t){if(!this.lifeCycle.attached){var n=this.aNode,r=e.ownerDocument;if(!this.el){var i;if(n._ce&&n._i>2?(i=n._dp,this.el=(n._el||Se(n,r)).cloneNode(!1)):(i=n.props,this.el=l[this.tagName]&&r.createElementNS?r.createElementNS("http://www.w3.org/2000/svg",this.tagName):r.createElement(this.tagName)),this._sbindData)for(var a in this._sbindData)this._sbindData.hasOwnProperty(a)&&oe(this.tagName,a)(this.el,this._sbindData[a],a,this);for(var s=0,o=i.length;s<o;s++){var c=i[s],h=H(c.expr,this.scope,this.owner);!h&&ve[c.name]||c.handler(this.el,h,c.name,this)}this.lifeCycle=K.created}if(fe(this.el,e,t),!this._contentReady){var u=n.directives.html;if(u)this.el.innerHTML=H(u.value,this.scope,this.owner);else for(s=0,o=n.children.length;s<o;s++){var p=n.children[s],d=p.Clazz?new p.Clazz(p,this,this.scope,this.owner):we(p,this,this.scope,this.owner);this.children.push(d),d.attach(this.el)}this._contentReady=1}this._attached(),this.lifeCycle=K.attached}},ge.prototype.detach=Ae,ge.prototype.dispose=Oe,ge.prototype._leave=function(){if(this.leaveDispose&&!this.lifeCycle.disposed){for(var e=this.children.length;e--;)this.children[e].dispose(1,1);if(this._elFns){for(e=this._elFns.length;e--;){var t=this._elFns[e];c(this.el,t[0],t[1],t[2])}this._elFns=null}this._inputTimer&&(clearInterval(this._inputTimer),this._inputTimer=null),this.disposeNoDetach&&this.parent||h(this.el),this.lifeCycle=K.detached,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=K.disposed,this._ondisposed&&this._ondisposed()}},ge.prototype._update=function(e){var t=this.aNode._d;if(t&&de(e,t)){var n=this;this._sbindData=$e(this.aNode.directives.bind,this._sbindData,this.scope,this.owner,e,(function(e,t){e in n.aNode._pi||oe(n.tagName,e)(n.el,t,e,n)}));for(var r=this.aNode._dp,i=0,a=r.length;i<a;i++)for(var s=r[i],o=s.name,c=0,l=e.length;c<l;c++){var h=e[c];if(!ce(h,this,o)&&(G(h.expr,s.expr,this.scope)||s.hintExpr&&G(h.expr,s.hintExpr,this.scope))){s.handler(this.el,H(s.expr,this.scope,this.owner),o,this);break}}var u=this.aNode.directives.html;if(u){for(var p=e.length;p--;)if(G(e[p].expr,u.value,this.scope)){this.el.innerHTML=H(u.value,this.scope,this.owner);break}}else for(i=0,a=this.children.length;i<a;i++)this.children[i]._update(e)}},ge.prototype._attached=Je,xe.prototype.nodeType=7,xe.prototype.attach=_e,xe.prototype.dispose=function(e,t){be(this.children,e,t),e||(h(this.el),h(this.sel)),this.sel=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=K.disposed,this._ondisposed&&this._ondisposed()},xe.prototype._update=function(e){for(var t=0;t<this.children.length;t++)this.children[t]._update(e)},xe.prototype._getElAsRootNode=function(){return this.sel},Ne.prototype.dispose=Ce,Ne.prototype.attach=function(e,t){var n=this.loader.placeholder;if(n){var r=new n(this.options);this.children[0]=r,r.attach(e,t)}this.el=e.ownerDocument.createComment(this.id),fe(this.el,e,t);var i=this;this.loader.start((function(e){i.onload(e)}))},Ne.prototype._getElAsRootNode=function(){var e=this.children[0];return e&&e.el},Ne.prototype.onload=function(e){if(this.el&&e){var t=new e(this.options);t.attach(this.el.parentNode,this.el);var n=this.options.parent;if(n._rootNode===this)n._rootNode=t,t._getElAsRootNode&&(n.el=t._getElAsRootNode());else{var r=n.children;null!=this.parentIndex&&r[this.parentIndex]===this||s(r,(function(e,t){e instanceof Ne&&(e.parentIndex=t)})),r[this.parentIndex]=t}}this.dispose()},Ne.prototype._update=function(e){this.children[0]&&this.children[0]._update(e)};var Ie="undefined"!=typeof window;function Pe(e,t){var n=e.ownerDocument.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function De(){this.composing&&(this.composing=0,Pe(this,"input"))}function Te(){this.composing=1}function Re(e,t,n){return function(){Be(e,t,n)}}function je(e,t,n){return function(){e.__bkph?e.__bkph=!1:this.composing||Be(e,t,n)}}function Le(e,t,n){return function(){e._inputTimer=setInterval((function(){Be(e,t,n)}),16)}}function Me(e){return function(){clearInterval(e._inputTimer),e._inputTimer=null}}function Be(e,t,n){if(e.lifeCycle.created){var r=e.el;if("input"===e.tagName&&"checked"===t.name){var i=Y(e.aNode,"value"),a=Y(e.aNode,"type");if(i&&a)switch(r.type){case"checkbox":return void n[r.checked?"push":"remove"](t.expr,H(i.expr,n));case"radio":return void(r.checked&&n.set(t.expr,H(i.expr,n),{target:{node:e,prop:t.name}}))}}n.set(t.expr,r[t.name],{target:{node:e,prop:t.name}})}}function Ue(e,t,n,r){r=!!r,e._elFns=e._elFns||[],e._elFns.push([t,n,r]),o(e.el,t,n,r)}function Fe(e){o(e,"selectionchange",(function(){var t=e.activeElement;"TEXTAREA"!==t.tagName&&"INPUT"!==t.tagName||Pe(t,"input")}))}function Je(){if(!this._rootNode){for(var e=5===this.nodeType,t=e?this.data:this.scope,r=this.aNode._xp,i=0,a=r.length;i<a;i++){var s=r[i];switch(s.name){case"value":switch(this.tagName){case"input":case"textarea":if(9===g){var o=this.el.ownerDocument;o.__sanInputEventCompatible||(o.__sanInputEventCompatible=!0,Fe(o))}Ie&&(Ue(this,"change",De),Ue(this,"compositionstart",Te),Ue(this,"compositionend",De)),"oninput"in this.el?Ue(this,"input",je(this,s,t)):(Ue(this,"focusin",Le(this,s,t)),Ue(this,"focusout",Me(this)));break;case"select":Ue(this,"change",Re(this,s,t))}break;case"checked":if("input"===this.tagName)switch(this.el.type){case"checkbox":case"radio":Ue(this,"click",Re(this,s,t))}}}var c=e?this:this.owner;for(i=0,a=this.aNode.events.length;i<a;i++)Ue(this,(l=this.aNode.events[i]).name,pe(l,c,t,l.modifier),l.modifier.capture);if(e&&this.nativeEvents)for(i=0,a=this.nativeEvents.length;i<a;i++){var l;Ue(this,(l=this.nativeEvents[i]).name,pe(l,this.owner,this.scope),l.modifier.capture)}var h=Ee(this);if(h&&h.enter)try{h.enter(this.el,n)}catch(u){z(u,e?c.parentComponent:c,"transitionEnter")}}}function ze(e,t,n){if(e&&t)return H(e.value,t,n)}function qe(e,t){var n,r=[];for(n in e)e.hasOwnProperty(n)&&r.push(n);for(n in t)t.hasOwnProperty(n)&&!e[n]&&r.push(n);return r}function $e(e,t,n,r,i,a){if(e){for(var s=i.length;s--;)if(G(i[s].expr,e.value,n)){for(var o=H(e.value,n,r),c=qe(o,t),l=0,h=c.length;l<h;l++){var u=c[l],p=o[u];p!==t[u]&&a(u,p)}return o}return t}}function He(e){for(var t=[],n=e;n;){switch(n.nodeType){case 4:t.unshift(n.tagName);break;case 2:t.unshift("if");break;case 3:t.unshift("for["+n.aNode.directives["for"].item+"]");break;case 6:t.unshift("slot["+(n.name||"default")+"]");break;case 7:t.unshift("fragment");break;case 5:t.unshift("component["+(n.source?n.source.tagName:"root")+"]");break;case 1:t.unshift("text")}n=n.parent}return t}function Ve(e){for(var t,n=[],r=[],i=[],a=[],s=-1,o=0,c=e.length;o<c;o++){for(var l=n[s],h=r[s],u=i[s],p=a[s];l&&(-3===u&&(u=i[s]=e[o++]||-1),-1===u);)l=n[--s],h=r[s],u=i[s],p=a[s];var d,f=e[o],v=-1,m=!1;switch(f){case 1:d={directives:{},props:[],events:[],children:[]};var g=e[++o];g&&(d.tagName=g),v=e[++o]||-1;break;case 3:d={type:1,value:e[++o]};break;case 4:d={type:2,value:e[++o]};break;case 5:d={type:3,value:!!e[++o]};break;case 19:d={type:13};break;case 6:d={type:4,paths:m=[]},v=e[++o]||-1;break;case 7:d={type:5,filters:m=[]},e[++o]&&(d.original=1),v=-2;break;case 8:d={type:6,args:m=[]},v=-2;break;case 9:d={type:7,segs:m=[]},e[++o]&&(d.original=1),v=e[++o]||-1;break;case 10:m=[],d={type:8,operator:e[++o],segs:m},v=2;break;case 11:d={type:9,operator:e[++o]},v=-2;break;case 12:d={type:10,segs:m=[]},v=3;break;case 13:d={type:11,items:m=[]},v=e[++o]||-1;break;case 14:case 38:case 39:case 41:case 42:case 43:case 44:case 45:d={},v=-2;break;case 15:d={spread:!0},v=-2;break;case 16:d={type:12,items:m=[]},v=e[++o]||-1;break;case 17:case 18:d=18===f?{spread:!0}:{},v=-2;break;case 2:case 33:case 34:d={name:e[++o]},33===f&&(d.noValue=1),34===f&&(d.x=1),v=-2;break;case 35:d={name:e[++o],modifier:{}},v=-2;break;case 36:case 46:d={name:e[++o]},v=-2;break;case 37:d={item:e[++o]};var y=e[++o];y&&(d.index=y);var b=e[++o];b&&(d.trackByRaw=b,d.trackBy=j(b)),v=-2;break;case 40:d={value:{}};break;default:f||(d={},v=-2)}if(t||(t=d),l)switch(h){case 1:if(p)l.elses=l.elses||[],l.elses.push(d),--i[s]||s--;else{switch(f){case 2:case 33:case 34:l.props.push(d);break;case 35:l.events.push(d);break;case 36:l.vars=l.vars||[],l.vars.push(d);break;case 46:l.attrs=l.attrs||[],l.attrs.push(d);break;case 37:l.directives["for"]=d;break;case 38:l.directives["if"]=d;break;case 39:l.directives.elif=d;break;case 40:l.directives["else"]=d;break;case 41:l.directives.ref=d;break;case 42:l.directives.bind=d;break;case 43:l.directives.html=d;break;case 44:l.directives.transition=d;break;case 45:l.directives.is=d;break;default:l.children.push(d)}--i[s]||(l.directives["if"]?(a[s]="elses",i[s]=-3):s--)}break;case 7:-2===u?(i[s]=-3,l.expr=d):(p.push(d),--i[s]||s--);break;case 8:-2===u?(i[s]=-3,l.name=d):(p.push(d),--i[s]||s--);break;case 6:case 9:case 10:case 12:case 13:case 16:p.push(d),--i[s]||s--;break;case 11:case 2:case 33:case 34:case 36:case 46:case 15:case 17:case 18:l.expr=d,s--;break;case 14:-2===u?(i[s]=-4,l.name=d):(l.expr=d,s--);break;case 35:-2===u?(i[s]=-3,l.expr=d):(l.modifier[f]=!0,--i[s]||s--);break;case 37:case 38:case 39:case 41:case 42:case 43:case 44:case 45:l.value=d,s--;break;default:l.textExpr=d,s--}-1!==v&&(n[++s]=d,r[s]=f,i[s]=v,a[s]=m)}return t}var We="undefined"!=typeof Proxy;function Ge(e){e=e||{},this.lifeCycle=K.start,this.id=t++,"function"==typeof this.construct&&this.construct(e),this.children=[],this.listeners={},this.slotChildren=[],this.implicitChildren=[];var n=this.constructor;this.inheritAttrs=!(!1===this.inheritAttrs||!1===n.inheritAttrs),this.filters=this.filters||n.filters||{},this.computed=this.computed||n.computed||{},this.messages=this.messages||n.messages||{},this.ssr=this.ssr||n.ssr,e.transition&&(this.transition=e.transition),this.owner=e.owner,this.scope=e.scope,this.el=e.el;var r=e.parent;r?(this.parent=r,this.parentComponent=5===r.nodeType?r:r&&r.parentComponent):this.owner&&(this.parentComponent=this.owner,this.scope=this.owner.data),this.sourceSlotNameProps=[],this.sourceSlots={named:{}};var a,s,o,c=n.prototype;if(c.hasOwnProperty("_cmptReady")||Xe(n),!c.hasOwnProperty("aNode")){var l=n.aPack||c.hasOwnProperty("aPack")&&c.aPack;l?(c.aNode=Ve(l),n.aPack=c.aPack=null):c.aNode=Ze(n)}if(lt(c.aNode,this),this.tagName=c.aNode.tagName,this.source="string"==typeof e.source?J(e.source).children[0]:e.source,lt(this.source),c.aNode._i++,this.el){var u=this.el.firstChild;if(u&&3===u.nodeType&&(u=u.nextSibling),u&&8===u.nodeType){var p=u.data.match(/^\s*s-data:([\s\S]+)?$/);if(p){var d=p[1];e.data=new Function("return "+d.replace(/^[\s\n]*/,"").replace(/"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z"/g,(function(e){return"new Date(Date.parse("+e+"))"})))(),u.previousSibling&&h(u.previousSibling),h(u)}}}if(this.source){this._initSourceSlots(1);for(var f=0,v=this.source.events.length;f<v;f++){var m=this.source.events[f];m.modifier.native?(this.nativeEvents=this.nativeEvents||[],this.nativeEvents.push(m)):this.on(m.name,pe(m,e.owner,this.scope,1),m)}this.tagName=this.tagName||this.source.tagName,this.binds=this.source._b,this.attrs=this.source.attrs,this._srcSbindData=ze(this.source.directives.bind,this.scope,this.owner)}this.tagName=this.tagName||"div",y&&this.tagName.indexOf("-")>0&&(this.tagName="div"),this._toPhase("compiled");try{a="function"==typeof this.initData&&this.initData()}catch(k){z(k,this,"initData")}if(a=i(a||{},e.data||this._srcSbindData),this.binds&&this.scope){for(f=0,v=this.binds.length;f<v;f++){var g=this.binds[f];void 0!==(b=H(g.expr,this.scope,this.owner))&&(a[g.name]=b)}if(this.attrs)for(a.$attrs={},f=0,v=this.attrs.length;f<v;f++){var b,w=this.attrs[f];void 0!==(b=H(w.expr,this.scope,this.owner))&&(a.$attrs[w.name]=b)}}for(var _ in this.data=new he(a),We&&(this.d=(s=this.data,o={items:{}},function e(t,n,r,i){var a,s=o;if(n){for(var c=0;c<r.length;c++)s=s.items[r[c].value];if(s.items[i]||(s.items[i]={items:{}}),null!=(s=s.items[i]).proxy)return s.proxy;a=r.concat({type:1,value:i})}else n=t.raw,a=[],t.listen((function(e){o.items[e.expr.paths[0].value]=null}));var l={set:function(e,n,r){var i={type:4,paths:a.concat({type:1,value:n})};return t.set(i,r),!0},get:n instanceof Array?function(n,r){switch(r){case"push":return function(){var e=n.length,r=arguments.length;return t.splice({type:4,paths:a},1===r?[e,0,arguments[0]]:[e,0].concat(Array.prototype.slice.call(arguments))),e+r};case"pop":return function(){var e=n.length;if(e)return t.splice({type:4,paths:a},[e-1,1])[0]};case"shift":return function(){return t.splice({type:4,paths:a},[0,1])[0]};case"unshift":return function(){var e=n.length,r=arguments.length;return t.splice({type:4,paths:a},1===r?[0,0,arguments[0]]:[0,0].concat(Array.prototype.slice.call(arguments))),e+r};case"splice":return function(){return t.splice({type:4,paths:a},Array.prototype.slice.call(arguments))};case"length":return n.length}var i=n[r];return i&&"object"==typeof i?e(t,i,a,r):i}:function(n,r){var i=n[r];return i&&"object"==typeof i?e(t,i,a,r):i}};return s.proxy=new Proxy(n,l),s.proxy}(s))),this._computedDeps={},this._computedDepsIndex={},this.computed)this.computed.hasOwnProperty(_)&&!this._computedDeps[_]&&this._calcComputed(_);this._initDataChanger(),this._sbindData=ze(this.aNode.directives.bind,this.data,this),this._toPhase("inited");var x=e.hydrateWalker,C=this.aNode;if(x)if("client-render"===this.ssr)this.attach(x.target,x.current);else{if(this._toPhase("created"),C.Clazz||this.components[C.tagName])!C.Clazz&&this.attrs&&this.inheritAttrs&&(C=pt(C,this.source)),this._rootNode=ye(C,this,this.data,this,x),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode());else{var N=x.current;N&&1===N.nodeType&&(this.el=N,x.goNext()),ke(this,this.data,this)}this._attached(),this._toPhase("attached")}else this.el&&(this._toPhase("created"),C.Clazz||this.components[C.tagName]?(!C.Clazz&&this.attrs&&this.inheritAttrs&&(C=pt(C,this.source)),x=new me(this.el.parentNode,this.el),this._rootNode=ye(C,this,this.data,this,x),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode())):ke(this,this.data,this),this._attached(),this._toPhase("attached"))}Ge.prototype._initSourceSlots=function(e){if(this.sourceSlots.named={},this.source&&this.scope)for(var t=this.source.children,n=0,r=t.length;n<r;n++){var i,a=t[n],s=!a.textExpr&&Y(a,"slot");if(s){e&&this.sourceSlotNameProps.push(s);var o=H(s.expr,this.scope,this.owner);(i=this.sourceSlots.named[o])||(i=this.sourceSlots.named[o]=[]),i.push(a)}else e&&((i=this.sourceSlots.noname)||(i=this.sourceSlots.noname=[]),i.push(a))}},Ge.prototype.nodeType=5,Ge.prototype.nextTick=v,Ge.prototype._ctx=(new Date).getTime().toString(16),Ge.prototype._toPhase=function(e){if(!this.lifeCycle[e]){if(this.lifeCycle=K[e]||this.lifeCycle,"function"==typeof this[e])try{this[e]()}catch(t){z(t,this,"hook:"+e)}this._afterLife=this.lifeCycle}},Ge.prototype.on=function(e,t,n){"function"==typeof t&&(this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({fn:t,declaration:n}))},Ge.prototype.un=function(e,t){for(var n=this.listeners[e],r=n&&n.length;r--;)t&&t!==n[r].fn||n.splice(r,1)},Ge.prototype.fire=function(e,t){var n=this;s(this.listeners[e],(function(r){try{r.fn.call(n,t)}catch(i){z(i,n,"event:"+e)}}))};var Qe={set:r,get:function(e,t){var n=e[t];return n&&"object"==typeof n?new Proxy(n,Qe):n}};function Ke(e,t){if("function"==typeof e)return e;function n(e){t.call(this,e)}return t=t||Ge,n.prototype=e,a(n,t),n}function Ye(e,t,n){this.load=e,this.placeholder=t,this.fallback=n,this.listeners=[]}function Xe(e){var t=e.prototype;t.components=e.components||t.components||{};var n=t.components;for(var r in n){var i=n[r];"object"!=typeof i||i instanceof Ye?"self"===i&&(n[r]=e):n[r]=Ke(i)}t._cmptReady=1}function Ze(e){var t=e.prototype,n=J(e.template||t.template,{trimWhitespace:t.trimWhitespace||e.trimWhitespace,delimiters:t.delimiters||e.delimiters}).children[0];if(n&&n.textExpr&&(n=null),"template"===(n=n||{directives:{},props:[],events:[],children:[]}).tagName&&delete n.tagName,!1!==t.autoFillStyleAndId&&!1!==e.autoFillStyleAndId&&!1!==t.inheritAttrs&&!1!==e.inheritAttrs&&(et(n.props),n.elses))for(var r=0,i=n.elses.length;r<i;r++)et(n.elses[r].props);return n}function et(e){for(var t={},n=e.length;n--;){var r=e[n];switch(r.name){case"class":case"style":t[r.name]=!0,r.expr={type:5,expr:{type:4,paths:[{type:1,value:r.name}]},filters:[{type:6,args:[r.expr],name:{type:4,paths:[{type:1,value:"_x"+r.name}]}}]};break;case"id":t[r.name]=!0}}t["class"]||e.push({name:"class",expr:{type:5,expr:{type:4,paths:[{type:1,value:"class"}]},filters:[{type:6,args:[],name:{type:4,paths:[{type:1,value:"_class"}]}}]}}),t.style||e.push({name:"style",expr:{type:5,expr:{type:4,paths:[{type:1,value:"style"}]},filters:[{type:6,args:[],name:{type:4,paths:[{type:1,value:"_style"}]}}]}}),t.id||e.push({name:"id",expr:{type:4,paths:[{type:1,value:"id"}]}})}Ge.prototype._calcComputed=function(e){var t=this._computedDeps[e],n=!1;t||(n=!0,t=this._computedDeps[e]={});var i=this,a={data:{get:function(n){var r=j(n),a=r.paths[0].value;return t[a]||(t[a]=1,i._computedDepsIndex[a]||(i._computedDepsIndex[a]=[]),i._computedDepsIndex[a].push(e),i.computed[a]&&!i._computedDeps[a]&&i._calcComputed(a)),i.data.get(r)}}};We&&(a.d=new Proxy(i.data.raw,{set:r,get:function(n,r){t[r]||(t[r]=1,i._computedDepsIndex[r]||(i._computedDepsIndex[r]=[]),i._computedDepsIndex[r].push(e),i.computed[r]&&!i._computedDeps[r]&&i._calcComputed(r));var a=n[r];return a&&"object"==typeof a?new Proxy(a,Qe):a}}));try{this.data.set({type:4,paths:[{type:1,value:e}]},this.computed[e].call(a),{silent:n})}catch(s){z(s,this,"computed:"+e)}},Ge.prototype.dispatch=function(e,t){for(var n=this.parentComponent;n;){var r=n.messages[e]||n.messages["*"];if("function"==typeof r){try{r.call(n,{target:this,value:t,name:e})}catch(i){z(i,n,"message:"+(e||"*"))}return}n=n.parentComponent}},Ge.prototype.slot=function(e){var t=[],n=this;return function r(i){s(i,(function(i){6===i.nodeType&&i.owner===n?(i.isNamed&&i.name===e||!i.isNamed&&!e)&&t.push(i):r(i.children)}))}(this.children),t},Ge.prototype.ref=function(e){var t,n=this;function r(e){if(e)for(var n=0,r=e.length;n<r;n++)if(i(e[n]),t)return}function i(i){if(1!==i.nodeType){if(i.owner===n){var a;switch(i.nodeType){case 4:(a=i.aNode.directives.ref)&&H(a.value,i.scope,n)===e&&(t=i.el);break;case 5:(a=i.source.directives.ref)&&H(a.value,i.scope,n)===e&&(t=i)}if(t)return;r(i.slotChildren)}t||r(i.children)}}return this._rootNode?i(this._rootNode):r(this.children),t},Ge.prototype._update=function(e){if(!this.lifeCycle.disposed){var t=this,n=!1;if(this._notifyNeedReload=function(){n=!0},e){e.length>1&&(e=dt(e)),this.source&&(this._srcSbindData=$e(this.source.directives.bind,this._srcSbindData,this.scope,this.owner,e,(function(e,n){e in t.source._pi||t.data.set(e,n,{target:{node:t.owner}})})));for(var r=0;r<e.length;r++){var i=(f=e[r]).expr;s(t.binds,(function(e){var n,r=e.name,a=e.expr;!ce(f,t,r)&&(n=G(i,a,t.scope))&&(n>2&&(r={type:4,paths:[{type:1,value:r}].concat(i.paths.slice(a.paths.length))},a=i),n>=2&&2===f.type?t.data.splice(r,[f.index,f.deleteCount].concat(f.insertions),{target:{node:t.owner}}):t.data.set(r,H(a,t.scope,t.owner),{target:{node:t.owner}}))})),s(t.attrs,(function(e){G(i,e.expr,t.scope)&&t.data.set(e._data,H(e.expr,t.scope,t.owner))})),s(t.sourceSlotNameProps,(function(e){return!(n=n||G(i,e.expr,t.scope))}))}if(n)this._initSourceSlots(),this._repaintChildren();else for(var a=this.slotChildren.length;a--;){var o=this.slotChildren[a];o.lifeCycle.disposed?this.slotChildren.splice(a,1):o.isInserted&&o._update(e,1)}}var c=this._dataChanges;if(c){this._dataChanges=null,this._sbindData=$e(this.aNode.directives.bind,this._sbindData,this.data,this,c,(function(e,n){t._rootNode||e in t.aNode._pi||oe(t.tagName,e)(t.el,n,e,t)}));var l=this.aNode.directives.html;if(this._rootNode)this._rootNode._update(c),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode());else if(l){for(var h=c.length;h--;)if(G(c[h].expr,l.value,this.data)){this.el.innerHTML=H(l.value,this.data,this);break}}else{var u=this.aNode._dp;for(r=0;r<u.length;r++)for(var p=u[r],d=0;d<c.length;d++){var f;if(G((f=c[d]).expr,p.expr,this.data)||p.hintExpr&&G(f.expr,p.hintExpr,this.data)){p.handler(this.el,H(p.expr,this.data,this),p.name,this);break}}if(this.attrs&&this.inheritAttrs){var v=this.data.get("$attrs");for(r=0;r<this.attrs.length;r++){var m=this.attrs[r];if(null==this.aNode._pi[m.name])for(d=0;d<c.length;d++){var g=c[d].expr.paths;if("$attrs"===g[0].value&&g[1].value===m.name){oe(this.tagName,m.name)(this.el,v[m.name],m.name,this);break}}}}for(r=0;r<this.children.length;r++)this.children[r]._update(c)}for(n&&(this._initSourceSlots(),this._repaintChildren()),r=0;r<this.implicitChildren.length;r++)this.implicitChildren[r]._update(c);"function"==typeof this.updated&&this.updated(),this.owner&&this._updateBindxOwner(c)&&this.owner._update()}this._notifyNeedReload=null}},Ge.prototype._updateBindxOwner=function(e){var t,n=this;return s(e,(function(e){s(n.binds,(function(r){var i=e.expr;if(r.x&&!ce(e,n.owner)&&G(i,j(r.name),n.data)){var a=r.expr;i.paths.length>1&&(a={type:4,paths:r.expr.paths.concat(i.paths.slice(1))}),t=1,n.scope.set(a,H(i,n.data,n),{target:{node:n,prop:r.name}})}}))})),t},Ge.prototype._repaintChildren=function(){if(this._rootNode){var e=this._rootNode.el.parentNode,t=this._rootNode.el.nextSibling;this._rootNode.dispose(0,1),this.slotChildren=[];var n=this.aNode;!n.Clazz&&this.attrs&&this.inheritAttrs&&(n=pt(n,this.source)),this._rootNode=we(n,this,this.data,this),this._rootNode.attach(e,t),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode())}else{be(this.children,0,1),this.children=[],this.slotChildren=[];for(var r=0,i=this.aNode.children.length;r<i;r++){var a=we(this.aNode.children[r],this,this.data,this);this.children.push(a),a.attach(this.el)}}},Ge.prototype._initDataChanger=function(){var e=this;this._dataChanger=function(t){e._afterLife.created?(e._dataChanges||(v(e._update,e),e._dataChanges=[]),e._dataChanges.push(t)):e.lifeCycle.inited&&e.owner&&e._updateBindxOwner([t]);var n=t.expr.paths[0].value,r=e._computedDepsIndex[n];if(r)for(var i=0;i<r.length;i++)e._calcComputed(r[i])},this.data.listen(this._dataChanger)},Ge.prototype.watch=function(e,t){var n=j(e),r=H(n,this.data,this),i=this;this.data.listen((function(a){if(G(a.expr,n,i.data)){var s=H(n,i.data,i);if(s!==r){var o=r;r=s;try{t.call(i,s,{oldValue:o,newValue:s,change:a})}catch(c){z(c,i,"watch:"+e)}}}}))},Ge.prototype._getElAsRootNode=function(){return this.el},Ge.prototype.attach=function(e,t){if(!this.lifeCycle.attached){var n=this.aNode;if(n.Clazz||this.components[n.tagName])!n.Clazz&&this.attrs&&this.inheritAttrs&&(n=pt(n,this.source)),this._rootNode=this._rootNode||we(n,this,this.data,this),this._rootNode.attach(e,t),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode()),this._toPhase("created");else{if(!this.el){var r,i=e.ownerDocument;if(n._ce&&n._i>2?(r=n._dp,this.el=(n._el||Se(n,i)).cloneNode(!1)):(r=n.props,this.el=l[this.tagName]&&i.createElementNS?i.createElementNS("http://www.w3.org/2000/svg",this.tagName):i.createElement(this.tagName)),this._sbindData)for(var a in this._sbindData)this._sbindData.hasOwnProperty(a)&&oe(this.tagName,a)(this.el,this._sbindData[a],a,this);for(var s=0,o=r.length;s<o;s++){var c=r[s],h=H(c.expr,this.data,this);!h&&ve[c.name]||c.handler(this.el,h,c.name,this)}if(this.attrs&&this.inheritAttrs){var u=this.data.get("$attrs");for(s=0;s<this.attrs.length;s++){var p=this.attrs[s];null==this.aNode._pi[p.name]&&oe(this.tagName,p.name)(this.el,u[p.name],p.name,this)}}this._toPhase("created")}if(fe(this.el,e,t),!this._contentReady){var d=n.directives.html;if(d)this.el.innerHTML=H(d.value,this.data,this);else for(s=0,o=n.children.length;s<o;s++){var f=n.children[s],v=f.Clazz?new f.Clazz(f,this,this.data,this):we(f,this,this.data,this);this.children.push(v),v.attach(this.el)}this._contentReady=1}this._attached()}this._toPhase("attached"),this.owner&&!this.parent&&this.owner.implicitChildren.push(this)}},Ge.prototype.detach=Ae,Ge.prototype.dispose=Oe,Ge.prototype._attached=Je,Ge.prototype._leave=function(){if(this.leaveDispose){if(!this.lifeCycle.disposed){this.data.unlisten(),this.dataChanger=null,this._dataChanges=null;for(var e=this.implicitChildren.length;e--;)this.implicitChildren[e].dispose(0,1);if(this.implicitChildren=null,this.source=null,this.sourceSlots=null,this.sourceSlotNameProps=null,this.slotChildren=null,this._rootNode)this._rootNode.dispose(this.disposeNoDetach&&this.parent);else{for(e=this.children.length;e--;)this.children[e].dispose(1,1);if(this._elFns){for(e=this._elFns.length;e--;){var t=this._elFns[e];c(this.el,t[0],t[1],t[2])}this._elFns=null}this._inputTimer&&(clearInterval(this._inputTimer),this._inputTimer=null),this.disposeNoDetach&&this.parent||h(this.el)}this._toPhase("detached"),this._rootNode=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this._toPhase("disposed"),this._ondisposed&&this._ondisposed()}}else this.lifeCycle.attached&&(this._rootNode?this._rootNode.detach?this._rootNode.detach():(this._rootNode.dispose(),this._rootNode=null):h(this.el),this._toPhase("detached"))},Ye.prototype.start=function(e){var t=this;switch(this.state){case 2:v((function(){e(t.Component)}));break;case 1:this.listeners.push(e);break;default:this.listeners.push(e),this.state=1;var n=this.load(),r=function(e){t.done(e)};n&&"function"==typeof n.then&&n.then(r,r)}},Ye.prototype.done=function(e){this.state=2,e=e||this.fallback,this.Component=e,s(this.listeners,(function(t){t(e)}))};var tt={div:1,span:1,img:1,ul:1,ol:1,li:1,dl:1,dt:1,dd:1,a:1,b:1,u:1,hr:1,form:1,input:1,textarea:1,button:1,label:1,select:1,option:1,table:1,tbody:1,th:1,tr:1,td:1,thead:1,main:1,aside:1,header:1,footer:1,nav:1};function nt(e,n,r,i,a){if(this.aNode=e,this.owner=i,this.scope=r,this.parent=n,a){var s=a.current;if(s)switch(s.nodeType){case 8:if("s-text"===s.data)for(this.id=this.id||t++,this.sel=s,s.data=this.id,a.goNext();;){if(!(s=a.current))throw new Error("[SAN HYDRATE ERROR] Text end flag not found. \nPaths: "+He(this).join(" > "));if(c="text",8===(o=s).nodeType&&o.data==="/s-"+c){this.el=s,a.goNext(),s.data=this.id;break}a.goNext()}break;case 3:a.goNext(),this.aNode.textExpr.original||(this.el=s)}else this.el=a.doc.createTextNode(""),fe(this.el,a.target,a.current)}var o,c}nt.prototype.nodeType=1,nt.prototype.attach=function(e,n){this.content=H(this.aNode.textExpr,this.scope,this.owner),null==this.content&&(this.content="");var r=e.ownerDocument;if(this.aNode.textExpr.original){this.id=this.id||t++,this.sel=r.createComment(this.id),fe(this.sel,e,n),this.el=r.createComment(this.id),fe(this.el,e,n);var i=r.createElement("script");e.insertBefore(i,this.el),i.insertAdjacentHTML("beforebegin",this.content),e.removeChild(i)}else this.el=r.createTextNode(this.content),fe(this.el,e,n)},nt.prototype.dispose=function(e){e||(h(this.el),h(this.sel)),this.el=null,this.sel=null};var rt=g&&g<9?"data":"textContent";function it(e,n,r,a,o){this.owner=a,this.scope=r,this.parent=n,this.parentComponent=5===n.nodeType?n:n.parentComponent,this.id=t++,this.lifeCycle=K.start,this.children=[],this.nameBind=Y(e,"name"),this.nameBind&&(this.isNamed=!0,this.name=H(this.nameBind.expr,this.scope,this.owner));var c,l,h=a.sourceSlots;if(h&&(c=this.isNamed?h.named[this.name]:h.noname),c&&(this.isInserted=!0),this.aNode={directives:e.directives,props:[],events:[],children:c||e.children.slice(0),vars:e.vars},this._sbindData=ze(e.directives.bind,this.scope,this.owner),this._sbindData&&(l=i({},this._sbindData)),e.vars&&(l=l||{},s(e.vars,(function(e){l[e.name]=H(e.expr,r,a)}))),this.isInserted&&(this.childOwner=a.owner,this.childScope=a.scope),l&&(this.isScoped=!0,this.childScope=new he(l,this.childScope||this.scope)),a.slotChildren.push(this),o){var u,p=o.current;p&&8===p.nodeType&&"s-slot"===p.data?(this.sel=o.current,u=1,o.goNext()):(this.sel=o.doc.createComment(this.id),o.current?o.target.insertBefore(this.sel,o.current):o.target.appendChild(this.sel));for(var d=this.aNode.children,f=0,v=d.length;f<v;f++)this.children.push(ye(d[f],this,this.childScope||this.scope,this.childOwner||this.owner,o));u?(this.el=o.current,o.goNext()):(this.el=o.doc.createComment(this.id),o.current?o.target.insertBefore(this.el,o.current):o.target.appendChild(this.el)),this.lifeCycle=K.attached}}function at(e,t,n){this.parent=e.scope,this.raw={},this.listeners=[],this.directive=e.aNode.directives["for"],this.indexName=this.directive.index||"$index",this.raw[this.directive.item]=t,this.raw[this.indexName]=n}function st(e,n,r,i,a){if(this.aNode=e,this.owner=i,this.scope=r,this.parent=n,this.parentComponent=5===n.nodeType?n:n.parentComponent,this.id=t++,this.children=[],this.param=e.directives["for"],this.itemPaths=[{type:1,value:this.param.item}],this.itemExpr={type:4,paths:this.itemPaths,raw:this.param.item},this.param.index&&(this.indexExpr={type:4,paths:[{type:1,value:""+this.param.index}]}),a){if(this.listData=H(this.param.value,this.scope,this.owner),this.listData instanceof Array)for(var s=0;s<this.listData.length;s++)this.children.push(ye(this.aNode.forRinsed,this,new at(this,this.listData[s],s),this.owner,a));else if(this.listData&&"object"==typeof this.listData)for(var s in this.listData)this.listData.hasOwnProperty(s)&&null!=this.listData[s]&&this.children.push(ye(this.aNode.forRinsed,this,new at(this,this.listData[s],s),this.owner,a));this.el=a.doc.createComment(this.id),fe(this.el,a.target,a.current)}}function ot(e,n,r,i,a){if(this.aNode=e,this.owner=i,this.scope=r,this.parent=n,this.parentComponent=5===n.nodeType?n:n.parentComponent,this.id=t++,this.children=[],a){if(H(this.aNode.directives["if"].value,this.scope,this.owner))this.elseIndex=-1,this.children[0]=ye(this.aNode.ifRinsed,this,this.scope,this.owner,a);else{var s=e.elses;if(s)for(var o=0,c=s.length;o<c;o++){var l=s[o],h=l.directives.elif;if(!h||h&&H(h.value,this.scope,this.owner)){this.elseIndex=o,this.children[0]=ye(l,this,this.scope,this.owner,a);break}}}this.el=a.doc.createComment(this.id),fe(this.el,a.target,a.current)}}function ct(e,n,r,i,a){this.aNode=e,this.owner=i,this.scope=r,this.parent=n,this.parentComponent=5===n.nodeType?n:n.parentComponent,this.id=t++,this.children=[],this.tagName=this.aNode.tagName,a&&(this.cmpt=H(this.aNode.directives.is.value,this.scope)||this.tagName,this.children[0]=ye(this.aNode.isRinsed,this,this.scope,this.owner,a,this.cmpt))}function lt(e,t){var n;function r(e,t){var r=ht(e),i=r.length;if(i)for(var a=0,s=n.length;a<s;a++)if(!t||a!==s-1){var o=n[a]._d;o||(o=n[a]._d={});for(var c=0;c<i;c++)o[r[c]]=1}}e&&!e._ht&&(n=[],function i(e){if(!e._ht){if(n.push(e),e.textExpr)e._ht=!0,e.Clazz=nt,r(e.textExpr);else{e._ht=!0,e._i=0,e._dp=[],e._xp=[],e._pi={},e._b=[],e._ab=[],e._ap=[],e._ce=!e.directives.is&&e.tagName&&e.tagName.indexOf("-")<0&&!/^(template|select|input|option|button|video|audio|canvas|img|embed|object|iframe)$/i.test(e.tagName),s(e.vars,(function(e){r(e.expr)})),s(e.attrs,(function(e){e._data={type:4,paths:[{type:1,value:"$attrs"},{type:1,value:e.name}]},r(e.expr)}));for(var a=e.props,o=a.length,c=0;c<o;c++){var l=a[c];e._b.push({name:C(l.name),expr:null!=l.noValue?{type:3,value:!0}:l.expr,x:l.x,noValue:l.noValue}),r(l.expr)}for(var h in e.directives)if(e.directives.hasOwnProperty(h)){var u=e.directives[h];if(r(u.value,!/^(html|bind)$/.test(h)),"for"===h){var p=u.trackBy;p&&4===p.type&&p.paths[0].value===u.item&&(e._gfk=ut(p.paths))}}s(e.elses,(function(e){i(e)})),c=0;for(var d=e.children.length;c<d;c++)i(e.children[c]);for(c=0;c<o;c++)l=a[c],e._pi[l.name]=c,l.handler=oe(e.tagName,l.name),null==l.expr.value&&(l.x&&e._xp.push(l),e._dp.push(l));if("option"===e.tagName&&!Y(e,"value")&&e.children[0]){var f={name:"value",expr:e.children[0].textExpr,handler:oe(e.tagName,"value")};e.props.push(f),e._dp.push(f),e._pi.value=a.length-1}switch(e.directives["if"]&&(e.ifRinsed={children:e.children,props:a,events:e.events,tagName:e.tagName,attrs:e.attrs,vars:e.vars,directives:e.directives,_ht:!0,_i:0,_d:e._d,_dp:e._dp,_xp:e._xp,_pi:e._pi,_b:e._b,_ce:e._ce},e.Clazz=ot,e=e.ifRinsed),e.directives["for"]&&(e.forRinsed={children:e.children,props:a,events:e.events,tagName:e.tagName,attrs:e.attrs,vars:e.vars,directives:e.directives,_ht:!0,_i:0,_d:e._d,_dp:e._dp,_xp:e._xp,_pi:e._pi,_b:e._b,_ce:e._ce},e.Clazz=st,e=e.forRinsed),e.directives.is&&(e.isRinsed={children:e.children,props:a,events:e.events,tagName:e.tagName,attrs:e.attrs,vars:e.vars,directives:e.directives,_ht:!0,_i:0,_d:e._d,_dp:e._dp,_xp:e._xp,_pi:e._pi,_b:e._b,_ce:e._ce},e.Clazz=ct,e=e.isRinsed),e.tagName){case"slot":e.Clazz=it;break;case"template":case"fragment":e.Clazz=xe;break;default:if(!e.directives.is&&tt[e.tagName]){var v=t&&t.components;v&&v[e.tagName]||(e.elem=!0)}}}n.pop()}}(e))}function ht(e,t){var n,r=[];function i(e,t){for(var i=0,a=e.length;i<a;i++)r=r.concat(ht(e[i],t)),n=n||e[i].dynamic}switch(e.type){case 4:n=t;var a=e.paths;r.push(a[0].value),a.length>1&&r.push(a[0].value+"."+(a[1].value||"*")),i(a.slice(1),1);break;case 9:r=ht(e.expr,t),n=e.expr.dynamic;break;case 7:case 8:case 10:i(e.segs,t);break;case 5:r=ht(e.expr),n=e.expr.dynamic,s(e.filters,(function(e){i(e.name.paths),i(e.args)}));break;case 6:i(e.name.paths),i(e.args);break;case 12:case 11:for(var o=0;o<e.items.length;o++)r=r.concat(ht(e.items[o].expr)),n=n||e.items[o].expr.dynamic}return n&&(e.dynamic=!0),r}function ut(e){var t=e.length;return function(n){for(var r=1;r<t&&n;r++)n=n[e[r].value];return n}}function pt(e,t){var n=0,r={directives:e.directives,props:e.props,events:e.events,children:e.children,tagName:e.tagName,attrs:[],vars:e.vars,_ht:e._ht,_i:e._i,_dp:e._dp,_xp:e._xp,_pi:e._pi,_b:e._b,_ce:e._ce},i={};if(e.attrs){n=e.attrs.length;for(var a=0;a<n;a++)i[(s=e.attrs[a]).name]=a,r.attrs[a]=s}for(a=0;a<t.attrs.length;a++){var s;null==i[(s=t.attrs[a]).name]&&(r.attrs[n++]={name:s.name,expr:s._data,_data:s._data})}return r}function dt(e){var t=e.length;if(t<=1)return e;for(var n={},r=[],i=0;i<t;i++){for(var a=e[i],s=a.expr.paths,o=s.length,c=n,l=0;l<o;){var h=s[l].value;if(c&&!0===c[h])break;1===a.type?l===o-1?c[h]=!0:c=c[h]=c[h]||{}:c=c&&c[h],l++}l===o&&r.push(a)}return r}function ft(e){e=e||{},this.lifeCycle=K.start,this.id=t++,this.children=[],this.slotChildren=[],this.implicitChildren=[];var n=this.constructor;this.inheritAttrs=!(!1===this.inheritAttrs||!1===n.inheritAttrs),this.owner=e.owner,this.scope=e.scope;var r=e.parent;r?(this.parent=r,this.parentComponent=5===r.nodeType?r:r&&r.parentComponent):this.owner&&(this.parentComponent=this.owner,this.scope=this.owner.data),this.sourceSlotNameProps=[],this.sourceSlots={named:{}};var a,s=n.prototype;if(!s.hasOwnProperty("aNode")){var o=n.aPack||s.hasOwnProperty("aPack")&&s.aPack;o?(s.aNode=Ve(o),n.aPack=s.aPack=null):s.aNode=Ze(n)}if(lt(s.aNode,this),this.tagName=s.aNode.tagName,this.source="string"==typeof e.source?J(e.source).children[0]:e.source,lt(this.source),s.aNode._i++,this.source){this._initSourceSlots(1);for(var c=0,l=this.source.events.length;c<l;c++){var h=this.source.events[c];h.modifier.native&&(this.nativeEvents=this.nativeEvents||[],this.nativeEvents.push(h))}this.tagName=this.tagName||this.source.tagName,this.binds=this.source._b,this.attrs=this.source.attrs,this._srcSbindData=ze(this.source.directives.bind,this.scope,this.owner)}try{a="function"==typeof this.initData&&this.initData()}catch(v){z(v,this,"initData")}if(a=i(a||{},e.data||this._srcSbindData),this.binds&&this.scope){for(c=0,l=this.binds.length;c<l;c++){var u=this.binds[c];void 0!==(p=H(u.expr,this.scope,this.owner))&&(a[u.name]=p)}if(this.attrs)for(a.$attrs={},c=0,l=this.attrs.length;c<l;c++){var p,d=this.attrs[c];void 0!==(p=H(d.expr,this.scope,this.owner))&&(a.$attrs[d.name]=p)}}this.data=new he(a),this.tagName=this.tagName||"div",y&&this.tagName.indexOf("-")>0&&(this.tagName="div"),this._initDataChanger(),this._sbindData=ze(this.aNode.directives.bind,this.data,this),this.lifeCycle=K.inited;var f=e.hydrateWalker;f&&(this.aNode.Clazz?(this._rootNode=ye(this.aNode,this,this.data,this,f),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode())):(this.el=f.current,f.goNext(),ke(this,this.data,this)),this.lifeCycle=K.created,this._attached(),this.lifeCycle=K.attached)}nt.prototype._update=function(e){if(!this.aNode.textExpr.value)for(var t=e.length;t--;)if(G(e[t].expr,this.aNode.textExpr,this.scope)){var n=H(this.aNode.textExpr,this.scope,this.owner);if(null==n&&(n=""),n!==this.content)if(this.content=n,this.aNode.textExpr.original){for(var r=this.sel.nextSibling,i=this.el.parentNode;r!==this.el;){var a=r;r=r.nextSibling,h(a)}var s=i.ownerDocument.createElement("script");i.insertBefore(s,this.el),s.insertAdjacentHTML("beforebegin",n),i.removeChild(s)}else this.el[rt]=n;return}},it.prototype.nodeType=6,it.prototype.dispose=function(e,t){this.childOwner=null,this.childScope=null,be(this.children,e,t),e||(h(this.el),h(this.sel)),this.sel=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=K.disposed,this._ondisposed&&this._ondisposed()},it.prototype.attach=_e,it.prototype._update=function(e,t){var n=this;if(this.nameBind&&H(this.nameBind.expr,this.scope,this.owner)!==this.name)return this.owner._notifyNeedReload(),!1;if(t){if(this.isInserted)for(var r=0;r<this.children.length;r++)this.children[r]._update(e)}else if(this.isScoped){var i={};s(this.aNode.vars,(function(e){i[e.name]=1,n.childScope.set(e.name,H(e.expr,n.scope,n.owner))}));var a=[];for(this._sbindData=$e(this.aNode.directives.bind,this._sbindData,this.scope,this.owner,e,(function(e,t){i[e]||(n.childScope.set(e,t),a.push({type:1,expr:{type:4,paths:[{type:1,value:e}]},value:t,option:{}}))})),s(e,(function(e){n.isInserted||a.push(e),s(n.aNode.vars,(function(t){var r=t.name,i=G(e.expr,t.expr,n.scope);i<1||(2!==e.type?a.push({type:1,expr:{type:4,paths:[{type:1,value:r}]},value:n.childScope.get(r),option:e.option}):2===i&&a.push({expr:{type:4,paths:[{type:1,value:r}]},type:2,index:e.index,deleteCount:e.deleteCount,value:e.value,insertions:e.insertions,option:e.option}))}))})),r=0;r<this.children.length;r++)this.children[r]._update(a)}else if(!this.isInserted)for(r=0;r<this.children.length;r++)this.children[r]._update(e)},at.prototype.exprResolve=function(e){var t=this.directive;4===e.type&&e.paths[0].value===t.item&&(e={type:4,paths:t.value.paths.concat({type:2,value:this.raw[this.indexName]},e.paths.slice(1))});for(var n=[],r=0,i=e.paths.length;r<i;r++){var a=e.paths[r];if(4===a.type)switch(a.paths[0].value){case t.item:a={type:4,paths:t.value.paths.concat({type:2,value:this.raw[this.indexName]},a.paths.slice(1))};break;case this.indexName:a={type:2,value:this.raw[this.indexName]}}n.push(a)}return{type:4,paths:n}},a(at,he),s(["set","remove","unshift","shift","push","pop","splice"],(function(e){at.prototype["_"+e]=he.prototype[e],at.prototype[e]=function(t){t=this.exprResolve(j(t)),this.parent[e].apply(this.parent,[t].concat(Array.prototype.slice.call(arguments,1)))}})),st.prototype.nodeType=3,st.prototype.dispose=Ce,st.prototype.attach=function(e,t){this.el=e.ownerDocument.createComment(this.id),fe(this.el,e,t),this.listData=H(this.param.value,this.scope,this.owner),this._createChildren()},st.prototype._createChildren=function(){var e=this.el.parentNode,t=this.listData;if(t instanceof Array)for(var n=0;n<t.length;n++){var r=(i=this.aNode.forRinsed).Clazz?new i.Clazz(i,this,new at(this,t[n],n),this.owner):we(i,this,new at(this,t[n],n),this.owner);this.children.push(r),r.attach(e,this.el)}else if(t&&"object"==typeof t)for(var n in t)if(t.hasOwnProperty(n)&&null!=t[n]){var i;r=(i=this.aNode.forRinsed).Clazz?new i.Clazz(i,this,new at(this,t[n],n),this.owner):we(i,this,new at(this,t[n],n),this.owner),this.children.push(r),r.attach(e,this.el)}},st.prototype._update=function(e){var t=H(this.param.value,this.scope,this.owner),n=this.listData instanceof Array,r=t instanceof Array;if(this.children.length)if(!t||r&&0===t.length)this._disposeChildren(),this.listData=t;else if(n===r&&r)this._updateArray(e,t),this.listData=t;else{var i;this.listData=t;for(var a=0;!i&&a<e.length;a++)i=G(e[a].expr,this.param.value,this.scope);var s=this.aNode._d;if(i||s&&de(e,s)){var o=this;this._disposeChildren(null,(function(){o._createChildren()}))}}else this.listData=t,this._createChildren()},st.prototype._disposeChildren=function(e,t){var n=this.el.parentNode,r=n.firstChild,i=n.lastChild,a=this.children.length,s=!this.aNode.directives.transition&&!e&&a&&r===this.children[0].el&&i===this.el;e||(e=this.children,this.children=[]);var o=0;a=e.length;for(var c=0;c<a;c++){var l=e[c];s?l&&l.dispose(s,s):l?(l._ondisposed=h,l.dispose()):h()}function h(){++o>=a&&t&&t()}s&&(g?n.innerHTML="":n.textContent="",this.el=n.ownerDocument.createComment(this.id),n.appendChild(this.el),t&&t())},st.prototype.opti="undefined"!=typeof navigator&&/chrome\/[0-9]+/i.test(navigator.userAgent),st.prototype._updateArray=function(e,t){var n=this.children.length,r=new Array(n),i=4===this.children[0].nodeType;function a(e){for(var t=0,n=r.length;t<n;t++)(r[t]=r[t]||[]).push(e);l=null,c=!1}for(var s,o=[],c=!0,l={},h=t.length,u=this.aNode._gfk,p=0;p<e.length;p++){var d=e[p],f=G(d.expr,this.param.value,this.scope);if(f)if(f>2){var v=d.expr.paths,m=this.param.value.paths.length,g=+H(v[m],this.scope,this.owner);isNaN(g)?a(d):s||(c=!1,l&&(l[g]=1),r[g]=r[g]||[],this.param.index&&r[g].push(d),d=1===d.type?{type:d.type,expr:{type:4,paths:this.itemPaths.concat(v.slice(m+1))},value:d.value,option:d.option}:{index:d.index,deleteCount:d.deleteCount,insertions:d.insertions,type:d.type,expr:{type:4,paths:this.itemPaths.concat(v.slice(m+1))},value:d.value,option:d.option},r[g].push(d),1===d.type?this.children[g]?this.children[g].scope._set(d.expr,d.value,{silent:1}):this.children[g]=0:this.children[g]&&this.children[g].scope._splice(d.expr,[].concat(d.index,d.deleteCount,d.insertions),{silent:1}))}else{if(s)continue;if(2!==f||2!==d.type||"optimized"===this.owner.updateMode&&this.opti&&!this.aNode.directives.transition)if(l=null,c=!1,s=1,u&&h&&n){var y=[],b=[],w={},_=[],x={};for(ee=0;ee<t.length;ee++){var C=u(t[ee]);y.push(C),w[C]=ee}for(ee=0;ee<this.listData.length;ee++)C=u(this.listData[ee]),b.push(C),x[C]=ee,null!=w[C]?_[ee]=w[C]:(_[ee]=-1,o.push(this.children[ee]));for(var N=0,k=h,S=0,E=n;N<h&&S<n&&y[N]===b[S];)this.listData[S]!==t[N]&&(this.children[S].scope.raw[this.param.item]=t[N],(r[S]=r[S]||[]).push({type:1,option:d.option,expr:this.itemExpr,value:t[N]})),f<2&&(r[S]=r[S]||[]).push(d),N++,S++;for(Z=this.param.index?{type:1,option:d.option,expr:this.indexExpr}:null;k>N&&E>S&&y[k-1]===b[E-1];)k--,E--,this.listData[E]!==t[k]&&(this.children[E].scope.raw[this.param.item]=t[k],(r[E]=r[E]||[]).push({type:1,option:d.option,expr:this.itemExpr,value:t[k]})),k!==E&&(this.children[E].scope.raw[this.children[E].scope.indexName]=k,Z&&(r[E]=r[E]||[]).push(Z)),f<2&&(r[E]=r[E]||[]).push(d);var A=[],O=[],I=-1,P=_.slice(S,E),D=E-S,T=new Array(D);for(ee=0;ee<D;ee++){var R=P[ee];if(-1!==R){var j=-1,L=A.length;if(L>0&&A[L-1]<=R)j=L-1;else for(;L-j>1;){var M=Math.floor((j+L)/2);A[M]>R?L=M:j=M}-1!==j&&(T[ee]=O[j]),j===I?(A[++I]=R,O[I]=ee):R<A[j+1]&&(A[j+1]=R,O[j+1]=ee)}}for(ee=O[I];I>=0;ee=T[ee],I--)A[I]=ee;var B=A.length,U=B?_[A[--B]+S]:-1,F=[],J=[],z=this.el,q=i&&z.parentNode;for(ee=h-1;ee>=0;ee--)if(ee>=k)F[ee]=this.children[n-h+ee],J[ee]=r[n-h+ee],i&&(z=F[ee].el);else if(ee<N)F[ee]=this.children[ee],J[ee]=r[ee];else{var $=x[y[ee]],V=this.children[$];if(V&&(i||ee===U)){var W=V.scope;this.listData[$]!==t[ee]&&(W.raw[this.param.item]=t[ee],(r[$]=r[$]||[]).push({type:1,option:d.option,expr:this.itemExpr,value:t[ee]})),Z&&ee!==$&&(W.raw[W.indexName]=ee,Z&&(r[$]=r[$]||[]).push(Z)),f<2&&(r[$]=r[$]||[]).push(d),F[ee]=V,J[ee]=r[$],ee===U?U=B?_[A[--B]+S]:-1:q.insertBefore(V.el,z),i&&(z=V.el)}else V&&o.push(V),F[ee]=0,J[ee]=0}this.children=F,r=J}else for(n>h&&(o=o.concat(this.children.slice(h)),r=r.slice(0,h),this.children=this.children.slice(0,h)),ee=0;ee<h;ee++)f<2&&(r[ee]=r[ee]||[]).push(d),this.children[ee]?this.children[ee].scope.raw[this.param.item]!==t[ee]&&(this.children[ee].scope.raw[this.param.item]=t[ee],(r[ee]=r[ee]||[]).push({type:1,option:d.option,expr:this.itemExpr,value:t[ee]})):this.children[ee]=0;else{l=null;var Q=d.index,K=d.deleteCount,Y=d.insertions.length,X=Y-K;if(X)for(var Z=this.param.index?{type:1,option:d.option,expr:this.indexExpr}:null,ee=Q+K;ee<this.children.length;ee++){Z&&(c=!1,(r[ee]=r[ee]||[]).push(Z));var te=this.children[ee];te&&(te.scope.raw[te.scope.indexName]=ee-K+Y)}for(var ne=K;ne--;)ne<Y&&(c=!1,(r[ee=Q+ne]=r[ee]||[]).push({type:1,option:d.option,expr:this.itemExpr,value:d.insertions[ne]}),this.children[ee]&&(this.children[ee].scope.raw[this.param.item]=d.insertions[ne]));if(X<0)o=o.concat(this.children.splice(Q+Y,-X)),r.splice(Q+Y,-X);else if(X>0){c=!1;var re=[Q+K,0].concat(new Array(X));this.children.splice.apply(this.children,re),r.splice.apply(r,re)}}}else a(d)}if(h!==n&&this.param.value.paths){var ie={type:1,option:{},expr:{type:4,paths:this.param.value.paths.concat({type:1,value:"length"})}};de([ie],this.aNode._d)&&a(ie)}this._doCreateAndUpdate=se;var ae=this;function se(){if(ae._doCreateAndUpdate=null,!c)for(var e=ae.el,n=e.parentNode,i=-1,a=0;a<h;a++){var s=ae.children[a];if(s)!r[a]||l&&!l[a]||s._update(r[a]);else{if(i<a)for(i=a+1,e=null;i<h;){var o=ae.children[i];if(o){e=o.sel||o.el;break}i++}ae.children[a]=we(ae.aNode.forRinsed,ae,new at(ae,t[a],a),ae.owner),ae.children[a].attach(n,e||ae.el)}}}0===o.length?se():this._disposeChildren(o,(function(){se===ae._doCreateAndUpdate&&se()}))},ot.prototype.nodeType=2,ot.prototype.dispose=Ce,ot.prototype.attach=function(e,t){var n,r,i=this.aNode.elses;if(H(this.aNode.directives["if"].value,this.scope,this.owner))r=we(this.aNode.ifRinsed,this,this.scope,this.owner),n=-1;else if(i)for(var a=0,s=i.length;a<s;a++){var o=i[a],c=o.directives.elif;if(!c||c&&H(c.value,this.scope,this.owner)){r=we(o,this,this.scope,this.owner),n=a;break}}r&&(this.children[0]=r,r.attach(e,t),this.elseIndex=n),this.el=e.ownerDocument.createComment(this.id),fe(this.el,e,t)},ot.prototype._update=function(e){var t,n=this,r=this.aNode.ifRinsed,i=this.aNode.elses;if(H(this.aNode.directives["if"].value,this.scope,this.owner))t=-1;else if(i)for(var a=0,s=i.length;a<s;a++){var o=i[a],c=o.directives.elif;if(c&&H(c.value,this.scope,this.owner)||!c){t=a,r=o;break}}var l=this.children[0];function h(){void 0!==t&&(n.children[0]=we(r,n,n.scope,n.owner)).attach(n.el.parentNode,n.el)}t===this.elseIndex?l&&l._update(e):(this.children=[],l?(l._ondisposed=h,l.dispose()):h(),this.elseIndex=t)},ot.prototype._getElAsRootNode=function(){var e=this.children[0];return e&&e.el||this.el},ct.prototype.nodeType=9,ct.prototype.dispose=Ce,ct.prototype.attach=function(e,t){this.cmpt=H(this.aNode.directives.is.value,this.scope)||this.tagName;var n=we(this.aNode.isRinsed,this,this.scope,this.owner,this.cmpt);this.children[0]=n,n.attach(e,t)},ct.prototype._update=function(e){var t=this.children[0],n=H(this.aNode.directives.is.value,this.scope)||this.tagName;if(n===this.cmpt)t._update(e);else{this.cmpt=n;var r=we(this.aNode.isRinsed,this,this.scope,this.owner,this.cmpt),i=t.el;r.attach(i.parentNode,i),t.dispose(),this.children[0]=r}},ct.prototype._getElAsRootNode=function(){return this.children[0].el},ft.prototype._initDataChanger=function(){var e=this;this._dataChanger=function(t){e.lifeCycle.created?(e._dataChanges||(v(e._update,e),e._dataChanges=[]),e._dataChanges.push(t)):e.lifeCycle.inited&&e.owner&&e._updateBindxOwner([t])},this.data.listen(this._dataChanger)},ft.prototype.attach=function(e,t){if(!this.lifeCycle.attached){var n=this.aNode;if(n.Clazz)this._rootNode=this._rootNode||we(n,this,this.data,this),this._rootNode.attach(e,t),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode()),this.lifeCycle=K.created;else{if(!this.el){var r,i=e.ownerDocument;if(n._ce&&n._i>2?(r=n._dp,this.el=(n._el||Se(n,i)).cloneNode(!1)):(r=n.props,this.el=l[this.tagName]&&i.createElementNS?i.createElementNS("http://www.w3.org/2000/svg",this.tagName):i.createElement(this.tagName)),this._sbindData)for(var a in this._sbindData)this._sbindData.hasOwnProperty(a)&&oe(this.tagName,a)(this.el,this._sbindData[a],a,this);for(var s=0,o=r.length;s<o;s++){var c=r[s],h=H(c.expr,this.data,this);!h&&ve[c.name]||c.handler(this.el,h,c.name,this)}if(this.attrs&&this.inheritAttrs){var u=this.data.get("$attrs");for(s=0;s<this.attrs.length;s++){var p=this.attrs[s];null==this.aNode._pi[p.name]&&oe(this.tagName,p.name)(this.el,u[p.name],p.name,this)}}this.lifeCycle=K.created}if(fe(this.el,e,t),!this._contentReady){var d=n.directives.html;if(d)this.el.innerHTML=H(d.value,this.data,this);else for(s=0,o=n.children.length;s<o;s++){var f=n.children[s],v=f.Clazz?new f.Clazz(f,this,this.data,this):we(f,this,this.data,this);this.children.push(v),v.attach(this.el)}this._contentReady=1}this._attached()}this.lifeCycle=K.attached}},ft.prototype.nodeType=5,ft.prototype._getElAsRootNode=function(){return this.el},ft.prototype._update=function(e){if(!this.lifeCycle.disposed){var t=this,n=!1;if(this._notifyNeedReload=function(){n=!0},e){e.length>1&&(e=dt(e)),this.source&&(this._srcSbindData=$e(this.source.directives.bind,this._srcSbindData,this.scope,this.owner,e,(function(e,n){e in t.source._pi||t.data.set(e,n,{target:{node:t.owner}})})));for(var r=0;r<e.length;r++){var i=(f=e[r]).expr;s(t.binds,(function(e){var n,r=e.name,a=e.expr;!ce(f,t,r)&&(n=G(i,a,t.scope))&&(n>2&&(r={type:4,paths:[{type:1,value:r}].concat(i.paths.slice(a.paths.length))},a=i),n>=2&&2===f.type?t.data.splice(r,[f.index,f.deleteCount].concat(f.insertions),{target:{node:t.owner}}):t.data.set(r,H(a,t.scope,t.owner),{target:{node:t.owner}}))})),s(t.attrs,(function(e){G(i,e.expr,t.scope)&&t.data.set(e._data,H(e.expr,t.scope,t.owner))})),s(t.sourceSlotNameProps,(function(e){return!(n=n||G(i,e.expr,t.scope))}))}if(n)this._initSourceSlots(),this._repaintChildren();else for(var a=this.slotChildren.length;a--;){var o=this.slotChildren[a];o.lifeCycle.disposed?this.slotChildren.splice(a,1):o.isInserted&&o._update(e,1)}}var c=this._dataChanges;if(c){this._dataChanges=null,this._sbindData=$e(this.aNode.directives.bind,this._sbindData,this.data,this,c,(function(e,n){t._rootNode||e in t.aNode._pi||oe(t.tagName,e)(t.el,n,e,t)}));var l=this.aNode.directives.html;if(this._rootNode)this._rootNode._update(c),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode());else if(l){for(var h=c.length;h--;)if(G(c[h].expr,l.value,this.data)){this.el.innerHTML=H(l.value,this.data,this);break}}else{var u=this.aNode._dp;for(r=0;r<u.length;r++)for(var p=u[r],d=0;d<c.length;d++){var f;if(G((f=c[d]).expr,p.expr,this.data)||p.hintExpr&&G(f.expr,p.hintExpr,this.data)){p.handler(this.el,H(p.expr,this.data,this),p.name,this);break}}if(this.attrs&&this.inheritAttrs){var v=this.data.get("$attrs");for(r=0;r<this.attrs.length;r++){var m=this.attrs[r];if(null==this.aNode._pi[m.name])for(d=0;d<c.length;d++){var g=c[d].expr.paths;if("$attrs"===g[0].value&&g[1].value===m.name){oe(this.tagName,m.name)(this.el,v[m.name],m.name,this);break}}}}for(r=0;r<this.children.length;r++)this.children[r]._update(c)}n&&(this._initSourceSlots(),this._repaintChildren()),this.owner&&this._updateBindxOwner(c)&&this.owner._update()}this._notifyNeedReload=null}},ft.prototype._updateBindxOwner=function(e){var t,n=this;return s(e,(function(e){s(n.binds,(function(r){var i=e.expr;if(r.x&&!ce(e,n.owner)&&G(i,j(r.name),n.data)){var a=r.expr;i.paths.length>1&&(a={type:4,paths:r.expr.paths.concat(i.paths.slice(1))}),t=1,n.scope.set(a,H(i,n.data,n),{target:{node:n,prop:r.name}})}}))})),t},ft.prototype._initSourceSlots=function(e){if(this.sourceSlots.named={},this.source&&this.scope)for(var t=this.source.children,n=0,r=t.length;n<r;n++){var i,a=t[n],s=!a.textExpr&&Y(a,"slot");if(s){e&&this.sourceSlotNameProps.push(s);var o=H(s.expr,this.scope,this.owner);(i=this.sourceSlots.named[o])||(i=this.sourceSlots.named[o]=[]),i.push(a)}else e&&((i=this.sourceSlots.noname)||(i=this.sourceSlots.noname=[]),i.push(a))}},ft.prototype._repaintChildren=function(){if(this._rootNode){var e=this._rootNode.el.parentNode,t=this._rootNode.el.nextSibling;this._rootNode.dispose(0,1),this.slotChildren=[],this._rootNode=we(this.aNode,this,this.data,this),this._rootNode.attach(e,t),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode())}else{be(this.children,0,1),this.children=[],this.slotChildren=[];for(var n=0,r=this.aNode.children.length;n<r;n++){var i=we(this.aNode.children[n],this,this.data,this);this.children.push(i),i.attach(this.el)}}},ft.prototype._leave=function(){if(this.leaveDispose){if(!this.lifeCycle.disposed){if(this.data.unlisten(),this.dataChanger=null,this._dataChanges=null,this.source=null,this.sourceSlots=null,this.sourceSlotNameProps=null,this.slotChildren=null,this._rootNode)this._rootNode.dispose(this.disposeNoDetach&&this.parent);else{for(var e=this.children.length;e--;)this.children[e].dispose(1,1);this._inputTimer&&(clearInterval(this._inputTimer),this._inputTimer=null),this.disposeNoDetach&&this.parent||h(this.el)}this.lifeCycle=K.detached,this._rootNode=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=K.disposed,this._ondisposed&&this._ondisposed()}}else this.lifeCycle.attached&&(this._rootNode?this._rootNode.detach?this._rootNode.detach():(this._rootNode.dispose(),this._rootNode=null):h(this.el),this.lifeCycle=K.detached)},ft.prototype.detach=Ae,ft.prototype.dispose=Oe,ft.prototype._attached=Je;var vt={version:"3.15.5",Component:Ge,defineComponent:Ke,defineTemplateComponent:function(e){switch(typeof e){case"function":return e;case"string":e={template:e}}function t(e){ft.call(this,e)}return t.prototype=e,a(t,ft),t},hydrateComponent:function(e,t){var n=t.el;if(!n)return{};if("render-only"!==n.getAttribute("data-sanssr"))return{instance:new e(t)};for(var r=[],i=-1,a=n,s=[];;)if(a)if(1===a.nodeType){a.hasAttribute("data-sanssr-cmpt")&&s.push(a);var o=a.firstChild;o?(r[++i]=a,a=o):a=a.nextSibling}else a=a.nextSibling;else{if(i<=0)break;a=r[i--].nextSibling}for(var c={},l=0,h=s.length;l<h;l++){for(var u=s[l],p=u.getAttribute("data-sanssr-cmpt"),d=p.split("/"),f=e,v=0,m=d.length;v<m;v++){var g=f.prototype;g.hasOwnProperty("_cmptReady")||Xe(f),f=g.components[d[v]]}var y=c[p];y||(y=c[p]=[]),y.push(new f({el:u}))}return{renderOnly:!0,components:c}},createComponentLoader:function(e){var t=e.placeholder,n=e.fallback;return new Ye("function"==typeof e?e:e.load,t,n)},parseComponentTemplate:Ze,unpackANode:Ve,parseTemplate:J,parseExpr:j,ExprType:{STRING:1,NUMBER:2,BOOL:3,ACCESSOR:4,INTERP:5,CALL:6,TEXT:7,BINARY:8,UNARY:9,TERTIARY:10,OBJECT:11,ARRAY:12,NULL:13},LifeCycle:K,NodeType:{TEXT:1,IF:2,FOR:3,ELEM:4,CMPT:5,SLOT:6,FRAG:7,LOADER:8,IS:9},nextTick:v,Data:he,evalExpr:H,inherits:a,DataTypes:_};te.exports=vt}();var re=ne.exports,ie=ee(re),ae=function(){function e(e){void 0===e&&(e={}),this.lastStickyKeyMap={},this.listeners=[],this.serialNumber=0,this.eventConfig=e}return e.prototype.emit=function(e){var t=this.eventConfig;t.filter&&!this.evalFilter(t.filter,e)||(t.sticky&&this.saveStickyEvent(e),this.executeListeners(e))},e.prototype.executeListeners=function(e){var t=this.listeners,n=t.length;if(n)for(var r=0;r<n;r++){var i=t[r];if(!i.when||this.evalFilter(i.when,e)){if((0,i.listener)(e),n>t.length){var a=n-t.length;n=t.length,r-=a}i.once&&(t.splice(r,1),n--,r--)}}},e.prototype.on=function(e,t){void 0===t&&(t={});var n=this.eventConfig,r={listener:e,once:t.once,when:t.when};if(this.listeners.push(r),n.sticky){for(var i=this.lastStickyKeyMap,a=null,s=0,o=Object.keys(i);s<o.length;s++){var c=o[s],l=i[c];t.when&&!this.evalFilter(t.when,l.event)||(!a||l.serialNumber>a.lastStickyEventData.serialNumber)&&(a={lastStickyEventData:l,stickyKey:c})}a&&(e(a.lastStickyEventData.event),t.once&&this.listeners.pop(),!1!==n.removeSticky&&this.removeSticky(a.stickyKey))}},e.prototype.off=function(e){var t=this.listeners;if(t.length)if(e){for(var n=t.length-1;n>=0;n--)if(t[n].listener===e){t.splice(n,1);break}}else this.listeners=[]},e.prototype.makeStickyKey=function(e){var t=this.eventConfig.sticky;if(!0===t)return"*";if("string"==typeof t)return"".concat(e&&e[t]);if("function"==typeof t)return"".concat(t(e));throw new Error("Invalid sticky key ".concat(t,"."))},e.prototype.saveStickyEvent=function(e){var t=this.makeStickyKey(e);this.lastStickyKeyMap[t]={event:e,serialNumber:++this.serialNumber}},e.prototype.removeSticky=function(e){var t=this.lastStickyKeyMap;t&&delete t[e]},e.prototype.evalFilter=function(e,t){if("function"==typeof e)return e(t);if("[object Object]"===Object.prototype.toString.call(e)){for(var n=!0,r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];if(e[a]!==(t&&t[a])){n=!1;break}}return n}throw new Error("Invalid filter value ".concat(e,"."))},e}(),se=function(){function e(){this.jsEventEmitterMap={}}return e.prototype.generateEmitMethod=function(e,t,n){var r=this.getJSEventEmitter(e,t,n);return r.emit.bind(r)},e.prototype.generateOnOff=function(e,t,n){var r=this.getJSEventEmitter(e,t,n);return{on:r.on.bind(r),off:r.off.bind(r)}},e.prototype.dispose=function(){this.jsEventEmitterMap={}},e.prototype.getJSEventEmitter=function(e,t,n){return this.jsEventEmitterMap[e]&&this.jsEventEmitterMap[e][t]||(this.jsEventEmitterMap[e]||(this.jsEventEmitterMap[e]={}),this.jsEventEmitterMap[e][t]=new ae(n)),this.jsEventEmitterMap[e][t]},e}();var oe={lite:{"5.24.0.0":{android:"13.2.0.0",ios:"13.2.1.0"},"5.21.0.0":{android:"12.28.0.0",ios:"12.28.2.0"},"5.15.0.0":{android:"12.21.0.0",ios:"12.21.0.0"},"5.6.0.0":{android:"12.13.0.0",ios:"12.13.0.0"},"5.0.0.0":{android:"12.1.0.0",ios:"12.1.0.0"},"4.21.0.0":{android:"11.24.0.0",ios:"11.24.0.0"},"4.17.0.0":{android:"11.22.0.0",ios:"11.22.0.0"}},tomas:{"1.13.0.0":{android:"12.19.0.0",ios:"12.19.0.0"},"1.0.0.0":{android:"12.1.0.0",ios:"12.1.0.0"}},baiduboxvision:{"2.0.0.0":{android:"12.15.0.0",ios:"12.15.0.0"},"1.0.0.0":{android:"11.25.9.10",ios:"11.25.5.15"}},baiduboxsenior:{"1.0.0.0":{android:"12.1.0.0",ios:"12.1.0.0"}},knews:{"2.0.0.0":{android:"12.13.0.0",ios:"12.13.0.0"}}},ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==ce?ce:"undefined"!=typeof self?self:{},le=null,he=[];function ue(e){le=e,he.forEach((function(e){le.apply(void 0,e)})),he=[]}function pe(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];le?le.apply(void 0,e):he.push(e)}var de="99999";function fe(e,t){if(e===t)return 0;function n(e){if(!(+e>=0))throw new Error("传递了非法版本号:: "+e);return+e}for(var r=(""+e).split(".").map(n),i=(""+t).split(".").map(n),a=0,s=Math.max(r.length,i.length);a<s;a++){if(r[a]>i[a]||r[a]&&!i[a]&&r[a]>0)return 1;if(r[a]<i[a]||i[a]&&!r[a]&&i[a]>0)return-1}return 0}var ve="undefined"!=typeof window,me=ve&&window.navigator.userAgent.toLowerCase();function ge(e){var t=e.isBdApp,n=e.isLiteBox,r=e.realBoxVersion;return t||n?function(e){var t=e.boxType,n=e.realBoxVersion,r=e.isIOS,i=oe[t]||{},a=Object.keys(i);if(0===a.length)return"";a.sort(fe).reverse();for(var s=0;s<a.length;s++){var o=a[s];if(fe(n,o)>=0)return"string"!=typeof i[o]?r?i[o].ios:i[o].android:i[o]}return""}(e):r}function ye(e){var t=e&&/iphone|ipad|ipod|ios/.test(e),n=e&&e.indexOf("android")>0,r=e&&/arkweb/.test(e),i=n?"android":t?"ios":r?"harmonyos":"unknown",a={UA:e,isIOS:t,isAndroid:n,isHarmony:r},s=function(e){var t=e.UA,n=e.isIOS,r=e.isAndroid,i=e.isHarmony;if(r){var a=t.match(/(android);?\s+([\d.]+)?/);return a&&a[2]}if(n){var s=t.match(/(ipad|iphone|ipod).*os\s([\d_]+)/);return s&&s[2].replace(/_/g,".")}if(i){var o=t.match(/(harmonyos).*\s([\d.]+)/);return o&&o[2]}return 0}(a),o=/ baiduboxapp\//i.test(e)||/ bdapp\//i.test(e),c=/ bdapp\//i.test(e),l=/ bdapp\/\d+[.\d+]*\s\((\w+)[;]?\s?(\w+)?\)/g.exec(e),h=ve&&window&&window._na&&window._na.getSchemeHeader,u=h&&window._na.isSupportSwan&&window._na.isSupportSwan(),p=h&&window._na.isSupportSearchSDK&&window._na.isSupportSearchSDK(),d=p||u,f=/searchcraft\/([5-9]|\d{2,})(\.\d+)*/.test(e),v=f&&/ baiduboxapp\//i.test(e),m=f&&!v?"searchcraft":u||p?window._na.getSchemeHeader():l?l[2]||l[1]:"baiduboxapp",g=/ baiduboxapp\//i.test(e)&&!/ (lite|info|pro|mission) baiduboxapp/.test(e)&&(!c||r)&&!f,y=t&&/ info baiduboxapp\//i.test(e)||n&&/ lite baiduboxapp\//i.test(e)||r&&/ baiduboxlite\//i.test(e),b=/ mission baiduboxapp\//i.test(e),w=/ tomas\//i.test(e),_=m||"unknown";g&&(_="main"),b&&(_="mission"),y&&(_="lite"),w&&(_="tomas"),f&&(_=v?"searchcraftInMain":"searchcraft");var x=/imagesearch[\s\S]+main/i.test(e)?"imageseach":/light/i.test(e)?"light":"search";Object.assign(a,{isBdApp:c,isChatSearch:f,boxType:_,appProtoName:m});var C=function(e){var t=e.isBdApp,n=e.isChatSearch,r=e.UA,i=e.appProtoName;if(t||n){var a=new RegExp(i+"/([\\d+.]+)").exec(r);if(a&&a[1])return a[1]}var s=/baiduboxapp\/([\d+.]+)/.exec(r);if(s&&s[1])return s[1];if(ce.baiduboxapp_version)return ce.baiduboxapp_version;var o=/([\d+.]+)_(?:diordna|enohpi)_/.exec(r);return o&&o[1]&&o[1].split(".").reverse().join(".")||0}(a);return Object.assign(a,{realBoxVersion:C,isLiteBox:y}),{isIOS:t,isAndroid:n,isHarmony:r,OS:i,OSVersion:s,isBoxSeries:o,isBdApp:c,isChatSearch:f,isChatSearchInMain:v,isSupportSwanInBrowser:u,isUseBrowserDesc:d,appProtoName:m,isMainBox:g,isBox:g,isLiteBox:y,isMissionBox:b,isTomas:w,boxType:_,adaptBoxType:"main",boxBrowserType:x,realBoxVersion:C,boxVersion:ge(a)}}var be=ye(me),we=be.isIOS,_e=be.isAndroid,xe=be.isHarmony,Ce=be.OS,Ne=be.OSVersion,ke=be.isBoxSeries,Se=be.isBdApp,Ee=be.isChatSearch,Ae=be.isSupportSwanInBrowser,Oe=be.isUseBrowserDesc,Ie=be.appProtoName,Pe=be.isMainBox,De=be.isBox,Te=be.isLiteBox,Re=be.isMissionBox,je=be.isTomas,Le=be.boxType,Me=be.adaptBoxType,Be=be.boxBrowserType,Ue=be.realBoxVersion,Fe=be.boxVersion;function Je(e){try{e.boxType=Le,e.boxVersion=Ue}catch(t){}return e}function ze(e,t){void 0===t&&(t={isApp:Pe,isBdBox:Se,isLiteApp:Te,appType:Le,realAppVersion:Ue});var n=t.isApp,r=t.isBdBox,i=t.isLiteApp,a=t.appType,s=t.realAppVersion;e?n&&fe(s,"12.16")<0||r||i?pe(a+s+"使用兜底描述表,符合预期"):pe(a+s+"使用兜底描述表,!!!不符合预期,请加抽样验证效果!!!"):n?fe(s,"12.16")>0?pe(a+s+"使用端描述表,符合预期"):pe(a+s+"使用端描述表,!!!不符合预期,请去掉抽样使用兜底描述表验证效果!!!"):pe("矩阵产品"+a+s+"线上无法命中联动实验,不会使用端描述表,!!!不需要加抽样验证,请去掉抽样使用兜底描述表验证效果!!!")}var qe=Object.freeze({__proto__:null,INFINITYVERSION:de,versionCompare:fe,inBrowser:ve,UA:me,getUAInfo:ye,isIOS:we,isAndroid:_e,isHarmony:xe,OS:Ce,OSVersion:Ne,isBoxSeries:ke,isBdApp:Se,isChatSearch:Ee,isSupportSwanInBrowser:Ae,isUseBrowserDesc:Oe,appProtoName:Ie,isMainBox:Pe,isBox:De,isLiteBox:Te,isMissionBox:Re,isTomas:je,boxType:Le,adaptBoxType:Me,boxBrowserType:Be,realBoxVersion:Ue,boxVersion:Fe,addEnvInfo:Je,isHitLocDesc:ze}),$e=[];function He(){var e={};return{on:function(t,n){e.hasOwnProperty(t)?-1===e[t].indexOf(n)&&e[t].push(n):e[t]=[n]},off:function(t,n){var r=(e[t]||[]).indexOf(n);r>-1&&e[t].splice(r,1)},once:function(e,t){var n=this,r=function(){for(var i=[],a=arguments.length;a--;)i[a]=arguments[a];n.off(e,r),t.apply.apply(t,[n].concat(i))};this.on(e,r)},emit:function(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];var i=t.split(":"),a=i.length;if(2!==a||"*"!==i[1]){if(a>1){var s=i[0]+":*";Ve.apply(void 0,[e,s,t].concat(n))}Ve.apply(void 0,[e,t].concat(n))}}}}function Ve(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];e.hasOwnProperty(t)&&e[t].forEach((function(e){e.apply(void 0,n)}))}var We=new He;function Ge(){for(;$e.length>0;){var e=$e.shift();We.emit(e.name,e.error)}}var Qe=new He,Ke=[{name:"swan.open",invoke:"iframe.openSwan",args:[{name:"appKey",value:"string"},{name:"path",value:"string="},{name:"query",value:"Object="},{name:"_baiduboxapp",value:{type:{from:"string=",notinhis:"string=",srcAppId:"string=",extraData:"Object=",ext:"Object=",srcAppPage:"string=",ubc:"Object=",navi:"string=",backwardURL:"string="}}},{name:"third_ext",value:"string="},{name:"abtest",value:"string="},{name:"oauthType",value:"string="},{name:"_swaninfo",value:"string="},{name:"downloadUrl",value:"string="},{name:"udid",value:"string="},{name:"host",value:"string="},{name:"cb",value:"string="},{name:"port",value:"string="}],authority:"swan",scheme:window&&window._na&&window._na.getSchemeHeader&&window._na.getSchemeHeader()}],Ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==Z?Z:"undefined"!=typeof self?self:{};var Xe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){!function(e){function n(e,t){for(var n=0,r=e&&e.length||0;n<r&&!1!==t(e[n],n);n++);}function r(e){return e}function i(e){return"string"==typeof e?JSON.parse(e):e}function a(e,t,r){n(t,(function(t,n){var i,a=s(t.value);switch(o(e[n],a)){case 1:i=" is required.";break;case 2:i=" type error. must be "+JSON.stringify(a.type||"Array");break;case 3:i=" type error, must be oneOf "+JSON.stringify(a.oneOf);break;case 4:i=" type error, must be oneOfType "+JSON.stringify(a.oneOfType);break;case 5:i=" type error, must be arrayOf "+JSON.stringify(a.arrayOf)}if(i){var c=r&&r.options.errorTitle||"jsNative";throw new Error("["+c+" Argument Error]"+t.name+i)}}))}function s(e){if("string"==typeof e){var t={isRequired:!0};return/=$/.test(e)&&(t.isRequired=!1,e=e.slice(0,e.length-1)),/\[\]$/.test(e)?t.arrayOf=e.slice(0,e.length-2):e.indexOf("|")>0?t.oneOfType=e.split("|"):t.type=e,t}return e}function o(e,t){if(t=s(t),null==e)return t.isRequired&&"*"!==t.type?1:0;var r=!1;switch(typeof t.type){case"string":switch(t.type){case"string":case"boolean":case"number":case"function":case"object":r=typeof e===t.type;break;case"Object":r="object"==typeof e;break;case"Array":r=e instanceof Array;break;case"*":r=!0}if(!r)return 2;break;case"object":if(e&&"object"==typeof e)for(var i in r=!0,t.type)if(!(r=!o(e[i],t.type[i])))break;if(!r)return 2;break;default:if(t.oneOf){if(n(t.oneOf,(function(t){return!(r=t===e)})),!r)return 3}else if(t.oneOfType){if(n(t.oneOfType,(function(t){return!(r=!o(e,t))})),!r)return 4}else if(t.arrayOf){if(!(e instanceof Array))return 2;if(r=!0,n(e,(function(e){return r=!o(e,t.arrayOf)})),!r)return 5}}return 0}function c(e){return n(e,(function(t,n){var r;"function"==typeof t&&(e[n]=(r=t,function(e){r("string"==typeof e?JSON.parse(e):e)}))})),e}function l(t){return n(t,(function(n,r){var i,a;"function"==typeof n&&(t[r]=(i=n,a=u+h++,e[a]=function(t){delete e[a],i(t)},a))})),t}var h=1,u="__jsna_";function p(e){return n(e,(function(t,n){e[n]=JSON.stringify(t)})),e}function d(e,t){var r={};return n(t,(function(t,n){var i=e[n];null!=i&&(r[t.name]=i)})),r}function f(t){return e.prompt(t)}function v(t){e.location.href=t}function m(e){var t=document.createElement("iframe");t.src=e,document.body.appendChild(t),document.body.removeChild(t)}function g(e,t){return"function"==typeof e?e(t):e[t]}var y={method:["ArgCheck","CallMethod"],"method.json":["ArgCheck","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgEncode:JSON","CallMethod","ReturnDecode:JSON"],"prompt.json":["ArgCheck","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgAdd:name","ArgCombine:JSONString","CallPrompt","ReturnDecode:JSON"],"prompt.url":["ArgCheck","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgEncode:JSON","ArgCombine:URL","CallPrompt","ReturnDecode:JSON"],location:["ArgCheck","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgEncode:JSON","ArgCombine:URL","CallLocation"],iframe:["ArgCheck","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgEncode:JSON","ArgCombine:URL","CallIframe"],message:["ArgCheck","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgAdd:name","ArgCombine:Object","CallMessage"]},b={method:"CallMethod",prompt:"CallPrompt",location:"CallLocation",iframe:"CallIframe",message:"CallMessage"},w={JSONStringInTurn:["ArgFuncArgDecode:JSON","ArgFuncEncode","ArgEncode:JSON"],JSONString:["ArgFuncArgDecode:JSON","ArgFuncEncode","ArgAdd:name","ArgCombine:JSONString"],JSONObject:["ArgFuncArgDecode:JSON","ArgFuncEncode","ArgAdd:name","ArgCombine:Object"],URL:["ArgFuncArgDecode:JSON","ArgFuncEncode","ArgEncode:JSON","ArgCombine:URL"]},_={name:1,args:1,invoke:1,method:1,scheme:1,authority:1,path:1,handler:1};function x(e,t){for(var n in t)t.hasOwnProperty(n)&&!_[n]&&(e[n]=t[n]);return e}function C(e,t){var n=[];if(e.args instanceof Array)for(var r=0;r<e.args.length;r++){var i=e.args[r];n.push({name:i.name||i.n,value:i.value||i.v})}return(t=t||x)({name:e.name,args:n,invoke:N(e.invoke),method:e.method,scheme:e.scheme||e.schema,authority:e.authority,path:e.path,handler:e.handler},e)}function N(e){if(e instanceof Array)return e;switch(typeof e){case"string":return y[e];case"object":var t=[];return e.check&&t.push("ArgCheck"),e.before&&(t=t.concat(w[e.before])),t.push(b[e.call]),"JSON"===e.after&&t.push("ReturnDecode:JSON"),t}}function k(t){var s={ArgCheck:function(e,t,n){return function(t){return a(t,e.args,n),t}},ArgFuncArgDecode:function(e,t){return"JSON"===t?c:r},ArgFuncEncode:function(){return l},ArgEncode:function(e,t){return"JSON"===t?p:r},ArgAdd:function(e,t){var n=e.args.length;e.args.push({name:"_"+t,value:"*"});var r=e[t];return function(e){return e[n]=r,e}},ArgCombine:function(e,t){switch(t){case"URL":var i=e.scheme+"://"+e.authority+e.path;return function(t){var r=[];n(e.args,(function(e,n){var i=t[n];null!=i&&r.push(e.name+"="+encodeURIComponent(i))}));var a=r.join("&");return a?i+"?"+a:i};case"Object":return function(t){return d(t,e.args)};case"JSONString":return function(t){return JSON.stringify(d(t,e.args))}}return r},CallMethod:function(t,n){var r,i;return function(n){switch(function(){if(!r){var n=t.method.split("."),a=n.length-1;i=n[a],r=e;for(var s=0;s<a;s++)r=r[n[s]]}}(),t.args.length){case 0:return r[i]();case 1:return r[i](n[0]);case 2:return r[i](n[0],n[1]);case 3:return r[i](n[0],n[1],n[2])}return r[i].apply(r,n)}},CallPrompt:function(){return f},CallIframe:function(){return m},CallLocation:function(){return v},CallMessage:function(t){return function(n){e.webkit.messageHandlers[t.handler].postMessage(n)}},ReturnDecode:function(e,t){return"JSON"===t?i:r}},o={options:{errorTitle:"jsNative",namingConflict:"error"},apis:[],apisLen:0,apiIndex:{},config:function(e){return e=e||{},this.options.errorTitle=e.errorTitle||this.options.errorTitle,this.options.namingConflict=e.namingConflict||this.options.namingConflict,this},add:function(e){if(e instanceof Array)for(var t=0;t<e.length;t++)this.add(e[t]);else if("object"==typeof e){var n=e.name;if(null!=this.apiIndex[n])switch(this.options.namingConflict){case"override":this.apis[this.apiIndex[n]]=C(e,this.descriptionPropMerger);case"ignore":break;default:throw new Error("["+this.options.errorTitle+"] API exists: "+n)}else{var r=C(e,this.descriptionPropMerger);this.apiIndex[n]=this.apisLen,this.apis[this.apisLen++]=r}}return this},fromNative:function(e){return this.add(u(C(e,this.descriptionPropMerger)))},invoke:function(e,t){return u(this.apis[this.apiIndex[e]],t)},map:function(e){e=e||function(e){return e};for(var t={},n=0;n<this.apis.length;n++){var r=this.apis[n],i=g(e,r.name);if(i&&r.invoke)if(i.indexOf(".")>0){for(var a=i.split("."),s=0,o=t;s<a.length-1;s++){var c=a[s];o[c]=o[c]||{},o=o[c]}o[a[s]]=y(r)}else t[i]=y(r)}return t},invokeAPI:function(e,t){return u(C(e,this.descriptionPropMerger),t)},addProcessorCreator:function(e,t){if(s[e])throw new Error("["+this.options.errorTitle+"] processorCreators exists: "+e);return s[e]=t,this},setExternalDescriptionProps:function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='target["'+r+'"] = source["'+r+'"];'}this.descriptionPropMerger=new Function("target","source",t+"return target;")}};return o.config(t),o;function h(e){var t=[];if(!e.invoke)throw new Error("["+o.options.errorTitle+"] invoke undefined: "+e.name);return n(e.invoke,(function(n){var r,i=n.indexOf(":");i>0&&(r=n.slice(i+1),n=n.slice(0,i));var a=s[n](e,r,o);"function"==typeof a&&t.push(a)})),t}function u(e,t){if(e)return t=t||[],n(h(e),(function(e){t=e(t)})),t}function y(e){var t=h(e);return function(){return r=Array.prototype.slice.call(arguments,0,e.args.length),n(t,(function(e){r=e(r)})),r;var r}}}var S=new k;S.version="1.2.4",S.createContainer=function(e){return new k(e)},e.jsNative=S,t.jsNative=S}("undefined"!=typeof window?window:Ye)})),Ze=Xe.jsNative.createContainer().config({errorTitle:"boxx",namingConflict:"override"}),et={invoke:["ArgFuncArgDecode:JSON","ArgFuncEncode","CallMethod","ReturnDecode:JSON"],name:"na.getAPIs",method:"_na.getAPIs",args:[{name:"fragmentIndex",value:"number="}]},tt={"iframe.bdboxURL":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgCombineWithCallback:Object","ArgJSONString","ArgCombineWithCallback:bdboxURL","CheckURL","CallIframe"],"iframe.url":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgsEncodeToJSONExceptString","ArgCombineWithCallback:URL","CheckURL","CallIframe"],"method.args-json+callback":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgCombineWithCallback:JSONString","CallMethodByUserArgs:callback"],"method.args-json":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgCombineWithCallback:JSONString","CallMethodByUserArgs:noCallback"],"method.bdboxURL":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgCombineWithCallback:Object","ArgJSONString","ArgCombineWithCallback:bdboxURL","CheckURL","CallMethodByUserArgs:callback"],"method.url":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgFuncArgDecode:JSON","ArgFuncEncode","ArgsEncodeToJSONExceptString","ArgCombineWithCallback:URL","CheckURL","CallMethodByUserArgs:callback"],"method.openSwan":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgsEncodeToJSONExceptString","SwanSchemeCombine","CheckURL","CallMethodByUserArgs:callback"],"iframe.openSwan":["CheckDisabledAPI","ArgCheckWithCallback","RegisterCallbacks","ArgsEncodeToJSONExceptString","SwanSchemeCombine","CheckURL","CallIframe"]};var nt=!1;function rt(){return nt}var it=!1;function at(){return it}function st(e){if("undefined"==typeof _na||null===_na||!_na.getAPIs)return pe("端描述表开关已关闭"),[];pe("端描述表开关已打开, 端上会注入描述表, 但如果此时同时引入了兜底描述表, 则会被兜底描述表覆盖,目前矩阵(lite、tomas、青春版)产品属于该种情况");var t,n,r=[],i=[],a={},s=0;do{var o=e.invokeAPI(et,[s]);if(!o){var c={name:"NoNaDescription",api:"na.getAPIs",message:"_na.getAPIs("+s+") return "+o};c=Je(c),$e.push({name:"error:no-na-desc",error:c});break}var l=o.totalSlices,h=o.descriptions;a=o.defaults,n=l,s++,r=r.concat(h)}while(s<n);if(r=function(e,t){return 1===e.length?[]:e.map((function(e){for(var n in t)t.hasOwnProperty(n)&&(e[n]=e[n]||t[n]);return e}))}(r,a),nt=0!==r.length,_na&&_na.getAmendAPIs){var u=_na.getAmendAPIs();if(u&&"string"==typeof u)try{i=JSON.parse(u)}catch(f){console.error(f)}else Array.isArray(u)&&(i=u);if(i&&i.length>0){it=!0;var p={};i.forEach((function(e){p[e.name]=e}));for(var d=r.length-1;d>=0;d--)p[r[d].name]&&r.splice(d,1)}}return function(e){for(var t=e.length-1;t>=0;t--){var n=Object.keys(e[t]);1===n.length&&"name"===n[0]&&e.splice(t,1)}}(t=r.concat(i)),t}function ot(e){var t={appType:Le,adaptAppType:Me,realAppVersion:Ue,appVersion:Fe};return e.filter((function(e){return lt(e,t)}))}function ct(e,t){return e&&e[t]&&e[t][Be]}function lt(e,t){void 0===t&&(t={appType:Le,adaptAppType:Me,realAppVersion:Ue,appVersion:Fe});var n=t.realAppVersion,r=t.appVersion,i=function(e,t){var n=t.appType,r=t.adaptAppType,i=ct(e,n);if(i||!1===i)return{isAdapted:!1,startedVersion:i};var a=ct(e,r);return a?{isAdapted:!0,startedVersion:a}:{isAdapted:!1,startedVersion:de}}(e.env,t),a=i.isAdapted,s=i.startedVersion;if(!s)return!1;var o=a?r:n;return!!o&&fe(o,s)>=0}function ht(e){var t=function(e){var t=we?e.ios:e.android;return t&&t.length>0?ot(t):[]}(e),n=function(e){return ot((we?e.iosCompatibility:e.androidCompatibility)||[])}(e);return t.concat(n)}function ut(){return{status:0,message:"success: NA 无返回信息,默认成功"}}var pt={"feed.updateFavorInfo":ut,"hybrid.reliabilityLog":ut,"feed.showDislike":ut,"easyBrowser.open":ut,"account.login":function(e){return e.data?{status:"1"===e.data.status?0:1,message:"1"===e.data.status?"login success":"login fail"}:e},"device.getCUID":function(e){if(e&&0===e.result)return{status:0,message:"success",data:{unique_id:e.unique_id}};if(e&&0===e.error)return{status:0,message:"success",data:{unique_id:e.result}};if((_e||xe)&&(fe(Fe,"7.4")>=0||!Pe)){var t=e&&e.length>0;return{status:t?0:1,message:t?"success":"fail",data:t?{unique_id:e}:{}}}if(_e&&fe(Fe,"7.4")<0||we&&fe(Fe,"8.4")<0){var n=_e?document.cookie.match(/BAIDUCUID=(.+?);/):me.match(/baiduboxapp\/.*\/(\w+)\/\d/),r=n?n[1]:"";return{status:r?0:1,message:r?"success":"fail",data:r?{unique_id:r}:{}}}return e},"device.getDeviceInfo":function(e){return e.data&&e.data.netInfo&&e.data.netInfo.network&&("1_0"===e.data.netInfo.network||"Wifi"===e.data.netInfo.network)?e.data.networkType="wifi":e.data.networkType="unknown",e},"feed.getSessionClickID":function(e){return{status:+e.status,message:e.message||"",data:e.data&&e.data.params||e.params||{}}},"easyBrowser.performanceFlowLog":function(e){return _e||xe?{status:+e.status,message:e.message||""}:e},"easyBrowser.request":function(e){return xe?e:(t=e&&e.data&&"1"===e.errno?we?JSON.parse(decodeURIComponent(e.data)):JSON.parse(e.data):e.data,{status:"1"===e.errno?0:"0"===e.errno?1:parseInt(e.errno,10),message:e.message||("1"===e.errno?"success":"fail"),data:t||{}});var t},"easyBrowser.webStorage":function(e){return we&&0===e.result?{status:0,message:e.message||e.errmsg,data:e.data}:e},"device.getCurrentLocation":function(e){if(we)return{status:e.result||e.status,message:e.message||(0===e.result?"success":"fail"),data:e.coords||e.data};if(_e||xe){var t=e.st,n=e;return delete n.st,{status:t,message:e.message||(0===t?"success":"fail"),data:n}}return e},"feed.isWebPSupported":function(e){return(_e||xe)&&(e.data=e.result),e}};function dt(e,t){var n;try{n="string"==typeof e?JSON.parse(e):e}catch(a){n=e}switch(Object.keys(pt).indexOf(t)>-1&&(n=pt[t](n)),typeof n){case"undefined":return{status:1,message:"fail: na 返回值为 undefined"};case"boolean":return{status:n?0:1,message:n?"success":"fail"};case"number":return{status:n,message:0==+n?"success":"fail"};case"string":return{status:0,message:"success",data:n};case"object":if(null===n)return{status:1,message:"fail: NA 返回信息为 null"};var r=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&"errno"!==n&&"errmsg"!==n&&"status"!==n&&"message"!==n&&"result"!==n&&(t[n]=e[n]);return t}(n);if(null!=n.errno){var i=parseInt(n.errno,10);return{status:1===i?0:0===i?1:i,message:n.errmsg||1===i?"success":"fail",data:n.data||r}}return null!=n.status?{status:+n.status,message:n.message||(0==+n.status?"success":"fail"),data:n.data||r}:null!=n.result?{status:n.result,message:0===n.result?"success":"fail",data:n.data||r}:{status:0,message:"success",data:n}}return n}var ft=1,vt=function(e,t){ce[e]=t};function mt(){return"__boxx_"+ft++}var gt,yt=[],bt="function"==typeof Promise&&/native code/.test(Promise);function wt(e,t){if(t&&(e=e.bind(t)),yt.push(e),!gt)if(gt=function(){var e=yt.slice(0);yt=[],gt=null;for(var t=0,n=e.length;t<n;t++)e[t]()},"function"==typeof setImmediate)setImmediate(gt);else if("function"==typeof MessageChannel){var n=new MessageChannel,r=n.port2;n.port1.onmessage=gt,r.postMessage(1)}else bt?Promise.resolve().then(gt):setTimeout(gt,0)}var _t=new Set;function xt(e){for(var t=0;t<e.length;t++)_t.add(e[t])}function Ct(e){for(var t=0;t<e.length;t++)_t["delete"](e[t])}function Nt(e){return _t.has(e)}var kt=!1,St=0;function Et(e){return e}function At(e,t){for(var n=0,r=e&&e.length||0;n<r&&!1!==t(e[n],n);n++);}function Ot(e,t){return e+t.authority+t.path}function It(e){var t="";if(e.query){var n=[];for(var r in e.query)e.query.hasOwnProperty(r)&&n.push(r+"="+e.query[r]);t=n.join("&")}return t}function Pt(e,t){var n=[];if(t.argQueryList){var r=e?JSON.parse(e):[];t.argQueryList.forEach((function(e){if(r[e]){var t="string"==typeof r[e]?r[e]:JSON.stringify(r[e]);n.push(e+"="+encodeURIComponent(t))}}))}return n.join("&")}function Dt(e,t){if(t=Tt(t),null==e)return t.isRequired&&"*"!==t.type?1:0;var n=!1;switch(typeof t.type){case"string":switch(t.type){case"string":case"boolean":case"number":case"function":case"object":n=typeof e===t.type;break;case"Object":n="object"==typeof e;break;case"Array":n=e instanceof Array;break;case"*":n=!0}if(!n)return 2;break;case"object":if(e&&"object"==typeof e)for(var r in n=!0,t.type)if(!(n=!Dt(e[r],t.type[r])))break;if(!n)return 2;break;default:if(t.oneOf){if(At(t.oneOf,(function(t){return!(n=t===e)})),!n)return 3}else if(t.oneOfType){if(At(t.oneOfType,(function(t){return!(n=!Dt(e,t))})),!n)return 4}else if(t.arrayOf){if(!(e instanceof Array))return 2;if(n=!0,At(e,(function(e){return n=!Dt(e,t.arrayOf)})),!n)return 5}}return 0}function Tt(e){if("string"==typeof e){var t={isRequired:!0};return/=$/.test(e)&&(t.isRequired=!1,e=e.slice(0,e.length-1)),/\[\]$/.test(e)?t.arrayOf=e.slice(0,e.length-2):e.indexOf("|")>0?t.oneOfType=e.split("|"):t.type="eventFunction"===e?"function":e,t}return e}function Rt(e,t,n){t=t.concat([{name:"success",value:"function="},{name:"fail",value:"function="}]);var r=e&&e.length,i=r>0?e[r-1]&&e[r-1].skipCheckArgs:0;1===i&&e.pop(),r=e&&e.length,1===(St=r>0?e[r-1]&&e[r-1].useLocationHrefMethod:0)&&e.pop(),At(t,(function(t,r){var a="",s=Tt(t.value);switch(Dt(e[r],s)){case 1:a=" is required.";break;case 2:a=" type error. must be "+JSON.stringify(s.type||"Array");break;case 3:a=" type error, must be oneOf "+JSON.stringify(s.oneOf);break;case 4:a=" type error, must be oneOfType "+JSON.stringify(s.oneOfType);break;case 5:a=" type error, must be arrayOf "+JSON.stringify(s.arrayOf)}if(a){var o=n&&n.options.errorTitle||"jsNative",c=new Error("["+o+" Argument Error]"+t.name+a);if(1!==i)throw c;Qe.emit("error: argument-error",c)}}))}function jt(e,t){var n={};return At(t,(function(t,r){var i=e[r];null!=i&&(n[t.name]=i)})),n}var Lt={CheckDisabledAPI:function(e){return function(t){var n=e.name;if(Nt(n))throw new Error("[boxx Disabled API]"+n+" is disabled.");return t}},ArgCheckWithCallback:function(e,t,n){return function(t){return Rt(t,e.args,n),t}},ArgsEncodeToJSONExceptString:function(){return function(e){return At(e,(function(t,n){"object"==typeof t&&(e[n]=JSON.stringify(t))})),e}},RegisterCallbacks:function(e){var t=e.name;return function(n){var r=n.pop(),i=n.pop();if(e.nextCallback){var a=function(e,t){var n=t.success,r=t.fail;return function(t){0==+(t=dt(t,e)).status?n&&n(t):r&&r(t)}}(t,{success:i,fail:r}),s=mt();vt(s,a),n.push(s)}var o=mt(),c=function(e,t,n){var r=t.success,i=t.fail;return function(t){t=dt(t,e),n||(0==+t.status?r&&r(t):i&&i(t))}}(e.name,{success:i,fail:r},!!e.nextCallback);return vt(o,c),n.push(o),n}},ArgCombineWithCallback:function(e,t){var n=Ie+"://";switch(t){case"bdboxURL":return function(t){var r=t[0],i=t[1],a=Ot(n,e),s=It(e),o=Pt(r,e),c=function(e,t){if(e&&Array.isArray(t.argQueryList)){var n=JSON.parse(e);t.argQueryList.forEach((function(e){n[e]&&delete n[e]})),e=JSON.stringify(n)}var r=t.paramsName||"params";return e?r+"="+encodeURIComponent(e):""}(r,e),l=a+"?"+[c,s,o,(e.callbackName||e.callback||"callback")+"="+i].filter((function(e){return""!==e})).join("&");return console.log("scheme URL::: ",l),l};case"URL":return function(t){var r=Ot(n,e),i=It(e),a=Pt(t,e),s=(e.callbackName||e.callback||"callback")+"="+t.pop(),o=e.nextCallback?e.nextCallback+"="+t.pop():"",c=function(e,t){var n="";if(t.args&&t.args.length>0){var r=[];At(t.args,(function(t,n){var i=e[n];null!=i&&r.push(t.name+"="+encodeURIComponent(i))})),n=r.length>=0?r.join("&"):""}return n}(t,e),l=r+"?"+[c,o,i,a,s].filter((function(e){return""!==e})).join("&");return console.log("scheme URL::: ",l),l};case"Object":return function(t){var n=e.args,r=t.pop();return e.nextCallback&&(n=n.concat([{name:e.nextCallback,value:"string"}])),0===n.length?[undefined,r]:[jt(t,n),r]};case"JSONString":return function(t){var n=t.pop(),r=e.args;return e.nextCallback&&(r=r.concat([{name:e.nextCallback,value:"string"}])),0===r.length?[undefined,n]:[JSON.stringify(jt(t,r)),n]}}return Et},ArgJSONString:function(){return function(e){var t=e[0],n=e[1];return[JSON.stringify(t),n]}},CallMethodByUserArgs:function(e,t){var n,r;function i(t){!function(){if(!n){var t=e.method.split("."),i=t.length-1;r=t[i],n=ce;for(var a=0;a<i;a++)n=n[t[a]]}}();var i,a=n&&n[r];if(_e&&Pe&&!a&&fe(Ue,"12.0")<0)return function(e,t){var n=e.method.split("."),r=t||[];e.args&&0!==e.args.length||(r=r.slice(1));var i={obj:n[0],func:n.slice(1).join("."),args:Array.isArray(r)?r:[r]};return pe("window.prompt BdboxApp:"+JSON.stringify(i)),window.prompt("BdboxApp:"+JSON.stringify(i))}(e,t);if(!a)return function(){if(!kt){kt=!0;var t=[0,0,0,0];_e&&(window.Bdbox_android_common?window.Bdbox_android_common.setQuery||(t[0]=2):t[0]=1,window.Bdbox_android_jsbridge?window.Bdbox_android_jsbridge.dispatch||(t[1]=2):t[1]=1),xe&&(window.Bdbox_harmonyos_jsbridge?window.Bdbox_harmonyos_jsbridge.dispatch||(t[1]=2):t[1]=1),window._na?window._na.getAPIs?window._na.getAPIs(0)||(t[2]=3):t[2]=2:t[2]=1,window.chrome&&(t[3]=1);var n="";try{var r=(n=localStorage.getItem("methodInfo")||"")?n.split("|"):[],i=t.join(",");-1===r.indexOf(i)&&(r.push(i),n=r.join("|"),localStorage.setItem("methodInfo",n))}catch(s){}var a={name:"MethodUndefined",message:"Method undefined",method:e.method,info:t,ls:n};Qe.emit("error:method-undefined",a)}}(),_e&&1===St&&location&&"string"==typeof t&&(location.href=t),"";if(i=t,"[object Array]"!==Object.prototype.toString.call(i))return pe(e.method+"("+JSON.stringify(t)+")"),n[r](t);switch(t[0]===undefined&&t.shift(),pe(e.method+"("+JSON.stringify(t)+")"),t.length){case 0:return n[r]();case 1:return n[r](t[0]);case 2:return n[r](t[0],t[1]);case 3:return n[r](t[0],t[1],t[2]);default:return n[r].apply(n,t)}}switch(t){case"callback":default:return function(e){return i(e)};case"noCallback":return function(e){var t=e.pop(),n=i(e);wt((function(){ce[t](n)}))}}},CheckURL:function(){return function(e){try{pe("schema:",e);var t=e.length;t>15360&&Qe.emit("error:url-too-long",{name:"URLTooLong",message:"The url is too long",length:t,url:e});var n=/(NaN|null|undefined)/.exec(e);n&&Qe.emit("error:url-include-unexpected-keyword",{name:"URLError",message:"The url include an unexpected keyword",keyword:n[0],url:e})}catch(r){}return e}},SwanSchemeCombine:function(e){var t=Ie+"://";return function(n){var r=n[0],i=n[1]||"";0!==i.indexOf("/")&&(pe("xcx_path: "+i+" 必须是/开头"),i="/"===r.substr(r.length-1,1)?i:"/"+i);var a={},s=!0;try{a=n[2]&&JSON.parse(n[2])||{}}catch(d){if(n[2]&&"string"==typeof n[2])s=!1,n[2].split("&").forEach((function(e){var t=e.split("="),n=t[0],r=t[1];a[n]=r}));else"[object Object]"===Object.prototype.toString.call(n[2])&&(a=n[2])}n[0]=undefined,n[1]=undefined,n[2]=undefined;var o=(e.callbackName||e.callback||"callback")+"="+n.pop(),c=e.nextCallback?e.nextCallback+"="+n.pop():"",l=t+e.authority+"/"+r+i,h=It(e),u=function(e,t,n,r){var i=Object.keys(n).map((function(e){return e+"="+(r?encodeURIComponent(n[e]):n[e])}));return t.args&&t.args.length>0&&At(t.args,(function(t,n){var r=e[n];null!=r&&i.push(t.name+"="+encodeURIComponent(r))})),i.length>=0?i.join("&"):""}(n,e,a,s),p=l+"?"+[u,c,h,o].filter((function(e){return""!==e})).join("&");return console.log("scheme URL::: ",p),p}}},Mt=1,Bt="__boxx_event_";function Ut(e){var t=Bt+Mt++;return ce[t]=function(t,n){e(t,n)},t}function Ft(e,t){return _e||xe?t.jscallback?e.page===t.page&&e.action===t.action&&e.fn===t.jscallback:e.page===t.page&&e.action===t.action:t.jscallback?e.action===t.action&&e.fn===t.jscallback:e.action===t.action}var Jt=[];function zt(e){return!Jt.some((function(t){return e===t.fn}))}function qt(e,t){if("event.on"===e){var n;if("string"==typeof t.jscallback)return t;for(var r,i=!0,a=!0,s=Jt.length;s--;){if(Ft(r=Jt[s],t)){n=r.fnString,a=!1,i=!1;break}if(r.fn===t.jscallback){n=r.fnString,a=!1,i=!0;break}}a&&(n=Ut(t.jscallback)),i&&Jt.push({page:t.page,action:t.action,fn:t.jscallback,fnString:n});var o={page:t.page,action:t.action,jscallback:n,rnmsg:t.rnmsg,allowDuplicate:t.allowDuplicate};return t.useGlobalBoxEvent&&(o.useGlobalBoxEvent=!0),t.success&&(o.success=t.success),t.fail&&(o.fail=t.fail),o}if("event.off"===e){var c=t.jscallback;if(!c||"string"==typeof c)return t;for(var l=!1,h=Jt.length;h--;){var u=Jt[h];if(Ft(u,t)){Jt.splice(h,1),zt(u.fn)&&delete ce[u.fnString];var p={page:t.page,action:t.action,rnmsg:t.rnmsg,jscallback:u.fnString};return t.success&&(p.success=t.success),t.fail&&(p.fail=t.fail),l=!0,p}}if(!l)return console.error("error:尝试移除一个未被注册的事件函数"),wt((function(){t.fail&&t.fail({status:1,message:"removes a function that has not be registered"})})),delete t.jscallback,t}return t}var $t={},Ht={fire:function(e,t){var n=$t[e],r=0;if(n){var i=[].slice.call(arguments,0);i=i.length>2?i.splice(2,i.length-1):[],i=[e,t].concat(i),r=n.length;for(var a=0;a<r;a++){var s=n[a];s&&s.callback&&(i=i.concat(s.args),s.callback.apply(s.scope,i))}}return this},on:function(e,t,n){e=e||[];var r=[].slice.call(arguments);"string"==typeof e&&(e=e.split(","));var i=e.length;if(0===i)return this;r=r.length>3?r.splice(3,r.length-1):[];for(var a=0;a<i;a++){var s=e[a];$t[s]=$t[s]||[],$t[s].push({callback:t,scope:n,args:r})}return this},off:function(e,t,n){var r=$t[e];if(!r)return this;if(t){for(var i=r.length,a=[],s=0;s<i;s++){var o=r[s];o.callback===t&&o.scope===n||a.push(o)}$t[e]=a}else r.length=0;return this},removeAll:function(){return $t={},this}},Vt={"search.setQuery":function(e,t){var n=Ze.apis[Ze.apiIndex[t]].authority;return(xe||_e)&&"searchframe"===n?(e.history=Boolean(e.history),e={searchType:JSON.stringify(e)}):we&&(e.history=Number(e.history)),e},"account.openLoginDialog":function(e){return e.third_login=e.showThirdLogin,e.login_type=e.loginType,e},"app.feedback":function(e){return(_e||xe)&&(e.type=e.type||"2"),e},"easyBrowser.request":function(e){return e.header=e.header||{},e.data=e.data||{},_e||xe?(e.header=JSON.stringify(e.header),e.data=JSON.stringify(e.data),e):e},"commonUI.showToastOld":function(e){return(e=e||{}).string=e.message,e},"easyBrowser.onPerformanceFlowEvent":function(e){return _e&&(e.min_v="16789504"),e},"easyBrowser.openHybrid":function(e){return(e=e||{}).type="Hybrid",e.backup&&e.backup.url&&(e.backup.url=encodeURIComponent(e.backup.url)),e},"easyBrowser.openHybridOld":function(e){if(e=e||{},_e){var t=e.backup&&e.backup.url||"",n=e.style&&e.style.toolbaricons&&e.style.toolbaricons.tids||"";return{intent:"intent:#Intent;"+["S.backup="+JSON.stringify({url:encodeURIComponent(t)}),"component=com.baidu.searchbox/.home.feed.FeedDetailActivity","S.toolbaricons="+encodeURIComponent(JSON.stringify({toolids:n})),"S.menumode="+(e.menumode||"")].join(";")+";end",min_v:e.min_v||"16783629",mode:"0"}}if(we){var r=e.style&&e.style.toolbaricons&&e.style.toolbaricons.tids||"";if(e.toolbar=JSON.stringify({toolids:r}),e.type="Hybrid",e.openurl=encodeURIComponent(e.url),e.isla=e.isla,e.minver="5.3.0.0",e.opentype=1,e.append=0,e.rbtnstyle=2,e.style&&"object"==typeof e.style){var i=e.style;for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a]);delete e.style}return e}return e},"device.getDeviceInfo":function(e){return e.keys=e.keys||["netInfo","screenInfo"],e},"event.on":function(e){return"globalSettingChange"===(e=qt("event.on",e)).action||e.useGlobalBoxEvent?(window._Box_||(window._Box_={}),window._Box_.event||(window._Box_.event={}),window._Box_.event.broadcast||(window._Box_.event.broadcast=Ht),void Ht.on(e.action,e.jscallback?window[e.jscallback]:function(){})):e},"event.off":function(e){if("globalSettingChange"!==e.action&&!e.useGlobalBoxEvent)return e=qt("event.off",e);Ht.off(e.action)}};function Wt(e,t,n,r,i,a){function s(e,n){if(n.api=t,!n.stack){var r=new Error(n.message||"[Invoke Error]");n.stack=r.stack}Je(n),n.needDelayEmit?n.delayEmitCallback=function(){delete n.needDelayEmit,delete n.delayEmitCallback,i.emit(e,n)}:i.emit(e,n)}try{i.emit("invoke:start",Je({api:t,args:n}));var o=function(e,t){return Object.keys(Vt).indexOf(t)>-1?Vt[t](e,t):e}(n,t),c=function(e,t){var n=[],r=t.concat([{name:"success",value:"function="},{name:"fail",value:"function="}]);return e&&r.length>0&&(n=r.map((function(t){return e[t.name]}))),e&&1===e.useLocationHrefMethod&&n.push({useLocationHrefMethod:1}),e&&1===e.skipCheckArgs&&n.push({skipCheckArgs:1}),n}(o,r);if(["event.on","event.off"].includes(t)&&n.useGlobalBoxEvent)return;Qe.on("error:*",s),e.invoke(t,c),Qe.off("error:*",s)}catch(d){Qe.off("error:*",s);var l=d,h="unknown",u=d.message||"";if(/^\[.+? Argument Error\]/.test(u)){h="arg-invalid";var p=u.split("]")[1].split(" ")[0];l={name:"ArgInvalidError",message:u,stack:d.stack,arg:p}}try{l.api=t}catch(f){}if(Je(l),i.emit("error:"+h,l),a)throw d}}var Gt=function(e,t){return function(n,r){pe("搜索禁止使用 call 方法调用端能力,请先判断canIuse之后使用语义化 api 调用");var i=e.apiIndex[n];if(i!==undefined){var a=e.apis[i];Wt(e,n,r,a.args,t,!1)}else{var s="暂不支持 API: ["+n+"]",o=new Error(s);t.emit("error:api-missed",Je({name:"APIMissedError",api:n,message:s,stack:o.stack}))}}},Qt=function(e,t,n){return function(r){Wt(e,t.name,r,t.args,n,!0)}};function Kt(e,t,n,r,i){if(n.indexOf(".")>0){for(var a=n.split("."),s=e,o=0,c=a.length-1;o<c;o++){var l=a[o];s[l]=s[l]||{},s=s[l]}s[a[o]]=Qt(t,r,i)}else e[n]=Qt(t,r,i)}var Yt=function(e,t,n){for(var r=t.apis,i=0,a=r.length;i<a;i++){var s=r[i];s.name&&Kt(e,t,s.name,s,n)}};var Xt={"account.login":"account.openLoginDialog","album.image.open":"album.image.openOld","commonUI.closeLoading":"commonUI.closeLoadingOld","commonUI.showToast":"commonUI.showToastOld","easyBrowser.openHybrid":"easyBrowser.openHybridOld","easyBrowser.performanceFlowLog":"easyBrowser.onPerformanceFlowEvent","device.getNetworkType":"device.getDeviceInfo"};function Zt(e,t){if(t.indexOf(".")>0){for(var n=t.split("."),r=e,i=0,a=n.length-1;i<a;i++){var s=n[i];r[s]=r[s]||{},r=r[s]}return{methodOwner:r,methodName:n[i]}}return{methodOwner:e,methodName:t}}function en(e,t){!function(e){e.invoke=tt[e.invoke]||e.invoke,e.path=e.path||""}(t),t.invoke?e.add(t):console.warn("[boxx] must specify right invoke type in description")}function tn(e,t,n){for(var r=0;r<t.length;r++)n&&!lt(t[r])||en(e,t[r])}function nn(e){if(e&&Object.keys(e).length>0){var t=ht(e);tn(Ze,t,!0),this.hasDefaultDescription=!0}Yt(this,Ze,We),function(e){for(var t in Xt)if(Xt.hasOwnProperty(t))if(!e.canIUse(t)&&e.canIUse(Xt[t])){var n=Zt(e,t),r=Zt(e,Xt[t]);n.methodOwner[n.methodName]=r.methodOwner[r.methodName],delete r.methodOwner[r.methodName]}else if(e.canIUse(t)&&e.canIUse(Xt[t])){var i=Zt(e,Xt[t]);delete i.methodOwner[i.methodName]}}(this)}function rn(e){!e&&Ze.apis.length>0||(an(),this.hasNADescription=rt(),this.hasAmendDescription=at())}function an(){var e=st(Ze);tn(Ze,e)}function sn(e){this.hasDefaultDescription&&!e||on(this)}function on(e){var t={};try{t=document&&document.querySelectorAll("[data-for=boxx-description]")&&document.querySelectorAll("[data-for=boxx-description]")[0]&&document.querySelectorAll("[data-for=boxx-description]")[0].innerHTML&&JSON.parse(document.querySelectorAll("[data-for=boxx-description]")[0].innerHTML)||{},Object.keys(t).length>0?ze(!0):ze(!1)}catch(n){t={},console.error(n)}e.setDefaultDescription(t)}function cn(){var e={};return e.env=qe,e.canIUse=function(e){return function(t,n){return!(2===arguments.length&&!n||Nt(t))&&e.apiIndex[t]>-1}}(Ze),e.call=Gt(Ze,We),e.hasDefaultDescription=!1,e.refreshDefaultDescriptions=sn.bind(e),e.setDefaultDescription=nn.bind(e),e.on=We.on,e.off=We.off,e.once=We.once,e.triggerCachedEvent=Ge,e.hasNADescription=!1,e.hasAmendDescription=!1,e.setDebug=ue,e.refreshNaDescriptions=rn.bind(e),e.disableAPIs=xt,e.enableAPIs=Ct,e}var ln=function(e){void 0===e&&(e=Ze),function(e){for(var t in Lt)if(Lt.hasOwnProperty(t))try{e.addProcessorCreator(t,Lt[t])}catch(n){}}(e),Oe&&tn(Ze,Ke),an();var t=cn();return t.hasNADescription=rt(),t.hasAmendDescription=at(),on(t),t}();function hn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return e.apply(void 0,t)}catch(r){if(t[0]&&t[0].fail&&"function"==typeof t[0].fail)return void(t[0]&&t[0].fail&&t[0].fail(r));console.error(r)}}}var un=function(){function e(e){this.localDescription=e,this.APIDescriptionMap={},this.APIContainer={canIUse:this.generateCanIUse()},this.generateAPIs(this.localDescription)}return e.prototype.generateSingleAPI=function(e){var t=e.boxxName,n=e.method;if(t&&!ln.canIUse(t))return null;if(!t&&!n)return console.warn("Warning: No method found for ".concat(t," in boxx.")),null;if(n)return hn(n);for(var r=t.split("."),i=r.length,a=ln,s=0;s<i;s++)a=a[r[s]];return hn(a)},e.prototype.mountAPI=function(e,t){var n=e.name;if(!n||!t)return!1;for(var r=n.split("."),i=this.APIContainer,a=this.APIDescriptionMap,s=0;s<r.length-1;s++)i[r[s]]||(i[r[s]]={},a[r[s]]={}),i=i[r[s]],a=a[r[s]];return i[r[r.length-1]]=t,a[r[r.length-1]]=e,!0},e.prototype.generateAPIs=function(e){var t=this;return e.forEach((function(e){t.mountAPI(e,t.generateSingleAPI(e))})),this.APIContainer},e.prototype.extendAPIs=function(e){var t=this;e.forEach((function(e){if(!t.mountAPI(e,t.generateSingleAPI(e)))throw new Error("Error: ".concat(e.name," can't be extended."))}))},e.prototype.generateCanIUse=function(){return function(e){for(var t=e.split("."),n=this.APIDescriptionMap,r=0,i=t;r<i.length;r++){var a=i[r];if(!n[a])return!1;n=n[a]}return!0}.bind(this)},e}(),pn=function(e,t){return pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},pn(e,t)};"function"==typeof SuppressedError&&SuppressedError;var dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.initData=function(){return{showViewer:!1,imageWidth:"480px",imageSrc:""}},t.prototype.openViewer=function(e){var t=e.imgUrl,n=e.platform;this.data.set("imageSrc",t);var r="pc"===n?"480px":"100%";this.data.set("imageWidth",r),this.data.set("showViewer",!0)},t.prototype.closeViewer=function(){this.data.set("showViewer",!1)},t.template='\n <div class="search-core-image-viewer" s-show="showViewer">\n <img\n src="https://gips2.baidu.com/it/u=1058078951,546062564&fm=3028&app=3028&f=PNG&fmt=auto&q=75&size=f200_200"\n class="close-viewer"\n on-click="closeViewer"\n />\n <div class="viewer-content" style="width:{{imageWidth}}">\n <img src="{{imageSrc}}" />\n </div>\n <div class="mask" on-click="closeViewer"></div>\n </div>\n ',t}(re.Component);var fn,vn,mn=(fn="pc",vn=null,function(e){if(e===undefined||null==e)throw Error("params urls is required");var t=0;if(e.current){var n=e.urls.indexOf(e.current);-1!==n&&(t=n)}var r=e.urls[t];e.images&&e.images[t].origin_url&&(r=e.images[t].origin_url),vn||(vn=new dn).attach(document.body),vn.openViewer({imgUrl:r,platform:fn})});function gn(e){window.open(e.url,"_blank")}var yn=+"".concat(Date.now()).slice(-3);function bn(){return"__search_base_api_cb__".concat(yn++)}var wn="//api.map.baidu.com/api?v=1.0&type=webgl&ak=SmruYyth2u3wkDxBb3eIMuHGOwq9V8hx",_n=!0;var xn,Cn,Nn,kn,Sn,En=[{name:"previewImage",method:mn},{name:"openWebview",method:gn},{name:"createElement",method:function(e){return document.createElement(e)}},{name:"getEcharts",method:function(e){try{window.require(["https://psstatic.cdn.bcebos.com/basics/aichat/echarts_1695891551000"],(function(t){e&&e.success&&e.success({echarts:t})}))}catch(t){e&&e.fail&&e.fail({message:"Echarts load failed"})}}},{name:"getBMapGL",method:function(e){_n?new Promise((function(e){var t=window.define.amd;window.define.amd=undefined;var n=bn();window[n]=function(){delete window[n],window.define.amd=t,e(window.BMapGL)};var r=document.createElement("script");r.setAttribute("src","".concat(wn,"&callback=").concat(n)),document.body.appendChild(r)})).then((function(t){_n=!1,e&&e.success&&e.success({BMapGL:t})}))["catch"]((function(){e&&e.fail&&e.fail({message:"BDMap load failed"})})):e&&e.success&&e.success({BMapGL:window.BMapGL})}}],An=(xn={},Cn={canIUse:function(e){return!!xn[e]}},[{path:"easyBrowser.open",method:gn}].forEach((function(e){!function(e){for(var t=e.path,n=e.method,r=t.split("."),i=r.length,a=Cn,s=0;s<i-1;s++)a[r[s]]=a[r[s]]||{},a=a[r[s]];a[r[i-1]]=n}(e),xn[e.path]=e})),Cn),On=new un(En),In={boxx:An,extendAPIFactory:On.extendAPIs.bind(On),botAPI:On.APIContainer},Pn=In.boxx,Dn=In.extendAPIFactory,Tn=In.botAPI,Rn=function(){function e(e,t){var n=this;this.eventInfoList=[],this.eventName=e.name,this.action=t,this.listener=function(e,t){var r="string"==typeof t?n.safetyAnalysis(t).data||{}:n.safetyAnalysis(JSON.stringify(t.data))||{};n.eventInfoList.forEach((function(e){n.eventName===r.name&&e.jsEmitter.emit(Object.assign({},r))}))}}return e.prototype.naEventEmit=function(e){Pn.canIUse("event.emit")&&Pn.event.emit({action:this.action,data:JSON.stringify(this.combineFormatProtocol(e))})},e.prototype.naEventOn=function(){Pn.canIUse("event.on")&&Pn.event.on({action:this.action,jscallback:this.listener})},e.prototype.naEventOff=function(){Pn.canIUse("event.off")&&Pn.event.off({action:this.action})},e.prototype.addEventInfo=function(e,t){this.eventInfoList.push({naEventName:e,jsEmitter:t})},e.prototype.combineFormatProtocol=function(e){return{status:0,message:"success",data:{name:this.eventName,params:e}}},e.prototype.pureText=function(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t|\v/g,"")},e.prototype.parseText=function(e,t){var n='"('.concat(t,')":\\"(.*?)\\"(.*?)(').concat(',"conversationLogId|,"inputType|,"sa|,"searchTimeStamp|,"name|,"selected|,"location|,"direction|,"endIndex|,"startIndex|,"chars|,"selected|,"point|\\},|}]',")"),r=e.replace(new RegExp(n,"g"),(function(e,t,n,r,i){var a=e.slice(t.length+3,-1*i.length),s=a.lastIndexOf('"'),o=a.slice(1,s).replace(/"/g,'\\"');return'"'.concat(t,'":"').concat(o,'"').concat(a.slice(s+1)).concat(i)}));return JSON.parse(r)},e.prototype.safetyAnalysis=function(e){var t=this.pureText(e);try{return t&&JSON.parse(t)||{}}catch(n){return this.parseText(t,"query|words|selectedChars|char")}},e}(),jn={main:{na:"com.baidu.searchbox.aisearch",result:"com.baidu.searchbox.chatsearch"},searchcraft:{na:"com.baidu.searchbox.chatsearch"},bdhonorbrowser:{na:"com.baidu.searchbox.chatsearch"},searchcraftInMain:{na:"com.baidu.searchbox.chatsearch"},baiduboxapp:{na:"com.baidu.searchbox.aisearch"},lite:{na:"com.baidu.searchbox.aisearch",result:"com.baidu.searchbox.chatsearch"}},Ln=function(){function e(e){this.naEventListenerMap={},this.eventEmitterMap={},this.envType=e}return e.prototype.generateEmitMethod=function(e,t,n){var r=this.getNAEventName(n,t),i=this.getNAEventEmitter(e,r,n);return i.naEventEmit.bind(i)},e.prototype.generateOnOff=function(e,t,n){var r=this.getNAEventName(n,t),i=new ae(n),a=this.getNAEventEmitter(e,t,n);return this.makeNAEventListenerMap(r,i,a),{on:i.on.bind(i),off:i.off.bind(i)}},e.prototype.listenNAEvent=function(){var e=this;Object.keys(this.naEventListenerMap).forEach((function(t){e.naEventListenerMap[t].naEventOn()}))},e.prototype.dispose=function(){var e=this;Object.keys(this.naEventListenerMap).forEach((function(t){e.naEventListenerMap[t].naEventOff()})),this.naEventListenerMap={},this.eventEmitterMap={}},e.prototype.getNAEventEmitter=function(e,t,n){if(this.eventEmitterMap[e]&&this.eventEmitterMap[e][t])return this.eventEmitterMap[e][t];this.eventEmitterMap[e]||(this.eventEmitterMap[e]={});var r=n.eventType.type,i=Pn.env.boxType,a=jn[i];if(!a)throw new Error("[EventBus] PLATFORM_NA_EVENT_PREFIX not exist");var s=this.envType.actionPrefix||a[this.envType.pageType||""]||a[this.envType.platform],o="".concat(s,".").concat(e,".").concat(r).concat(this.envType.channelId?"."+this.envType.channelId:"");return this.eventEmitterMap[e][t]=new Rn(n,o),this.eventEmitterMap[e][t]},e.prototype.makeNAEventListenerMap=function(e,t,n){this.naEventListenerMap[e]||(this.naEventListenerMap[e]=n),this.naEventListenerMap[e].addEventInfo(e,t)},e.prototype.getNAEventName=function(e,t){return e.name||t},e}(),Mn=function(){function e(e,t){this.platformEventMap={},this.env=e||{},this.eventConfig=t||{},this.intraThreadChannel=new se,this.interThreadChannel=new Ln(this.env),this.generateFieldEventEmitter(),this.interThreadChannel.listenNAEvent()}return e.prototype.get=function(){return this.platformEventMap},e.prototype.dispose=function(){this.intraThreadChannel.dispose(),this.interThreadChannel.dispose(),this.intraThreadChannel=null,this.interThreadChannel=null,this.env=null,this.eventConfig=null,this.platformEventMap={}},e.prototype.isSelf=function(e){return"na"!==this.env.platform||(!e||this.env.type===e)},e.prototype.generateFieldEventEmitter=function(){var e=this;Object.entries(this.eventConfig).forEach((function(t){var n=t[0],r=t[1];e.platformEventMap[n]={},Object.entries(r).forEach((function(t){var r=t[0],i=t[1],a=(i=Object.assign({},i)).from,s=i.to,o=e.chooseEventBusChannel(s).generateEmitMethod(n,r,i),c=e.chooseEventBusChannel(a).generateOnOff(n,r,i),l=c.on,h=c.off;e.platformEventMap[n][r]={emit:e.isSelf(a)||s?o:null,on:l,off:h}}))}))},e.prototype.chooseEventBusChannel=function(e){return this.isSelf(e)?this.intraThreadChannel:this.interThreadChannel},e}();function Bn(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{c(r.next(e))}catch(t){a(t)}}function o(e){try{c(r["throw"](e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((r=r.apply(e,t||[])).next())}))}function Un(e,t){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),"throw":o(1),"return":o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(c){o=[6,c],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAIL=1]="FAIL"}(Nn||(Nn={})),function(e){e.LINK="external",e.INLINE="inline",e.JSON="json",e.CLASS="class"}(kn||(kn={})),function(e){e.SCRIPT="script",e.STYLE="style"}(Sn||(Sn={}));var Fn=0,Jn=function(){function e(e,t){this.cardResourceLoaded=!1,this.loadedResourceMap=new Map,this.resourceLoadedStatus=new Map,this.resourceLoadedQueue={},this.eslInstance=e,this.configMap=t}return e.prototype.csrRender=function(e,t,n,r,i){return Bn(this,void 0,void 0,(function(){var a,s,o,c,l,h;return Un(this,(function(u){switch(u.label){case 0:return a=t.js,s=t.moduleId,o=t.css,this.resourceLoaded(a)||this.addESLConfig(s,a),!o||this.resourceLoaded(o)?[3,2]:[4,this.loadRendererCssResource(o)];case 1:if((c=u.sent()).status===Nn.FAIL)return[2,{promise:new Promise((function(e,t){t(c)}))}];u.label=2;case 2:return"assistant"===e?(l=this.configMap.get("rendererMethod"),i&&(l=l.concat(i)),h="renderer_".concat(Fn++),[2,{promise:this.csrComponentRender(s,a,{data:n,rendererMethods:l,rendererId:h},r),rendererId:h}]):[2]}}))}))},e.prototype.ssrRender=function(e,t,n){return Bn(this,void 0,void 0,(function(){var r,i,a,s,o,c;return Un(this,(function(l){switch(l.label){case 0:return r=t.url,i=t.wiseEnv,a=this.getCardStaticResourceUrl(i),s="","card"!==e?[3,8]:(s="".concat(r,"&sa=chat_ala&data_type=json"),o={},c={},this.cardResourceLoaded?[3,5]:[4,this.loadStaticResource(a)]);case 1:return(o=l.sent()).status!==Nn.SUCCESS?[3,3]:[4,this.ssrCardRender(s,n)];case 2:return c=l.sent(),[3,4];case 3:return[2,Promise.reject(o)];case 4:return[3,7];case 5:return[4,this.ssrCardRender(s,n)];case 6:c=l.sent(),l.label=7;case 7:return c.status===Nn.SUCCESS?[2,Promise.resolve(c)]:[2,Promise.reject(c)];case 8:return[2]}}))}))},e.prototype.preloadCardStaticResource=function(e){return Bn(this,void 0,void 0,(function(){var t;return Un(this,(function(n){switch(n.label){case 0:return t=this.getCardStaticResourceUrl(e),{},[4,this.loadStaticResource(t)];case 1:return n.sent().status===Nn.SUCCESS?[2,Promise.resolve({status:Nn.SUCCESS,message:"卡片资源预加载成功"})]:[2,Promise.reject({status:Nn.FAIL,message:"卡片资源预加载失败"})]}}))}))},e.prototype.preloadStaticResource=function(e){return Bn(this,void 0,void 0,(function(){var t,n,r,i,a,s,o=this;return Un(this,(function(c){return t=e.moduleId,n=e.js,r=e.css,i=[],r&&!this.resourceLoaded(r)&&(a=new Promise((function(e,t){return Bn(o,void 0,void 0,(function(){return Un(this,(function(n){switch(n.label){case 0:return this.resourceLoadedQueue[r]=this.resourceLoadedQueue[r]||[],this.resourceLoadedQueue[r].push({resolve:e,reject:t}),"pending"===this.resourceLoadedStatus.get(r)?[3,2]:[4,this.loadRendererCssResource(r)];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))})),i.push(a)),this.resourceLoaded(n)||(s=new Promise((function(e,t){o.resourceLoadedQueue[n]=o.resourceLoadedQueue[n]||[],o.resourceLoadedQueue[n].push({resolve:e,reject:t})})),"pending"!==this.resourceLoadedStatus.get(n)&&this.loadRendererJsResource(t,n),i.push(s)),[2,Promise.all(i).then((function(){return{status:Nn.SUCCESS}}))]}))}))},e.prototype.loadRendererJsResource=function(e,t){var n=this;this.addESLConfig(e,t),this.resourceLoadedStatus.set(t,"pending"),this.eslInstance.loadPath(e,(function(){n.loadedResourceMap.set(t,t),n.resourceLoadedStatus.set(t,"fulfilled"),n.resourceLoadedQueue[t].forEach((function(e){(0,e.resolve)({status:Nn.SUCCESS})})),n.resourceLoadedQueue[t]=[]}))},e.prototype.loadRendererCssResource=function(e){return Bn(this,void 0,void 0,(function(){var t,n,r;return Un(this,(function(i){switch(i.label){case 0:this.resourceLoadedStatus.set(e,"pending"),t={type:kn.LINK,attr:{href:e,rel:"stylesheet",type:"text/css"}},n={},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.loadResource(t,Sn.STYLE)];case 2:return n=i.sent(),[3,4];case 3:return r=i.sent(),n=r,[3,4];case 4:return n.status===Nn.SUCCESS?(this.loadedResourceMap.set(e,e),this.resourceLoadedStatus.set(e,"fulfilled"),this.resourceLoadedQueue[e].forEach((function(e){(0,e.resolve)({status:Nn.SUCCESS})})),this.resourceLoadedQueue[e]=[]):(console.warn("style 资源加载失败"),this.resourceLoadedStatus.set(e,"rejected"),this.resourceLoadedQueue[e].forEach((function(e){(0,e.reject)({status:Nn.FAIL})})),this.resourceLoadedQueue[e]=[]),[2,n]}}))}))},e.prototype.loadStaticResource=function(e){return Bn(this,void 0,void 0,(function(){var t,n,r,i,a,s,o,c,l,h,u,p,d,f=this;return Un(this,(function(v){switch(v.label){case 0:t={},v.label=1;case 1:return v.trys.push([1,7,,8]),[4,fetch(e)];case 2:return 200!==(t=v.sent()).status?[3,6]:[4,t.json()];case 3:return n=v.sent(),r=n.scripts,i=n.moleculeScripts,a=n.styles,s=r.filter((function(e){var t;return null===(t=e.attr)||void 0===t?void 0:t.isDependency})),o=r.filter((function(e){var t;return!(null===(t=e.attr)||void 0===t?void 0:t.isDependency)})),c=o.concat(i),l=[],s.forEach((function(e){l.push(f.loadResource(e,Sn.SCRIPT))})),[4,Promise.all(l)];case 4:return h=v.sent(),h.find((function(e){return e.status===Nn.FAIL}))?[2,{status:Nn.FAIL,message:"卡片资源加载失败"}]:(u=[],c.forEach((function(e){u.push(f.loadResource(e,Sn.SCRIPT))})),a.forEach((function(e){"cosmicStyle"!==e.name&&u.push(f.loadResource(e,Sn.STYLE))})),[4,Promise.all(u)]);case 5:return p=v.sent(),console.log("~~~~~",p),p.find((function(e){return e.status===Nn.FAIL}))?[2,{status:Nn.FAIL,message:"卡片资源加载失败"}]:(this.setCardResourceState(!0),[2,{status:Nn.SUCCESS,message:"卡片资源加载成功"}]);case 6:return[2,{status:Nn.FAIL,message:"卡片资源请求失败"}];case 7:return d=v.sent(),console.log("err",d.message),[2,{status:Nn.FAIL,message:"卡片资源请求失败"}];case 8:return[2]}}))}))},e.prototype.setCardResourceState=function(e){this.cardResourceLoaded=e},e.prototype.resourceLoaded=function(e){return this.loadedResourceMap.has(e)},e.prototype.loadResource=function(e,t){return Bn(this,void 0,void 0,(function(){var n,r,i,a;return Un(this,(function(s){return n=e.attr||{},r=t===Sn.SCRIPT?"script":e.type===kn.LINK?"link":"style",i=document.createElement(r),a=t===Sn.SCRIPT?e.name:"stylesheet",[2,new Promise((function(r,s){var o;switch(e.type){case kn.LINK:i.addEventListener("load",(function(){console.log("load ".concat(a," ").concat(t)),r({name:a,status:Nn.SUCCESS})})),i.addEventListener("error",(function(){console.log("load ".concat(a," ").concat(t)),s({name:a,status:Nn.FAIL})}));break;case kn.INLINE:case kn.JSON:i.innerHTML=e.code,console.log("load ".concat(a," ").concat(t)),r({name:a,status:Nn.SUCCESS});break;case kn.CLASS:var c=null===(o=n["class"])||void 0===o?void 0:o.trim();c&&document.body.classList.add(c),r({name:a,status:Nn.SUCCESS})}e.type!==kn.CLASS&&Object.keys(n).forEach((function(t){i.setAttribute(t,e.attr[t])}));document.head.appendChild(i)}))]}))}))},e.prototype.csrComponentRender=function(e,t,n,r){var i=this;return new Promise((function(a){i.eslInstance.loadPath(e,(function(e){!i.resourceLoaded(t)&&i.loadedResourceMap.set(t,t);var s=new(e=i.injectRendererMethods(e))(n);s.attach(r),a(s)}))}))},e.prototype.ssrCardRender=function(e,t){return Bn(this,void 0,void 0,(function(){var n,r,i;return Un(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,fetch(e,{mode:"cors",credentials:"include"})];case 1:return[4,a.sent().json()];case 2:return(null==(n=a.sent())?void 0:n.singCardContent)?(r=document.createRange(),i=r.createContextualFragment(n.singCardContent),t.append(i),[2,{status:Nn.SUCCESS,message:"卡片渲染成功",singCardContent:n.singCardContent}]):[2,{status:Nn.FAIL,message:"卡片渲染失败"}];case 3:return a.sent(),[2,{status:Nn.FAIL,message:"卡片模板请求失败"}];case 4:return[2]}}))}))},e.prototype.injectRendererMethods=function(e){if(!e.initedConstruct){var t=e.prototype.construct;e.prototype.construct=function(e){if(t&&t(e),e.rendererMethods)for(var n=0,r=e.rendererMethods;n<r.length;n++){var i=r[n],a=i.name,s=i.method;this[a]=s}e.rendererId&&(this.__rendererId__=e.rendererId)},e.initedConstruct=!0}return e},e.prototype.addESLConfig=function(e,t){var n;this.eslInstance.addEslPath(((n={})[e]=t,n))},e.prototype.getCardStaticResourceUrl=function(e){var t="//m.baidu.com/searchframe?sa=chat_ala&data_type=json&source_type=list";return e&&(t="".concat(e,"/searchframe?sa=chat_ala&data_type=json&source_type=list")),t},e}(),zn=Jn;function qn(e){return"object"===(t=e,Object.prototype.toString.call(t).slice(8,-1).toLowerCase());var t}var $n=function(){function e(e){this.initEslConfig(e)}return e.prototype.initEslConfig=function(e){void 0===e&&(e="//ms.bdstatic.com"),window.require.config({baseUrl:e,waitSeconds:10})},e.prototype.addEslConfig=function(e){qn(e)&&window.require.config(e)},e.prototype.addEslPath=function(e){qn(e)&&window.require.config({paths:e})},e.prototype.loadPath=function(e,t){window.require(["".concat(e)],(function(e){t(e)}))},e.prototype.defineResource=function(e,t){window.define(e,t)},e}(),Hn=function(){function e(e){this.config=new Map,e&&(this.eslInstance=new $n(e),this.eslInstance.defineResource("san",ie),this.eslInstance.defineResource("@baidu/boxx",Pn))}return e.prototype.initEsl=function(e){return this.eslInstance=this.eslInstance||new $n(e),this.eslInstance},e.prototype.initEventBus=function(e,t){return new Mn(e,t)},e.prototype.initRenderer=function(){return new zn(this.eslInstance,this.config)},e.prototype.initAPI=function(e,t){Dn(e),this.api=Tn,t&&!window[t]&&(window[t]=this.api)},e.prototype.initRendererMethod=function(e){this.rendererMethod=e,this.config.set("rendererMethod",e)},e.prototype.getESLInstance=function(){return this.eslInstance},e}(),Vn=Hn;function Wn(e){return window.__initData__&&window.__initData__[e]}var Gn=Wn("staticUrl"),Qn=new Vn(Gn.includes("r/www")?Gn:Gn.replace("/static","")),Kn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.comm={loginAction:[],qid:"",alwaysMonitor:!1,keys:{},resultPage:1,pcFreshWrapper:1},r.se={mon:{loadedItems:[],srvt:-1}},r.su={urStatic:"",urdata:[],urSendClick:function(){}},r.util={addStyle:K},r.use={},r._base64={domain:"http://b1.bdstatic.com/",b64Exp:-1,pdc:0},r.ecom={},r.log={},r.event={},r.qa={},r.ready=function(){},r.doReady=function(){},r.clearReady=function(){},r.initPageLifecycle(),r}return i(t,e),t}(j),Yn=new Kn(new Y,new X({type:"resultPage",platform:"pc"},{lifecycle:{JSReady:{from:"resultPage",to:"resultPage",sticky:!0,removeSticky:!1},DOMContentLoaded:{from:"resultPage",to:"resultPage"},load:{from:"resultPage",to:"resultPage"},IndexOff:{from:"indexPage",to:"indexPage"},SwapBegin:{from:"resultPage",to:"resultPage"},SwapEnd:{from:"resultPage",to:"resultPage",sticky:!0,removeSticky:!1},SwapDomReady:{from:"resultPage",to:"resultPage"},unload:{from:"resultPage",to:"resultPage"}}},Qn)),Xn=window.bds||{};Object.keys(Xn).forEach((function(e){Yn[e]||(Yn[e]=Xn[e])}));var Zn=function(e){var t=!1,n=[];return e.ready=function(r,i){"function"==typeof r&&(t?r.call(e,i):n.push(r))},e.doReady=function(r){for(t=!0;n.length>0;){var i=n.shift();i&&i.call(e,r||{})}},e.clearReady=function(){t=!1,n=[]},e}(Yn);try{Zn.se.mon.srvt=parseInt(new RegExp("(^| )BDSVRTM=([^;]*)(;|$)").exec(document.cookie)[2],10),document.cookie="BDSVRTM=;expires=Sat, 01 Jan 2000 00:00:00 GMT"}catch(Ur){Zn.se.mon.srvt=-1}function er(e){var t=document.getElementById("container"),n=document.getElementById("wrapper");J()<1217?(t&&(B(t,/\bcontainer_l\b/g),F(t,/\bcontainer_s\b/)||U(t,"container_s")),n&&(B(n,/\bwrapper_l\b/g),F(n,/\bwrapper_s\b/)||U(n,"wrapper_s")),e.comm.containerSize="s"):(t&&(B(t,/\bcontainer_s\b/g),F(t,/\bcontainer_l\b/)||U(t,"container_l")),n&&(B(n,/\bwrapper_s\b/g),F(n,/\bwrapper_l\b/)||U(n,"wrapper_l")),e.comm.containerSize="l")}var tr=[function(e){if(/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:undefined)for(var t=document.charset,n=e.container.getElementsByTagName("form"),r=function(e){var r=n[e],i=function(){var e=r.acceptCharset;e&&"UNKNOWN"!==e.toString().toUpperCase()&&e!==document.charset&&(document.charset=e,setTimeout((function(){document.charset=t}),1e3))};$(r).on("submit",i);var a=r.submit;r.submit=function(){i();try{a.call(r)}catch(Ur){a()}}},i=0;i<n.length;i++)r(i)}],nr={},rr=0,ir=function(e,t){try{e.call(t)}catch(Ur){}},ar=function(e){e.ajaxId=++rr,nr[e.ajaxId]=e},sr=function(e){delete nr[e.ajaxId]},or=function(e){return!!e.ajaxId&&nr.hasOwnProperty(e.ajaxId)};var cr=function(){function e(){this.p1=0,this.mu=null,this.container=null,this.srcid=""}return e.prototype._init=function(){var e=this.container,t=function(e){var t={};if(e)try{t=JSON.parse(e)}catch(Ur){}return t}(this.container.getAttribute("data-click"));this.p1=t.p1||e.id,this.mu=t.mu||e.getAttribute("mu"),this.srcid=t.rsv_srcid||e.getAttribute("srcid")},e.prototype.q=function(e,t){return t=t||"",$(this.container).find(t+"."+e).get()},e.prototype.qq=function(e,t){return this.q(e,t)[0]},e.prototype.find=function(e){return jQuery(e,this.container)},e.prototype.ready=function(e){$(document).ready.apply(this,[e])},e.prototype.ajax=function(e,t,n){var r=A.AJAX,i=+new Date,a=n.params||{},s={query:e,co:n.co||"",resource_id:t,t:i};Object.assign(s,r.PARAMS),Object.assign(s,a),e=$.param(s);var o=r.API_URL+"?"+e,c=function(){var e=new Image;e.src=$.format(r.ERR_URL,{url:o}),A.logs.push(e)},l=(new Date).getTime(),h=function(e){var n=(new Date).getTime()-l,r={fm:"opendataajax",srcid:t,time:n,status:e};window.ns_c(r)},u=function(){sr(p),sr(d)},p=function(e){or(p)&&(u(),0==+e.status?n.success(e.data):(n.error&&n.error(e.status),c()),h(0))},d=function(){or(d)&&(u(),n.timeout&&n.timeout(),c(),h(1))};ar(p),ar(d),$.ajax({url:o,scriptCharset:r.PARAMS.oe,timeout:r.TIMEOUT,dataType:"jsonp",jsonp:"cb",success:p,error:d})},e}(),lr=[],hr=[],ur=function(){function e(){this.ids=[],this.has=!0,this.list=[],this.logs=[],this.loadTimes=[],this.groupData=[],this.mergeFns=[],this._currentContainer=null,this.AJAX={API_URL:bds.util.domain&&bds.util.domain.get?bds.util.domain.get("http://opendata.baidu.com/api.php"):"http://opendata.baidu.com/api.php",ERR_URL:bds.util.domain&&bds.util.domain.get?bds.util.domain.get("http://open.baidu.com/stat/al_e.gif?ajax_err_url=#{url}"):"http://open.baidu.com/stat/al_e.gif?ajax_err_url=#{url}",PARAMS:{ie:"utf8",oe:"gbk",cb:"op_aladdin_callback",format:"json",tn:"baidu"},TIMEOUT:6e3},this.addDisposeHandler({obj:nr,fn:function(){for(var e in nr)nr.hasOwnProperty(e)&&delete nr[e]}})}return e.prototype.reset=function(){this.ids=[],this.has=!0,this.list=[],this.logs=[],this.loadTimes=[],this.groupData=[],this.mergeFns=[],this._currentContainer=null},e.prototype.init=function(){},e.prototype.merge=function(e,t){this.mergeFns.push({tplName:e,fn:t})},e.prototype.setup=function(e,t){if(e!==undefined&&null!==e){var n=this._currentContainer||this.getCurrentAladdin();n&&this.setGroupData(n,e,t)}},e.prototype.setGroupData=function(e,t,n){var r=null;if(e.initIndex?r=this.groupData[e.initIndex-1]:(r={container:e,data:{},handlers:[]},e.initIndex=this.groupData.length+1,this.groupData.push(r)),"function"!=typeof t)if("object"!=typeof t)r.data[t]=n;else for(var i in t)t.hasOwnProperty(i)&&(r.data[i]=t[i]);else r.handlers.push(t)},e.prototype.getCurrentAladdin=function(){var e=document.getElementsByTagName("script"),t=e[e.length-1];window.currentScriptElem&&(t=window.currentScriptElem);for(var n=t;n;){if(n.className&&/(?:^|\s)result(?:-op)?(?:$|\s)/.test(n.className)&&n.getAttribute("tpl"))return n;n=n.parentElement}return null},e.prototype.addDisposeHandler=function(e){hr.push(e)},e.prototype.dispose=function(){for(;lr.length;){var e=lr.shift();ir(lr.shift().fn,e.obj)}for(var t=hr,n=0;n<t.length;n++){e=t[n];ir(e.fn,e.obj)}},e.prototype.__clearDispose=function(){lr=[],hr=[]},e.prototype.__runAla=function(){var e=this,t=function(){for(var e,t=$(".result-op").get().concat($(".result").get()),n={},r=0,i=void 0;i=t[r];r++)(e=i.getAttribute("tpl"))&&(n[e]?n[e].push(i):n[e]=[i]);return n}();this.mergeFns.forEach((function(n){var r=t[n.tplName];r&&$.each(r,(function(t,r){e._currentContainer=r,n.fn(),e._currentContainer=null}))})),this.groupData.forEach((function(t){var n=new cr,r=new Date,i=new Date;n.container=t.container,n.data=t.data,n._init(),e.list.push(n);var a=t.handlers;for(r=new Date;a.length;)ir(a.shift(),n);"function"==typeof n.dispose&&(lr.push({obj:n,fn:n.dispose}),n.dispose=null),i=new Date;var s={srcid:n.srcid};s.tpl=n.container.getAttribute("tpl"),s.time=i-r,e.loadTimes.push(s),tr.forEach((function(e){e.call(n,n)}))}))},e}(),pr={},dr={},fr={},vr=document,mr=vr.getElementsByTagName("head")[0],gr=!1,yr=function(){},br={"*":function(e,t){return t+"?v=20170208"},scrollbarv:function(e,t){return t+"?v=20170208"},likeshare4:function(e,t){return t+"?v=20170208"},mboxsingleton:function(e,t){return t+"?v=20170208"},sms:function(e,t){return t+"?v=20170208"},tab:function(e,t){return t+"?v=20170208"},tabs:function(e,t){return t+"?v=20170208"},musicplayer:function(e,t){return t+"?v=20170208"},slider:function(e,t){return t+"?v=20170208"},suggestion:function(e,t){return t+"?v=20170208"},tabs5:function(e,t){return t+"?v=20170208"},tabx:function(e,t){return t+"?v=20170208"},dropdown1:function(e,t){return t+"?v=20170208"},dropdown21:function(e,t){return t+"?v=20170208"},advert:function(e,t){return t+"?v=20170208"},advert2:function(e,t){return t+"?v=20170208"},honourCard:function(e,t){return t+"?v=20170208"},honourCard3:function(e,t){return t+"?v=20170208"},honourCard4:function(){return new Promise((function(t,n){e(['head-script/pc/static/ala-base/aladdin-ui/honourCard4/honourCard4'],t,n)}))},share:function(e,t){return t+"?v=20170208"},qHotCity:function(e,t){return t+"?v=20170208"},mapapi:function(e,t){return t+"?v=20170208"},qunarfilters:function(e,t){return t+"?v=20170208"},renderIframe3:function(e,t){return t+"?v=20170208"},share2:function(e,t){return t+"?v=20170208"},ALD_feedback:function(e,t){return t+"?v=20170208"},addtohome:function(e,t){return t+"?v=20170208"},addtohome2:function(e,t){return t+"?v=20170208"},gpsApi:function(e,t){return t+"?v=20170208"},simGps:function(e,t){return t+"?v=20170208"}};document.addEventListener("DOMContentLoaded",(function(){gr=!0}));var wr=["honourCard4"],_r=!0;function xr(e,t){if(t=t||yr,e in pr)t();else{var n=vr.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,n.setAttribute("data-for","A.ui"),mr.appendChild(n),pr[e]=1,t()}}function Cr(e,t){if(t=t||yr,e in pr)t();else if(e in dr)fr[e].push(t);else{dr[e]=1;var n=fr[e]=[t],r=vr.createElement("script");r.type="text/javascript",_r&&(r.charset="gb2312"),r.onload=r.onreadystatechange=function(){if(!this.readyState||"loaded"===this.readyState||"complete"===this.readyState){for(;n.length;)n.shift()();delete dr[e],pr[e]=1,r.onload=r.onreadystatechange=null}},r.src=e,r.setAttribute("data-for","A.ui"),mr.insertBefore(r,mr.firstChild)}}var Nr=function(e){function t(){var t=e.call(this)||this;return t.uiPrefix="//www.baidu.com/cache/aladdin/ui/",t.ui={},t.use.cache=pr,t.addDisposeHandler({obj:t,fn:function(){for(var e in fr)if(fr.hasOwnProperty(e))for(var t=fr[e];t.length;)t.pop()}}),t}return i(t,e),t.prototype.use=function(e,t){var n=this;_r=!wr.includes(e);var r="string"==typeof e?e.split(/\s*,\s*/):e;if(r.length>1)if(t)this.use(r.shift(),(function(){r.length>0&&n.use(r,t)}));else for(;r.length;)this.use(r.shift());else{if("jquery"===(e=r[0])&&jQuery)return!this.ui.jquery&&(this.ui.jquery=jQuery),void(t&&t());var i=e.replace(/\./g,"/"),a=e.replace(/^[\s\S]*\./,""),s=this.uiPrefix+i+"/"+a;if(0===i.search("style/"))xr(s+".css",t);else{s+=".js";var o="";if(br.hasOwnProperty(e)?"function"==typeof br[e]?o=br[e](e,s):"string"==typeof br[e]&&(o=br[e]):br.hasOwnProperty("*")&&(o=br["*"](e,s)),o instanceof Promise)return void o.then((function(){t()}));t?Cr(o,t):function(e){gr?Cr(e,yr):e in pr||(vr.write("<script"+(_r?' charset="gb2312"':"")+' type="text/javascript" src="'+e+'"><\/script>'),pr[e]=1)}(o)}}},t.prototype.uicss=function(e,t){var n=this;e instanceof Promise?e.then((function(e){xr(t?e:n.uiPrefix+e)})):xr(t?e:this.uiPrefix+e)},t.prototype.uijs=function(e,t){Cr(this.uiPrefix+e,t)},t.prototype.uijsPathMap=function(e){Object.assign(br,e)},t.prototype.addCssText=function(e){var t="opui-style-tag-id",n=document.getElementById(t);n||((n=document.createElement("style")).setAttribute("type","text/css"),n.setAttribute("data-for","A.ui"),n.id=t,document.getElementsByTagName("head")[0].appendChild(n));try{var r=document.createTextNode(e);n.appendChild(r)}catch(Ur){n.styleSheet&&(n.styleSheet.cssText+=e)}},t}(ur),kr=/MSIE\s?6/.test(window.navigator.userAgent);function Sr(e,t,n){var r;void 0===n&&(n="");var i=(null===(r=t.util.domain)||void 0===r?void 0:r.get("http://nsclick.baidu.com"))||"http://nsclick.baidu.com",a=new Image;window["BD_PS_C".concat(+Date.now())]=a;var s=function(e,t){var n=window.location.href,r={path:encodeURIComponent(n),wd:t.comm.queryEnc,rsv_did:t.comm.did||"",rsv_sid:t.comm.ishome&&t.comm.indexSid?t.comm.indexSid:t.comm.sid,t:+Date.now()};if("undefined"!=typeof Cookie&&"undefined"!=typeof Cookie.get)Cookie.get("H_PS_SKIN")&&"0"!==Cookie.get("H_PS_SKIN")&&(r.rsv_skin=1);else{var i="";try{i=parseInt(new RegExp("(^| )H_PS_SKIN=([^;]*)(;|$)").exec(document.cookie)[2])}catch(Ur){console.warn("parseInt _H_PS_SKIN error")}i&&"0"!==i&&(r.rsv_skin=1)}var a=Object.assign({},e,r);return a.title&&(a.title=encodeURIComponent(a.title.replace(/<[^<>]+>/g,""))),M(a,"&",{encode:!1})}(e,t),o="".concat(i,"/v.gif?pid=201&").concat(n).concat(s);return a.src=o,!0}function Er(e,t,n){var r=Object.assign({pj:"www"},e);return n&&(r.rsv_sample=1),Sr(r,t)}function Ar(e){return function(t,n){Er(t,e,n)}}var Or={sample:{resource:.02,jserror:.02,iframe:.02,resLoadSlow:.02,resBigimg:.02,httpRes:.02,lsInfo:1,lsCost:.02,codeCoverage:.02,pcUrlUnEncode:.1,abblock:.01,ajaxError:.01,screenDist:.01,blockMonitor:.001,domMonitor:.001},logServer:"https://sp1.baidu.com/5b1ZeDe5KgQFm2e88IuM_a/mwb2.gif"};var Ir=function(){function e(){this.lsName="SpyLocalCache",this.tmpList=[]}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.addLog=function(e){var t=this,n=JSON.stringify(e);this.tmpList.push(n),this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){t.save()}),500)},e.prototype.getData=function(e){try{var t=localStorage.getItem(this.lsName);e(t||"")}catch(Ur){console.error(Ur),e("")}},e.prototype.save=function(){var e=this;this.getData((function(t){var n=t+"\n"+e.tmpList.join("\n");try{localStorage.setItem(e.lsName,n)}catch(r){}e.tmpList=[]}))},e}();function Pr(e,n){void 0===n&&(n="except");var r=Zn.comm.qid||"",i=Date.now(),a=Ir.getInstance(),s="1_87";Zn.comm.ishome&&(s="1_79");var o,c,l=e.dim?t.__assign({isNewPcResult:1},e.dim):{isNewPcResult:1};if(a.addLog({pid:s,type:n,group:e.group,lid:r,info:e.info,dim:l,ts:i,from:"result",url:location.href}),(!(c=Or.sample[e.group])||!(document.cookie.indexOf("webbtest=1")>-1||Math.random()<c))&&(o=e.info,"1"!==Zn.comm.alwaysMonitor||(o.alwaysMonitor=1,0)))return"";var h=Or.logServer+"?pid="+s+"&lid="+r+"&ts="+i+"&type="+n+"&group="+e.group+"&info="+encodeURIComponent(JSON.stringify(e.info))+"&dim="+encodeURIComponent(JSON.stringify(l||{}));return(new Image).src=h,h}function Dr(e){var t;if(""!==e.id)return'id("'.concat(e.id,'")');if(e===document.body)return e.tagName;for(var n=(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.childNodes)?e.parentNode.childNodes:[],r=0;r<n.length;r++){if(n[r]===e){var i=e.classList,a=e.tagName;return e.getAttribute("id")?a+="[#"+e.getAttribute("id")+"]":i&&i.length&&(a+="[."+i[i.length-1]+"]"),Dr(e.parentNode)+"/"+a}}return""}function Tr(e,t){void 0===t&&(t={});var n,r={info:t,group:"jserror"},i=(e.reason||e.error||{}).stack||"";!e.message||(e.message,(n=i).indexOf("chrome-extension://")>-1||n.indexOf("moz-extension://")>-1)||(r.info.msg=e.message,r.info.file=e.filename,r.info.ln=e.lineno,r.info.col=e.colno,r.info.stack=i.split("\n").slice(0,3).join("\n"),r.info.pageUrl=location.href,Pr(r))}function Rr(e,t){try{var n={info:{},dim:{},group:""},r=n.info,i=e.target;if(i===window||"onerror"===t)Tr(e,r);else if(i){var a=i;n.group="resource",r.stack="",n.dim.type=a.tagName.toLowerCase();var s=a.src||a.href||"";if(r.msg=s||"unknown load eror",s.indexOf("/mwb2.gif?")>-1||s.indexOf("/webb.gif?")>-1)return;if(("IMG"===a.tagName||"VIDEO"===a.tagName||"AUDIO"===a.tagName)&&s){n.dim.xpath=Dr(a);var o=function(e){for(var t="";e&&1===e.nodeType&&e!==e.parentNode;){var n=e.className.split(/\s+/);if(-1!==n.indexOf("result-op")||-1!==n.indexOf("result")){t=e.getAttribute("tpl");break}if(-1!==n.indexOf("EC_result")){t="ec";break}if(e===document.body)break;e=e.parentNode}return t}(a);o&&(n.dim.tplName=o);var c=new URL(s);n.dim.host=c.host}Pr(n,"except")}}catch(Ur){console.error(Ur)}}function jr(e){Tr(e,{})}window._spySend=Pr,window._spySendError=function(e,t){void 0===t&&(t={});var n={info:t.info||{},dim:t.dim||{}},r=n.info;n.group="jserror",r.msg="string"==typeof e?e:e.message,r.stack=(e.stack||"").split("\n").slice(0,5).join("\n"),r.pageUrl=location.href,Pr(n)};var Lr=function(){function e(e,t,n){this.env=e,this.eventBusConfig=t,this.searchCore=n}return e.prototype.getEventBusInstance=function(){return this.searchCore.initEventBus(this.env,this.eventBusConfig).get()},e}(),Mr=new Lr({type:"resultPage",platform:"pc"},{mask:{show:{from:"resultPage",to:"resultPage"},hide:{from:"resultPage",to:"resultPage"}},app:{confirm:{from:"resultPage",to:"resultPage"},scroll:{from:"resultPage",to:"resultPage"},partHydrate:{from:"resultPage",to:"resultPage"}},settingPanel:{show:{from:"resultPage",to:"resultPage"},hide:{from:"resultPage",to:"resultPage"}},searchbox:{active:{from:"resultPage",to:"resultPage",sticky:!0},attached:{from:"resultPage",to:"resultPage"}},sug:{init:{from:"resultPage",to:"resultPage"}},cacheItem:{swapEnd:{from:"resultPage",to:"resultPage"},swapBegin:{from:"resultPage",to:"resultPage"}},topResult:{remove:{from:"resultPage",to:"resultPage"}},recommend:{invoke:{},update:{}},userInfo:{update:{}},page:{interactive:{from:"resultPage",to:"resultPage",sticky:!0}},searchTool:{filter:{from:"resultPage",to:"resultPage"}}},Qn).getEventBusInstance();function Br(e){e&&e.length&&e.forEach((function(e){window.require.undef(e)}))}window.performanceLog=n,window.bds=Zn,Zn.util.setContainerWidth=function(e){return function(){er(e)}}(Zn),Zn.util.getWinWidth=J,window.G=function(e){return document.getElementById(e)},window.A=window.A||new Nr,function(e,t){t.lifecycle.onSwapEnd((function(){var t,n;kr&&(t=98,n=121,$("img.result-left-img").each((function(e,r){var i=$(r),a=new Image,s=i.attr("src");a.onload=function(){var e=t,r=n,s=a.width,o=a.height;s/o/(e/r)>1?(s=s>e?e:"auto",o="auto"):(o=o>r?r:"auto",s="auto"),i.css({height:o,width:s}),a.onload=null,a=null},a.src=s}))),function(e){$(".c-feedback").bind("click",(function(){var t=this;e.use("ALD_feedback",(function(){bds.qa.fb_ALD.plugintitle="意见反馈";var n="right",r=undefined,i=undefined,a=$(t);a.parents("#content_left").length?(n="left",r=(i=a.parents(".result-op")).attr("srcid")):a.parents("#content_right").length&&(i=a.parents("#con-ar"));var s={query:bds.comm.query,srcid:r,target:i,username:bds.comm.username,flag:n},o=e.ui.ALD_feedback(s);$(".fb_email_block").length&&$(".fb_email_block")[0].remove(),e.addDisposeHandler({obj:o,fn:o.dispose})}))}))}(e)})),t.lifecycle.onSwapBegin((function(){e.dispose(),e.reset(),e.__clearDispose()})),t.lifecycle.onSwapDomReady((function(){t.ready(e.__runAla.bind(e)),t.doReady()}))}(window.A,Zn),window.ns_c_pj=function(e){return function(t,n){Sr(t,e,n)}}(Zn),window.ns_c=Ar(Zn),window.addEventListener&&window.addEventListener("error",Rr,!0),window.addEventListener("unhandledrejection",jr),Zn.base64=function(){var e=bds._base64,t="content_left",n="content_right",r="BASE64_BOTTAG",i=bds._base64.domain,a=[],s=[],o=[],c=[],l=[],h=!1,u=0,p=0,d=0,f=0,v=0,m=1,g={},y=0,b=!1,w=[],_=window.$;_&&_(window).on("swap_begin",(function(){a=[],s=[],o=[],c=[],l=[],h=!1,u=0,p=0,d=0,f=0,v=0,0,m=1,b=!1;for(var e=0;e<w.length;e++)w[e].abort()}));var x=function(e){var t=e.match(/.*(bds\.base64\.cb[rl])/);if(t){var n=e.match(/imglist=([^&]*)/);if(n&&n[1]){callback_name=function(e){if("string"==typeof e){var t=void 0,n=0,r=0;for(t=0;t<e.length;t++)r=t%20+1,n+=e.charCodeAt(t)<<r;return Math.abs(n)}return 0}(n[1].replace(/,/g,"")),callback_name="cb_"+(callback_name+"").substr(Math.max(0,callback_name.length-8),8)+"_0",window[callback_name]=function(e){"bds.base64.cbr"==t[1]?A(e):"bds.base64.cbl"==t[1]&&O(e),window[callback_name]=null};e=t[0].replace(/bds\.base64\.cb[rl]/,callback_name);var r=document.createElement("script");r.setAttribute("type","text/javascript"),r.setAttribute("src",e),r.setAttribute("defer","defer"),r.setAttribute("async","true"),document.getElementsByTagName("head")[0].appendChild(r)}}},C=function(e,r){if(!l[r]){l[r]=!0,"right"==r&&E.ot(!1);for(var i=document.getElementById(1!=u?"left"==r?t:n:"container").getElementsByTagName("IMG"),s=0;s<i.length;s++){var o=i[s].getAttribute("data-b64-id");if(o){var c=!1;e.hasOwnProperty(o)&&(N(i[s],e[o]),c=!0),c||k(i[s])}}setTimeout((function(){for(var e=0;e<a.length;e++){var t=a[e];t.loaded||k(t.obj)}a=[]}),200)}};function N(e,t){try{e.onerror=function(){k(this)},a.push({obj:e,loaded:!1}),e.onload=function(){for(var e=0;e<a.length;e++){var t=a[e];t.obj==this&&(t.loaded=!0)}},e.src="data:image/jpeg;base64,"+t}catch(Ur){k(e)}}var k=function(e){null!=e.getAttribute("data-b64-id")&&""!=e.getAttribute("data-b64-id")&&null!=e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src"))},S=function(e){var r=1250;e<6?r=1e3:e>10&&(r=1500),setTimeout((function(){if(!c.right){for(var e=document.getElementById(n).getElementsByTagName("IMG"),r=0;r<e.length;r++)k(e[r]);l.right=!0,E.ot(!0)}setTimeout((function(){if(h&&!c.left){for(var e=document.getElementById(t).getElementsByTagName("IMG"),n=0;n<e.length;n++)k(e[n]);l.left=!0}}),500)}),r)},E={ot:function(e){var t=E.get();if(e?t<6&&t++:t>0&&t--,t>=2){var n=new Date;n.setTime(n.getTime()+432e6),document.cookie="B64_BOT=1; expires="+n.toGMTString()}else t<1&&/B64_BOT=1/.exec(document.cookie)&&(document.cookie="B64_BOT=0;");try{window.localStorage&&(window.localStorage[r]=t)}catch(Ur){}},get:function(){try{if(!window.localStorage)return 0;var e=window.localStorage[r];return e=e?parseInt(e):0}catch(Ur){return 0}}},A=function(e){d=1*new Date,b&&bds.comm&&p>0&&d>0&&(bds.comm.cusval="b64_"+m+"_"+(d-p)),g.cbr=1,I(e,"right")},O=function(e){f=1*new Date,I(e,"left")},I=function(e,t){if(c[t]=!y||g.cbpr&&g.cbr,e)for(var n in o[t]===undefined&&(o[t]={}),e)e.hasOwnProperty(n)&&(o[t][n]=e[n]);s[t]&&c[t]&&C(o[t],t)},P=function(e){var t="b64log__"+(new Date).getTime(),n=window[t]=new Image;n.onload=n.onerror=function(){window[t]=null},n.src="http://nsclick.baidu.com/v.gif?pid=315&rsv_yc_log=3&"+e+"&_t="+1*new Date,n=null};return{init:function(t,n,r){var a=t||[],s=n||[];if(window.__IS_IMG_PREFETCH){function v(e){return!window.__IS_IMG_PREFETCH.hasOwnProperty(e)}a=_.grep(a,v),s=_.grep(s,v)}if(window.__IMG_PRELOAD&&r){g.cbr=0,g.cbpr=0,y=1;for(var o=window.__IMG_PRELOAD={},c=0;c<a.length;c++)o.hasOwnProperty(a[c])||(window.__IMG_PRELOAD[a[c]]=!0)}else if(window.__IMG_PRELOAD&&!r){var l=[];for(c=0;c<a.length;c++)window.__IMG_PRELOAD.hasOwnProperty(a[c])||l.push(a[c]);a=l}e.b64Exp&&1==(u=e.b64Exp)&&(i="http://b2.bdstatic.com/",m=2),b=e.pdc>0,p=1*new Date,2==u&&(s.length>0&&(h=!0),r||O({})),a.length>0?b&&bds.ready&&bds.ready((function(){setTimeout((function(){var e=E.get(),t="dt="+m+"&time="+(d>0?d-p:0)+"&bot="+e+"&rcount="+a.length;if(window._B64_REQ_LOG=(d>0?d-p:0)+"_"+a.length,2==u&&f>0){var n=document.getElementById("ala_img_pics"),r=n&&n.children?n.children.length:0;t+="&time2="+(f-p)+"&lcount="+r}100*Math.random()<10&&P(t)}),2e3)})):r||A({}),(a.length>0||s.length>0)&&(r||S(a.length))},cbl:O,cbr:A,cbpr:function(e){g.cbpr=1,I(e,"right")},setDomLoad:function(e){s[e]=!0,c[e]&&C(o[e],e)},cbs:function(e){1*new Date-v<1500?E.ot(!1):E.ot(!0)},ts:function(){u=3,v=1*new Date,x(i+"image?imglist=1241886729_3226161681_58,1072899117_2953388635_58,2469877062_2085031320_58,155831992_309216365_58,2539127170_1607411613_58,1160777122_283857721_58,1577144716_3149119526_58,2339041784_1038484334_58&cb=bds.base64.cbs")},predictImg:!1}}(),window.require&&window.require.undef&&(window.require.clearModule=Br),function(e){var t=Wn("staticUrl");window.require.config({baseUrl:t,onNodeCreated:function(e,n,r,i){[t].some((function(e){return 0===i.indexOf(e)}))&&e.setAttribute("crossorigin","anonymous")}}),e.amd.addPaths({"@baidu/pst-log":"./amd_modules/@baidu/pst-log/index_2bbf087","@baidu/better-scroll":"./amd_modules/@baidu/better-scroll/dist/better-scroll_b145763","@baidu/utils":"./amd_modules/@baidu/utils/dist/web_f31f52b","@baidu/baikan-sse":"./amd_modules/@baidu/baikan-sse/dist/index.amd_1a94f46","@baidu/chat-sse":"./amd_modules/@baidu/chat-sse/dist/index.umd_ad3129f","@baidu/xbox-comment-pc":"./amd_modules/@baidu/xbox-comment-pc/dist/comment-pc.min_6906c54","@baidu/lego-utils":"./amd_modules/@baidu/lego-utils/lib/index_f57c2d7","@baidu/ubc-report-sdk/dist/ubc-web-sdk.umd.min":"./amd_modules/@baidu/ubc-report-sdk/dist/ubc-web-sdk.umd.min_71c35f0","dep/echarts/echarts.min":"./amd_modules/echarts/dist/echarts.min_da8b555","@baidu/wuji-utils":"./amd_modules/@baidu/wuji-utils/lib/index_d60abe7","@baidu/atom-web-runtime":"./amd_modules/@baidu/atom-web-runtime/dist/atom.min_df7ee0a","@baidu/qeditor":"./amd_modules/@baidu/qeditor/dist/index.umd_a106f31","@baidu/webSecurity":"./amd_modules/@baidu/webSecurity/dist/bundle_c16e627","@baidu/xbox-dynamic-publisher":"./amd_modules/@baidu/xbox-dynamic-publisher/dist/dynamic-publisher.min_8a8c05b","@baidu/antifraud-defense":"./amd_modules/@baidu/antifraud-defense/xaf-defense_5ee2b37","@baidu/aging-tools-pc":"./amd_modules/@baidu/aging-tools-pc/dist/index_3d25c57","@baidu/clickstream":"./amd_modules/@baidu/clickstream/dist/clickstream_853c254","spy-client":"./amd_modules/spy-client/dist/spy-client_7802d59","@baidu/ai-search-box-entry":"./amd_modules/@baidu/ai-search-box-entry/dist/js/index_8d58edf","versions-compare":"./amd_modules/versions-compare/src/index_8085cad","@baidu/webb":"./amd_modules/@baidu/webb/webb2.min_18da5dd","@baidu/codeCover":"./amd_modules/@baidu/codeCover/dist/bundle_2fc3171","@baidu/guarantee-popper":"./amd_modules/@baidu/guarantee-popper/index_7dfe29b","@baidu/haokan-art-player":"./amd_modules/@baidu/haokan-art-player/dist/artplayer_29b1f21","@baidu/pmd":"./amd_modules/@baidu/pmd/dist/pmd_019e1d6","@baidu/marklang":"./amd_modules/@baidu/marklang/lib/browser_c12f45c","@baidu/chat-pcsearch-common":"./amd_modules/@baidu/chat-pcsearch-common/dist/index_76a0a81","@baidu/mcp-sdk/dist/apm/index":"./amd_modules/@baidu/mcp-sdk/dist/apm/index_31a9367","@baidu/web-animations-js":"./amd_modules/@baidu/web-animations-js/web-animations.min_f1b7745","@searchfe/promise":"./amd_modules/@searchfe/promise/src/promise_f60ac57","@baidu/markdown":"./amd_modules/@baidu/markdown/lib/client.umd_ab4fe1b","tslib":"./amd_modules/tslib/tslib_ad5efe5","@baidu/ala-util":"./amd_modules/@baidu/ala-util/index_8dea72c","@baidu/pc-grid":"./amd_modules/@baidu/pc-grid/index_1f8fc7e","@baidu/Boxjs-search":"./amd_modules/@baidu/Boxjs-search/index_db8d6e9","lottie-web":"./amd_modules/lottie-web/build/player/lottie_e59e060","image-compress-browser":"./amd_modules/image-compress-browser/dist/compressImage_090f70d","@searchfe/inject-js":"./amd_modules/@searchfe/inject-js/dist/amd/index_80da7a9","@searchfe/polyfills":"./amd_modules/@searchfe/polyfills/polyfill_9e348b1","@baidu/boxx":"./amd_modules/@baidu/boxx/dist/boxx.umd_43241d6","@baidu/clickstream-sdk":"./amd_modules/@baidu/clickstream-sdk/lib/index_90eb08e","@baidu/chat-input-next":"./amd_modules/@baidu/chat-input-next/dist/chat-input.umd_9fa7946","json-mirror-compiler":"./amd_modules/json-mirror-compiler/lib/js/index_17ae540","marked-katex-extension":"./amd_modules/marked-katex-extension/lib/index.umd_f2214c0","@searchfe/user-agent":"./amd_modules/@searchfe/user-agent/index_8635cad","marked":"./amd_modules/marked/lib/marked.umd_dbe87c3","@baidu/search-sug":"./amd_modules/@baidu/search-sug/sug/index_1a96064","@baidu/prefetch-app-data":"./amd_modules/@baidu/prefetch-app-data/index_9b4ca8a","@baidu/pc-tts-player":"./amd_modules/@baidu/pc-tts-player/dist/tts.amd_26a2fff","@baidu/Boxjs-amd":"./amd_modules/@baidu/Boxjs-amd/index_9b1c0ba","@baidu/jssdk":"./amd_modules/@baidu/jssdk/index_2734966","@baidu/chat-stream":"./amd_modules/@baidu/chat-stream/dist/index_54084f8","@searchfe/underscore":"./amd_modules/@searchfe/underscore/src/index_5c9858a","@baidu/goods-sdk":"./amd_modules/@baidu/goods-sdk/output/index.umd_1ad08b3","blueimp-md5":"./amd_modules/blueimp-md5/js/md5_018d259","@searchfe/assert":"./amd_modules/@searchfe/assert/index_900dc3a","@searchfe/reflect-metadata":"./amd_modules/@searchfe/reflect-metadata/Reflect_ef02278","promise-polyfill":"./amd_modules/promise-polyfill/lib/index_ee0ca73","@baiducloud/sdk/dist/baidubce-sdk.bundle.min":"./amd_modules/@baiducloud/sdk/dist/baidubce-sdk.bundle.min_1d6a2b6","whatwg-fetch":"./amd_modules/whatwg-fetch/fetch_61cc091","__result_module_footer/pc/static/footer.san":"./footer/pc/static/footer.san-d5471444","bottom-script/pc/static/ime/pinyin":"./bottom-script/pc/static/ime/pinyin-db5f58dc","plugins/bzPopper":"./bottom-script/pc/static/trust/bzPopper-a2e4c307","feedback/pc/static/feedback_suggest":"./feedback/pc/static/feedback_suggest-a516eba2","bottom-script/pc/static/cookie/clean":"./bottom-script/pc/static/cookie/clean-b6f68d26","__result_module_hint/pc/static/hint-result-jiucuo/hint-result-jiucuo.san":"./hint/pc/static/hint-result-jiucuo/hint-result-jiucuo.san-92f7c9a6","__result_module_brand-head/pc/static/brand-head.san":"./brand-head/pc/static/brand-head.san-ae0570f7","__result_module_hint/pc/static/hint-left-bottom/hint-left-bottom.san":"./hint/pc/static/hint-left-bottom/hint-left-bottom.san-97f91f99","__result_module_hint/pc/static/hint-result-omit-fold/hint-result-omit-fold.san":"./hint/pc/static/hint-result-omit-fold/hint-result-omit-fold.san-d3e9b0d1","bottom-script/pc/static/ipad-compatible/ipad-compatible":"./bottom-script/pc/static/ipad-compatible/ipad-compatible-0fd710b1","__result_module_hint/pc/static/hint-result-url/hint-result-url.san":"./hint/pc/static/hint-result-url/hint-result-url.san-fd40e849","bottom-script/pc/static/zoom-prompt/get-zoom":"./bottom-script/pc/static/zoom-prompt/get-zoom-a91ad94b","__result_module_hint/pc/static/hint-chat-entry/hint-chat-entry.san":"./hint/pc/static/hint-chat-entry/hint-chat-entry.san-fe091843","bottom-script/pc/static/zoom-prompt/zoom-prompt":"./bottom-script/pc/static/zoom-prompt/zoom-prompt-a9796d6e","head-script/pc/static/ala-base/aladdin-ui/honourCard4/honourCard4":"./head-script/pc/static/ala-base/aladdin-ui/honourCard4/honourCard4-ce3a534e","atom-logger":"./bottom-script/pc/static/esl-module/atom-logger-f62fc850","__result_module_hint/pc/static/hint-top-tip/top-tip.san":"./hint/pc/static/hint-top-tip/top-tip.san-68488504","__result_module_hint/pc/static/hint-result-safe-fold/hint-result-safe-fold.san":"./hint/pc/static/hint-result-safe-fold/hint-result-safe-fold.san-d4fe7f4a","bottom-script/pc/static/pc-to-wise/index":"./bottom-script/pc/static/pc-to-wise/index-3788124b","every-cookie-mac":"./bottom-script/pc/static/every-cookie/every-cookie-mac-1b3058ef","every-cookie":"./bottom-script/pc/static/every-cookie/every-cookie-aa8c05af","bottom-script/pc/static/ime/ime":"./bottom-script/pc/static/ime/ime-d3ee4a69","ipad/pc/static/tipbox":"./ipad/pc/static/tipbox-f68791cd","all_async_search_single_card":"./bottom-script/pc/static/all-async-search-single-card-71229b4e","@baidu/www-api":"./modules/pc/static/services/www-api-dbb8b36c","bottom-script/pc/static/ime/hand-writing":"./bottom-script/pc/static/ime/hand-writing-db240661","__result_module_pagination/pc/static/load-more.san":"./pagination/pc/static/load-more.san-0471d0f3","personal-center/pc/static/isui-init/setting-instant/setting-tips":"./personal-center/pc/static/isui-init/setting-instant/setting-tips-267fa341","@baidu/inject-js":"./modules/pc/static/services/inject-js-4b6282fe","search-box/pc/static/img/allow":"./search-box/pc/static/img/allow-7b4ce1af","personal-center/pc/static/isui-init/setting-instant/panel":"./personal-center/pc/static/isui-init/setting-instant/panel-30f7701b","search-box/pc/static/img/start_btn_new":"./search-box/pc/static/img/start_btn_new-4cfcd888","personal-center/pc/static/isui-init/setting-instant/layer":"./personal-center/pc/static/isui-init/setting-instant/layer-1b089ed4","__result_module_download-and-accessibility/pc/static/index.san":"./download-and-accessibility/pc/static/index.san-6c1272c1","__result_module_pagination/pc/static/pagination.san":"./pagination/pc/static/pagination.san-bea0f986","personal-center/pc/static/isui-init/setting-instant/tab":"./personal-center/pc/static/isui-init/setting-instant/tab-374d0f01","personal-center/pc/static/isui-init/setting-instant/instant":"./personal-center/pc/static/isui-init/setting-instant/instant-cc9df6e2","personal-center/pc/static/isui-init/setting-instant/search-setting":"./personal-center/pc/static/isui-init/setting-instant/search-setting-539fe546","personal-center/pc/static/isui-init/setting-instant/advanced-setting":"./personal-center/pc/static/isui-init/setting-instant/advanced-setting-ad1072b0","personal-center/pc/static/isui-init/setting-instant/index-setting":"./personal-center/pc/static/isui-init/setting-instant/index-setting-398dacf4","search-box/pc/static/voice/voice":"./search-box/pc/static/voice/voice-ed29564a","bottom-script/pc/static/pc-to-wise/qrcode":"./bottom-script/pc/static/pc-to-wise/qrcode-449114c3","bottom-script/pc/static/skin/skin":"./bottom-script/pc/static/skin/skin-0b62dc51","nu-instant-search":"./personal-center/pc/static/isui-init/nu_instant_search-2c8f262f","__result_module_search-tool/pc/static/index.san":"./search-tool/pc/static/index.san-ed353235","@baidu/search-api":"./modules/pc/static/services/search-api-5426f425","feedback/pc/static/feedback-init-old":"./feedback/pc/static/feedback-init-old-042cb55b","all_async_search":"./bottom-script/pc/static/all-async-search-b0909bd9"}),e.amd.addConfig({"paths":{"ala-util_ded22c4":"./amd_modules/extendedAmdBundle/ala-util_ded22c4","spy-client_2d4ba77":"./amd_modules/extendedAmdBundle/spy-client_2d4ba77","guaranteePopper_7dfe29b":"./amd_modules/extendedAmdBundle/guaranteePopper_7dfe29b","atom-web-runtime_df7ee0a":"./amd_modules/extendedAmdBundle/@baidu/atom-web-runtime_df7ee0a"},"bundles":{"ala-util_ded22c4":["@baidu/ala-util/update","@baidu/ala-util/na/naConfig","@baidu/ala-util/na/utils","@baidu/ala-util/md5","@baidu/ala-util/ala","@baidu/ala-util/video-utils","@baidu/ala-util/swan-web-utils","@baidu/ala-util/global-api","@baidu/ala-util","@baidu/ala-util/san-component","@baidu/ala-util/env","@baidu/ala-util/es6-promise","@baidu/ala-util/fetch-jsonp","@baidu/ala-util/fetch","@baidu/ala-util/index","@baidu/ala-util/lodash"],"spy-client_2d4ba77":["spy-client/dist/spy-local-cache"],"guaranteePopper_7dfe29b":["@baidu/guarantee-popper/index"],"atom-web-runtime_df7ee0a":["@baidu/atom-web-runtime/dist/atom.min"]}})}(Zn),function(e){e.ready((function(){window.addEventListener("resize",(function(){navigator.userAgent.toLowerCase().includes("safari")?setTimeout((function(){er(e)}),800):er(e)})),er(e)})),e.lifecycle.onSwapEnd((function(){er(e)}))}(Zn),Zn.ready((function(){var e=$(".hint_right_top");e.find(".lb").click((function(){Zn.se.login.open()}));var t=e.find("li"),n=e.find("ul");if(t.length>1){n.append("<li>"+t.first().html()+"</li>");for(var r=null,i=0;i<t.length;i++)$(".hint_right_top_btns").append('<a href="#" data-index="'+i+'" class="point"></a>');var a=e.find(".point"),s=0,o=t.length,c=t.first();function u(e){var t=c.width();e!==undefined?s=e:s++,a.removeClass("current"),s===o?$(a[0]).addClass("current"):$(a[s]).addClass("current"),n.stop().animate({"margin-left":-s*t+"px"},(function(){s>o-1&&(s=0,n.css({"margin-left":"0px"}))}))}a.first().addClass("current"),a.click((function(e){return!$(this).hasClass("current")&&(u(Number($(this).attr("data-index"))),e.preventDefault(),!0)})),e.find(".hint_right_top_btns").show(),e.mouseenter((function(){clearTimeout(r)})),e.mouseleave((function(){r=setTimeout(p,1e4)}));var l=$("#container"),h=l.hasClass("container_s");function p(){u(),r=setTimeout(p,1e4)}$(window).on("resize",(function(){l.hasClass("container_s")!==h&&(u(),h=!h)})),r=setTimeout(p,5e3)}}),{}),t.BDSInstance=Zn,t.__awaiter=l,t.__decorate=s,t.__extends=i,t.__generator=h,t.__metadata=c,t.__param=o,t.__read=f,t.__spreadArray=g,t.__spreadArrays=m,t.__values=d,t.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},t.addStyle=K,t.commonjsGlobal=Z,t.crc32=function(e){if("string"==typeof e){for(var t=0,n=0;n<e.length;n++)t+=e.charCodeAt(n);return t}return 0},t.escapeHTML=function(e,t){if(void 0===t&&(t=!0),"string"==typeof e){var n=t?G:W,r=t?V:H;return e.replace(n,(function(e){return r[e]}))}return e},t.eventBus=Mr,t.executeAndLog=function(e,t){try{e()}catch(Ur){window.console&&console.error&&console.error(Ur),window._spySendError&&window._spySendError(Ur)}},t.getAugmentedNamespace=function(e){if(e.__esModule)return e;var t=e["default"];if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n},t.getBrowserInfo=function(){var e=navigator.userAgent,t={},n=navigator.platform.toUpperCase().includes("MAC");return t.mac=n,/Chrome\/(\S+)/.test(e)?t.chrome=RegExp.$1:/Firefox\/(\S+)/.test(e)?t.firefox=RegExp.$1:/Version\/(\S+).*Safari/.test(e)?t.safari=RegExp.$1:/MSIE (\S+);/.test(e)?t.ie=RegExp.$1:/Edge\/(\S+)/.test(e)?t.edge=RegExp.$1:/Opera\/.*?Version\/(\S+)/.test(e)?t.opera=RegExp.$1:/rv:(\S+)/.test(e)&&(t.ie=RegExp.$1),t},t.getCookie=function(e){var t="";if(q(e)){var n=new RegExp("(^| )"+e+"=([^;]*)(;|$)").exec(document.cookie);if(n&&"string"==typeof(t=n[2]||null))return t=decodeURIComponent(t)}return null},t.getCursorPosition=function(e){var t=0;try{if(document.selection){var n=document.selection.createRange(),r=0;e&&e.value&&(r=e.value.length),n.movStart("character",r),t=n.text.length}else(e.selectionStart||0===e.selectionStart)&&(t=e.selectionStart)}catch(Ur){t=e.value.length}return t},t.getDefaultExportFromCjs=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e},t.getElement=function(e){return document.getElementById(e)},t.getInitData=Wn,t.initNsClickForWWW=Ar,t.isArray=function(e){return e instanceof Array},t.isHitSampling=function(e,t){var n,r;return null===(r=null===(n=null==e?void 0:e.comm)||void 0===n?void 0:n.sampleval)||void 0===r?void 0:r.includes(t)},t.isIEBrowser=Q,t.isObject=z,t.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},t.isSupportLocalStorage=function(){try{return localStorage.setItem("__test__","__test_"),localStorage.removeItem("__test__"),!0}catch(Ur){return!1}},t.nsClickBase=Sr,t.nsClickForWWW=Er,t.objToStr=M,t.parseUrlParams=function(e){var t,n,r={},i=e.includes("?")?e.split("?")[1]:e,a=i.includes("&")?i.split("&"):new Array(i);try{for(var s=d(a),o=s.next();!o.done;o=s.next()){var c=o.value;c.includes("=")||(c+="=");var l=f(c.split("="),2),h=l[0],u=l[1];r[h]=decodeURIComponent(u.replace(/\+/g," "))}}catch(p){t={error:p}}finally{try{o&&!o.done&&(n=s["return"])&&n.call(s)}finally{if(t)throw t.error}}return r},t.send=Pr,t.setContainerWidth=er,t.setCookie=function(e,t,n){var r;if(t=encodeURIComponent(t),q(e)){var i=n.expires;"number"==typeof i&&(i=new Date).setTime(i.getTime()+n.expires);var a=((r={})[e]=t,r.path=n.path||"",r.expires=i||"",r.domain=n.domain||"",r.secure=n.secure||"",r);document.cookie=M(a,"; ",{encode:!1})}},t.subByte=function(e,t,n){void 0===n&&(n="…");var r=e.split("").map((function(e){return e.charCodeAt(0)>255?"*":e}));return t&&r.length>t?r.join("").substring(0,t-1).replace(/\*/g,"")+n:e},t.truncateQuery=function(e,t){if(void 0===t&&(t=255),""===e)return"";var n=(e+="").split(""),r=n.length,i=0;if(r<=t/2)return e;for(var a=0;a<r;a++){if(n[a].charCodeAt(0)>255?i+=2:i+=1,i===t)return e.substring(0,a+1);if(i>t)return e.substring(0,a)}return e},t.tslib_es6=R}));
/**__BOOTSTRAP_REQUIRE__**/;require(['head-script/pc/static/index'])